/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-red: #E31E24;
    --red-hover: #b01217;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: #1c1c1c;
    --text-white: #ffffff;
    --text-grey: #cccccc;
    --text-dark: #333333;
    
    --font-main: 'Fahkwang', sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.bg-dark { background-color: var(--dark-bg); }
.bg-darker { background-color: #050505; }
.text-center { text-align: center; }
.text-highlight { color: var(--primary-red); }
.small-text { font-size: 0.85rem; }
.mb-50 { margin-bottom: 50px; }
.relative-z { position: relative; z-index: 2; }

/* =========================================
   3. BUTTON COMPONENTS
   ========================================= */
.btn {
    padding: 12px 28px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn:hover { transform: translateY(-3px); }

.btn--red {
    background-color: var(--primary-red);
    color: white;
}
.btn--red:hover {
    background-color: white;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn--red-bg {
    background-color: var(--primary-red);
    color: white;
    margin-top: 20px;
}
.btn--red-bg:hover { background-color: var(--red-hover); }

.btn--white {
    background-color: white;
    color: var(--primary-red);
}
.btn--white:hover {
    background-color: var(--primary-red);
    color: white;
}

.btn--white-outline {
    border: 2px solid white;
    background: transparent;
    color: white;
}
.btn--white-outline:hover {
    background: white;
    color: var(--dark-bg);
}

/* =========================================
   4. NAVBAR
   ========================================= */
.header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo { max-width: 180px; height: auto; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}
.nav-links a:hover { color: var(--primary-red); }
.nav-links .active-link { color: var(--primary-red); }

.mobile-btn { display: none; }
.menu-toggle { display: none; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; }

/* =========================================
   5. HERO SECTION (Global)
   ========================================= */
.hero-section {
    position: relative;
    height: 90vh;
    background: url('img/hero-bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-inner {
    height: 60vh; /* Smaller height for inner pages */
}
.hero-overlay {
    position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6);
}
.hero-content {
    position: relative; z-index: 2; max-width: 1000px; padding: 20px;
}
.hero-content h1 {
    font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1;
}
.hero-subtitle {
    margin-bottom: 30px; font-size: 1.2rem; color: #f0f0f0;
}

/* CTA Section Background Image */
.cta-section { background: url('img/engineered-bg.png') center/cover no-repeat; }
.thick-thin-cta { background: url('img/cta-food-bg.jpg') center/cover no-repeat; }
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }

/* =========================================
   6. SPLIT LAYOUT
   ========================================= */
.split-layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
}
.split-content-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}
.split-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.split-content-text {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    padding: 40px;
}
.text-box { width: 100%; }
.text-box h2 { font-size: 2.2rem; margin-bottom: 10px; }
.text-box p { color: var(--text-grey); margin-bottom: 25px; }

/* =========================================
   7. SECTIONS GENERAL
   ========================================= */
.why-matters-section {
    background: url('img/Why-TorusPak.png') center/cover, var(--darker-bg);
}
.section-desc {
    max-width: 800px; margin: 20px auto 40px; color: var(--text-grey);text-align: center;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer { 
    background-color: #222; 
    padding: 60px 0 0; 
    color: #aaa; 
    font-size: 0.9rem; 
    width: 100%; 
}

.footer-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px 40px; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
}

.footer-col { 
    flex: 1; 
    min-width: 220px; 
    padding: 0 20px; 
    position: relative; 
    margin-bottom: 30px; 
}
.footer-col:not(:last-child)::after {
    content: ''; 
    position: absolute; 
    right: 0; 
    top: 10%; 
    height: 80%; 
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.brand-col { flex: 2; padding-right: 40px; }
.footer-logo img { height: 40px; margin-bottom: 15px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; align-items: center; }
.social-links i {
    width: 32px; height: 32px; background: var(--primary-red); color: white;
    display: flex; justify-content: center; align-items: center; border-radius: 4px; transition: 0.5s;
}
.social-links i:hover { background: white; color: var(--primary-red); transform: rotate(360deg); }

.links-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.links-col ul li { margin-bottom: 10px; }
.links-col ul li a:hover { color: var(--primary-red); padding-left: 5px; }
.footer-bottom { background: var(--card-bg); padding: 20px; text-align: center; border-top: 1px solid #333; }

/* =========================================
   9. ANIMATIONS & RESPONSIVE
   ========================================= */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .split-layout-wrapper { flex-direction: column; }
    .split-content-image { height: 300px; }
    .hero-content h1 { font-size: 2.5rem; }
    .footer-col:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
    .navbar { padding: 15px; }
    .menu-toggle { display: block; color: var(--text-dark); font-size: 1.5rem; cursor: pointer; }
    .nav-links {
        position: absolute; top: 80px; left: 0; width: 100%;
        background: white; flex-direction: column; align-items: center;
        padding: 30px; gap: 20px;
        transform: translateY(-150%); transition: 0.4s; z-index: 999;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.nav-active { transform: translateY(0); }
    .desktop-btn { display: none; }
    .mobile-btn { display: block; }
}

/* =========================================
   10. INNER PAGE STYLES (NEW CODE)
   ========================================= */

/* Benefits Grid - Fixed 2x2 Layout */
.benefits-grid {
    display: grid;
    /* Ye line ensure karegi ki hamesha 2 column hi banein (2 upar, 2 niche) */
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    margin-top: 50px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .benefits-grid {
        /* Mobile par ek ke niche ek dikhega */
        grid-template-columns: 1fr; 
    }
}

/* How It Works (Steps) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step-item {
    display: flex;
    flex-direction: column; /* Icon upar, text neeche */
    gap: 20px;
    padding: 20px;
    background: #111;
    border-radius: 6px;
    border: 1px solid #222;
    text-align: center;
}

.step-number {
    background: #222;
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: 700;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    border: 1px solid #333;
}

.step-text h3 { text-align: center; margin-bottom: 10px; color: white; }

/* Designed to Adapt (Zig Zag Feature Rows) */
.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 80px;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text { flex: 1; }
.feature-text h3 { font-size: 2rem; margin-bottom: 15px; color: white; }
.feature-text p { color: var(--text-grey); font-size: 1.1rem; }

.feature-image { flex: 1; }
.feature-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Engineered to Perform (Specs) */
.specs-section {
    background: url('img/engineered-bg.png');
}

.specs-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.specs-content { flex: 1; }
.specs-content h2 { font-size: 2.5rem; margin-bottom: 30px; }

.specs-list { margin-bottom: 30px; }
.specs-list li {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    color: var(--text-grey);
}
.specs-list li strong { color: white; font-size: 1.1rem; display: block; margin-bottom: 5px; }

.specs-image { flex: 1; height: 500px; }
.specs-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* Testimonials (Same as Home) */
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.testimonial-card-box {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.quote-icon-large { font-size: 3rem; opacity: 0.2; position: absolute; top: 20px; left: 20px; }
.stars { color: #f1c40f; margin: 10px 0 20px; }
.testimonial-text { font-style: italic; color: #ddd; margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-nav { margin-top: 20px; display: flex; gap: 20px; justify-content: flex-end; }
.nav-arrow { font-size: 1.2rem; cursor: pointer; transition: 0.3s; color: #666; }
.nav-arrow:hover { color: var(--primary-red); }

/* Responsive for Inner Page */
@media (max-width: 900px) {
    .feature-row, .feature-row:nth-child(even) { flex-direction: column; text-align: left; gap: 20px; margin-bottom: 50px; }
    .feature-image img { max-height: 300px; object-fit: cover; }
    .steps-grid { grid-template-columns: 1fr; }
    .specs-section { background: #0a0a0a; }
    .specs-layout { flex-direction: column; }
    .specs-image { width: 100%; height: 300px; }
    .testimonial-grid { grid-template-columns: 1fr; }
}

/* ===============================
   FAQ SECTION
================================ */

.faq-wrapper {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question:hover {
    background-color: #222;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-red);
    transition: 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #151515;
}

.faq-answer p {
    padding: 0 25px 25px;
    color: var(--text-grey);
    line-height: 1.7;
}

/* Active State */
.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}