/* --- 1. UNIVERSAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: #ffffff;
    /* UPGRADE: Makes fonts look thinner and sharper on Mac/iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 2. GLOBAL VARIABLES (The "Elite" Palette) --- */
/* --- 2. GLOBAL VARIABLES (The "Depth" Palette) --- */
:root {
    /* GRADIENT RED: 3D Ruby Look */
    --brand-red: #C41E3A; 
    --brand-red-gradient: linear-gradient(135deg, #C41E3A 0%, #900f23 100%);
    
    /* GRADIENT BLACK: Brushed Metal Look */
    --rich-black: #0f0f0f;
    --rich-black-gradient: linear-gradient(145deg, #1f1f1f 0%, #050505 100%);
    
    /* BACKGROUNDS: For Zebra Striping */
    --slate-light: #ffffff; /* Odd Sections */
    --section-gradient-even: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%); /* Even Sections */
    
    /* Text */
    --text-main: #1a1a1a;
    --text-muted: #555555;
    
    /* Glass Effect & Shadows */
    --card-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    --glass-bg: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    --transition-speed: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* GENERAL SETUP */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    padding-bottom: 0; 
}

@media (max-width: 768px) {
    body { padding-bottom: 60px; } 
}

.container {
    width: 90%; /* Slightly wider for modern feel */
    max-width: 1240px;
    margin: 0 auto;
}

a { text-decoration: none; color: inherit; transition: var(--transition-speed); }

/* --- NAVBAR (Enhanced) --- */
.navbar {
    /* UPGRADE: Gradient Background */
    background: var(--rich-black-gradient); /* UPDATED */
    padding: 1.2rem 0;
    position: relative;
    top: auto;
    z-index: 1000;
    border-bottom: 3px solid var(--brand-red);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

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

/* --- LOGO IMAGE + TEXT STYLES --- */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    /* UPGRADE: Subtle drop shadow on logo */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.logo span {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px; /* Wider spacing looks more expensive */
    line-height: 1;
}

@media (max-width: 600px) {
    .logo span { font-size: 1rem; }
    .logo img { height: 40px; }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

/* UPGRADE: Underline animation on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--brand-red);
    transition: width 0.3s;
}

.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }

/* --- BUTTONS (Interactive) --- */
/* --- BUTTONS (Gradient Upgrade) --- */
.btn {
    display: inline-block;
    background: var(--brand-red-gradient); /* Uses the new gradient */
    color: white;
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    border: none; 
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn:hover {
    background: var(--brand-red); /* Fallback */
    background: linear-gradient(135deg, #d62544 0%, #a01229 100%); /* Brighter Gradient */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

/* --- CINEMATIC PAGE HEADERS --- */
.page-header {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: white;
    margin-bottom: 0;
    border-bottom: 5px solid var(--brand-red);
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* UPGRADE: Gradient overlay instead of flat black */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    z-index: 1;
}

.page-header .container {
    z-index: 2;
    position: relative;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    letter-spacing: -1px;
}

.page-header .breadcrumb {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

/* --- SECTIONS & TEXT (Zebra Striping Logic) --- */
/* 1. Default padding for all sections */
.section { 
    padding: 90px 0;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.03); 
}

/* 2. ODD Sections (1, 3, 5) stay White */
section:nth-of-type(odd) {
    background-color: var(--slate-light);
}

/* 3. EVEN Sections (2, 4, 6) get the Gradient */
section:nth-of-type(even) {
    background: var(--section-gradient-even);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02); /* Internal depth shadow */
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* 4. Force .bg-light to match the even gradient */
.bg-light { 
    background: var(--section-gradient-even) !important; 
}

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

/* HEADINGS (Dynamic Underline) */
h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--rich-black);
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    position: relative;
    
    /* CRITICAL CHANGE: This wraps the box around the text exactly */
    display: inline-block; 
}

/* The Red Line */
h2::after {
    content: '';
    display: block;
    
    /* CRITICAL CHANGE: Matches the width of the text above it */
    width: 100%; 
    
    height: 4px;
    background: var(--brand-red-gradient);
    margin-top: 8px; /* Distance from text */
    border-radius: 2px;
}

/* Optional: Center alignment helper if the parent is text-center */
.text-center h2 {
    margin-left: auto;
    margin-right: auto;
}

p { margin-bottom: 1.5rem; color: var(--text-muted); }
/* --- GRID SYSTEM --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: stretch;
}

/* --- PRODUCT CARDS (Enhanced) --- */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    box-shadow: var(--card-shadow);
    border-radius: 8px; /* Softer corners */
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: transparent;
}

.card-image-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f4f4f4;
    border-bottom: 4px solid var(--brand-red);
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.product-card:hover .card-image-box img { transform: scale(1.1); }

.card-content {
    padding: 35px; 
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin: 0 0 15px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rich-black);
}

.card-content p {
    margin: 0 0 20px;
    color: #666;
    font-size: 0.95rem;
}

.card-content .btn {
    margin-top: auto;
    align-self: stretch;
    text-align: center;
}

/* --- SHAPE GUIDE SECTION --- */
.shape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.shape-card {
    border: 1px solid #eee;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    background: #fff;
    transition: 0.3s;
}

.shape-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.shape-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: var(--brand-red);
}

/* --- FOOTER (Gradient Upgrade) --- */
footer {
    background: var(--rich-black);
    background: var(--rich-black-gradient); /* Metal Gradient */
    color: white;
    padding: 80px 0 0 0;
    margin-top: 80px;
    text-align: center;
    border-top: 5px solid var(--brand-red);
}
footer p { opacity: 0.8; }

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(5px); /* UPGRADE: Blur background */
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid white;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.close-btn {
    position: absolute;
    top: 20px; right: 40px;
    color: #fff;
    font-size: 60px;
    font-weight: 300;
    transition: color 0.3s;
}
.close-btn:hover { color: var(--brand-red); }

/* --- COMPOSITION TABLE (Sticky Headers) --- */
.table-container {
    overflow-x: auto;
    margin-bottom: 40px;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    background: white;
    border: 1px solid #eee;
}

.comp-table {
    width: 100%;
    border-collapse: separate; /* Required for border-radius */
    border-spacing: 0;
    font-size: 0.95rem;
    min-width: 800px;
}

.comp-table th, .comp-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* UPGRADE: Sticky Header */
.comp-table th {
    background-color: var(--rich-black);
    color: white;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comp-table tr:nth-child(even) { background-color: #f9f9f9; }
.comp-table tr:hover { background-color: #fff5f5; transition: 0.2s; }
.element-highlight { font-weight: 700; color: var(--brand-red); }

/* --- FEATURES SECTION --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px; 
    margin-top: 40px;
}

.feature-box {
    background: white;
    padding: 40px;
    border-left: 5px solid var(--brand-red); 
    box-shadow: var(--card-shadow);
    height: 100%; 
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.feature-box:hover { transform: translateY(-5px); }

.feature-box h3 { 
    font-size: 1.3rem; 
    margin-top: 0; 
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-box p {
    margin-bottom: 0;
    flex-grow: 1;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

/* --- INDUSTRIES SECTION --- */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.industry-card {
    background: var(--rich-black);
    background: var(--rich-black-gradient);
    color: white;
    padding: 40px 20px;
    border-radius: 4px;
    transition: background 0.3s, transform 0.3s;
}

.industry-card:hover { 
    background: var(--brand-red); 
    transform: translateY(-5px);
}
.industry-card h3 { color: white; font-size: 1.1rem; margin-bottom: 5px; }

/* --- CONTACT PAGE STYLES --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    align-items: start;
}

.contact-details {
    background: var(--rich-black);
    background: var(--rich-black-gradient);
    color: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.contact-item {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.contact-item:last-child { border: none; }

.contact-item h3 {
    color: var(--brand-red);
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-item p { margin: 0; opacity: 0.8; }
.contact-item a { color: white; transition: color 0.3s; }
.contact-item a:hover { color: var(--brand-red); }

.contact-form-box {
    background: white;
    padding: 50px;
    box-shadow: var(--card-shadow);
    border-top: 5px solid var(--brand-red);
    border-radius: 8px;
}

.form-group { margin-bottom: 25px; }

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--rich-black);
}

/* UPGRADE: Modern Inputs */
.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s;
    background: #fdfdfd;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1); /* Red Glow */
    background: #fff;
}

textarea.form-control { resize: vertical; height: 140px; }

.map-container {
    margin-top: 60px;
    height: 400px;
    width: 100%;
    background: #eee;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    overflow: hidden;
}

/* --- HERO SECTION (Fixes included) --- */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('images/warehouse-kohara.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-content {
    max-width: 900px;
    padding: 20px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem; /* Larger */
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.stats-bar {
    background: var(--brand-red);
    color: white;
    padding: 40px 0;
    position: relative;
    margin-top: -60px; /* Overlap effect */
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-radius: 8px; /* Slight roundness */
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item h3 { font-size: 2.5rem; margin: 0; font-weight: 800; letter-spacing: -1px; }
.stat-item p { margin: 0; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.9; }

.split-section {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Stretch to fill */
    gap: 0;
}

.split-content, .split-image {
    flex: 1 1 500px;
    min-height: 500px;
}

.split-content {
    padding: 80px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
    margin-top: 60px;
}

.icon-box {
    padding: 40px;
    transition: transform 0.3s;
    background: white;
    border-radius: 8px;
}
.icon-box:hover { transform: translateY(-10px); }
.icon-header { font-size: 3.5rem; margin-bottom: 20px; display: block; }

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .split-content { padding: 40px 20px; height: auto; }
    .split-image { height: 300px; }
    .stats-bar { margin-top: 0; width: 100%; border-radius: 0; }
}

/* --- INVENTORY GRID STYLES (Fixed) --- */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .inventory-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .inventory-grid { grid-template-columns: 1fr; }
}

.feature-box ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.feature-box li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
}

.feature-box li::before {
    content: "•";
    color: var(--brand-red);
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 10px;
    line-height: 0.8;
}

.feature-box li:last-child { border-bottom: none; }

/* About Page Grid Fix */
.inventory-grid .feature-box {
    height: auto !important; 
    min-height: 0;
    justify-content: flex-start;
}

.inventory-grid .feature-box p {
    flex-grow: 0;       
    margin-bottom: 15px; 
    color: inherit;
}

.inventory-grid .feature-box ul { margin-top: 0; }

/* --- TROUBLESHOOTING MATRIX (Enhanced) --- */
.trouble-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.trouble-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.trouble-header {
    background: #ffe6e6; 
    padding: 25px;
    border-left: 5px solid #ff4d4d; 
}

.trouble-header h3 {
    color: #cc0000;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trouble-body {
    padding: 30px;
    flex-grow: 1;
}

.trouble-solution {
    background: #f0fdf4;
    padding: 25px;
    border-top: 1px solid #bbf7d0;
}

.trouble-solution h4 {
    color: #166534;
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PRO CALCULATOR STYLES --- */
.calc-section {
    background: white;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #eee;
}

.calc-header {
    background: var(--rich-black);
    color: white;
    padding: 25px;
    text-align: center;
    border-bottom: 4px solid var(--brand-red);
}

.calc-tabs {
    display: flex;
    background: #f4f4f4;
    border-bottom: 1px solid #ddd;
}

.calc-tab {
    flex: 1;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    border-right: 1px solid #ddd;
}

.calc-tab:last-child { border-right: none; }
.calc-tab:hover { background: #e0e0e0; }

.calc-tab.active {
    background: white;
    color: var(--brand-red);
    border-bottom: 3px solid white;
    margin-bottom: -1px;
    box-shadow: inset 0 3px 0 var(--brand-red); /* Active indicator */
}

.calc-body { padding: 40px; }

.calc-input-group {
    display: none;
    animation: fadeIn 0.4s ease;
}

.calc-input-group.active { display: block; }

.calc-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.calc-col { flex: 1; }

.calc-result-box {
    background: #fafafa;
    border: 2px dashed #ddd;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    margin-top: 30px;
    transition: all 0.3s;
}

.calc-result-box.has-result {
    background: #fff0f0;
    border-color: var(--brand-red);
    transform: scale(1.02); /* Slight pop */
}

.calc-weight {
    font-size: 3rem;
    font-weight: 800;
    color: var(--rich-black);
    line-height: 1;
}

.calc-unit { font-size: 1rem; color: #666; font-weight: normal; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .calc-row { flex-direction: column; gap: 0; }
    .calc-tabs { flex-wrap: wrap; }
    .calc-tab { flex: 1 1 50%; border-bottom: 1px solid #ddd; }
}

/* --- UNIT TOGGLE SWITCH --- */
.unit-control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 25px;
}

.unit-toggle {
    display: inline-flex;
    background: #e5e7eb;
    border-radius: 30px;
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.unit-btn {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.unit-btn.active {
    background: white;
    color: var(--brand-red);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .unit-control-panel {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- TECHNICAL DATA HUB STYLES (Refined) --- */
.tech-search-container {
    background: var(--rich-black);
    background: var(--rich-black-gradient);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: var(--card-shadow);
}

.tech-search-input {
    width: 100%;
    max-width: 600px;
    padding: 18px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    outline: none;
    text-align: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.tech-search-input:focus {
    box-shadow: 0 0 0 5px rgba(196, 30, 58, 0.4);
}

.tech-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 60px;
    border-top: 5px solid var(--brand-red);
}

.tech-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 900px; 
}

.tech-table th {
    background: #f4f4f4;
    color: var(--rich-black);
    font-weight: 800;
    padding: 20px 25px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.tech-table td {
    padding: 18px 25px;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 0.95rem;
}

.tech-table tbody tr:nth-child(even) { background: #fafafa; }
.tech-table tbody tr:hover { background: #fff5f5; }

.grade-col {
    color: var(--brand-red);
    font-weight: bold;
    font-size: 1rem;
}

.process-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag-oil { background: #fff3cd; color: #856404; }
.tag-air { background: #d4edda; color: #155724; }
.tag-water { background: #d1ecf1; color: #0c5460; }

/* --- FAQ ACCORDION (Interactive) --- */
.faq-container { margin-top: 20px; }

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.faq-question {
    background: white;
    color: var(--rich-black);
    cursor: pointer;
    padding: 25px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
}

.faq-question:hover, .faq-question.active {
    background-color: #f9f9f9;
    color: var(--brand-red);
    padding-left: 30px; /* Slight shift */
}

.faq-answer {
    padding: 0 30px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-left: 3px solid var(--brand-red);
}

.faq-answer p { margin: 25px 0; color: #555; line-height: 1.8; }
.arrow { font-size: 1.5rem; font-weight: 300; }

/* --- ELITE PRO FOOTER (Gradient) --- */
.main-footer {
    background: var(--rich-black-gradient); /* UPDATED */
    color: white;
    padding-top: 80px;
    border-top: 5px solid var(--brand-red);
    font-size: 0.9rem;
}

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

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border-left: 3px solid var(--brand-red);
    padding-left: 15px;
}

.footer-brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--brand-red);
    padding-left: 8px;
    color: white;
}

.footer-contact-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 15px;
    margin-bottom: 25px;
    align-items: start;
}

.footer-icon {
    font-size: 1.2rem;
    color: var(--brand-red);
    text-align: center;
    line-height: 1.5;
}

.footer-bottom {
    background-color: #000;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 5px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 35px; height: 35px; }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float { animation: pulse-green 2s infinite; }

/* --- MOBILE ACTION BAR --- */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.action-btn-mobile {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    color: white;
    transition: background 0.3s;
}

.btn-call-mobile { background-color: var(--rich-black); }
.btn-wa-mobile { background-color: #25d366; }

@media (max-width: 768px) {
    .mobile-bottom-bar { display: flex; }
    .whatsapp-float { display: none; } 
    .footer-bottom { padding-bottom: 80px; } 
}

/* --- MOBILE MENU STYLES --- */

/* 1. Hide the Hamburger by default (Desktop) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* 2. Mobile Logic (Max Width 768px) */
@media (max-width: 768px) {
    
    /* Show the Hamburger */
    .menu-toggle {
        display: flex;
    }

    /* Stack links vertically and hide them initially */
    .nav-links {
        display: none; /* Hidden by default */
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
        gap: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 20px;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links li {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* Allow the container to wrap so the menu drops down */
    .navbar .container {
        flex-wrap: wrap;
    }

    /* The 'Active' class (JavaScript will add this) */
    .nav-links.active {
        display: flex;
    }
    
    /* Animation */
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
/* --- GLASS CARDS --- */
/* Ensures cards look good on both white and grey backgrounds */
.product-card, .feature-box, .contact-details, .contact-form-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px); /* Blurs content behind the card */
    border: 1px solid rgba(255,255,255,0.8);
}


/* VERDICT ENGINE STYLES */
    .verdict-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .verdict-card {
        background: white;
        padding: 25px;
        border-radius: 12px;
        border: 1px solid #eee;
        border-top: 5px solid #ccc; /* Default color */
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        transition: transform 0.2s;
    }
    .verdict-card:hover { transform: translateY(-3px); }

    .v-card-a { border-top-color: var(--rich-black); }
    .v-card-b { border-top-color: var(--brand-red); }

    .v-title {
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #888;
        margin-bottom: 10px;
        display: block;
    }

    .v-grade-name {
        font-size: 1.8rem;
        font-weight: 800;
        margin: 0 0 15px 0;
        color: var(--rich-black);
    }

    .v-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .v-list li {
        margin-bottom: 12px;
        padding-left: 25px;
        position: relative;
        font-size: 0.95rem;
        color: #555;
        line-height: 1.4;
    }

    .v-list li::before {
        content: '✔';
        position: absolute;
        left: 0;
        color: var(--brand-red);
        font-weight: bold;
    }
    
    /* "Better For" Tag */
    .v-tag {
        display: inline-block;
        background: #f4f4f4;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: 600;
        margin-top: 15px;
        color: #444;
    }

    @media (max-width: 768px) {
        .verdict-container { grid-template-columns: 1fr; }
    }