/* Global settings */
:root {
    --bg: #f6f8f4;
    --surface: #ffffff;
    --surface-soft: #edf5ef;
    --ink: #17221f;
    --text: #26332f;
    --muted: #66746f;
    --primary: #0f6b63;
    --primary-dark: #0a4944;
    --accent: #e9714c;
    --accent-soft: #fff0e8;
    --gold: #c99a38;
    --border: #dce6df;
    --shadow: 0 24px 70px rgba(22, 48, 43, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, #ffffff 0, var(--bg) 35rem),
        var(--bg);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(220, 230, 223, 0.9);
    backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-inner {
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    width: 150px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: #33413c;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 50%;
    display: grid;
    min-width: 210px;
    padding: 0.45rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-submenu a {
    justify-content: flex-start;
    border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary-dark);
    background: var(--surface-soft);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px 0;
    border-radius: 999px;
    background: var(--ink);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 3.75rem;
    background:
        linear-gradient(135deg, rgba(15, 107, 99, 0.12), transparent 36rem),
        linear-gradient(180deg, #ffffff 0%, #f5faf5 100%);
}

.hero-section::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    content: "";
    background: var(--border);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 3rem;
    align-items: center;
}

.hero-copy {
    max-width: 620px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 0.85rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-section h1,
.page-section h1 {
    margin: 0;
    color: var(--ink);
    font-size: 4rem;
    line-height: 1.04;
    letter-spacing: 0;
}

.hero-section p {
    max-width: 55rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary,
.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 14px 34px rgba(15, 107, 99, 0.24);
}

.button.primary:hover,
.primary:hover {
    background: var(--primary-dark);
}

.button.secondary,
.secondary {
    background: var(--surface);
    color: var(--primary-dark);
    border-color: var(--border);
}

.whatsapp-button,
.whatsapp-float,
.whatsapp-link {
    background: #25d366;
    color: #082c18;
}

.whatsapp-button {
    margin-top: 1rem;
    border-color: transparent;
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.22);
}

.whatsapp-button:hover {
    background: #1fbe5b;
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.hero-visual img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-panel {
    position: absolute;
    right: 1.25rem;
    bottom: -1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    width: min(92%, 590px);
}

.feature-card,
.stat-card,
.info-card,
.product-card {
    border: 1px solid rgba(220, 230, 223, 0.95);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 44px rgba(22, 48, 43, 0.08);
}

.feature-card {
    padding: 1.15rem;
    backdrop-filter: blur(12px);
}

.card-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 900;
}

.feature-card h2,
.info-card h2,
.product-card h2 {
    margin: 0 0 0.55rem;
    color: var(--ink);
    font-size: 1.18rem;
    line-height: 1.25;
}

.feature-card p,
.stat-card span,
.info-card p,
.product-card p,
.product-card li,
.feature-list li,
.page-section > .container > p {
    color: var(--muted);
}

.feature-card p,
.info-card p,
.product-card p {
    margin: 0;
}

.overview-section,
.home-video,
.home-products,
.home-sections,
.page-section {
    padding: 4.25rem 0;
}

.home-products,
.home-sections {
    background: #ffffff;
}

.home-video {
    background: linear-gradient(180deg, var(--bg), #ffffff);
}

.video-feature {
    display: grid;
    gap: 1.5rem;
}

.video-frame {
    overflow: hidden;
    border: 1px solid rgba(220, 230, 223, 0.95);
    border-radius: var(--radius);
    background: #0d1715;
    box-shadow: var(--shadow);
}

.video-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d1715;
}

.section-heading {
    display: grid;
    gap: 0.65rem;
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 2.35rem;
    line-height: 1.12;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 3rem;
    align-items: start;
}

.split-grid h2,
.feature-list h2 {
    margin: 0 0 0.85rem;
    color: var(--ink);
    font-size: 2.2rem;
    line-height: 1.12;
}

.stats-grid,
.teaser-grid,
.card-grid,
.product-grid,
.contact-grid {
    display: grid;
    gap: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teaser-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.teaser-card,
.info-card,
.product-card {
    padding: 1.35rem;
}

.teaser-card {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(237, 245, 239, 0.72), rgba(255, 255, 255, 0) 52%),
        var(--surface);
    box-shadow: 0 16px 44px rgba(22, 48, 43, 0.07);
}

.teaser-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.teaser-card h3 {
    margin: 1rem 0 0.55rem;
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1.2;
}

.teaser-card p {
    margin: 0;
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 1.15rem;
    color: var(--primary-dark);
    font-weight: 900;
}

.text-link:hover {
    color: var(--accent);
}

.stat-card {
    display: grid;
    gap: 0.45rem;
}

.stat-card strong {
    color: var(--primary-dark);
    font-size: 1.02rem;
}

.page-section {
    min-height: 60vh;
    background:
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.page-section h1 {
    max-width: 820px;
    margin-bottom: 1rem;
    font-size: 3rem;
}

.page-section > .container > p {
    max-width: 820px;
    margin: 0 0 2rem;
    font-size: 1.05rem;
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.product-card {
    position: relative;
    overflow: hidden;
}

.info-card::before {
    display: block;
    width: 42px;
    height: 4px;
    margin-bottom: 1.1rem;
    border-radius: 999px;
    content: "";
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: -0.35rem 0 2rem;
}

.product-subnav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.55rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary-dark);
    font-weight: 900;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.product-subnav a:hover {
    border-color: rgba(15, 107, 99, 0.45);
    background: var(--surface-soft);
    color: var(--primary);
}

.product-subnav a.active {
    border-color: rgba(15, 107, 99, 0.45);
    background: var(--primary);
    color: white;
}

.product-section {
    scroll-margin-top: 110px;
}

.product-section + .product-section {
    margin-top: 3rem;
}

.product-section-heading {
    max-width: 760px;
    margin-bottom: 1.25rem;
}

.product-section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 2.2rem;
    line-height: 1.12;
}

.product-grid-pharma {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
    display: flex;
    flex-direction: column;
}

.home-product-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 107, 99, 0.32);
    box-shadow: 0 22px 58px rgba(22, 48, 43, 0.13);
}

.home-product-card .text-link {
    margin-top: auto;
}

.product-media {
    display: grid;
    place-items: center;
    aspect-ratio: 1.25;
    margin: 0 0 1.2rem;
    padding: 0.75rem;
    border: 1px solid rgba(220, 230, 223, 0.85);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(237, 245, 239, 0.84), rgba(255, 255, 255, 0.96)),
        var(--surface);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 22px rgba(22, 48, 43, 0.12));
}

.product-media-portrait {
    aspect-ratio: 0.78;
    padding: 1rem;
}

.product-media-portrait img {
    object-fit: contain;
}

.product-label {
    align-self: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-card ul {
    display: grid;
    gap: 0.7rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.product-card li,
.feature-list li {
    position: relative;
    padding-left: 1.45rem;
}

.product-card li::before,
.feature-list li::before {
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    content: "";
    background: var(--gold);
}

.feature-list {
    margin-top: 2rem;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.feature-list ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-section .contact-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 1.25rem;
}

.contact-form,
.contact-details {
    display: grid;
    gap: 1rem;
}

.contact-form {
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 16px 44px rgba(22, 48, 43, 0.08);
}

.contact-form label {
    color: var(--ink);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.95rem 1rem;
    background: #fbfdfb;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(15, 107, 99, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 107, 99, 0.12);
}

.contact-form textarea {
    resize: vertical;
}

.alert {
    padding: 1rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.alert.success {
    background: #eaf8ef;
    border-color: #bfe9cc;
    color: #155f31;
}

.alert.error {
    background: #fff0ee;
    border-color: #ffc5ba;
    color: #96321e;
}

.contact-details .info-card {
    background: #fbfdfb;
}

.site-footer {
    background: #102723;
    color: #dcebe5;
    padding: 2.25rem 0;
}

.site-footer h3,
.site-footer p {
    margin-top: 0;
}

.site-footer a {
    color: #bde7dc;
    font-weight: 800;
}

.site-footer .whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    color: #082c18;
}

.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(8, 44, 24, 0.24);
    font-weight: 900;
}

.whatsapp-float:hover {
    background: #1fbe5b;
}

.footer-note {
    max-width: 320px;
    margin: 0;
    color: #b9cbc5;
    text-align: right;
}

@media (max-width: 1120px) {
    .container {
        width: min(100% - 1.5rem, 1160px);
    }

    .site-nav a {
        padding-right: 0.7rem;
        padding-left: 0.7rem;
        font-size: 0.9rem;
    }

    .hero-content {
        grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
        gap: 2rem;
    }

    .hero-section h1 {
        font-size: 3.35rem;
    }

    .teaser-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hero-content,
    .split-grid,
    .stats-grid,
    .teaser-grid,
    .card-grid,
    .product-grid,
    .contact-section .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-section h1 {
        font-size: 3.15rem;
    }

    .hero-visual,
    .hero-visual img {
        min-height: 0;
        height: auto;
    }

    .hero-panel {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem;
        border-radius: var(--radius);
        background: white;
        box-shadow: var(--shadow);
        max-height: calc(100vh - 92px);
        overflow-y: auto;
    }

    .site-nav.open {
        display: flex;
    }

    .nav-dropdown {
        display: grid;
    }

    .nav-submenu {
        position: static;
        display: grid;
        min-width: 0;
        margin-top: 0.35rem;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .site-nav a {
        justify-content: center;
        min-height: 46px;
        border-radius: var(--radius);
    }

    .nav-toggle {
        display: grid;
    }
}

@media (min-width: 701px) and (max-width: 980px) {
    .stats-grid,
    .teaser-grid,
    .card-grid,
    .product-grid,
    .product-category-grid,
    .product-grid-pharma,
    .feature-list ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid > .product-card:last-child:nth-child(odd),
    .teaser-grid > .teaser-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 1.25rem, 1160px);
    }

    .header-inner {
        min-height: 70px;
    }

    .brand img {
        width: 128px;
    }

    .hero-section,
    .overview-section,
    .home-video,
    .home-products,
    .home-sections,
    .page-section {
        padding: 3rem 0;
    }

    .hero-section h1,
    .page-section h1 {
        font-size: 2.35rem;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .hero-section p,
    .page-section > .container > p {
        font-size: 1rem;
    }

    .hero-actions,
    .hero-panel,
    .feature-list ul {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        display: grid;
    }

    .hero-panel {
        gap: 0.75rem;
    }

    .button {
        width: 100%;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-note {
        max-width: none;
        text-align: left;
    }

    .whatsapp-float {
        right: 0.85rem;
        bottom: 0.85rem;
        min-height: 44px;
        padding: 0.7rem 0.85rem;
        font-size: 0.92rem;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 1rem, 1160px);
    }

    .page-section h1,
    .hero-section h1 {
        font-size: 2.05rem;
    }

    .section-heading h2,
    .split-grid h2,
    .feature-list h2,
    .product-section-heading h2 {
        font-size: 1.7rem;
    }

    .site-nav {
        right: 0.75rem;
        left: 0.75rem;
    }

    .hero-actions,
    .product-subnav {
        width: 100%;
    }

    .product-subnav {
        display: grid;
        gap: 0.6rem;
    }

    .product-subnav a {
        justify-content: center;
        width: 100%;
    }

    .stat-card,
    .teaser-card,
    .info-card,
    .product-card,
    .contact-form,
    .feature-list {
        padding: 1rem;
    }

    .product-media {
        padding: 0.55rem;
    }

    .product-media-portrait {
        aspect-ratio: 0.72;
    }

    .video-frame {
        border-radius: 0;
        margin-right: -0.5rem;
        margin-left: -0.5rem;
    }

    .site-footer {
        padding-bottom: 5.5rem;
    }
}
