/* ============================================
   Amarillo APU — Trailer Parts & Service
   Clean minimalist · Midnight blue + Mint
   ============================================ */

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

:root {
    --midnight-950: #060D18;
    --midnight-900: #0A1628;
    --midnight-800: #0F1F36;
    --midnight-700: #162A4A;
    --midnight-600: #1D3660;
    --midnight-500: #244170;

    --mint-400: #34D4A8;
    --mint-500: #2BC496;
    --mint-600: #23A880;

    --surface-50: #F7F8FA;
    --surface-100: #EFF1F5;
    --surface-200: #E2E6EE;
    --surface-300: #C8CED8;

    --ink-950: #0A1628;
    --ink-800: #1A2744;
    --ink-700: #2C3E5A;
    --ink-600: #3D5270;
    --ink-400: #6B7F9E;
    --ink-300: #8A9BB5;
    --ink-200: #A8B5C8;

    --white: #FFFFFF;

    --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(10,22,40,0.06), 0 1px 2px rgba(10,22,40,0.04);
    --shadow-md: 0 4px 16px rgba(10,22,40,0.08), 0 2px 6px rgba(10,22,40,0.04);
    --shadow-lg: 0 12px 40px rgba(10,22,40,0.12), 0 4px 12px rgba(10,22,40,0.06);
    --shadow-mint: 0 4px 20px rgba(52,212,168,0.25);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

ul { list-style: none; }

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--midnight-900);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: 1rem;
}

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

/* --- Typography --- */
.section-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mint-500);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink-950);
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.0625rem;
    color: var(--ink-600);
    max-width: 560px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--mint-400);
    outline-offset: 2px;
}

.btn-mint {
    background: var(--mint-400);
    color: var(--midnight-950);
    border-color: var(--mint-400);
}
.btn-mint:hover {
    background: var(--mint-500);
    border-color: var(--mint-500);
    box-shadow: var(--shadow-mint);
    transform: translateY(-1px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.35);
}
.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
}

.btn-lg {
    padding: 0.9375rem 2.25rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-200);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: var(--midnight-900);
    border-radius: var(--radius-sm);
    position: relative;
    flex-shrink: 0;
}
.logo-mark::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: var(--mint-400);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    border-radius: 1px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ink-950);
}
.logo-accent {
    color: var(--mint-500);
}

/* Nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}
.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink-700);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-list a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ink-600);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-list a:hover {
    color: var(--ink-950);
    background: var(--surface-100);
}
.btn-nav {
    margin-left: 0.5rem;
    padding: 0.5rem 1.125rem;
    font-size: 0.8125rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    background: var(--midnight-900);
    padding: 8rem 0 0;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(52,212,168,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52,212,168,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-card {
    max-width: 680px;
    padding: 3rem 3.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mint-400);
    background: rgba(52,212,168,0.1);
    border: 1px solid rgba(52,212,168,0.2);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4.5vw, 2.75rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink-200);
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: all var(--transition);
}
.stat-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(52,212,168,0.2);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--mint-400);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--ink-300);
    letter-spacing: 0.02em;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: 60px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: var(--surface-50);
    padding: 6rem 0;
}

.services .section-label,
.services .section-title,
.services .section-sub {
    margin-bottom: 0;
}

.services > .container > .section-label,
.services > .container > .section-title {
    margin-bottom: 0.5rem;
}
.services > .container > .section-sub {
    margin-bottom: 3rem;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--surface-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}
.service-card:hover {
    border-color: var(--mint-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.service-icon {
    width: 44px;
    height: 44px;
    color: var(--mint-500);
    margin-bottom: 1.25rem;
}
.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--ink-950);
    margin-bottom: 0.625rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--ink-600);
    line-height: 1.65;
}

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

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

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

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

.about-content .section-label { margin-bottom: 0.75rem; }
.about-content .section-title { margin-bottom: 1.25rem; }
.about-content > p {
    font-size: 1rem;
    color: var(--ink-600);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--ink-700);
}

.about-feature svg {
    width: 18px;
    height: 18px;
    color: var(--mint-500);
    flex-shrink: 0;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
    background: var(--midnight-900);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(52,212,168,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52,212,168,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.why-us .container {
    position: relative;
    z-index: 1;
}

.why-us .section-label { margin-bottom: 0.75rem; }
.why-us .section-title {
    color: var(--white);
    margin-bottom: 3rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.why-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}
.why-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(52,212,168,0.15);
    transform: translateY(-2px);
}

.why-number {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--mint-400);
    display: block;
    margin-bottom: 0.875rem;
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.625rem;
}

.why-card p {
    font-size: 0.9375rem;
    color: var(--ink-300);
    line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: var(--surface-50);
    padding: 5rem 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-title {
    margin-bottom: 0.5rem;
}

.cta-sub {
    font-size: 1rem;
    color: var(--ink-600);
    line-height: 1.7;
    max-width: 480px;
}

.cta-actions {
    display: flex;
    gap: 0.875rem;
    flex-shrink: 0;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--white);
    padding: 6rem 0;
}

.contact .section-label { margin-bottom: 0.75rem; }
.contact .section-title {
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: var(--mint-500);
    flex-shrink: 0;
}
.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item h3 {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-400);
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.9375rem;
    color: var(--ink-700);
    line-height: 1.65;
}
.contact-item a:hover {
    color: var(--mint-500);
}

.map-wrap {
    margin-top: 0.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--surface-50);
    border: 1px solid var(--surface-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.contact-form-wrap h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink-950);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.125rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-700);
    margin-bottom: 0.375rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--ink-950);
    background: var(--white);
    border: 1.5px solid var(--surface-200);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--mint-400);
    box-shadow: 0 0 0 3px rgba(52,212,168,0.1);
}

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

.form-note {
    font-size: 0.8125rem;
    color: var(--ink-400);
    margin-top: 0.75rem;
    text-align: center;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    gap: 1rem;
}
.form-success svg {
    width: 56px;
    height: 56px;
}
.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink-950);
}
.form-success p {
    font-size: 0.9375rem;
    color: var(--ink-600);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--midnight-900);
    padding: 4rem 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.875rem;
    display: block;
}
.footer-brand p {
    font-size: 0.875rem;
    color: var(--ink-300);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-300);
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a,
.footer-contact a {
    font-size: 0.875rem;
    color: var(--ink-200);
    transition: color var(--transition);
}
.footer-links a:hover,
.footer-contact a:hover {
    color: var(--mint-400);
}

.footer-contact li:not(:last-child) a {
    margin-bottom: 0.125rem;
}
.footer-contact li:last-child {
    font-size: 0.875rem;
    color: var(--ink-300);
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.5rem 0;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--ink-400);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        border-bottom: 1px solid var(--surface-200);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }
    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-list a {
        padding: 0.75rem 0.5rem;
        font-size: 1rem;
    }
    .btn-nav {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
        width: 100%;
    }

    .hero {
        padding: 7rem 0 0;
        min-height: auto;
    }
    .hero-card {
        padding: 2rem;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-card {
        padding: 1.125rem 1rem;
    }
    .stat-number {
        font-size: 1.375rem;
    }

    .services {
        padding: 4rem 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about {
        padding: 4rem 0;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-image-wrap img {
        height: 300px;
    }
    .about-features {
        grid-template-columns: 1fr;
    }

    .why-us {
        padding: 4rem 0;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 3.5rem 0;
    }
    .cta-inner {
        flex-direction: column;
        text-align: center;
        align-items: flex-start;
    }
    .cta-actions {
        width: 100%;
        justify-content: center;
    }

    .contact {
        padding: 4rem 0;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-card {
        padding: 1.5rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .contact-form-wrap {
        padding: 1.5rem;
    }
}
</style>
