/* ═══════════════════════════════════════════════
   NobelPepLab — Shared Design System
   Clinical Precision · Modern Laboratory
   ═══════════════════════════════════════════════ */

/* ── Age Verification Gate ── */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #041627;
    opacity: 1;
    transition: opacity 0.4s ease;
    padding: 16px;
}
.age-gate.age-gate--hidden {
    opacity: 0;
    pointer-events: none;
}
.age-gate-card {
    background: linear-gradient(165deg, #0f2133 0%, #0a1a2a 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
@media (max-width: 480px) {
    .age-gate-card {
        padding: 36px 24px;
    }
}
.age-gate-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}
.age-gate-logo img {
    height: 44px;
    width: auto;
    filter: brightness(1.5);
}
.age-gate-logo span {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #d2e4fb;
    letter-spacing: -0.01em;
}
.age-gate-logo .age-gate-teal {
    color: #2A9D8F;
}
.age-gate h2 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
@media (max-width: 480px) {
    .age-gate h2 {
        font-size: 24px;
    }
}
.age-gate-body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.age-gate-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}
@media (max-width: 380px) {
    .age-gate-buttons {
        flex-direction: column;
    }
}
.age-gate-btn {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    flex: 1;
    max-width: 200px;
}
@media (max-width: 380px) {
    .age-gate-btn {
        max-width: 100%;
    }
}
.age-gate-btn--confirm {
    background: #2A9D8F;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.3);
}
.age-gate-btn--confirm:hover {
    background: #238578;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.45), 0 4px 14px rgba(42, 157, 143, 0.3);
    transform: translateY(-1px);
}
.age-gate-btn--confirm:active {
    transform: translateY(0);
}
.age-gate-btn--deny {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.age-gate-btn--deny:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}
.age-gate-disclaimer {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.35);
    max-width: 340px;
    margin: 0 auto;
}

/* ── Brand Surfaces ── */
.clinical-shadow { box-shadow: 0px 4px 20px rgba(26, 43, 60, 0.05); }
.clinical-shadow-lg { box-shadow: 0px 8px 32px rgba(26, 43, 60, 0.08); }
.bg-soft-blue { background-color: #E3F2FD; }
.card-border { border: 1px solid #E2E8F0; }

/* ── Picture element reset (WebP fallback wrapper — must not affect layout) ── */
picture { display: contents; }

/* ── Buttons ── */
.btn-primary {
    background-color: #2A9D8F;
    color: #ffffff;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    background-color: #238578;
    box-shadow: 0 4px 14px rgba(42, 157, 143, 0.35);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background-color: transparent;
    border: 1px solid #1A2B3C;
    color: #1A2B3C;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    background-color: #1A2B3C;
    color: #ffffff;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.btn-whatsapp:hover {
    background-color: #20bd5a;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transform: translateY(-1px);
}
.btn-whatsapp:active { transform: translateY(0); }

/* ── Inputs ── */
.input-border {
    border: 1px solid #E2E8F0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-border:focus {
    border-color: #1A2B3C;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
    outline: none;
}

/* ── Floating WhatsApp ── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    animation: wa-pulse 2s 3 forwards;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    animation: none;
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
}

/* ── Mobile Menu ── */
/* Prevent horizontal overflow from off-screen mobile menu */
html, body, main {
    overflow-x: hidden;
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.mobile-menu.open {
    transform: translateX(0);
}

/* ── FAQ Accordion ── */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
}
.faq-answer.open {
    max-height: 500px;
    padding-top: 12px;
}


/* ── Scroll Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }
.stagger > *:nth-child(7) { transition-delay: 480ms; }
.stagger > *:nth-child(8) { transition-delay: 560ms; }
.stagger > *:nth-child(9) { transition-delay: 640ms; }
.stagger > *:nth-child(10) { transition-delay: 720ms; }

/* ── Hero gradient animation ── */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-gradient {
    background: linear-gradient(135deg, #f2f4f6 0%, #E3F2FD 35%, #f2f4f6 65%, #e8f5e9 100%);
    background-size: 300% 300%;
    animation: gradient-shift 12s ease 1 forwards;
}

/* ── Product card hover ── */
.product-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 12px 32px rgba(26, 43, 60, 0.1);
}

/* ── Nav link active state ── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2A9D8F;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link.active::after { width: 100%; }
.nav-link.active { color: #041627; font-weight: 600; }

/* ── Navbar scroll effect ── */
.nav-scrolled {
    box-shadow: 0 1px 12px rgba(26, 43, 60, 0.08);
    backdrop-filter: blur(8px);
    background: rgba(247, 249, 251, 0.92);
}

/* ── Badge / Pill ── */
.badge-glow {
    animation: badge-glow 2.5s ease-in-out infinite;
}
@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(42, 157, 143, 0); }
}

/* ── Stat counter ── */
.stat-value {
    background: linear-gradient(135deg, #041627, #2A9D8F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section separator ── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #c4c6cd, transparent);
}

/* ── Breadcrumb ── */
.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb a:hover { color: #2A9D8F; }

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Form loading spinner ── */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Selection color ── */
::selection {
    background: rgba(42, 157, 143, 0.2);
    color: #041627;
}

/* ── Custom scrollbar (subtle) ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f2f4f6; }
::-webkit-scrollbar-thumb { background: #c4c6cd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #74777d; }

/* ── Image lazy load placeholder ── */
img {
    transition: opacity 0.4s ease;
}

/* ── Value proposition marker ── */
.value-marker {
    border-left: 3px solid #2A9D8F;
    padding-left: 16px;
}

/* ── Trust strip ── */
.trust-strip {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* ══════════════════════════════════════════════════
   Mobile Tap Target & Readability Improvements
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Footer quick-links: ensure 44px min tap target */
    footer a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Breadcrumb links */
    .breadcrumb a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 4px 0;
    }

    /* Inline text links in body paragraphs — add vertical breathing room */
    main p a,
    main li a,
    .faq-answer a {
        padding: 4px 0;
    }
}

/* ── Review Cards ── */
.review-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 28px rgba(26, 43, 60, 0.08);
}
.review-initials {
    letter-spacing: 0.02em;
}
.trustpilot-star {
    display: inline-flex;
}

/* ── Trust signal (live enquiry counter) ── */
.trust-signal {
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #44474c;
    line-height: 1.4;
}
.trust-signal-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #2A9D8F;
    box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.6);
    animation: trust-pulse 2s ease-out infinite;
    flex-shrink: 0;
}
@keyframes trust-pulse {
    0% { box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(42, 157, 143, 0); }
    100% { box-shadow: 0 0 0 0 rgba(42, 157, 143, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .trust-signal-dot { animation: none; }
}
