:root {
    /* Premium Design System 2026 - Glucotex */
    --primary: #861715;
    --primary-light: #F4B9B8;
    --primary-dark: #630C0A;
    --secondary: #FFD555;
    --accent: #F24E3A;
    --footer-bg: #1A0800;

    --text-dark: #111827;
    --text-body: #374151;
    --text-light: #6B7280;
    --bg-white: #ffffff;
    --bg-soft: #F4EFEA;

    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.6;
    background-color: var(--bg-soft);
    background-image: none; /* Removed background pattern for Glucotex */
    overflow-x: hidden;
}

/* Typography Scales */
h1, h2, h3 { font-family: var(--font-heading); color: var(--text-dark); line-height: 1.1; }
p { font-size: 1.125rem; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Visibility Rules */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }

/* -------------------------------------------------------------------------- */
/* --- DESKTOP FIRST STYLES (BASE) --- */
/* -------------------------------------------------------------------------- */

header {
    background: var(--primary);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background: var(--primary);
    color: white;
    border-radius: var(--border-radius-md);
    font-weight: 800;
    text-decoration: none;
    font-size: 1.125rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 8px 16px rgba(134, 23, 21, 0.2);
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(134, 23, 21, 0.4);
}

/* Hero Section */
.hero {
    padding: clamp(60px, 10vh, 100px) 0;
    background: var(--bg-soft);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.hero-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 0.6rem 1.2rem;
    background: white;
    border: 1px solid rgba(134, 23, 21, 0.15);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 1.2vw, 1.2rem);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-width: 0;
}

.hero-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

/* Trust Elements */
.trust-points {
    display: flex;
    gap: 2.5rem;
    margin-top: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

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

.trust-item svg {
    color: var(--secondary);
    min-width: 24px;
}

/* Region Grid (Desktop) */
.section { padding: clamp(60px, 8vh, 100px) 0; }

.region-title-wrap { 
    text-align: center; 
    margin-bottom: clamp(2rem, 5vh, 4rem); 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.region-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    text-decoration: none;
    border: 1px solid #F3F4F6;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.region-card:hover { transform: translateY(-12px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

.region-card img { width: 70px; height: auto; border-radius: 12px; margin-bottom: 1.5rem; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.region-card span { font-weight: 800; font-size: 1.2rem; color: var(--text-dark); }

/* FAQ */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 1rem; background: white; border: 1px solid #F3F4F6; border-radius: var(--border-radius-md); overflow: hidden; }
.faq-q { padding: 1.75rem 2rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1.15rem; }
.faq-q svg { transition: transform 0.4s; color: var(--primary); }
.faq-item.active .faq-q svg { transform: rotate(180deg); }
.faq-a { padding: 0 2rem 2rem; color: var(--text-body); line-height: 1.8; display: none; }
.faq-item.active .faq-a { display: block; }

/* Footer (Desktop) */
footer { background: var(--footer-bg); color: #9CA3AF; padding: clamp(60px, 8vh, 100px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-logo { font-size: 2.5rem; font-weight: 900; color: white; text-decoration: none; margin-bottom: 2rem; display: block; }
.footer-logo span { color: var(--primary); }
.footer-title { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: inherit; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: white; }
.footer-bottom { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; }
.footer-legal { max-width: 1000px; margin: 2rem auto 0; font-size: 0.85rem; line-height: 1.8; }

/* Testimonial Infinite Marquee (Treadmill) */
.testimonial-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 50s linear infinite;
    pointer-events: auto;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.review-card-wrap {
    width: 400px;
    padding: 15px;
    flex-shrink: 0;
}

.review-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: #FFB300;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1.05rem !important;
    color: var(--text-body);
    font-style: italic;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.author-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.verified-buyer {
    font-size: 0.7rem;
    color: #10B981;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

@media (max-width: 968px) {
    .review-card-wrap {
        width: 320px;
    }
    .review-card {
        padding: 2rem;
    }
    .marquee-track {
        animation-duration: 35s;
    }
}

/* -------------------------------------------------------------------------- */
/* --- MOBILE SPECIFIC OVERRIDES --- */
/* -------------------------------------------------------------------------- */

@media (max-width: 968px) {
    .container { padding: 0 1.5rem; }
    .mobile-only { display: block !important; }
    .desktop-only { display: none !important; }

    header { padding: 1rem 0; }
    .secure-badge { font-size: 0.75rem; }

    .hero { padding: 60px 0; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-content { align-items: center; text-align: center; }
    .hero-badge { margin: 0 auto 1.5rem; }
    .hero h1 { font-size: 2.75rem; }
    .hero p { max-width: 100%; font-size: 1.1rem; margin-bottom: 2rem; }

    /* MOBILE HERO ORDER: Title (H1+P) -> Product Image -> CTA -> Trust */
    .hero-content h1 { order: 1; }
    .hero-content p { order: 2; }
    .hero-content .mobile-only { order: 3; margin: 0 auto 2.5rem !important; }
    .hero-content .cta-group { order: 4; width: 100%; }
    .hero-content .trust-points { order: 5; margin-top: 3rem; justify-content: center; flex-wrap: wrap; gap: 1.5rem; width: 100%; }

    .section { padding: 80px 0; }
    .section-header h2 { font-size: 2rem; }
    
    .region-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .region-grid .region-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 0.5rem);
        justify-self: center;
    }
    .region-card { padding: 2rem 1rem; }
    .region-card img { width: 60px; margin-bottom: 1rem; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .footer-logo { font-size: 2rem; margin-bottom: 1.5rem; }
    .footer-bottom { margin-top: 3rem; padding-top: 2rem; }

    /* Fix Review Footer for Mobile (Stacked lines) */
    .review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Country Selector Section Styles */
.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px auto 0;
    max-width: 1000px;
}

.country-card {
    text-decoration: none; 
    background: white; 
    padding: 40px 20px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: space-between; 
    min-height: 240px; 
    transition: all 0.3s ease; 
    border: 1px solid #f0f0f0;
}

.country-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(134, 23, 21, 0.1);
    border-color: var(--primary-light);
}

.country-flag-wrap {
    height: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px;
}

.country-flag-wrap img {
    width: 70px; 
    border-radius: 6px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.country-name {
    color: #111; 
    font-weight: 800; 
    font-size: 1.25rem; 
    margin-bottom: 15px; 
    display: block; 
    text-align: center;
}

.country-cta {
    color: #8b0000; 
    font-size: 0.9rem; 
    font-weight: 700; 
    background: #fff5f5; 
    padding: 8px 16px; 
    border-radius: 100px;
    transition: 0.3s;
}

.country-card:hover .country-cta {
    background: var(--primary);
    color: white;
}

/* Modals */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.98); backdrop-filter: blur(10px); z-index: 2000; }
.modal-content { background: white; width: 90%; max-width: 800px; max-height: 85vh; margin: 5vh auto; padding: 40px; border-radius: var(--border-radius-lg); position: relative; overflow-y: auto; color: var(--text-dark); }
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 32px; cursor: pointer; color: var(--text-light); }

/* Mobile Adjustments (2 over 1) */
@media (max-width: 768px) {
    .country-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0 10px;
    }
    
    .country-grid .country-card:last-child {
        grid-column: span 2;
        width: calc(50% - 6px); /* Matches exact width of top cards */
        margin: 0 auto;
    }

    .country-card {
        padding: 25px 10px;
        min-height: 190px;
    }

    .country-name {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}
