/* ========================================
   ANAND TRUCK REPAIR — Classic & Elegant
   Palette: Midnight Blue (#0A1F3F) + Mint (#5BC0A2)
   Fonts: Playfair Display + Inter
======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-midnight: #0A1F3F;
    --color-midnight-light: #132D54;
    --color-midnight-dark: #061429;
    --color-mint: #5BC0A2;
    --color-mint-light: #7DD4BA;
    --color-mint-dark: #4A9E85;
    --color-cream: #F5F1EB;
    --color-cream-light: #FAF7F2;
    --color-warm-gray: #8A8580;
    --color-text: #1A1A1A;
    --color-text-light: #5A5A5A;
    --color-white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(10,31,63,0.08);
    --shadow-md: 0 4px 20px rgba(10,31,63,0.10);
    --shadow-lg: 0 8px 40px rgba(10,31,63,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-cream-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-mint);
    margin-bottom: 12px;
}

.section-eyebrow--light {
    color: var(--color-mint-light);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-midnight);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title--light {
    color: var(--color-white);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 560px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header--light {
    margin-bottom: 56px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-mint);
    color: var(--color-midnight);
}

.btn--primary:hover {
    background: var(--color-mint-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91,192,162,0.35);
}

.btn--ghost {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255,255,255,0.4);
}

.btn--ghost:hover {
    border-color: var(--color-white);
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.btn--ghost-light {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255,255,255,0.5);
}

.btn--ghost-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 0.95rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(10, 31, 63, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    transition: padding 0.4s ease;
}

.nav.scrolled .nav__inner {
    padding: 14px 0;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav__logo-text {
    display: none;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-mint);
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: var(--color-white);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    padding: 8px 20px;
    border: 1.5px solid rgba(91,192,162,0.5);
    border-radius: var(--radius-sm);
    color: var(--color-mint);
    transition: all 0.3s ease;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--color-mint);
    color: var(--color-midnight);
    border-color: var(--color-mint);
}

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav__toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 20, 41, 0.88) 0%,
        rgba(10, 31, 63, 0.75) 50%,
        rgba(10, 31, 63, 0.55) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-mint);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 800px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero__headline em {
    font-style: italic;
    color: var(--color-mint-light);
}

.hero__subhead {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.75);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollLine 2s ease infinite;
}

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

@keyframes scrollLine {
    0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--color-cream-light);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: all 0.4s ease;
    border: 1px solid rgba(10,31,63,0.06);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(91,192,162,0.1);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-midnight);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card__desc {
    font-size: 0.925rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--color-white);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__image {
    position: relative;
}

.about__image img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about__image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--color-mint);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.about__content {
    padding: 8px 0;
}

.about__text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(10,31,63,0.08);
}

.about__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about__stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-midnight);
    line-height: 1;
}

.about__stat-label {
    font-size: 0.8rem;
    color: var(--color-warm-gray);
    line-height: 1.5;
}

/* --- Why Us --- */
.why-us {
    padding: 100px 0;
    background: var(--color-midnight);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91,192,162,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    position: relative;
}

.why-card {
    padding: 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    transition: all 0.4s ease;
}

.why-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(91,192,162,0.3);
    transform: translateY(-4px);
}

.why-card__number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(91,192,162,0.2);
    line-height: 1;
    margin-bottom: 16px;
}

.why-card__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.why-card__desc {
    font-size: 0.925rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
}

/* --- CTA --- */
.cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
}

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

.cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,20,41,0.92) 0%, rgba(10,31,63,0.85) 100%);
}

.cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta__text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    line-height: 1.7;
}

.cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--color-cream);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact__detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(91,192,162,0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact__detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-warm-gray);
    margin-bottom: 2px;
}

.contact__detail-value {
    display: block;
    font-size: 0.95rem;
    color: var(--color-midnight);
    line-height: 1.6;
}

.contact__link {
    color: var(--color-mint-dark);
    transition: color 0.3s ease;
}

.contact__link:hover {
    color: var(--color-mint);
}

/* Form */
.contact__form-wrap {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.contact__form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-midnight);
    margin-bottom: 8px;
}

.contact__form-sub {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

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

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-midnight);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-cream-light);
    border: 1.5px solid rgba(10,31,63,0.1);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-mint);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(91,192,162,0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-warm-gray);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(91,192,162,0.1);
    border: 1px solid rgba(91,192,162,0.3);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--color-mint-dark);
    font-weight: 500;
}

.form-success.visible {
    display: flex;
}

/* --- Map Section --- */
.map-section {
    background: var(--color-midnight-dark);
}

.map-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.map-section__content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.map-section__content .section-subtitle {
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.map-section__image {
    overflow: hidden;
}

.map-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

/* --- Footer --- */
.footer {
    background: var(--color-midnight-dark);
    padding: 64px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer__tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--color-mint);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__phone {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-mint);
}

.footer__email {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.3s ease;
}

.footer__email:hover {
    color: var(--color-mint-light);
}

.footer__address {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
}

.footer__bottom p {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (min-width: 768px) {
    .nav__logo-text {
        display: inline;
    }
}

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

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--color-midnight);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }

    .nav__links.open {
        transform: translateX(0);
    }

    .nav__link {
        font-size: 1rem;
    }

    .nav__link--cta {
        text-align: center;
        width: 100%;
    }

    .hero__headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image img {
        height: 350px;
    }

    .about__stats {
        gap: 32px;
    }

    .why-us__grid {
        grid-template-columns: 1fr;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact__form-wrap {
        padding: 32px 24px;
    }

    .map-section__inner {
        grid-template-columns: 1fr;
    }

    .map-section__content {
        padding: 56px 24px;
    }

    .map-section__image img {
        min-height: 250px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        justify-content: center;
    }

    .cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .about__stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}
