/* ============================================
   IrisChef — Estilos do Site
   Design: Organic Intelligence
   Fontes: Playfair Display + DM Sans
   ============================================ */

:root {
    --green-deep:    #0F2D1A;
    --green-forest:  #1A3D2B;
    --green-mid:     #2D6A4F;
    --green-fresh:   #52B788;
    --green-light:   #B7E4C7;
    --green-pale:    #D8F3DC;
    --cream:         #FBF7F0;
    --cream-warm:    #F0EAE0;
    --white:         #FFFFFF;
    --amber:         #F4A261;
    --amber-dark:    #E8892B;
    --whatsapp:      #25D366;

    --text-dark:   #0F1F14;
    --text-mid:    #3A5241;
    --text-muted:  #6B8F78;
    --text-light:  rgba(251,247,240,0.7);

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 48px;

    --shadow-sm:  0 2px 8px  rgba(15,45,26,0.07);
    --shadow-md:  0 8px 32px rgba(15,45,26,0.11);
    --shadow-lg:  0 24px 64px rgba(15,45,26,0.16);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t: 0.3s var(--ease);
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
ul, ol  { list-style: none; }
a       { color: inherit; text-decoration: none; }
button  { font-family: inherit; cursor: pointer; }

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ============================================
   ANIMATIONS — SCROLL REVEAL
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 200;
    padding-block: 1.125rem;
    transition: background var(--t), box-shadow var(--t), padding var(--t);
}

.header.scrolled {
    background: rgba(251,247,240,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(45,106,79,0.12);
    padding-block: 0.875rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--cream);
    letter-spacing: -0.01em;
    transition: color var(--t);
    flex-shrink: 0;
}

.header.scrolled .logo {
    color: var(--green-mid);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(251,247,240,0.8);
    letter-spacing: 0.01em;
    transition: color var(--t);
}

.nav-links a:hover {
    color: var(--cream);
}

.header.scrolled .nav-links a {
    color: var(--text-mid);
}

.header.scrolled .nav-links a:hover {
    color: var(--green-mid);
}

.nav-cta {
    background: var(--amber);
    color: var(--text-dark) !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-xl);
    font-weight: 600 !important;
    transition: background var(--t), transform var(--t), box-shadow var(--t) !important;
}

.nav-cta:hover {
    background: var(--amber-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(244,162,97,0.35);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    z-index: 210;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: background var(--t), transform 0.3s var(--ease), opacity 0.2s;
    transform-origin: center;
}

.header.scrolled .nav-toggle span {
    background: var(--green-mid);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.875rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    transition: all var(--t);
}

.btn-primary {
    background: var(--amber);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--amber-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244,162,97,0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border: 1.5px solid rgba(251,247,240,0.28);
}

.btn-ghost:hover {
    border-color: rgba(251,247,240,0.65);
    background: rgba(251,247,240,0.07);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    background-color: var(--green-deep);
    position: relative;
    overflow: hidden;
    min-height: 100svh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 15% 50%, rgba(82,183,136,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 85% 20%, rgba(183,228,199,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding-top: 8rem;
    padding-bottom: 6rem;
    min-height: 100svh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(82,183,136,0.13);
    border: 1px solid rgba(82,183,136,0.28);
    color: var(--green-light);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.75rem;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.12;
    color: var(--cream);
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.hero-headline em {
    font-style: italic;
    color: var(--green-fresh);
}

.hero-sub {
    font-size: 1rem;
    line-height: 1.72;
    color: rgba(251,247,240,0.68);
    max-width: 440px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 256px;
    background: #111;
    border-radius: 44px;
    padding: 14px 10px 20px;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.55),
        0 0 0 1.5px rgba(255,255,255,0.08),
        inset 0 0 0 1px rgba(0,0,0,0.5);
    position: relative;
}

.phone-notch {
    width: 80px;
    height: 6px;
    background: #2a2a2a;
    border-radius: 4px;
    margin: 0 auto 12px;
}

.phone-screen {
    background: #ECE5DD;
    border-radius: 32px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: #075E54;
    padding: 0.6rem 0.875rem;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    background: var(--green-fresh);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
}

.chat-header-info strong {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.chat-header-info span {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
}

.chat-messages {
    padding: 0.75rem 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.chat-bubble {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.72rem;
    line-height: 1.45;
    max-width: 85%;
}

.chat-bubble.received {
    background: #fff;
    border-bottom-left-radius: 3px;
    align-self: flex-start;
    color: var(--text-dark);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.chat-bubble.sent {
    background: #DCF8C6;
    border-bottom-right-radius: 3px;
    align-self: flex-end;
    color: var(--text-dark);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.chat-img-bubble {
    background: #fff;
    border-radius: 10px;
    border-bottom-left-radius: 3px;
    overflow: hidden;
    max-width: 85%;
    align-self: flex-start;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.recipe-bubble strong {
    display: block;
    font-size: 0.72rem;
    margin-bottom: 0.3rem;
    color: var(--green-mid);
}

.macros-row {
    display: flex;
    gap: 0.4rem;
    font-size: 0.65rem;
    color: var(--text-mid);
    margin-bottom: 0.2rem;
}

.kcal {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--green-mid);
}

/* ============================================
   SECTION SHARED
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-fresh);
    margin-bottom: 0.75rem;
}

.section-label.light {
    color: var(--green-light);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 0.875rem;
}

.section-dark .section-header h2,
.section-tech .section-header h2 {
    color: var(--cream);
}

.section-header p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-inline: auto;
    line-height: 1.68;
}

/* ============================================
   COMO FUNCIONA — STEPS
   ============================================ */

.section-steps {
    background: var(--white);
    padding-block: 7rem;
}

.steps {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--cream);
    border: 1px solid var(--green-pale);
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}

.step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--green-light);
}

.step-number {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--green-pale);
    line-height: 1;
    margin-bottom: 0.875rem;
    letter-spacing: -0.04em;
    user-select: none;
}

.step-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.625rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.62;
}

.step-connector {
    flex-shrink: 0;
    opacity: 0.55;
}

/* ============================================
   PARA NUTRICIONISTAS — DARK
   ============================================ */

.section-dark {
    background: var(--green-forest);
    padding-block: 7rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(82,183,136,0.2);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: background var(--t), border-color var(--t), transform var(--t);
}

.feature-card:hover {
    background: rgba(255,255,255,0.075);
    border-color: rgba(82,183,136,0.38);
    transform: translateY(-2px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(82,183,136,0.14);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream);
    line-height: 1.3;
    margin-bottom: 0.625rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: rgba(251,247,240,0.6);
    line-height: 1.65;
}

/* ============================================
   PARA PACIENTES — LIGHT
   ============================================ */

.section-light {
    background: var(--cream);
    padding-block: 7rem;
}

.patient-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.patient-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--green-pale);
    transition: box-shadow var(--t), transform var(--t);
}

.patient-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.patient-icon {
    margin-bottom: 1.125rem;
}

.patient-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.patient-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================
   TECNOLOGIA
   ============================================ */

.section-tech {
    background: var(--green-deep);
    padding-block: 7rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(82,183,136,0.14);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.tech-item {
    display: flex;
    align-items: flex-start;
    gap: 1.125rem;
    padding: 2rem;
    background: rgba(255,255,255,0.025);
    transition: background var(--t);
}

.tech-item:hover {
    background: rgba(255,255,255,0.055);
}

.tech-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.tech-item strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.tech-item span {
    font-size: 0.85rem;
    color: rgba(251,247,240,0.55);
    line-height: 1.6;
}

.privacy-link {
    text-align: center;
}

.privacy-link a {
    font-size: 0.875rem;
    color: var(--green-fresh);
    border-bottom: 1px solid rgba(82,183,136,0.38);
    padding-bottom: 2px;
    transition: color var(--t), border-color var(--t);
}

.privacy-link a:hover {
    color: var(--green-light);
    border-color: rgba(183,228,199,0.5);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--green-deep);
    border-top: 1px solid rgba(82,183,136,0.12);
    padding-block: 2.5rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(82,183,136,0.1);
}

.footer-logo {
    color: var(--cream);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: rgba(251,247,240,0.55);
    transition: color var(--t);
}

.footer-nav a:hover {
    color: var(--cream);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(251,247,240,0.32);
}

/* ============================================
   RESPONSIVE — TABLET (900px)
   ============================================ */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 7rem;
        padding-bottom: 4rem;
        text-align: center;
        gap: 3.5rem;
    }

    .hero-content {
        align-items: center;
    }

    .hero-sub {
        margin-inline: auto;
    }

    .hero-badge {
        margin-inline: auto;
    }

    .steps {
        flex-direction: column;
        align-items: stretch;
        max-width: 400px;
        margin-inline: auto;
    }

    .step {
        max-width: 100%;
    }

    .step-connector {
        align-self: center;
        transform: rotate(90deg);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .patient-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (640px)
   ============================================ */

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--green-deep);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 200;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.25rem !important;
        color: rgba(251,247,240,0.85) !important;
    }

    .nav-links a:hover {
        color: var(--cream) !important;
    }

    .nav-cta {
        background: var(--amber) !important;
        color: var(--text-dark) !important;
        padding: 0.625rem 1.5rem !important;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .btn {
        width: 100%;
    }

    .section-steps,
    .section-dark,
    .section-light,
    .section-tech {
        padding-block: 5rem;
    }

    .phone-mockup {
        width: 220px;
    }
}
