/* --- style.css --- */

/* BRAND VARIABLES */
:root {
    --navy: #082838;
    --teal: #009B9F;
    --teal-hover: #007d80;
    --grey-light: #f8f9fa;
    --grey-medium: #e2e8f0;
    --grey-text: #4a5568;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: var(--white); color: var(--navy); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }

/* UTILS */
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1.5rem 0; color: var(--grey-text); }
ul { margin: 0 0 1.5rem 0; padding-left: 1.5rem; color: var(--grey-text); }
li { margin-bottom: 0.5rem; }
.text-teal { color: var(--teal); }
.section-padding { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; width: 100%; box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* HEADER & NAV */
.top-bar { background-color: var(--navy); color: var(--white); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.brand-group { display: flex; flex-direction: column; text-decoration: none; }
.brand-name { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -0.5px; color: white; }
.brand-sub { font-size: 1.0rem; font-weight: 700; letter-spacing: 2px; color: var(--teal); text-transform: uppercase; margin-top: 4px; }
.nav-links { display: flex; gap: 2rem; list-style: none; padding: 0; margin: 0; }
.nav-links a { color: #cbd5e0; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--white); border-bottom: 2px solid var(--teal); }

/* BUTTONS */
.btn { display: inline-block; padding: 14px 32px; font-weight: 700; text-decoration: none; border-radius: 4px; transition: all 0.2s ease; cursor: pointer; }
.btn-primary { background-color: var(--teal); color: white; border: 2px solid var(--teal); }
.btn-primary:hover { background-color: var(--teal-hover); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background-color: var(--navy); color: white; }

/* LAYOUTS */
/* Add this new class for your 3-column product list */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.hero { background-color: var(--grey-light); padding: 6rem 2rem; text-align: center; border-bottom: 1px solid var(--grey-medium); }
.hero h1 { font-size: 3rem; margin-bottom: 1.5rem; color: var(--navy); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.product-placeholder { height: 220px; background-color: #cbd5e0; display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 600; }
.footer { background-color: var(--navy); color: #cccccc; padding: 4rem 2rem 2rem 2rem; text-align: center; margin-top: auto; }
.footer p {
    color: #aab7c4 !important; 
}

/* --- THEMED PRODUCT CARDS --- */
.product-card {
    background: white;
    /* 1. The Navy Border */
    border: 1px solid var(--navy); 
    /* 2. The Thick Teal Accent Bar at the top */
    border-top: 6px solid var(--teal); 
    border-radius: 8px;
    overflow: hidden;
    /* 3. A subtle Navy-tinted shadow */
    box-shadow: 0 4px 6px rgba(8, 40, 56, 0.1); 
    transition: all 0.3s ease;
    display: flex; 
    flex-direction: column;
}

/* Hover Effect: Card lifts up and gets a Teal glow */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 155, 159, 0.25); 
    border-color: var(--teal);
}

/* Optional: Make the text area slightly grey to separate it from the image */
.card-content {
    padding: 1.5rem;
    display: flex; 
    flex-direction: column; 
    flex-grow: 1;
    background-color: #fcfcfc; /* Very subtle grey */
}

/* --- RESPONSIVE MOBILE STYLES --- */
@media (max-width: 768px) {
    /* 1. Navigation: Stack the logo and links vertically */
    .nav-container { flex-direction: column; gap: 0.5rem; padding: 1rem; }
    .nav-links { display: flex; flex-direction: column; gap: 1rem; width: 100%; text-align: center; margin-top: 1rem; background-color: rgba(0,0,0,0.1); padding: 1rem 0; border-radius: 4px; }
    
    /* 2. Grids: Force everything into a single column */
    /* !important overrides any inline styles */
    .grid-2, .grid-3 { grid-template-columns: 1fr !important; gap: 2rem; }
    
    /* 3. Typography: Shrink huge text */
    .hero { padding: 3rem 1.5rem; }
    .hero h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem !important; }
    
    /* 4. Buttons: Make them full-width for easy tapping */
    .btn { display: block; width: 100%; box-sizing: border-box; text-align: center; margin: 0.5rem 0; }
    /* Remove the margin we put on the second button in desktop mode */
    .btn-outline { margin-left: 0 !important; }
    
    /* 5. Section Padding: Reduce white space */
    .section-padding { padding: 3rem 1.5rem; }
}

/* --- PRICING & SPEC TABLES --- */
.table-container {
    overflow-x: auto; /* Allows table to scroll on mobile */
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.spec-table thead {
    background-color: var(--navy);
    color: white;
}

.spec-table th, .spec-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.spec-table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Zebra Striping for readability */
.spec-table tbody tr:nth-of-type(even) {
    background-color: var(--grey-light);
}

/* Highlight the Price Column */
.spec-table td.price-col {
    font-weight: 700;
    color: var(--teal);
    text-align: right;
}
.spec-table th.price-col {
    text-align: right;
}

/* "How to Order" Box */
.order-box {
    background-color: #e0f2f1; /* Very light teal */
    border-left: 5px solid var(--teal);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

/* --- PRICING PAGE SPLIT LAYOUT (OPTIMIZED) --- */
.pricing-layout {
    display: grid;
    /* 1. Sidebar shrunk to 320px to make Left Column wider */
    grid-template-columns: 1fr 320px; 
    /* 2. Gap reduced to pull them closer */
    gap: 1.5rem; 
    align-items: start;
}

/* Fixes the issue where tables push the grid too wide on mobile */
.pricing-layout > div {
    min-width: 0;
}

.pricing-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
}

/* OPTIONAL: Compact Table Styling to fit more text */
.spec-table th, .spec-table td {
    /* 3. Reduced padding so the table doesn't feel "bloated" */
    padding: 10px 8px; 
}

@media (max-width: 900px) {
    .pricing-layout {
        grid-template-columns: 1fr;
    }
    .pricing-sidebar {
        position: static;
        margin-bottom: 3rem;
        order: -1; 
    }
    /* Shrink table text and padding on mobile */
    .spec-table th, .spec-table td {
        padding: 8px 5px;   /* Reduces spacing */
        font-size: 0.85rem; /* Slightly smaller text */
    }

    /* Stack the Item Name and Description to save width */
    .spec-table td:nth-child(1) {
        white-space: normal; /* Allows the name to wrap */
        min-width: 80px;     /* Ensures it doesn't get too squished */
    }
}

/* Mobile: Stack them vertically */
@media (max-width: 960px) {
    .pricing-layout {
        grid-template-columns: 1fr;
    }
    .pricing-sidebar {
        position: static; /* Turn off sticky on phones */
        margin-bottom: 2rem;
        order: -1; /* Move sidebar to the TOP on mobile so they see instructions first */
    }
}

/* --- IMAGE ZOOM EFFECT --- */
.zoom-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease; /* Makes the zoom smooth */
}

/* RENAMED to match your HTML */
.zoom-container {
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* This adds the missing shadow */
}

.zoom-container:hover .smart-zoom-img { /* Updated this too */
    transform: scale(1.5); 
    cursor: zoom-in;
}

/* --- HAMBURGER MENU STYLES --- */

/* 1. Hide the hamburger on Desktop */
.menu-toggle {
    display: none;
}

/* 2. Mobile Logic */
@media (max-width: 768px) {
    
    /* 1. Layout: Row instead of Column, with space between items */
    .nav-container {
        flex-direction: row;       /* Keeps Logo & Burger on same line */
        flex-wrap: wrap;           /* Allows the menu links to drop down */
        justify-content: space-between; /* Pushes Logo Left, Burger Right */
        align-items: center;       /* Centers them vertically */
        padding: 1rem;
    }

    /* 2. Brand: Left Align text */
    .brand-group {
        text-align: left;
        /* Optional: prevent logo from getting too wide if text is long */
        max-width: 80%; 
    }

    /* 3. Hamburger: Shows up on the right naturally */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }
    
    .menu-toggle .bar {
        width: 25px; 
        height: 3px; 
        background-color: white; 
        border-radius: 2px;
    }

    /* 4. The Menu Links: Force to a new line (width 100%) */
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        order: 3; /* Ensures this always drops to the bottom */
    }

    .nav-links.active {
        display: flex;
    }
}
.order-box {
    /* ... existing styles ... */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Add this line */
}
/* Centers text in both header and data cells */
.center-col {
    text-align: center;
}