/* ========================================
   PETE'S AUTO REPAIR — BRAND STYLES
   Deep Navy (#0A1628) + Warm Gold (#C9A227)
   Editorial serif / clean sans pairing
======================================== */

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

:root {
    --navy: #0A1628;
    --navy-light: #132240;
    --navy-mid: #1A2D4A;
    --gold: #C9A227;
    --gold-light: #D4B44A;
    --gold-dark: #A8851E;
    --cream: #F5F0E8;
    --cream-light: #FAF7F2;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #6B7280;
    --text-light: #F5F0E8;
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.16);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
}

/* --- Section Headings --- */
.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--navy);
    margin-bottom: 20px;
}

.section-title span {
    color: var(--gold);
    font-style: italic;
}

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

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

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

/* ========================================
   NAVBAR
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-cta {
    background: var(--gold) !important;
    color: var(--navy) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}

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

.nav-cta:hover {
    background: var(--gold-light) !important;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO
======================================== */
.hero {
    min-height: 100vh;
    background: var(--navy);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 162, 39, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(201, 162, 39, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: 40px 0;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.hero-headline {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--white);
    line-height: 1.0;
    margin-bottom: 24px;
    font-weight: 900;
}

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

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

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

.hero-trust {
    display: flex;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-item svg {
    color: var(--gold);
    flex-shrink: 0;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: 0;
}

/* ========================================
   SERVICES
======================================== */
.services {
    padding: 120px 0;
    background: var(--cream-light);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

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

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(10, 22, 40, 0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: var(--transition);
}

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

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

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.375rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ========================================
   ABOUT
======================================== */
.about {
    padding: 120px 0;
    background: var(--white);
}

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

.about-image {
    position: relative;
}

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

.about-image-overlay {
    position: absolute;
    bottom: -32px;
    right: -32px;
    background: var(--navy);
    padding: 32px 40px;
    border-radius: var(--radius-md);
    border: 2px solid var(--gold);
}

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

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    line-height: 1.4;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-values {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--navy);
}

.value-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ========================================
   WHY US
======================================== */
.why-us {
    padding: 120px 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 0% 100%, rgba(201, 162, 39, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

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

.why-card {
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(201, 162, 39, 0.35);
    transform: translateY(-4px);
}

.why-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(201, 162, 39, 0.2);
    line-height: 1;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.why-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ========================================
   CTA / CONTACT
======================================== */
.cta {
    padding: 120px 0;
    background: var(--cream);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.cta-text {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-phone,
.cta-email {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--navy);
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(10, 22, 40, 0.06);
    transition: var(--transition);
}

.cta-phone:hover,
.cta-email:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.cta-phone svg,
.cta-email svg {
    color: var(--gold);
    flex-shrink: 0;
}

.cta-address {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(10, 22, 40, 0.06);
}

.cta-address svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* Form */
.cta-form-wrapper {
    position: relative;
}

.cta-form-bg {
    position: absolute;
    top: -16px;
    left: -16px;
    right: -16px;
    bottom: -16px;
    background: var(--navy);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.cta-form {
    position: relative;
    z-index: 1;
    background: var(--navy);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.form-title {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.08);
}

.form-group select {
    appearance: none;
    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='%23C9A227' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--navy);
    color: var(--white);
}

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

.form-note {
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 16px;
}

.form-success {
    position: relative;
    z-index: 1;
    background: var(--navy);
    padding: 64px 48px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(201, 162, 39, 0.2);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 50%;
}

.form-success h3 {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 12px;
}

.form-success p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--navy);
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-info p,
.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

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

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

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   SCROLL REVEAL (progressive enhancement)
======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        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; }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

    .hero-headline {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

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

    .about-container {
        gap: 48px;
    }

    .cta-container {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateY(-120%);
        transition: var(--transition);
        border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .hero-image {
        order: -1;
    }

    .hero-image img {
        height: 400px;
    }

    .hero-image-accent {
        width: 120px;
        height: 120px;
        bottom: -12px;
        right: -12px;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-trust {
        gap: 20px;
    }

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

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-image-overlay {
        bottom: -20px;
        right: -12px;
        padding: 24px 28px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

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

    .cta-container {
        grid-template-columns: 1fr;
    }

    .cta-form {
        padding: 32px 24px;
    }

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

    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

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

    .hero {
        padding-top: 72px;
    }

    .hero-content {
        padding: 24px 0;
    }

    .services,
    .about,
    .why-us,
    .cta {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .why-card {
        padding: 32px 24px;
    }

    .why-number {
        font-size: 3rem;
    }
}
