/* ==========================================================================
   Carr Detailing - site styles
   Hand-written, no framework. The palette is taken from the logo: chrome
   silver on near-black, with the steel blue of the water spray as the accent.
   (The spray samples at roughly #7190AE; the accent below is the same hue,
   pushed brighter so buttons still carry contrast.) Dark only - no light
   variant, because the logo is built for a dark ground.
   ========================================================================== */

:root {
    --ink: #0b0d11;
    --surface: #121620;
    --surface-2: #171c27;
    --surface-3: #1e2431;
    --line: #262d3b;
    --text: #eef1f6;
    --muted: #98a2b3;

    /* Kept as raw channels so rgba() alphas below stay in one place. */
    --accent-rgb: 77, 140, 203;
    --accent: #4d8ccb;
    --accent-bright: #83b3e2;
    --accent-dim: rgba(var(--accent-rgb), .14);

    /* Chrome ramp, echoing the logo's beveled metal for the wordmark. */
    --chrome-top: #ffffff;
    --chrome-high: #e2e9f1;
    --chrome-mid: #98a3b2;
    --chrome-low: #f2f6fa;

    --danger: #ff6b6b;
    --success: #48d597;

    --shell: 1140px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);

    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
    margin: 0 0 .6em;
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.muted { color: var(--muted); }

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #04070d;
    padding: 10px 16px;
    z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
}

/* --------------------------------------------------------------- header -- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 13, 17, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    margin-right: auto;
}

.brand-mark {
    height: 44px;
    width: auto;
    flex: none;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .6));
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
    font-size: 1.04rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--text);
}

/* Chrome-gradient text to echo the logo's beveled metal. Gated behind
   @supports because without background-clip the transparent fill would
   render the wordmark invisible rather than merely un-styled. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .brand-name {
        background: linear-gradient(180deg, var(--chrome-top) 0%, var(--chrome-high) 36%, var(--chrome-mid) 62%, var(--chrome-low) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}

.brand-sub {
    font-size: .56rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3em;
    color: var(--muted);
    margin-top: 3px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav > a {
    color: var(--muted);
    font-size: .96rem;
    font-weight: 500;
    padding: 9px 13px;
    border-radius: 9px;
}
.site-nav > a:hover { color: var(--text); background: var(--surface-2); }
.site-nav > a.current { color: var(--text); background: var(--accent-dim); }
.nav-cta { margin-left: 10px; }
.site-nav > a.nav-cta { color: #04070d; }
.site-nav > a.nav-cta:hover { color: #04070d; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 40px;
    padding: 0 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

/* --------------------------------------------------------------- buttons - */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: .98rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(160deg, var(--accent-bright), var(--accent));
    color: #04070d;
    box-shadow: 0 8px 22px rgba(var(--accent-rgb),.28);
}
.btn-primary:hover { color: #04070d; filter: brightness(1.08); }

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: #37415a; color: var(--text); }

.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* ------------------------------------------------------------------ hero - */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 11vw, 132px) 0 clamp(60px, 9vw, 104px);
    background:
        radial-gradient(900px 460px at 78% -8%, rgba(var(--accent-rgb),.22), transparent 62%),
        radial-gradient(620px 380px at 8% 108%, rgba(var(--accent-rgb),.09), transparent 65%),
        linear-gradient(180deg, #0d1018, var(--ink));
}

/* Diagonal "polish" sweep across the hero - the one purely decorative
   flourish on the page, kept subtle enough to read as a highlight. */
.hero::after {
    content: "";
    position: absolute;
    inset: -40% -10%;
    background: linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, .05) 50%, transparent 56%);
    pointer-events: none;
}

/* The home hero is brand-first: the full logo lockup leads, so the layout
   centers on it rather than running left-aligned like the inner pages. */
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.hero-logo {
    width: min(430px, 76vw);
    height: auto;
    margin: 0 auto 30px;
    filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .65));
}

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-bright);
    background: var(--accent-dim);
    border: 1px solid rgba(var(--accent-rgb),.25);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero p.lede {
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    color: var(--muted);
    max-width: 620px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
    justify-content: center;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: .95rem;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

/* -------------------------------------------------------------- sections - */

.section { padding: clamp(56px, 8vw, 92px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.page-head {
    padding: clamp(52px, 7vw, 84px) 0 clamp(32px, 4vw, 48px);
    background: linear-gradient(180deg, #0f131c, var(--ink));
    border-bottom: 1px solid var(--line);
}
.page-head p { color: var(--muted); max-width: 640px; margin-bottom: 0; }

/* ----------------------------------------------------------------- cards - */

.grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin-bottom: 0; }

.card-tag {
    display: inline-block;
    margin-top: 18px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent-bright);
}

.step-num {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: var(--accent-dim);
    border: 1px solid rgba(var(--accent-rgb),.25);
    color: var(--accent-bright);
    font-weight: 700;
}

/* -------------------------------------------------------------- pricing -- */

.price-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
    align-items: start;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    /* Top padding reserves the badge's row on every card, badged or not, so
       the tier names and prices line up across the row. */
    padding: 50px 28px 32px;
    height: 100%;
}

.price-card.featured {
    border-color: rgba(var(--accent-rgb),.5);
    background: linear-gradient(180deg, rgba(var(--accent-rgb),.09), var(--surface-2) 42%);
    box-shadow: var(--shadow);
}

.price-badge {
    position: absolute;
    top: 20px;
    left: 28px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #04070d;
    background: var(--accent);
    padding: 4px 11px;
    border-radius: 999px;
}

.price-amount {
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    margin: 6px 0 4px;
}
.price-from { font-size: .84rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.price-summary { color: var(--muted); font-size: .96rem; }

.feature-list {
    list-style: none;
    margin: 22px 0 28px;
    padding: 0;
    display: grid;
    gap: 11px;
    font-size: .95rem;
}
.feature-list li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    color: #cfd6e2;
}
.feature-list li::before {
    content: "";
    width: 16px;
    height: 16px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid rgba(var(--accent-rgb),.45);
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 6px 6px;
    background-repeat: no-repeat;
    background-position: center;
}

.price-card .btn { margin-top: auto; width: 100%; }

.price-note {
    margin-top: 34px;
    padding: 20px 24px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: .95rem;
}
.price-note p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- gallery -- */

.gallery-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface-2);
    aspect-ratio: 4 / 3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px 16px 13px;
    background: linear-gradient(180deg, transparent, rgba(6, 8, 12, .88));
    font-size: .92rem;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 64px 28px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--muted);
}
.empty-state h3 { color: var(--text); }
.empty-state code {
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: .9rem;
    color: var(--accent-bright);
}

/* ---------------------------------------------------------------- forms -- */

.form-layout {
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: start;
}

.form-panel {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 38px);
}

.field { margin-bottom: 20px; }
.field label {
    display: block;
    margin-bottom: 7px;
    font-size: .92rem;
    font-weight: 600;
    color: #c7cfdd;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    font-size: .98rem;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.16);
}
.field input::placeholder, .field textarea::placeholder { color: #5d6779; }

/* Native date/select controls render white-on-white in a dark theme in some
   browsers unless the scheme is declared. */
.field input[type="date"], .field select { color-scheme: dark; }

.field-row {
    display: grid;
    gap: 0 20px;
    grid-template-columns: 1fr 1fr;
}

.field-error { color: var(--danger); font-size: .88rem; display: block; margin-top: 6px; }
.field input.input-validation-error,
.field select.input-validation-error,
.field textarea.input-validation-error { border-color: var(--danger); }

.form-alert {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(255, 107, 107, .1);
    border: 1px solid rgba(255, 107, 107, .35);
    color: #ffc9c9;
    font-size: .95rem;
}
.form-alert ul { margin: 0; padding-left: 18px; }
.form-alert:empty { display: none; }

/* The honeypot. Hidden from people, still submitted by naive bots. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.aside-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 18px;
}
.aside-card h3 { font-size: 1rem; }
.aside-card p:last-child { margin-bottom: 0; }

.contact-line {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.contact-line:last-child { border-bottom: none; }
.contact-line .label {
    flex: none;
    width: 74px;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* -------------------------------------------------------------- callout -- */

.cta-band {
    background:
        radial-gradient(700px 300px at 50% 0%, rgba(var(--accent-rgb),.2), transparent 70%),
        var(--surface);
    border-block: 1px solid var(--line);
    text-align: center;
    padding: clamp(52px, 7vw, 80px) 0;
}
.cta-band p { color: var(--muted); max-width: 520px; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

.confirm {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(60px, 9vw, 110px) 0;
}
.confirm-mark {
    width: 68px;
    height: 68px;
    margin: 0 auto 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(72, 213, 151, .12);
    border: 1px solid rgba(72, 213, 151, .4);
    color: var(--success);
    font-size: 2rem;
}

/* --------------------------------------------------------------- footer -- */

.site-footer {
    background: #080a0e;
    border-top: 1px solid var(--line);
    padding: 56px 0 0;
    font-size: .95rem;
}

.footer-grid {
    display: grid;
    gap: 34px;
    grid-template-columns: 1.6fr 1fr 1fr;
    padding-bottom: 40px;
}
.footer-logo { width: 190px; height: auto; margin-bottom: 16px; }
.site-footer h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-footer p { margin-bottom: .5em; }

ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.plain a { color: #c7cfdd; }
ul.plain a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    padding-bottom: 26px;
    color: var(--muted);
    font-size: .88rem;
}

.prose { max-width: 720px; }
.prose h2 { margin-top: 1.8em; font-size: 1.35rem; }
.prose li { margin-bottom: .5em; }

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 920px) {
    .form-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px 24px 22px;
        background: var(--ink);
        border-bottom: 1px solid var(--line);
    }
    .site-nav.open { display: flex; }
    .site-nav > a { padding: 12px 14px; }
    .nav-cta { margin-left: 0; margin-top: 8px; }

    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }

    /* Keep the brand lockup from crowding out the menu button at 375px. */
    .brand-mark { height: 36px; }
    .brand-name { font-size: .92rem; letter-spacing: .1em; }
    .brand-sub { letter-spacing: .22em; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
