@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:wght@400;700;900&family=Sora:wght@600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #C0392B;
    /* Deep Red */
    --primary-dark: #962D22;
    --secondary: #1A2340;
    /* Dark Navy */
    --accent: #D4A017;
    /* Gold/Amber */
    --bg-main: #FFFFFF;
    --bg-surface: #F5F7FA;
    --text-main: #1C1C1C;
    --text-muted: #555555;
    --border: #E0E0E0;

    /* Spacing */
    --section-pad: 60px;
    --container-max: 1100px;

    /* Shadows & Radius */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius-card: 12px;
    --radius-btn: 6px;
    --success: #27AE60; /* Professional Green */
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
}

h1,
h2,
h3,
h4 {
    font-family: 'Sora', sans-serif;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* 100% Reliable & Smooth Animations */
@keyframes heroFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.on-load-fade { 
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; 
}

.on-load-slide { 
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; 
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hover Effects - Interactive & Safe */
.card, .card-symptom, .package-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.card:hover, .card-symptom:hover, .package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
}

.serif {
    font-family: 'Merriweather', serif;
}

h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--secondary);
    font-weight: 900;
}

h2 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 45px;
    color: var(--secondary);
    font-weight: 800;
}

#order h2 {
    color: white;
}

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

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--secondary);
    color: white;
    font-size: 12px;
    text-align: center;
    padding: 8px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--secondary);
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.logo span {
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, #E74C3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

nav a {
    text-decoration: none;
    color: var(--secondary);
    margin: 0 12px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--primary);
}

.symptoms-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.nav-cta-mobile {
    display: none !important;
}

.nav-cta-desktop {
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius-btn);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

/* Sections */
section {
    padding: var(--section-pad) 0;
}

.section-dark {
    background: var(--secondary);
    color: white;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #ffffff;
}

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

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

/* Hero */
.hero {
    text-align: center;
    padding-top: 60px;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-product {
    max-width: 400px;
    margin: 40px auto;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    line-height: 1.1;
    transform: rotate(15deg);
    box-shadow: var(--shadow);
}

.input-error {
    border-color: #ff4d4d !important;
    background-color: #fff9f9 !important;
}

.error-msg {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
    display: none;
}

/* Timer */
.timer-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(192, 57, 43, 0.04);
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid rgba(192, 57, 43, 0.1);
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.timer-num {
    font-family: 'Sora', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.timer-label {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.timer-separator {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-top: -10px;
    opacity: 0.5;
}

.timer-tag {
    margin-left: 10px;
    font-weight: 800;
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: timerPulse 2s infinite;
    white-space: nowrap;
}

@keyframes timerPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Force 2x2 Grid Utility */
.mobile-2-col {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
}

.card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    text-align: center;
}

.card i {
    font-size: 32px;
    color: var(--primary);
}

.card-symptom {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 30px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.card-symptom:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-5px);
}

.card-symptom h3 {
    color: white;
    font-size: 18px;
    margin: 15px 0;
}

.card-symptom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.round-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent);
    padding: 5px;
    background: white;
}

/* Ingredients */
.ingredient-card {
    border-top: 4px solid var(--accent);
}

/* Packages */
.package-card {
    border: 2px solid var(--border);
    position: relative;
    padding-top: 60px;
}

.package-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.popular-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 10px;
    font-weight: 700;
    font-size: 12px;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
}

.price-new {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    display: block;
}

/* Testimonials */
.testimonial {
    font-style: italic;
    color: var(--text-muted);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F0F4F8;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: #2D6A4F;
    margin-top: 20px;
    border: 1px solid #D1D9E0;
    line-height: 0;
    transition: all 0.2s ease;
}

.verified-badge i {
    font-size: 16px;
    color: #D4A017;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: #0d121f;
    box-shadow: inset 0 16px 64px rgba(0, 0, 0, 0.5);
    color: white;
    padding: 80px 0 40px;
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 35, 64, 0.85) 0%, rgba(26, 35, 64, 0.95) 100%);
    pointer-events: none;
    z-index: -1;
}

footer::after {
    content: "";
    position: absolute;
    inset: -20% -10%;
    background: radial-gradient(circle at 15% 10%, rgba(28, 83, 142, 0.35) 0%, rgba(28, 83, 142, 0) 45%),
        radial-gradient(circle at 85% 85%, rgba(188, 191, 203, 0.2) 0%, rgba(188, 191, 203, 0) 40%);
    filter: blur(26px);
    pointer-events: none;
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: white !important;
}

.footer-logo span {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5253 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.footer-map {
    display: block;
    width: 100%;
    min-height: 170px;
    border: 0;
}

.disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 40px;
    line-height: 1.4;
}

/* Social Proof Notification */
#notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#notification.show {
    transform: translateY(0);
}

@media (max-width: 1023px) {
    #notification {
        display: none !important;
    }
}

/* Carousel for Mobile */
@media (max-width: 768px) {
    .review-carousel-container {
        overflow: hidden;
        position: relative;
        padding: 10px 0;
    }
    
    .review-carousel {
        display: flex !important;
        transition: transform 0.5s ease-in-out;
        gap: 0;
        padding-bottom: 0;
        overflow-x: visible;
        width: 100%;
    }
    
    .review-carousel .card {
        min-width: 100%;
        scroll-snap-align: center;
        margin: 0;
        box-shadow: none;
        border: 1px solid var(--border);
        transform: scale(0.95);
        transition: transform 0.5s ease;
    }
    
    .review-carousel .card.active {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 991px) {
    body.menu-open {
        overflow: hidden;
    }

    .header-inner {
        min-height: 64px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 20px;
    }

    .nav-cta-desktop {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: #fff;
        box-shadow: 0 6px 16px rgba(26, 35, 64, 0.12);
        transition: all 0.2s ease;
    }

    .menu-toggle:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(26, 35, 64, 0.16);
    }

    nav {
        position: fixed;
        top: 74px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        padding: 12px;
        border-radius: 16px;
        border: 1px solid rgba(26, 35, 64, 0.08);
        box-shadow: 0 16px 34px rgba(12, 18, 38, 0.18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px) scale(0.98);
        transition: 0.3s ease;
        z-index: 2000;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    nav a {
        display: block;
        width: 100%;
        font-size: 17px;
        font-weight: 700;
        margin: 0;
        color: var(--secondary);
        background: #f4f6fb;
        border: 1px solid #e8ebf2;
        border-radius: 10px;
        padding: 12px 14px;
        text-align: left;
    }

    .nav-cta-mobile {
        display: inline-block !important;
        width: 100%;
        margin-top: 4px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .symptoms-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .card-symptom {
        padding: 12px 8px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }

    .card-symptom i {
        font-size: 22px !important;
        margin-bottom: 6px !important;
    }

    .card-symptom h3 {
        font-size: 12px !important;
        margin: 4px 0 !important;
        line-height: 1.2;
    }

    .card-symptom p {
        font-size: 9px !important;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 40px;
    }

    .container {
        padding: 0 16px;
    }

    nav {
        right: 10px;
        left: 10px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .logo {
        font-size: 22px;
        letter-spacing: -0.4px;
        margin: 0;
        display: flex;
        align-items: center;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .hero p {
        font-size: 16px;
    }

    h2 {
        font-size: 24px !important;
    }

    .card {
        padding: 20px;
    }

    .mobile-2-col .card {
        padding: 15px;
    }

    .mobile-2-col h3, 
    .mobile-2-col h4 {
        font-size: 14px !important;
    }

    .mobile-2-col p {
        font-size: 11px !important;
        line-height: 1.3;
    }

    .mobile-2-col i {
        font-size: 24px;
    }

    .mobile-2-col .round-img {
        width: 40px;
        height: 40px;
    }
}

/* Mobile Bottom Fix */
@media (max-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* New Grid Systems */
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.3s;
}

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

.disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.8;
}

@media (max-width: 500px) {
    .ingredients-grid {
        gap: 10px;
    }
    .ingredients-grid .card {
        padding: 10px !important;
        gap: 8px !important;
    }
    .ingredients-grid img {
        width: 35px !important;
        height: 35px !important;
    }
}