/* Waipu Motors — brand layer on top of Bootstrap 5. Mobile-first. */

@font-face {
    font-family: "Anton";
    src: url("../fonts/anton-latin-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --wm-yellow: #efbd0a;
    --wm-yellow-dark: #c99d00;
    --wm-black: #111111;
    --wm-ink: #1d1d1d;
    --wm-grey: #5c5c5c;
    --wm-light: #f6f4ee;
    --wm-line: #e4e1d8;
    --wm-white: #ffffff;
    --wm-radius: 10px;
    --wm-heading: "Anton", "Arial Narrow", Impact, sans-serif;
    --wm-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-body-font-family: var(--wm-body);
    --bs-body-color: var(--wm-ink);
    --bs-link-color-rgb: 17, 17, 17;
    --bs-link-hover-color-rgb: 0, 0, 0;
}

body {
    font-family: var(--wm-body);
    color: var(--wm-ink);
    background: var(--wm-white);
    padding-bottom: 64px; /* room for the sticky mobile bar */
}

@media (min-width: 992px) {
    body { padding-bottom: 0; }
}

h1, h2, h3, .section-title, .cta-title, .brand-name, .hero-title {
    font-family: var(--wm-heading);
    font-weight: 400;
    letter-spacing: .01em;
    text-transform: uppercase;
    line-height: 1.1;
}

a { text-underline-offset: 2px; }

.icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    vertical-align: -0.2em;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 100;
    background: var(--wm-yellow);
    color: var(--wm-black);
    padding: .5rem 1rem;
}
.skip-link:focus { left: 0; }

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

.narrow { max-width: 820px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .6rem 1.25rem;
    border-width: 2px;
}
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }

.btn-wm-yellow { background: var(--wm-yellow); border-color: var(--wm-yellow); color: var(--wm-black); }
.btn-wm-yellow:hover, .btn-wm-yellow:focus { background: var(--wm-yellow-dark); border-color: var(--wm-yellow-dark); color: var(--wm-black); }

.btn-wm-dark { background: var(--wm-black); border-color: var(--wm-black); color: var(--wm-white); }
.btn-wm-dark:hover, .btn-wm-dark:focus { background: #000; border-color: #000; color: var(--wm-yellow); }

.btn-wm-light { background: var(--wm-white); border-color: var(--wm-white); color: var(--wm-black); }
.btn-wm-light:hover, .btn-wm-light:focus { background: var(--wm-light); color: var(--wm-black); }

.btn-wm-outline { background: transparent; border-color: var(--wm-yellow); color: var(--wm-yellow); }
.btn-wm-outline:hover, .btn-wm-outline:focus { background: var(--wm-yellow); color: var(--wm-black); }

.btn-wm-outline-dark { background: transparent; border-color: var(--wm-black); color: var(--wm-black); }
.btn-wm-outline-dark:hover, .btn-wm-outline-dark:focus { background: var(--wm-black); color: var(--wm-white); }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--wm-black);
    color: var(--wm-white);
    border-bottom: 4px solid var(--wm-yellow);
    position: relative;
    z-index: 20;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--wm-white);
    text-decoration: none;
    margin-right: auto;
}
.brand img { width: 48px; height: 48px; }
.brand-name { font-size: 1.35rem; color: var(--wm-yellow); }

.main-nav { display: none; gap: 1.1rem; }
.main-nav a {
    color: var(--wm-white);
    text-decoration: none;
    font-weight: 600;
    padding: .35rem 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--wm-yellow); color: var(--wm-yellow); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

@media (min-width: 992px) {
    .brand { margin-right: 1rem; }
    .brand img { width: 56px; height: 56px; }
    .main-nav { display: flex; margin-right: auto; }
}

.mobile-nav { position: static; }
.mobile-nav summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    color: var(--wm-yellow);
    padding: .5rem .75rem;
    border: 2px solid var(--wm-yellow);
    border-radius: 999px;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--wm-black);
    border-bottom: 4px solid var(--wm-yellow);
    padding: .5rem 1rem 1rem;
}
.mobile-nav nav a {
    display: block;
    padding: .75rem .25rem;
    color: var(--wm-white);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #2a2a2a;
}

/* ── Sticky mobile bar ─────────────────────────────────────────────────── */
.mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .2);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--wm-black);
}
.mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 56px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
}
.mobile-bar-call { background: var(--wm-yellow); color: var(--wm-black); }
.mobile-bar-book { background: var(--wm-black); color: var(--wm-white); }

/* ── Images & placeholders ─────────────────────────────────────────────── */
.wm-img { display: block; width: 100%; height: auto; object-fit: cover; }

.wm-placeholder {
    position: relative;
    background-color: var(--wm-black);
    background-image:
        repeating-linear-gradient(135deg, rgba(239, 189, 10, .14) 0 14px, transparent 14px 28px),
        url("../images/brand/placeholder-mark.svg");
    background-repeat: repeat, no-repeat;
    background-position: 0 0, center;
    background-size: auto, min(30%, 140px);
}
.wm-placeholder-label {
    position: absolute;
    left: .75rem;
    bottom: .75rem;
    right: .75rem;
    background: var(--wm-yellow);
    color: var(--wm-black);
    font-size: .8rem;
    font-weight: 700;
    padding: .25rem .5rem;
    border-radius: 4px;
    width: fit-content;
}
.rounded-img { border-radius: var(--wm-radius); overflow: hidden; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--wm-black); color: var(--wm-white); }
.hero-img { aspect-ratio: 4/5 !important; min-height: 520px; max-height: 82vh; }
@media (min-width: 768px) {
    .hero-img { aspect-ratio: 16/9 !important; min-height: 480px; }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 2rem 0 2.5rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .78) 65%);
}
@media (min-width: 992px) {
    .hero-overlay {
        align-items: center;
        background: linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .1) 100%);
    }
}
.hero-kicker {
    color: var(--wm-yellow);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .9rem;
    margin-bottom: .5rem;
}
.hero-title {
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    color: var(--wm-white);
    max-width: 14ch;
    margin-bottom: 1rem;
}
.hero-lead { font-size: 1.15rem; max-width: 40ch; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 3rem 0; }
@media (min-width: 992px) { .section { padding: 4.5rem 0; } }
.section-alt { background: var(--wm-light); }
.section-dark { background: var(--wm-black); color: var(--wm-white); }
.section-dark .section-title { color: var(--wm-yellow); }
.section-title { font-size: clamp(1.9rem, 4.5vw, 2.75rem); margin-bottom: .75rem; }
.section-lead { color: var(--wm-grey); font-size: 1.1rem; margin-bottom: 2rem; max-width: 60ch; }

.page-header {
    background: var(--wm-yellow);
    color: var(--wm-black);
    padding: 2.5rem 0 2rem;
}
.page-header h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); margin: 0; }
.page-header .lead { margin: .5rem 0 0; font-weight: 500; }

.prose h2 { font-size: 1.75rem; margin: 2rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.075rem; line-height: 1.65; }

.breadcrumbs { padding-top: 1rem; font-size: .9rem; color: var(--wm-grey); }
.breadcrumbs a { color: var(--wm-grey); }

.service-hero { padding: 1.5rem 0 2.5rem; background: linear-gradient(180deg, var(--wm-white) 0%, var(--wm-light) 100%); }
.service-hero h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }

.areas-served {
    display: flex;
    gap: .5rem;
    background: var(--wm-light);
    border-left: 4px solid var(--wm-yellow);
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 0 var(--wm-radius) var(--wm-radius) 0;
}

/* ── Service cards ─────────────────────────────────────────────────────── */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--wm-white);
    border: 1px solid var(--wm-line);
    border-radius: var(--wm-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); color: inherit; }
.service-card-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.service-card-title { font-family: var(--wm-heading); text-transform: uppercase; font-size: 1.5rem; }
.service-card-text { color: var(--wm-grey); flex: 1; }
.service-card-more { font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.service-card:hover .service-card-more { color: var(--wm-yellow-dark); }

/* ── Why us ────────────────────────────────────────────────────────────── */
.why-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 1rem; }
.why-list li { display: flex; gap: .75rem; font-size: 1.1rem; }
.why-list .icon { color: var(--wm-yellow); width: 1.6em; height: 1.6em; }

/* ── Specials ──────────────────────────────────────────────────────────── */
.special-card {
    display: grid;
    background: var(--wm-white);
    border: 3px solid var(--wm-yellow);
    border-radius: var(--wm-radius);
    overflow: hidden;
}
@media (min-width: 768px) { .special-card { grid-template-columns: 2fr 3fr; } }
.special-img { height: 100%; }
.special-body { padding: 1.5rem; }
.special-flag {
    display: inline-block;
    background: var(--wm-black);
    color: var(--wm-yellow);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .06em;
    padding: .2rem .6rem;
    border-radius: 4px;
}
.special-title { font-size: 2rem; }
.special-dates { color: var(--wm-grey); font-size: .95rem; }

.empty-state { text-align: center; padding: 2rem 1rem; max-width: 560px; margin: 0 auto; }
.empty-state h2 { font-size: 2rem; }

/* ── Reviews ───────────────────────────────────────────────────────────── */
.reviews-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.reviews-rating { display: flex; align-items: center; gap: .5rem; margin: 0; }
.stars .icon { color: var(--wm-line); }
.stars .icon.on { color: var(--wm-yellow); }
.review-card {
    height: 100%;
    margin: 0;
    background: var(--wm-light);
    border-radius: var(--wm-radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}
.review-card blockquote { margin: 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-card figcaption { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.review-card figcaption img { border-radius: 50%; }
.review-card small { display: block; font-weight: 400; color: var(--wm-grey); }
.reviews-attribution { margin-top: 1rem; font-size: .9rem; color: var(--wm-grey); }

/* ── Team ──────────────────────────────────────────────────────────────── */
.team-card .wm-img { border-radius: var(--wm-radius); margin-bottom: 1rem; }
.team-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wm-yellow);
    color: var(--wm-black);
    font-family: var(--wm-heading);
    font-size: 4rem;
}
.team-name { font-size: 1.6rem; margin-bottom: .1rem; }
.team-role { color: var(--wm-grey); font-weight: 600; }

.gallery-item { margin: 0; }
.gallery-item .wm-img { border-radius: 6px; }
.gallery-item figcaption { font-size: .9rem; color: var(--wm-grey); padding-top: .35rem; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-group-title { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.faq-group-title:first-child { margin-top: 0; }
.faq-group-title a { text-decoration: none; color: inherit; }
.faq-list { border-top: 1px solid var(--wm-line); }
.faq-item { border-bottom: 1px solid var(--wm-line); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 1.075rem;
    padding: 1rem 2rem 1rem 0;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: .25rem;
    top: .7rem;
    font-size: 1.5rem;
    color: var(--wm-yellow-dark);
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 0 1rem; }
.draft-note { color: #9a6b00; font-style: italic; }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta-band { background: var(--wm-yellow); color: var(--wm-black); padding: 2.5rem 0; }
.cta-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.cta-title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .25rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 992px) {
    .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ── Forms & contact ───────────────────────────────────────────────────── */
.enquiry-form .form-label { font-weight: 700; }
.enquiry-form .form-control, .enquiry-form .form-select { padding: .7rem .85rem; border-color: #bdb9ae; }
.enquiry-form .form-control:focus, .enquiry-form .form-select:focus { border-color: var(--wm-black); box-shadow: 0 0 0 .2rem rgba(239, 189, 10, .45); }
.field-error { color: #b00020; font-size: .9rem; font-weight: 600; }
.form-note { color: var(--wm-grey); font-size: .9rem; margin: .75rem 0 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice {
    background: var(--wm-light);
    border-left: 4px solid var(--wm-yellow);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--wm-radius) var(--wm-radius) 0;
}

.contact-aside { background: var(--wm-light); border-radius: var(--wm-radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .65rem; }
.contact-list .icon { margin-top: .2em; color: var(--wm-yellow-dark); }

.map-frame {
    aspect-ratio: 4/3;
    border-radius: var(--wm-radius);
    overflow: hidden;
    background: var(--wm-black) url("../images/brand/placeholder-mark.svg") center / 90px no-repeat;
    position: relative;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-load {
    position: absolute;
    inset: auto 0 1rem 0;
    margin: 0 auto;
    width: fit-content;
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    background: var(--wm-yellow);
    color: var(--wm-black);
    font-weight: 800;
    padding: .6rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
}

/* ── Pre-launch ────────────────────────────────────────────────────────── */
.preview-strip {
    background: repeating-linear-gradient(135deg, var(--wm-yellow) 0 12px, #f6d454 12px 24px);
    color: var(--wm-black);
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
    padding: .35rem 1rem;
}
.holding-services { margin-bottom: 0; }
@media (min-width: 768px) {
    body.holding { padding-bottom: 0; }
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--wm-black); color: #d6d6d6; padding: 3rem 0 1.5rem; border-top: 4px solid var(--wm-yellow); }
.site-footer a { color: var(--wm-white); }
.site-footer a:hover { color: var(--wm-yellow); }
.footer-tagline { font-family: var(--wm-heading); text-transform: uppercase; color: var(--wm-yellow); font-size: 1.5rem; line-height: 1.15; }
.footer-nap { font-style: normal; line-height: 1.7; }
.footer-heading { font-size: 1.15rem; color: var(--wm-yellow); margin-bottom: .75rem; }
.site-footer li { margin-bottom: .35rem; }
.footer-links a { display: inline-flex; gap: .4rem; align-items: center; }
.footer-mta { margin-top: 1rem; background: #fff; padding: 4px; border-radius: 4px; }
.text-muted-light { color: #a8a8a8; }
.footer-areas { margin: 2rem 0 0; font-size: .9rem; color: #a8a8a8; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #2a2a2a;
    font-size: .85rem;
    color: #a8a8a8;
}
