/* --- CORE VARIABLES --- */
:root {
    --primary-color: #0b1a30;    /* Deep Navy */
    --secondary-color: #356a97;  /* Muted Blue */
    --accent-color: #0d8c91;     /* Teal */
    --copper-accent: #b86a4f;    /* Copper DNA strand */
    --bg-light: #f4f7f9;         /* Very soft cool grey background */
    --text-main: #1e293b;
    --text-muted: #475569;
    --white: #ffffff;
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- NAVIGATION HEADER --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- THE LOGO MAGIC --- */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px;
    mix-blend-mode: multiply; /* Strips the background */
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- HOME PAGE HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, #071120 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 8rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background-color: rgba(13, 140, 145, 0.2);
    color: #4fd1c5;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #0a6f73;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.2);
}

/* --- FEATURES / HIGHLIGHTS --- */
.features {
    max-width: 1400px;
    margin: -4rem auto 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-bottom: 4px solid var(--copper-accent);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- INTERNAL PAGE HEADER (For Products Page) --- */
.page-header {
    background: linear-gradient(135deg, #071120 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-header p {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* --- PRODUCT GRID --- */
.store-container {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: block;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.specs {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* --- PRODUCT DROPDOWNS --- */
.strength-selector {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #f8fafc;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.strength-selector:focus {
    border-color: var(--accent-color);
}

.btn-cart {
    display: block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-cart:hover {
    background-color: var(--primary-color);
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    text-align: center;
    padding: 3rem 2rem;
    font-size: 0.9rem;
}
/* --- DISCLAIMER MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 17, 32, 0.95); /* Deep navy blur */
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Keeps it strictly on top */
}

.modal-content {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-top: 5px solid var(--copper-accent); /* DNA color from your logo */
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.disclaimer-text-box {
    max-height: 250px;
    overflow-y: auto;
    text-align: left;
    background: #f8fafc;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.disclaimer-text-box p {
    margin-bottom: 0.75rem;
}

.disclaimer-text-box ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.disclaimer-text-box li {
    margin-bottom: 0.25rem;
}

.modal-content input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Grays out the button until they type */
#agree-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--text-muted);
}

/* Utility class to hide the modal via JavaScript */
.hidden {
    display: none !important;
}
/* ==========================================
   LOGO & HEADER BRANDING OVERRIDE
   ========================================== */
header .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes logo left, menu right */
    padding: 15px 5%;
}

header .logo img {
    /* Change this number to make the logo as big as you want! */
    max-height: 90px; 
    width: auto;
    display: block;
    transition: transform 0.3s ease; /* Adds a smooth feel */
}

/* Optional: Adds a tiny interactive "pop" when a customer hovers over your logo */
header .logo img:hover {
    transform: scale(1.05);
}

/* Mobile check: keeps it from breaking the screen on phones */
@media (max-width: 768px) {
    header .logo img {
        max-height: 65px; 
    }
}
/* ==========================================
   HERO SECTION LOGO (TRANSPARENT)
   ========================================== */
.hero-logo {
    max-width: 350px; /* Adjust this to make it bigger or smaller */
    height: auto;
    display: block;
    margin: 0 auto 20px auto; /* Centers it perfectly and pushes text down */
}

/* Mobile check so it scales down nicely on phones */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 250px; 
    }
}

/* ==========================================
   MOBILE OPTIMIZATION (PHONES & TABLETS)
   ========================================== */
@media (max-width: 768px) {
    
    /* --- 1. Header & Navigation --- */
    header .nav-container {
        flex-direction: column; /* Stacks items vertically */
        text-align: center;
        padding: 15px 10px;
        gap: 15px; /* Adds breathing room between rows */
    }
    
    /* Deletes that empty "spacer" we made so it doesn't take up phone screen space */
    header .logo {
        display: none; 
    }
    
    header .nav-links {
        display: flex;
        flex-wrap: wrap; /* Allows links to drop to the next line if crowded */
        justify-content: center;
        gap: 15px;
        padding: 0;
    }

    /* --- 2. Hero Section --- */
    .hero {
        padding: 50px 20px; /* Reduces the massive empty space on sides */
    }

    .hero-logo {
        max-width: 220px; /* Keeps the logo prominent but fits small screens */
        margin-bottom: 15px;
    }

    .hero h1 {
        font-size: 2.2rem; /* Shrinks the massive desktop headline */
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Stack the buttons if they are side-by-side */
    .hero .button-group, 
    .hero .hero-content > a {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        width: 100%;
    }

    /* --- 3. Dynamic Product Catalog --- */
    .product-grid {
        /* Forces the grid into exactly 1 column on phones */
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 10px;
    }

    /* Make sure buttons and dropdowns are easily tappable with a thumb */
    .strength-selector, 
    .btn-cart {
        width: 100%; 
        box-sizing: border-box;
        padding: 12px; 
    }

    /* --- 4. The Disclaimer Modal --- */
    /* Prevents the legal gate from bleeding off the edges of the screen */
    #disclaimer-modal .modal-content {
        width: 92%;
        padding: 25px 15px;
        margin: 20px auto;
    }
}
/* ==========================================
   SHOPPING CART SLIDE-OUT
   ========================================== */
.floating-cart-btn {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--primary-color, #00b4d8);
    color: white; border: none; border-radius: 50px;
    padding: 15px 25px; font-size: 1.2rem; font-weight: bold;
    cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 1000; transition: transform 0.2s ease;
}
.floating-cart-btn:hover { transform: scale(1.05); }

.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7); z-index: 2000;
    opacity: 1; visibility: visible; transition: all 0.3s ease;
}
.cart-overlay.hidden { opacity: 0; visibility: hidden; }

.cart-panel {
    position: absolute; top: 0; right: -400px; 
    width: 100%; max-width: 400px; height: 100%;
    background-color: #0f172a; color: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.8);
    display: flex; flex-direction: column; transition: right 0.3s ease;
}
.cart-overlay:not(.hidden) .cart-panel { right: 0; }

.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.close-cart { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Replace your existing .cart-item rules with these: */
.cart-item { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    background: rgba(255,255,255,0.05); 
    padding: 10px; 
    border-radius: 8px; 
}
.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}
.cart-item-info { 
    flex-grow: 1; 
}
.cart-item-info h4 { 
    margin: 0; 
    font-size: 1rem; 
}
.cart-item-info p { 
    margin: 5px 0 0; 
    color: var(--primary-color, #00b4d8); 
    font-weight: bold;
}
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.qty-select {
    background: #1e293b;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.cart-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; }
.btn-checkout { width: 100%; background-color: var(--primary-color, #00b4d8); color: white; border: none; padding: 15px; font-size: 1.1rem; border-radius: 8px; cursor: pointer; font-weight: bold; }

/* ==========================================
   DISCLAIMER MODAL
   ========================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; /* Make sure it stays on top of everything! */
    transition: opacity 0.3s ease;
}
.modal-overlay.hidden {
    opacity: 0; pointer-events: none; visibility: hidden;
}
.modal-content {
    background: #0f172a; padding: 40px; border-radius: 12px;
    max-width: 500px; width: 90%; text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}
.hidden { display: none !important; }