/* Ace Credit Hire — one page, no framework. Brand colours and faces carried
   over from the original Nicepage build. */

/* Oswald and Open Sans (OFL), Latin subsets, variable weight; self-hosted */
@font-face {
    font-family: 'Oswald';
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/oswald-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Open Sans';
    font-weight: 300 800;
    font-display: swap;
    src: url('fonts/open-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --green: #0b9444;
    --green-dark: #087a37;
    /* white text needs 4.5:1; the brand green gives 3.9:1 */
    --green-deep: #08853b;
    --red: #e3141f;
    --red-dark: #c00f19;
    --ink: #1d2025;
    --charcoal: #292d33;
    --charcoal-2: #33383f;
    --text: #23262b;
    --muted: #5b6168;
    --paper: #ffffff;
    --mist: #f3f5f4;

    --display: 'Oswald', 'Arial Narrow', sans-serif;
    --body: 'Open Sans', system-ui, sans-serif;

    --wrap: 1140px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --header-h: 76px;
    --radius: 14px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font: 400 1.0625rem/1.65 var(--body);
    color: var(--text);
    background: var(--paper);
    text-rendering: optimizeLegibility;
}

h1, h2 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-wrap: balance;
    margin: 0;
}

h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }

p { margin: 0; }

a { color: inherit; }

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

::selection { background: var(--green); color: #fff; }

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
    border-radius: 4px;
}

.hero :focus-visible,
.call-bar:focus-visible { outline-color: #fff; }

.call-bar:focus-visible { outline-offset: -6px; }

.sprite { position: absolute; }

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wrap {
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
}

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

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

/* Buttons ---------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-height: 48px;
    padding: 0.7em 1.4em;
    font: 700 0.95rem/1 var(--body);
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 999px;
    transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
        border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn:active { transform: translateY(1px); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }

.btn-white { background: #fff; color: var(--ink); }
.btn-white .icon { color: var(--red); }
.btn-white:hover { background: var(--ink); color: #fff; }

.btn-ghost { color: #fff; border-color: rgb(255 255 255 / 0.55); }
.btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / 0.1); }


/* Header ----------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgb(255 255 255 / 0.96);
    box-shadow: 0 1px 0 rgb(0 0 0 / 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: var(--header-h);
}

.logo img { width: 168px; }

.site-nav {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
    font: 500 0.95rem/1 var(--display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav a {
    text-decoration: none;
    padding: 0.5rem 0;
    background: linear-gradient(var(--green), var(--green)) 0 100% / 0 2px no-repeat;
    transition: background-size 0.25s var(--ease-out);
}

.site-nav a:hover { background-size: 100% 2px; }

/* Hero ------------------------------------------------------------------- */

.hero {
    background: var(--green-deep);
    color: #fff;
    overflow: clip;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(3.5rem, 8vw, 6rem);
}

.hero h1 {
    font-size: clamp(2.9rem, 6.4vw, 5rem);
    max-width: 11ch;
}

.lede {
    margin-top: 1.4rem;
    max-width: 40ch;
    font-size: 1.15rem;
    color: #fff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.2rem;
}

.hero-art {
    position: relative;
    justify-self: end;
    width: min(100%, 460px);
    aspect-ratio: 1;
}

.photo {
    border-radius: 50%;
    background: var(--mist) center / cover no-repeat;
}

.photo-hero {
    position: absolute;
    inset: 0;
    border: 14px solid #fff;
    background-image: image-set(url("images/hero-circle-540.webp") 1x, url("images/hero-circle-1000.webp") 2x);
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.35);
}

.spade {
    position: absolute;
    left: 50%;
    bottom: -6%;
    translate: -50% 0;
    display: grid;
    place-items: center;
    width: 26%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 12px 24px -8px rgb(0 0 0 / 0.35);
}

.spade img { width: 52%; }

/* Services --------------------------------------------------------------- */

.services { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

.services-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.services-art {
    position: relative;
    aspect-ratio: 1 / 0.92;
}

.photo-road {
    position: absolute;
    right: 0;
    top: 0;
    width: 70%;
    aspect-ratio: 1;
    background-image: image-set(url("images/taxi-hire-circle-567.webp") 1x, url("images/taxi-hire-circle-853.webp") 2x);
}

.photo-wash {
    position: absolute;
    left: 0;
    bottom: 12%;
    width: 46%;
    aspect-ratio: 1;
    border: 10px solid #fff;
    background-image: image-set(url("images/taxi-hire-circle-sm-405.webp") 1x, url("images/taxi-hire-circle-sm-810.webp") 2x);
}

.photo-keys {
    position: absolute;
    left: 42%;
    bottom: 0;
    width: 28%;
    aspect-ratio: 1;
    border: 10px solid var(--green);
    background-image: image-set(url("images/taxi-hire-circle-xs-244.webp") 1x, url("images/taxi-hire-circle-xs-488.webp") 2x);
}

.dot, .ring {
    position: absolute;
    border-radius: 50%;
}

.dot-red { left: 3%; top: 8%; width: 11%; aspect-ratio: 1; background: var(--red); }
.ring-red { right: 9%; bottom: 10%; width: 9%; aspect-ratio: 1; border: 8px solid var(--red); }

.services-copy h2 { margin-bottom: 1rem; }

.checks {
    list-style: none;
    margin: 1.5rem 0 2.2rem;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.checks li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.checks .icon {
    color: var(--red);
    stroke-width: 3;
}

/* Steps ------------------------------------------------------------------ */

.steps {
    position: relative;
    background: var(--charcoal);
    color: #fff;
    padding-block: clamp(4.5rem, 9vw, 7rem);
    overflow: clip;
}

.steps::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(940px, 82vw);
    aspect-ratio: 1.8;
    translate: -50% -50%;
    background: var(--green);
    border-radius: 47% 53% 42% 58% / 52% 38% 62% 48%;
}

.steps .wrap { position: relative; }

.steps h2 {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.step-list li {
    background: #fff;
    color: var(--text);
    padding: 2.25rem 1.75rem 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.45);
}

.step-num {
    display: block;
    font: 700 3.25rem/1 var(--display);
    color: var(--ink);
    margin-bottom: 1rem;
}

.step-list a {
    color: var(--red);
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.step-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* About ------------------------------------------------------------------ */

.about { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.about-copy h2 { margin-bottom: 1.25rem; }

.about-copy p {
    max-width: 40ch;
    font-size: 1.15rem;
    color: var(--muted);
}

.about-art {
    position: relative;
    aspect-ratio: 1;
    width: min(100%, 480px);
    justify-self: end;
}

.ring-green { left: 2%; top: 0; width: 34%; aspect-ratio: 1; border: 26px solid var(--green); }

.photo-driver {
    position: absolute;
    right: 0;
    top: 10%;
    width: 72%;
    aspect-ratio: 1;
    background-image: image-set(url("images/about-circle-510.webp") 1x, url("images/about-circle-1020.webp") 2x);
}

.photo-street {
    position: absolute;
    left: 0;
    bottom: 2%;
    width: 40%;
    aspect-ratio: 1;
    border: 12px solid var(--red);
    background-image: image-set(url("images/about-circle-sm-279.webp") 1x, url("images/about-circle-sm-558.webp") 2x);
    box-shadow: 0 16px 32px -12px rgb(0 0 0 / 0.35);
}

.dot-green { right: 10%; bottom: 0; width: 12%; aspect-ratio: 1; background: var(--green); }

/* Contact ---------------------------------------------------------------- */

.contact {
    background: var(--charcoal);
    color: #fff;
    padding-block: clamp(4.5rem, 9vw, 7rem);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.contact h2 {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    padding-bottom: 1.25rem;
    border-bottom: 6px solid var(--green);
    justify-self: start;
}

.contact-card {
    background: #fff;
    color: var(--ink);
    border-radius: var(--radius);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    display: grid;
    gap: 0.9rem;
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6);
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-line .icon { color: var(--green); }

.contact-line.big {
    font: 700 clamp(1.7rem, 3.6vw, 2.4rem)/1.15 var(--display);
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.contact-line.big .icon { color: var(--red); }

a.contact-line:hover { color: var(--green-dark); }

/* Footer ----------------------------------------------------------------- */

.site-footer {
    background: var(--ink);
    color: rgb(255 255 255 / 0.7);
    padding-block: 2rem;
    font-size: 0.875rem;
    text-align: center;
}

.call-bar { display: none; }

/* Small screens ---------------------------------------------------------- */

@media (max-width: 860px) {
    .site-nav { display: none; }
    .header-call { margin-left: auto; }

    .hero-inner,
    .services-inner,
    .about-inner,
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .hero-art {
        justify-self: center;
        width: min(78%, 360px);
        margin-bottom: 1.5rem;
    }

    .services-art { max-width: 520px; }

    .step-list { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }

    .about-art { justify-self: center; }

    .steps::before { display: none; }
}

@media (max-width: 560px) {
    :root { --header-h: 64px; }

    .logo img { width: 136px; }

    .header-call { display: none; }

    .hero-actions .btn { flex: 1 1 100%; }

    .site-footer { padding-bottom: calc(2rem + 64px + env(safe-area-inset-bottom)); }

    .call-bar {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        height: calc(64px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--red);
        color: #fff;
        font: 700 1.05rem/1 var(--body);
        text-decoration: none;
        box-shadow: 0 -8px 24px -12px rgb(0 0 0 / 0.4);
    }
}

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