/* ==========================================================================
   Malladi Drugs & Pharmaceuticals Design System & Core Styles
   ========================================================================== */

/* Custom Properties (Design Tokens) */
:root {
    /* Color Palette */
    --primary: hsl(158, 80%, 22%);       /* Rich emerald forest green */
    --primary-light: hsl(158, 60%, 32%);
    --primary-dark: hsl(158, 90%, 14%);
    --accent: rgb(16, 150, 94);           /* Bio-green representing life/nature */
    --accent-light: hsl(145, 65%, 55%);
    --accent-glow: rgba(16, 150, 94, 0.15);
    
    --bg-primary: hsl(0, 0%, 100%);
    --bg-secondary: hsl(150, 20%, 98%);  /* Off-white green wash */
    
    --text-main: hsl(210, 24%, 15%);     /* Premium slate black */
    --text-muted: hsl(210, 12%, 42%);    /* Readable gray */
    --text-light: hsl(0, 0%, 96%);
    
    --border-color: hsl(150, 10%, 90%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Typography */
    --font-heading: 'Schibsted Grotesk', sans-serif;
    --font-body: 'Public Sans', sans-serif;
    
    /* Layout & Spacing */
    --container-max-width: 1200px;
    --header-height: 80px;
    
    /* Shadows & Borders */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

/* Typography Elements */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn:active { transform: scale(.96); }

.btn-primary {
    background-color: var(--accent);
    color: var(--text-light);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-light);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(16, 150, 94, 0.35);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--text-light);
    box-shadow: 0 8px 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* Reveal on Scroll Animations (só com JS; sem JS o conteúdo fica visível) */
.js-enabled .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.js-enabled .fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Header Navigation Styles
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background-color: rgb(255, 255, 255);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.main-header.scrolled .logo-img {
    height: 36px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Desktop Nav */
.primary-navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    position: relative;
    z-index: 200;
    padding: 10px;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hamburger transform when open */
.mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    background: radial-gradient(circle at 80% 20%, hsla(150, 40%, 94%, 0.5) 0%, rgba(255, 255, 255, 0) 60%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    min-height: calc(80vh - var(--header-height));
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: var(--primary);
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.05));
    animation: floatLeaf 6s ease-in-out infinite;
}

@keyframes floatLeaf {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

/* ==========================================================================
   Values Section
   ========================================================================== */
.values-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    position: relative;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 20px;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(16, 150, 94, 0.2);
    background-color: rgb(255, 255, 255);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, hsl(145, 60%, 94%) 0%, hsl(145, 55%, 85%) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
    transition: var(--transition-smooth);
}

.value-card:hover .card-icon-wrapper {
    background: radial-gradient(circle at 30% 30%, var(--accent) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    transform: scale(1.08) rotate(5deg);
}

.card-icon {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   R&D Section
   ========================================================================== */
.rd-section {
    padding: 100px 0;
}

.rd-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.rd-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.rd-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.rd-media:hover .rd-img {
    transform: scale(1.04);
}

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

.rd-desc {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin: 24px 0 36px 0;
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-footer {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-grow: 1;
    background-color: var(--bg-primary);
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    flex-grow: 1;
}

.btn-plus-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--accent-glow);
    transition: var(--transition-smooth);
}

.btn-plus-icon:hover {
    background-color: var(--primary);
    transform: scale(1.1) rotate(90deg);
}

.plus-icon {
    width: 20px;
    height: 20px;
}

.products-action {
    margin-top: 40px;
}

/* ==========================================================================
   Sustainability Section
   ========================================================================== */
.sustainability-section {
    padding: 100px 0;
}

.sustainability-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

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

.sustainability-desc {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin: 24px 0 36px 0;
}

.sustainability-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.sustainability-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.sustainability-media:hover .sustainability-img {
    transform: scale(1.04);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 80px 0 40px 0;
    font-family: var(--font-body);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand .logo-text {
    color: var(--text-light);
}

.brand-tagline {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 320px;
}

.copyright {
    margin-top: 40px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
    color: var(--text-light);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75) !important;
}

.social-link:hover {
    color: var(--accent-light) !important;
}

.social-icon {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Product Specification Modal
   ========================================================================== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.product-modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 32, 21, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-wrapper {
    position: relative;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow-y: auto;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
}

.product-modal.open .modal-wrapper {
    transform: translateY(0) scale(1);
}

.modal-content {
    position: relative;
    padding: 40px;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.close-icon {
    width: 20px;
    height: 20px;
}

/* Modal Body Content Styling */
.modal-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--primary);
    padding-right: 30px;
}

.modal-product-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
}

.modal-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.spec-table th, 
.spec-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.spec-table th {
    font-weight: 600;
    color: var(--primary);
    background-color: var(--bg-secondary);
    width: 35%;
}

.spec-table td {
    color: var(--text-main);
}

.modal-list {
    margin-left: 20px;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.modal-list li {
    margin-bottom: 8px;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet & Mobile Breakpoint (992px) */
@media (max-width: 992px) {
    /* Header & Navigation */
    .mobile-nav-toggle {
        display: block;
    }
    
    .primary-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-primary);
        padding: 40px 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 150;
        overflow-y: auto;
    }
    
    .primary-navigation[data-visible="true"] {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 28px;
    }
    
    .nav-link {
        font-size: 1.25rem;
        display: block;
    }
    
    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-img {
        max-width: 380px;
    }
    
    /* Value Cards */
    .cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    /* R&D and Sustainability */
    .rd-container,
    .sustainability-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .rd-media,
    .sustainability-media {
        order: 2;
    }
    
    .rd-content,
    .sustainability-content {
        order: 1;
        align-items: center;
    }
    
    .rd-img,
    .sustainability-img {
        height: 350px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    
    .brand-tagline {
        max-width: 100%;
    }
}

/* ==========================================================================
   v2 Vitalle — coreografia do hero, números, laboratório e CTA WhatsApp
   ========================================================================== */

.hero-kicker {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

/* Hero: linhas mascaradas + entradas sequenciais */
.hline { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hline > span { display: block; }

.js-enabled .hline > span {
    transform: translateY(112%);
    animation: hlineUp .9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.js-enabled .hline:nth-child(1) > span { animation-delay: .15s; }
.js-enabled .hline:nth-child(2) > span { animation-delay: .28s; }

.js-enabled .hero-enter {
    opacity: 0;
    animation: heroRise .85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--d, .5s);
}

.js-enabled .hero-media .hero-img {
    opacity: 0;
    animation: heroLeafIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) .4s forwards,
               floatLeaf 6s ease-in-out 1.7s infinite;
}

@keyframes hlineUp { to { transform: translateY(0); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroLeafIn { from { opacity: 0; transform: translateY(30px) rotate(-4deg) scale(.94); } to { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }

/* Grifo do título */
.grifo { position: relative; font-style: normal; color: var(--accent); }
.grifo::after {
    content: ''; position: absolute; left: 0; bottom: .02em;
    width: 100%; height: .1em; background: var(--accent); opacity: .3;
    border-radius: 3px;
    transform: scaleX(0); transform-origin: left;
}
.js-enabled .grifo::after { animation: grifoDraw .7s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards; }
@keyframes grifoDraw { to { transform: scaleX(1); } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Faixa de números */
.stats-band {
    background-color: var(--primary-dark);
    padding: 46px 0;
}

.stats-band-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1.1;
}

.stat-value em { font-style: normal; font-size: 1.4rem; font-weight: 700; }

.stat-caption {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

/* Lista do laboratório */
.lab-list {
    list-style: none;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.lab-list li {
    position: relative;
    padding-left: 30px;
    font-weight: 500;
    color: var(--text-main);
}

.lab-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' stroke='white' stroke-width='2'/%3E%3Cpath d='M8 12l3 3 5-5' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' stroke='white' stroke-width='2'/%3E%3Cpath d='M8 12l3 3 5-5' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Ícones dos diferenciais: desenho do traço ao revelar */
.js-enabled .value-card .card-icon path,
.js-enabled .value-card .card-icon rect {
    stroke-dasharray: 90;
    stroke-dashoffset: 90;
    transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

.js-enabled .value-card.appear .card-icon path,
.js-enabled .value-card.appear .card-icon rect {
    stroke-dashoffset: 0;
}

/* CTA WhatsApp: banda verde imersiva */
.cta-band {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 90px 0;
    text-align: center;
}

.cta-band-inner { max-width: 720px; margin: 0 auto; }

.cta-title {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    color: #fff;
    text-wrap: balance;
    margin-bottom: 16px;
}

.cta-sub {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    margin-bottom: 34px;
}

.btn-light {
    background-color: #fff;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* Cards de serviço são clicáveis */
.product-card { cursor: pointer; }
.product-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Fazer pedido */
.order-section { padding: 100px 0; background-color: var(--bg-secondary); }

.order-card {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(24px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.order-label {
    display: block;
    font-family: var(--font-heading);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
    font-family: var(--font-heading);
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-main);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 10px 20px;
    cursor: pointer;
    transition: border-color .25s, background-color .25s, color .25s, transform .25s cubic-bezier(0.22, 1, 0.36, 1);
}

.chip:hover { border-color: var(--accent); transform: translateY(-2px); }

.chip.selected {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.order-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

.order-input {
    width: 100%;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text-main);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    resize: vertical;
}
.order-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.order-input::placeholder { color: hsl(210, 10%, 50%); }

.order-hint { font-size: .78rem; color: var(--text-muted); margin-top: 8px; }

.order-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 26px;
}

.order-summary-text { font-size: .92rem; color: var(--text-muted); max-width: 46ch; }
.order-summary-text strong { color: var(--primary); }

@media (max-width: 640px) {
    .order-row { grid-template-columns: 1fr; }
    .order-summary { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (max-width: 992px) {
    .hero-actions { justify-content: center; }
    .lab-list { max-width: 420px; margin-inline: auto; }
}

@media (max-width: 600px) {
    .stats-band-grid { grid-template-columns: 1fr; gap: 26px; }
    .cta-band { padding: 70px 0; }
}

/* Mobile Breakpoint (600px) */
@media (max-width: 600px) {
    .container {
        width: 92%;
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cards-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .value-card {
        padding: 30px 20px;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-link {
        justify-content: center;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}
