/* Lecule Pharma - Main Stylesheet */

/* ========================================
   DESIGN TOKENS
   Palette is taken from the logo: teal (#48AFB6) and leaf green (#8BC24A).
   ======================================== */
:root {
    /* Brand */
    --ink: #0A262B;
    --brand-900: #0B3A40;
    --brand-700: #0E5D66;
    --brand-600: #13727C;
    --brand-500: #2A9BA4;
    --brand-300: #9AD6DA;
    --brand-100: #DDF1F2;
    --brand-50: #EFF8F8;
    --leaf: #8BC24A;
    --leaf-600: #6FA431;
    --leaf-100: #EBF5DE;

    /* Neutrals */
    --surface: #F5F8F7;
    --line: #E2EBEA;
    --text: #3E5358;
    --muted: #6A7E82;

    /* Legacy aliases (used by page-level styles) */
    --deep-ocean-blue: var(--brand-700);
    --healing-teal: var(--brand-500);
    --pure-white: #FFFFFF;
    --soft-cloud: var(--surface);
    --midnight: var(--ink);
    --slate-gray: var(--text);
    --warm-gold: #D4A574;
    --whatsapp-green: #25D366;
    --gray-200: #E5ECEB;
    --gray-300: #CFDBDA;
    --gray-400: #9AAAAD;
    --trust-gold: #D97706;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5.5rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 999px;

    /* Shadows (tinted with brand ink) */
    --shadow-sm: 0 1px 2px rgba(10, 38, 43, 0.06), 0 1px 3px rgba(10, 38, 43, 0.04);
    --shadow-md: 0 4px 12px rgba(10, 38, 43, 0.06), 0 12px 32px -8px rgba(10, 38, 43, 0.10);
    --shadow-lg: 0 8px 20px rgba(10, 38, 43, 0.08), 0 28px 56px -16px rgba(10, 38, 43, 0.20);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 76px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--pure-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

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

::selection {
    background: var(--brand-100);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

p { margin-bottom: 1rem; }

a {
    color: var(--brand-700);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-500);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: 0.875rem;
}

.eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--leaf);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--brand-700);
    color: var(--pure-white);
}

.btn-primary:hover {
    background-color: var(--brand-900);
    color: var(--pure-white);
    box-shadow: 0 8px 20px -6px rgba(14, 93, 102, 0.5);
}

.btn-secondary {
    background-color: var(--pure-white);
    color: var(--ink);
    border-color: var(--line);
}

.btn-secondary:hover {
    border-color: var(--brand-500);
    color: var(--brand-700);
    background-color: var(--brand-50);
}

.btn-teal,
.btn-accent {
    background-color: var(--leaf);
    color: var(--ink);
}

.btn-teal:hover,
.btn-accent:hover {
    background-color: #9CCF5E;
    color: var(--ink);
    box-shadow: 0 8px 20px -6px rgba(139, 194, 74, 0.6);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.08);
    color: var(--pure-white);
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--pure-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1rem;
}

.btn i.fa-arrow-right {
    font-size: 0.8em;
    transition: transform 0.25s var(--ease);
}

.btn:hover i.fa-arrow-right {
    transform: translateX(3px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--brand-700);
}

.link-arrow i {
    font-size: 0.8em;
    transition: transform 0.25s var(--ease);
}

.link-arrow:hover i {
    transform: translateX(4px);
}

/* ========================================
   TOP BAR + HEADER
   ======================================== */
.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 38px;
}

.topbar-contact {
    display: flex;
    gap: 1.5rem;
}

.topbar a {
    color: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.topbar a:hover {
    color: var(--pure-white);
}

.topbar i {
    color: var(--leaf);
    font-size: 0.75rem;
}

.topbar-link {
    font-weight: 500;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -12px rgba(10, 38, 43, 0.15);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 44px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
}

.nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ink);
    font-size: 0.925rem;
    font-weight: 500;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-full);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.dropdown:hover > a {
    background-color: var(--brand-50);
    color: var(--brand-700);
}

.nav-menu > li > a.active {
    color: var(--brand-700);
    background-color: var(--brand-50);
}

.nav-menu > li > a i {
    font-size: 0.65rem;
    opacity: 0.6;
    transition: transform 0.25s var(--ease);
}

.dropdown {
    position: relative;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    background: var(--pure-white);
    min-width: 230px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
    list-style: none;
}

/* Hover bridge so the menu doesn't close in the gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background-color: var(--brand-50);
    color: var(--brand-700);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    background: var(--brand-50);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
    transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   NEWS TICKER
   ======================================== */
.news-ticker {
    background: var(--brand-50);
    border-bottom: 1px solid var(--line);
    padding: 0.55rem 0;
    overflow: hidden;
}

.news-ticker-content {
    display: flex;
    align-items: center;
}

.news-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--brand-700);
    color: var(--pure-white);
    padding: 0.3rem 0.8rem;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    margin-right: 1rem;
    border-radius: var(--radius-full);
}

.news-ticker-items {
    flex: 1;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.news-ticker-scroll {
    display: flex;
    width: max-content;
    animation: ticker-scroll 40s linear infinite;
    white-space: nowrap;
}

.news-ticker-scroll:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 1.75rem;
    font-size: 0.875rem;
}

.news-ticker-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--leaf);
    margin-right: 0.75rem;
}

.news-ticker-item a {
    color: var(--ink);
    font-weight: 500;
}

.news-ticker-item a:hover {
    color: var(--brand-700);
    text-decoration: underline;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    padding: 1.25rem 0 0;
}

.hero-frame {
    position: relative;
    min-height: min(640px, 78vh);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--pure-white);
    background:
        radial-gradient(1200px 500px at 85% 20%, rgba(139, 194, 74, 0.28), transparent 60%),
        radial-gradient(900px 600px at 10% 110%, rgba(42, 155, 164, 0.55), transparent 60%),
        linear-gradient(135deg, var(--brand-900) 0%, var(--ink) 100%);
    isolation: isolate;
}

/* Decorative molecule grid on the fallback hero */
.hero-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
    mask-image: linear-gradient(90deg, transparent 40%, #000);
    z-index: -1;
    pointer-events: none;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1s ease, transform 6s ease-out;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 32, 36, 0.92) 0%, rgba(8, 32, 36, 0.72) 42%, rgba(8, 32, 36, 0.15) 100%),
        linear-gradient(0deg, rgba(8, 32, 36, 0.45), transparent 40%);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 clamp(1.5rem, 5vw, 4.5rem);
    max-width: none;
}

.hero-slide .hero-content > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s var(--ease);
}

.hero-slide.active .hero-content > * {
    opacity: 1;
    transform: none;
}

.hero-slide.active .hero-content > *:nth-child(2) { transition-delay: 0.1s; }
.hero-slide.active .hero-content > *:nth-child(3) { transition-delay: 0.2s; }
.hero-slide.active .hero-content > *:nth-child(4) { transition-delay: 0.3s; }

.hero-static {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem clamp(1.5rem, 5vw, 4.5rem);
}

.hero-content {
    max-width: 640px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem 0.4rem 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero-kicker .dot {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--leaf);
    color: var(--ink);
    font-size: 0.65rem;
}

.hero h1 {
    color: var(--pure-white);
    margin-bottom: 1.25rem;
    text-wrap: balance;
}

.hero p {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--pure-white);
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--pure-white);
}

.hero-buttons .btn-primary {
    background: var(--leaf);
    color: var(--ink);
}

.hero-buttons .btn-primary:hover {
    background: #9CCF5E;
    color: var(--ink);
    box-shadow: 0 10px 24px -8px rgba(139, 194, 74, 0.7);
}

.hero-dots {
    position: absolute;
    bottom: 1.75rem;
    left: clamp(1.5rem, 5vw, 4.5rem);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-dot {
    position: relative;
    width: 36px;
    height: 4px;
    border-radius: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: width 0.3s var(--ease), background 0.2s ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
    width: 56px;
}

.hero-dot.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--leaf);
    transform-origin: left;
    animation: dot-progress 5s linear forwards;
}

@keyframes dot-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Hero stats (kept for when stats are re-enabled) */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-md) 0;
    z-index: 10;
}

.hero-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    text-align: center;
}

/* ========================================
   TRUST STRIP
   ======================================== */
.trust-strip {
    padding: 1.75rem 0 0;
}

.trust-strip-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem 2rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--pure-white);
}

.trust-strip-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding-right: 2rem;
    border-right: 1px solid var(--line);
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    align-items: center;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

.trust-item img {
    max-height: 32px;
    width: auto;
}

.trust-item .trust-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--leaf-100);
    color: var(--leaf-600);
    font-size: 0.85rem;
}

/* ========================================
   STATS
   ======================================== */
.stats-bar {
    background-color: var(--surface);
    padding: var(--spacing-xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--brand-700);
    margin-bottom: var(--spacing-xs);
}

.stat-item p {
    color: var(--muted);
    margin: 0;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-muted {
    background: var(--surface);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    margin-bottom: 0.75rem;
    text-wrap: balance;
}

.section-header p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header.split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
}

.section-header.split p {
    margin: 0;
}

/* ========================================
   PRODUCT / CONTENT CARDS
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--pure-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card > a:first-child,
.product-card > img,
.product-card > .product-placeholder,
.product-card > .news-placeholder-home {
    display: block;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: var(--pure-white);
    padding: 0.75rem;
    transition: transform 0.5s var(--ease);
    border-bottom: 1px solid var(--line);
}

.product-card.news-card img {
    object-fit: cover;
    padding: 0;
}

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

.product-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.35rem 1.4rem;
}

.product-card-content > p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.product-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.product-card h4 a {
    color: var(--ink);
}

.product-card h4 a:hover {
    color: var(--brand-700);
}

.product-card .category-badge {
    align-self: flex-start;
    display: inline-block;
    background-color: var(--brand-50);
    color: var(--brand-700);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.75rem;
}

/* Card CTAs read as links, not boxed buttons */
.product-card-content .btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.25rem 0;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--brand-700);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: none;
}

.product-card-content .btn::after {
    content: '\2192';
    margin-left: 0.15rem;
    transition: transform 0.25s var(--ease);
}

.product-card-content .btn:hover {
    background: none;
    color: var(--brand-500);
}

.product-card:hover .product-card-content .btn::after {
    transform: translateX(4px);
}

/* Category Cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: var(--pure-white);
    text-align: center;
    transition: transform 0.3s var(--ease);
}

.category-card:hover {
    transform: translateY(-4px);
    color: var(--pure-white);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   FEATURES (home "why us")
   ======================================== */
.features-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.features-intro h2 {
    margin-bottom: 1rem;
}

.features-intro > p {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

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

.feature-card {
    padding: 1.6rem;
    border-radius: var(--radius-xl);
    background: var(--pure-white);
    border: 1px solid var(--line);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.features-grid .feature-card:nth-child(even) {
    margin-top: 1.5rem;
    margin-bottom: -1.5rem;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(3) .feature-icon {
    background: var(--leaf-100);
    color: var(--leaf-600);
}

.feature-card h4 {
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0;
}

/* ========================================
   CTA BAND
   ======================================== */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    padding: clamp(2.5rem, 6vw, 4.5rem);
    background:
        radial-gradient(700px 300px at 100% 0%, rgba(139, 194, 74, 0.35), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(42, 155, 164, 0.45), transparent 60%),
        var(--ink);
    color: rgba(255, 255, 255, 0.8);
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 2rem;
    align-items: center;
    isolation: isolate;
}

.cta-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(270deg, #000, transparent 60%);
    mask-image: linear-gradient(270deg, #000, transparent 60%);
    z-index: -1;
}

.cta-band h2 {
    color: var(--pure-white);
    margin-bottom: 0.75rem;
}

.cta-band p {
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0;
}

.cta-band .eyebrow {
    color: var(--leaf);
}

.cta-band-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--ink);
    color: var(--pure-white);
    padding: 4.5rem 0 1.75rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: var(--spacing-xl);
    margin-bottom: 3.5rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.25rem;
    background: var(--pure-white);
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-md);
}

.footer-logo img {
    height: 38px;
    width: auto;
}

.footer h4 {
    color: var(--pure-white);
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: 0.6;
}

.footer p, .footer li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.925rem;
}

.footer-col > p {
    max-width: 320px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.7rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
}

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

.footer .contact-info li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    line-height: 1.55;
}

.footer .contact-info i {
    color: var(--leaf);
    margin-top: 0.3rem;
    width: 14px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    background: var(--leaf);
    border-color: var(--leaf);
    color: var(--ink);
}

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

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom .developer-credit a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom .developer-credit a:hover {
    color: var(--leaf);
}

/* ========================================
   WHATSAPP FLOAT
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-size: 1.6rem;
    box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.55);
    z-index: 999;
    transition: transform 0.3s var(--ease);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--whatsapp-green);
    animation: ring 2.4s ease-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: var(--pure-white);
}

@keyframes ring {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--pure-white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.975rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control:hover {
    border-color: var(--brand-300);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(42, 155, 164, 0.15);
}

.form-control.error {
    border-color: #DC2626;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   PAGE HEADER (inner pages)
   ======================================== */
.page-header {
    position: relative;
    overflow: hidden;
    color: var(--pure-white);
    padding: 4.5rem 0 4rem;
    text-align: left;
    background:
        radial-gradient(800px 320px at 90% 0%, rgba(139, 194, 74, 0.25), transparent 60%),
        radial-gradient(700px 400px at 0% 120%, rgba(42, 155, 164, 0.5), transparent 60%),
        linear-gradient(135deg, var(--brand-900), var(--ink));
    isolation: isolate;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000);
    mask-image: linear-gradient(90deg, transparent 35%, #000);
    z-index: -1;
}

.page-header .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-header h1 {
    color: var(--pure-white);
    font-size: clamp(2rem, 4vw, 3rem);
    text-wrap: balance;
    max-width: 820px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.page-header .breadcrumb {
    order: -1;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a:hover {
    color: var(--leaf);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb span:last-child {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-primary { background: var(--brand-700); color: white; }
.badge-success { background: #10B981; color: white; }
.badge-warning { background: #F59E0B; color: white; }
.badge-info { background: var(--brand-500); color: white; }

.product-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--brand-50), var(--leaf-100));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    color: var(--brand-300);
    border-bottom: 1px solid var(--line);
}

.dosage-form {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text);
    background: var(--surface);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}

.news-placeholder-home {
    width: 100%;
    height: 220px;
    background:
        radial-gradient(300px 160px at 100% 0%, rgba(139, 194, 74, 0.35), transparent 70%),
        linear-gradient(135deg, var(--brand-700), var(--ink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.25);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.news-meta .category-badge {
    margin: 0 !important;
}

/* Scroll reveal (enabled by JS only, so content is visible without it) */
.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s var(--ease);
}

.js-reveal [data-reveal].revealed {
    opacity: 1;
    transform: none;
}

@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;
    }

    .js-reveal [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
    .nav-menu > li > a {
        padding: 0.5rem 0.65rem;
    }

    .features-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Tablets */
@media (max-width: 991px) {
    :root {
        --spacing-2xl: 4rem;
        --header-h: 68px;
    }

    h3 { font-size: 1.25rem; }

    .container {
        padding: 0 1.25rem;
    }

    .topbar {
        display: none;
    }

    /* backdrop-filter would make the header the containing block for the fixed menu */
    .header {
        background-color: var(--pure-white);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Mobile nav: full-screen sheet */
    .nav-menu {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        background: var(--pure-white);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 2rem;
        z-index: 999;
        overflow-y: auto;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0.25s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-menu > li {
        border-bottom: 1px solid var(--line);
    }

    .nav-menu > li > a {
        display: flex;
        justify-content: space-between;
        padding: 1.1rem 0.25rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 0;
    }

    .nav-menu > li > a:hover,
    .nav-menu > li.dropdown:hover > a,
    .nav-menu > li > a.active {
        background: none;
    }

    .dropdown:hover > a i {
        transform: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .dropdown-menu,
    .dropdown:hover .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--surface);
        border-radius: var(--radius-md);
        margin: 0 0 0.75rem;
        min-width: 0;
        display: none;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown > a i {
        transition: transform 0.3s ease;
    }

    .dropdown.active > a i {
        transform: rotate(180deg);
    }

    .nav-actions .btn {
        display: none;
    }

    /* Hero */
    .hero {
        padding-top: 0.75rem;
    }

    .hero-frame {
        min-height: 520px;
        border-radius: var(--radius-xl);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .stats-grid,
    .hero-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .hero-stats {
        position: relative;
    }

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

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-band {
        grid-template-columns: 1fr;
    }

    .trust-strip-label {
        border-right: none;
        padding-right: 0;
        width: 100%;
    }
}

/* Phones */
@media (max-width: 767px) {
    :root {
        --spacing-2xl: 3.25rem;
    }

    body {
        font-size: 15px;
    }

    h4 { font-size: 1.05rem; }

    .container {
        padding: 0 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header.split {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .logo img {
        height: 36px;
    }

    .news-ticker-label {
        display: none;
    }

    .news-ticker-item {
        font-size: 0.8rem;
        padding: 0 1.25rem;
    }

    .hero {
        padding: 0.5rem 0 0;
    }

    .hero > .container {
        padding: 0 0.5rem;
    }

    .hero-frame {
        min-height: 540px;
        align-items: flex-end;
        border-radius: var(--radius-lg);
    }

    .hero-slide {
        align-items: flex-end;
    }

    .hero-slide::before {
        background: linear-gradient(0deg, rgba(8, 32, 36, 0.95) 10%, rgba(8, 32, 36, 0.55) 60%, rgba(8, 32, 36, 0.25) 100%);
    }

    .hero-slide .container,
    .hero-static {
        padding: 2rem 1.25rem 4rem;
    }

    .hero-buttons .btn {
        flex: 1 1 auto;
    }

    .hero-dots {
        left: 1.25rem;
        bottom: 1.5rem;
    }

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

    .product-card img,
    .product-placeholder,
    .news-placeholder-home {
        height: 200px;
    }

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

    .features-grid .feature-card:nth-child(even) {
        margin: 0;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .category-card {
        aspect-ratio: 4/3;
    }

    .trust-strip-inner {
        padding: 1rem 1.1rem;
    }

    .trust-items {
        gap: 0.75rem 1.25rem;
    }

    .cta-band {
        border-radius: var(--radius-xl);
    }

    .cta-band-actions .btn {
        flex: 1 1 auto;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .footer-grid .footer-col:first-child,
    .footer-grid .footer-col:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .page-header {
        padding: 2.75rem 0 2.5rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* Secondary slide headings share the h1 look without duplicating the page's h1 */
.hero .h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--pure-white);
    margin-bottom: 1.25rem;
    text-wrap: balance;
}
