/* ==========================================================================
   NANDI AUTOMOBILES — Design tokens & global styles
   Palette derived from brand logo: deep steel blue + red accent + charcoal
   Type: Barlow Condensed (industrial display) + Inter (body/utility)
   Signature motif: angled "speed stripe" dividers, echoing motion & wheels
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --navy: #10203A;
    --blue: #2C4F87;
    --blue-light: #4870AC;
    --red: #E4232C;
    --red-dark: #B81820;
    --white: #FFFFFF;
    --off-white: #F4F6F9;
    --gray-100: #EDF0F5;
    --gray-300: #C7CEDA;
    --gray-500: #7C8797;
    --charcoal: #171B22;

    --font-display: 'Barlow Condensed', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius: 6px;
    --shadow-sm: 0 2px 10px rgba(16, 32, 58, 0.08);
    --shadow-md: 0 10px 30px rgba(16, 32, 58, 0.12);
    --shadow-lg: 0 20px 50px rgba(16, 32, 58, 0.18);
    --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--off-white); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: '';
    width: 30px;
    height: 3px;
    background: var(--red);
    display: inline-block;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 18px;
}
.section-sub {
    font-family: var(--font-body);
    text-transform: none;
    color: var(--gray-500);
    font-size: 17px;
    max-width: 640px;
    margin-bottom: 50px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 15px 32px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--red);
    color: var(--white);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    padding: 15px 34px;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
    border-color: var(--white);
    color: var(--white);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-dark {
    border-color: var(--navy);
    color: var(--navy);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn-dark:hover { background: var(--navy); color: var(--white); }

/* Speed-stripe divider — signature motif */
.stripe-divider {
    height: 10px;
    width: 100%;
    background: repeating-linear-gradient(
        115deg,
        var(--red) 0px, var(--red) 40px,
        var(--navy) 40px, var(--navy) 80px
    );
}

/* ==================== HEADER ==================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 22px 0;
}
.site-header.scrolled {
    background: rgba(16, 32, 58, 0.96);
    backdrop-filter: blur(8px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; }
.brand-text { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 20px; letter-spacing: 1px; }
.brand-text span { color: var(--red); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    padding: 6px 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--red);
    transition: var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-cta {
    background: var(--red);
    color: var(--white) !important;
    padding: 10px 22px;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; z-index: 1100; }
.nav-toggle span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
    content: '';
    position: absolute;
    right: -10%; bottom: -20%;
    width: 60%; height: 140%;
    background: repeating-linear-gradient(115deg, rgba(228,35,44,.08) 0 40px, transparent 40px 80px);
    pointer-events: none;
}
.hero-content { max-width: 680px; position: relative; z-index: 2; }
.hero-content .eyebrow { color: var(--red); }
.hero-title {
    font-size: clamp(42px, 6vw, 74px);
    color: var(--white);
    margin-bottom: 22px;
    opacity: 0;
    animation: heroReveal .9s ease forwards .15s;
}
.hero-sub {
    font-size: 19px;
    color: var(--gray-300);
    max-width: 540px;
    margin-bottom: 36px;
    opacity: 0;
    animation: heroReveal .9s ease forwards .35s;
}
.hero-actions { display: flex; gap: 18px; opacity: 0; animation: heroReveal .9s ease forwards .55s; }

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

.hero-stats {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    background: rgba(16,32,58,.85);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stats .stat {
    flex: 1;
    text-align: center;
    padding: 24px 10px;
    border-right: 1px solid rgba(255,255,255,.12);
}
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .stat b {
    display: block;
    font-family: var(--font-display);
    font-size: 34px;
    color: var(--white);
}
.hero-stats .stat span { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-300); }

.scroll-cue {
    position: absolute;
    bottom: 90px; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: 20px;
    z-index: 3;
}
.scroll-cue::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    width: 4px; height: 8px;
    background: var(--red);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDot 1.6s ease infinite;
}
@keyframes scrollDot { 0% { opacity:1; top:8px;} 70% {opacity:0; top:20px;} 100%{opacity:0; top:8px;} }

/* ==================== REVEAL ON SCROLL ==================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .12s; }
.reveal-delay-2.in-view { transition-delay: .24s; }
.reveal-delay-3.in-view { transition-delay: .36s; }

/* ==================== CARDS: PRODUCTS ==================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--gray-100);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-card .img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--gray-100); }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .img-wrap img { transform: scale(1.08); }
.product-card .cat-tag {
    position: absolute; top: 14px; left: 14px;
    background: var(--red); color: var(--white);
    font-family: var(--font-display); font-size: 12px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 5px 12px;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.product-card .body { padding: 24px; }
.product-card h3 { font-size: 24px; margin-bottom: 8px; }
.product-card p { color: var(--gray-500); font-size: 15px; margin-bottom: 16px; }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--gray-100); padding-top: 16px; }
.product-card .price { font-family: var(--font-display); font-size: 20px; color: var(--red); font-weight: 700; }
.product-card .arrow-link { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 14px; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.product-card .arrow-link svg { transition: var(--transition); width: 16px; }
.product-card:hover .arrow-link svg { transform: translateX(5px); }

/* ==================== ABOUT / SPLIT SECTIONS ==================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split-media { position: relative; }
.split-media::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px;
    width: 100%; height: 100%;
    border: 4px solid var(--red);
    border-radius: var(--radius);
    z-index: -1;
}
.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.value-list li { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: .5px; color: var(--navy); }
.value-list li::before { content: ''; width: 10px; height: 10px; background: var(--red); flex-shrink: 0; clip-path: polygon(20% 0,100% 0,80% 100%,0 100%); }

/* ==================== STATS BAND ==================== */
.stats-band { background: var(--navy); color: var(--white); padding: 70px 0; position: relative; overflow: hidden; }
.stats-band::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(115deg, rgba(228,35,44,.06) 0 40px, transparent 40px 80px);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 2; text-align: center; }
.stats-grid b { display: block; font-family: var(--font-display); font-size: 46px; color: var(--white); }
.stats-grid span { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-300); }

/* ==================== TESTIMONIALS ==================== */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--red);
    height: 100%;
}
.testimonial-card .stars { color: var(--red); letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card p { font-size: 16px; color: var(--charcoal); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-author b { font-family: var(--font-display); display: block; color: var(--navy); }
.testimonial-author span { font-size: 13px; color: var(--gray-500); }

/* ==================== TEAM ==================== */
.team-card { text-align: center; }
.team-card .photo { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 18px; aspect-ratio: 1/1; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.team-card:hover .photo img { transform: scale(1.06); }
.team-card h3 { font-size: 22px; }
.team-card .role { color: var(--red); font-family: var(--font-display); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.team-card p { color: var(--gray-500); font-size: 14px; }

/* ==================== BLOG / CAREER CARDS ==================== */
.blog-card, .career-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); }
.blog-card:hover, .career-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.blog-card .img-wrap { aspect-ratio: 16/10; overflow: hidden; background: var(--gray-100); }
.blog-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog-card:hover .img-wrap img { transform: scale(1.08); }
.blog-card .body { padding: 22px; }
.blog-card .meta { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--red); font-family: var(--font-display); font-weight: 600; margin-bottom: 8px; }
.blog-card h3 { font-size: 21px; margin-bottom: 10px; }
.blog-card p { color: var(--gray-500); font-size: 14px; }

.career-card { padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.career-card h3 { font-size: 22px; margin-bottom: 6px; }
.career-card .meta-row { display: flex; gap: 16px; flex-wrap: wrap; color: var(--gray-500); font-size: 14px; }
.career-card .meta-row span { display: flex; align-items: center; gap: 6px; }
.job-type-badge { background: var(--off-white); color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; padding: 6px 14px; border-radius: 30px; }

/* ==================== CTA BAND ==================== */
.cta-band {
    background: linear-gradient(120deg, var(--navy), var(--blue));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(115deg, rgba(228,35,44,.1) 0 40px, transparent 40px 80px);
}
.cta-band h2 { color: var(--white); font-size: clamp(28px,4vw,42px); margin-bottom: 16px; position: relative; }
.cta-band p { color: var(--gray-300); max-width: 560px; margin: 0 auto 30px; position: relative; }
.cta-band .btn-primary { position: relative; }

/* ==================== FOOTER ==================== */
.site-footer { background: var(--charcoal); color: var(--gray-300); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-grid h4 { color: var(--white); font-size: 16px; margin-bottom: 20px; letter-spacing: 1px; }
.footer-grid p, .footer-grid a { font-size: 14px; color: var(--gray-300); }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--red); }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { max-width: 280px; margin-bottom: 20px; }
.social-row { display: flex; gap: 12px; }
.social-row a {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.social-row a:hover { background: var(--red); border-color: var(--red); }
.social-row svg { width: 16px; height: 16px; fill: var(--white); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: 13px; }
.footer-bottom a { color: var(--gray-300); }

/* ==================== BREADCRUMB / PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(120deg, rgba(16,32,58,.92), rgba(44,79,135,.85)), url('../images/hero-bg.jpg') center/cover;
    color: var(--white);
    padding: 190px 0 70px;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute; right: -10%; bottom: -50%;
    width: 50%; height: 150%;
    background: repeating-linear-gradient(115deg, rgba(228,35,44,.08) 0 40px, transparent 40px 80px);
}
.page-header h1 { color: var(--white); font-size: clamp(34px,5vw,56px); position: relative; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--gray-300); margin-top: 12px; position: relative; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-display); }
.breadcrumb a:hover { color: var(--red); }

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; font-size: 13px; margin-bottom: 8px; color: var(--navy); }
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(228,35,44,.12); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-size: 14px; font-weight: 500; }
.alert-success { background: #E8F7EE; color: #1E8A4C; border: 1px solid #B7E7C6; }
.alert-error { background: #FDEAEA; color: var(--red-dark); border: 1px solid #F5C2C4; }

/* ==================== PRODUCT DETAIL ==================== */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.spec-table tr { border-bottom: 1px solid var(--gray-100); }
.spec-table td { padding: 14px 10px; font-size: 15px; }
.spec-table td:first-child { font-family: var(--font-display); font-weight: 600; color: var(--navy); width: 40%; text-transform: uppercase; letter-spacing: .5px; font-size: 13px; }

/* ==================== UTILS ==================== */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.badge-empty { text-align: center; padding: 60px 20px; color: var(--gray-500); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .grid-3, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 780px) {
    .main-nav { position: fixed; top: 0; right: -100%; width: 78%; max-width: 340px; height: 100vh; background: var(--navy); flex-direction: column; justify-content: center; gap: 28px; transition: right .4s ease; }
    .main-nav.open { right: 0; box-shadow: -10px 0 40px rgba(0,0,0,.3); }
    .nav-toggle { display: flex; }
    .hero-stats { flex-wrap: wrap; }
    .hero-stats .stat { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,.12); }
    .grid-3, .grid-2, .grid-4, .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row-2 { grid-template-columns: 1fr; }
    .career-card { flex-direction: column; align-items: flex-start; }
    .section { padding: 70px 0; }
}

/* ==================== LIGHTBOX ==================== */
.lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(16,32,58,.94);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
    z-index: 3000;
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lightbox-overlay img { max-width: 88%; max-height: 85vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: var(--white); font-size: 36px; cursor: pointer; }
[data-lightbox] { cursor: zoom-in; }
