

/* ─────────────────────────────────────────────────────
   01. Design tokens
   ───────────────────────────────────────────────────── */
:root {
    --tg-cream:         #FAF7F2;
    --tg-ink:           #1C1A16;
    --tg-ink-muted:     #6B6760;
    --tg-surface:       #ffffff;
    --tg-brand:         #c41212;
    --tg-accent:        #F59E0B;
    --tg-wa:            #25D366;

    --tg-ink-06:        rgba(28, 26, 22, .06);
    --tg-ink-10:        rgba(28, 26, 22, .10);
    --tg-ink-22:        rgba(28, 26, 22, .22);
    --tg-wa-40:         rgba(37, 211, 102, .40);
    --tg-wa-50:         rgba(37, 211, 102, .50);
    --tg-white-06:      rgba(255, 255, 255, .06);

    /* Acentos por categoria de receita */
    --tg-classic:       #378ADD;
    --tg-queijo:        #EF9F27;
    --tg-frango:        #639922;
    --tg-retro:         #D85A30;

    --tg-font-display:  'Playfair Display', Georgia, serif;
    --tg-font-body:     'DM Sans', system-ui, sans-serif;

    --tg-topbar-h:      40px;
    --tg-navbar-h:      65px;
    --tg-header-h:      calc(var(--tg-topbar-h) + var(--tg-navbar-h));

    --tg-sp-sm:         0.75rem;
    --tg-sp-lg:         1.5rem;

    --tg-radius-card:   16px;
    --tg-radius-btn:    10px;
    --tg-shadow-card:   0 12px 32px var(--tg-ink-06);
    --tg-shadow-wa:     0 4px 16px var(--tg-wa-40);
    --tg-shadow-wa-lg:  0 6px 22px var(--tg-wa-50);
    --tg-ease:          .2s ease;
    --tg-ease-slow:     .4s ease;
}

/* ─────────────────────────────────────────────────────
   02. Reset mínimo
   ───────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

/* ─────────────────────────────────────────────────────
   03. Header fixo
   ───────────────────────────────────────────────────── */
body {
    background-color: var(--tg-cream);
    font-family: var(--tg-font-body);
    color: var(--tg-ink);
    margin: 0;
    padding-top: var(--tg-header-h);
}

.tg-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--tg-topbar-h);
    z-index: 1031;
    background-color: #111 !important;
    display: flex;
    align-items: center;
}

.navbar.navbar-custom {
    top: var(--tg-topbar-h) !important;
    height: var(--tg-navbar-h);
    background-color: var(--tg-surface) !important;
    border-bottom: 1px solid var(--tg-ink-10);
}

.logo-nav {
    height: 52px;
    width: auto;
    transition: height var(--tg-ease);
}

.navbar-custom .navbar-nav .nav-link {
    color: var(--tg-ink) !important;
    font-family: var(--tg-font-body);
    font-weight: 500;
    padding: 0.625rem 0.9375rem !important;
    transition: color var(--tg-ease);
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
    color: var(--tg-brand) !important;
}

.navbar-custom .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px var(--tg-ink-10);
    border-radius: var(--tg-radius-btn);
}

.navbar-custom .dropdown-item:hover {
    background-color: var(--tg-cream);
    color: var(--tg-brand);
}

.navbar-custom .navbar-collapse {
    background-color: var(--tg-surface);
    padding: var(--tg-sp-lg);
    margin-top: var(--tg-sp-sm);
    border-radius: var(--tg-radius-btn);
    box-shadow: 0 10px 15px var(--tg-ink-10);
}

/* ─────────────────────────────────────────────────────
   04. Reduced-motion
   ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration:        0.01ms !important;
        animation-iteration-count: 1      !important;
        transition-duration:       0.01ms !important;
        scroll-behavior:           auto   !important;
    }
}

/* ─────────────────────────────────────────────────────
   05. Page hero
   ───────────────────────────────────────────────────── */
.recipes-hero {
    padding: 60px 0 40px;
    text-align: center;
}

.recipes-hero .eyebrow {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tg-ink-muted);
    margin-bottom: 12px;
}

.recipes-hero h1 {
    font-family: var(--tg-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--tg-ink);
    margin-bottom: 16px;
}

.recipes-hero h1 em {
    font-style: italic;
    color: var(--tg-brand);
}

.recipes-hero p {
    font-size: 1rem;
    color: var(--tg-ink-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─────────────────────────────────────────────────────
   06. Recipe grid
   ───────────────────────────────────────────────────── */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding-bottom: 80px;
}

/* ─────────────────────────────────────────────────────
   07. Recipe card
   ───────────────────────────────────────────────────── */
.recipe-card {
    background: var(--tg-surface);
    border: 1px solid var(--tg-ink-10);
    border-radius: var(--tg-radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        border-color var(--tg-ease),
        transform    var(--tg-ease),
        box-shadow   var(--tg-ease);
}

.recipe-card:hover {
    border-color: var(--tg-ink-22);
    transform: translateY(-3px);
    box-shadow: var(--tg-shadow-card);
}

/* 07a. Imagem + badges */
.card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0ede8;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--tg-ease-slow);
}

.recipe-card:hover .card-img-wrap img { transform: scale(1.04); }

.img-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: .04em;
    padding: 4px 12px;
    border-radius: 99px;
    backdrop-filter: blur(6px);
}

.img-badge.classic { background: rgba(55,138,221,.15); color: #0C447C; border: 1px solid rgba(55,138,221,.30); }
.img-badge.queijo  { background: rgba(239,159,39,.15);  color: #633806; border: 1px solid rgba(239,159,39,.30); }
.img-badge.frango  { background: rgba(99,153,34,.15);   color: #27500A; border: 1px solid rgba(99,153,34,.30); }
.img-badge.retro   { background: rgba(216,90,48,.15);   color: #712B13; border: 1px solid rgba(216,90,48,.30); }

.img-time {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(250, 247, 242, .85);
    color: var(--tg-ink-muted);
    border: 1px solid var(--tg-ink-10);
    backdrop-filter: blur(4px);
}

.card-logo-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--tg-surface);
    box-shadow: 0 2px 8px var(--tg-ink-10);
}

.card-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 07b. Body */
.card-body-inner {
    padding: 20px 20px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title-recipe {
    font-family: var(--tg-font-display);
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tg-ink);
    margin: 0 0 6px;
}

.card-desc-recipe {
    font-size: 0.8125rem;
    color: var(--tg-ink-muted);
    line-height: 1.65;
    margin: 0 0 18px;
}

.section-label {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--tg-ink-muted);
    margin: 0 0 10px;
}

.ingredients-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.ingredients-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--tg-ink);
    padding: 6px 0;
    border-bottom: 1px solid var(--tg-ink-10);
}

.ingredients-list li:last-child { border-bottom: none; }

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot.classic { background: var(--tg-classic); }
.dot.queijo  { background: var(--tg-queijo);  }
.dot.frango  { background: var(--tg-frango);  }
.dot.retro   { background: var(--tg-retro);   }

.how-to-block {
    background: var(--tg-cream);
    border-radius: var(--tg-radius-btn);
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.8125rem;
    color: var(--tg-ink-muted);
    line-height: 1.65;
}

.how-to-block p         { margin: 0; }
.how-to-block p + p     { margin-top: 6px; }

.tip-block {
    border-left: 3px solid var(--tg-queijo);
    padding: 8px 12px;
    margin-bottom: 14px;
    border-radius: 0 8px 8px 0;
    background: rgba(239, 159, 39, .06);
}

.tip-block .tip-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--tg-ink);
    margin-bottom: 3px;
}

.tip-block p {
    font-size: 0.75rem;
    color: var(--tg-ink-muted);
    margin: 0;
    line-height: 1.55;
}

/* 07c. Footer CTA */
.card-footer-inner {
    padding: 14px 20px;
    border-top: 1px solid var(--tg-ink-10);
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 0;
    background: var(--tg-wa);
    color: var(--tg-surface) !important;
    font-family: var(--tg-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: var(--tg-radius-btn);
    text-decoration: none !important;
    transition: opacity var(--tg-ease), transform var(--tg-ease);
}

.cta-btn:hover  { opacity: .88; }
.cta-btn:active { transform: scale(.98); }

/* ─────────────────────────────────────────────────────
   08. WhatsApp FAB
   ───────────────────────────────────────────────────── */
.tg-fab {
    position: fixed;
    bottom: 1.375rem;
    right: 1.125rem;
    z-index: 1050;
    width: 3.375rem;
    height: 3.375rem;
    border-radius: 50%;
    background: var(--tg-wa);
    color: var(--tg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--tg-shadow-wa);
    transition: transform var(--tg-ease), box-shadow var(--tg-ease);
    text-decoration: none;
}

.tg-fab:is(:hover, :focus-visible) {
    color: var(--tg-surface);
    transform: scale(1.08);
    box-shadow: var(--tg-shadow-wa-lg);
    outline: none;
}

/* ─────────────────────────────────────────────────────
   09. Footer
   ───────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--tg-white-06);
}

/* ─────────────────────────────────────────────────────
   10. Responsivo
   ───────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .navbar-custom .navbar-collapse {
        position: absolute;
        top: calc(var(--tg-navbar-h) - 1px);
        left: 0;
        right: 0;
        z-index: 1030;
    }
}

@media (max-width: 767px) {
    :root {
        --tg-navbar-h: 56px;
        --tg-header-h: 96px;
    }

    .logo-nav { height: 44px; }

    .navbar-custom .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }

    .recipes-hero { padding: 40px 0 24px; }

    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --tg-navbar-h: 52px;
        --tg-header-h: 92px;
    }

    .logo-nav { height: 40px; }

    .navbar-custom .navbar-nav .nav-link {
        padding: 0.45rem 0.65rem !important;
        font-size: 0.85rem;
    }
}
