/* ============================================
   A & B Radiator & Auto Repair — Styles
   Deep Navy + Warm Gold | Clean Minimalist
   ============================================ */

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

:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --navy-mid: #334155;
    --gold: #c9a84c;
    --gold-light: #d4b968;
    --gold-pale: #f5e6b8;
    --cream: #faf8f4;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--gray-700);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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

/* --- Top Line --- */
.top-line {
    height: 2px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 50%, var(--navy) 100%);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 2px;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.header.scrolled {
    border-bottom-color: var(--gray-200);
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.06);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 2px;
}

.logo-mark {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.logo-tag {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--gray-500);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-600);
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
    color: var(--navy);
}

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

/* Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--navy);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Hero --- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.12;
    color: var(--navy);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: var(--gold);
}

.hero-sub {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--gray-600);
    max-width: 480px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

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

.hero-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    overflow: hidden;
}

.hero-img-wrapper img {
    width: 100%;
    height: 820px;
    object-fit: cover;
    border-radius: 2px;
}

.hero-img-accent {
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 60%;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.hero-badge {
    position: absolute;
    bottom: 24px;
    right: -24px;
    background: var(--navy);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 2px;
}

.badge-year {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
}

.badge-text {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
}

/* --- Section Shared --- */
.section-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    line-height: 1.18;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

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

.section-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-500);
    max-width: 520px;
    font-weight: 300;
}

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

.section-header {
    max-width: 600px;
    margin-bottom: 64px;
}

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

.service-card {
    padding: 36px 32px;
    border: 1px solid var(--gray-200);
    border-radius: 2px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--gold);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-500);
    font-weight: 300;
}

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

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

.about-img-group {
    position: relative;
}

.about-img-main {
    border-radius: 2px;
    overflow: hidden;
}

.about-img-main img {
    width: 100%;
    height: 680px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border: 4px solid var(--cream);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.about-img-secondary img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.about-stamp {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 56px;
    height: 56px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.about-content-col .section-title {
    margin-bottom: 24px;
}

.about-divider {
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 28px;
}

.about-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 20px;
    font-weight: 300;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    background: var(--gray-200);
    align-self: stretch;
}

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

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.why-us-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.why-us-content .section-title {
    margin-bottom: 24px;
}

.why-us-divider {
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 36px;
}

.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-bullet {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 8px;
}

.why-list strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 4px;
}

.why-list span {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--gray-400);
    font-weight: 300;
}

.why-us-visual img {
    width: 100%;
    height: 640px;
    object-fit: cover;
    border-radius: 2px;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-divider {
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 50%;
    color: var(--gold);
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--gray-700);
    font-weight: 300;
}

.contact-item a:hover {
    color: var(--gold);
}

/* Form */
.contact-form-col {
    background: var(--cream);
    padding: 48px;
    border-radius: 2px;
    border: 1px solid var(--gray-200);
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-desc {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: 32px;
    font-weight: 300;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

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

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

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--gold);
    border-radius: 2px;
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--navy);
}

.form-success svg {
    color: var(--gold);
    min-width: 20px;
}

/* --- Footer --- */
.footer {
    background: var(--navy);
    padding: 64px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-mark {
    color: var(--white);
    font-size: 1.5rem;
}

.footer-brand .logo-tag {
    color: var(--gray-400);
}

.footer-tagline {
    margin-top: 16px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--gray-500);
    font-weight: 300;
    max-width: 280px;
}

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

.footer-links a {
    font-size: 0.88rem;
    color: var(--gray-400);
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact a {
    font-size: 0.88rem;
    color: var(--gray-400);
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-contact span {
    font-size: 0.88rem;
    color: var(--gray-500);
    font-weight: 300;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--gray-600);
    font-weight: 300;
    letter-spacing: 0.02em;
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }

    .hero-img-wrapper img {
        height: 600px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .why-us-inner,
    .contact-grid {
        gap: 48px;
    }

    .about-img-secondary {
        right: -20px;
        bottom: -20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transition: right 0.4s var(--ease-out);
        box-shadow: -10px 0 40px rgba(15, 23, 42, 0.1);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

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

    .hero-image {
        order: -1;
    }

    .hero-img-wrapper img {
        height: 420px;
    }

    .hero-badge {
        right: 16px;
        bottom: 16px;
    }

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

    .about-grid,
    .why-us-inner,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-img-secondary {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 16px;
    }

    .about-img-main img {
        height: 400px;
    }

    .about-img-secondary img {
        height: 200px;
    }

    .why-us-visual img {
        height: 400px;
    }

    .contact-form-col {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

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

    .stat-divider {
        width: 100%;
        height: 1px;
    }
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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