/* 04-public.css: public-site page vocabulary shared across home, service,
   town, gallery, review, FAQ, about, and contact pages. FILE ORDER IS CASCADE
   ORDER: this loads after 03-components.css. */

/* ---------- site nav (slim bar under the header) ---------- */

.site-nav {
    background: var(--charcoal-900);
    border-top: 1px solid var(--steel-700);
}

.site-nav-inner {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.site-nav-inner::-webkit-scrollbar {
    display: none;
}

.site-nav-inner a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--silver-100);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-decoration: none;
}

.site-nav-inner a:hover {
    color: var(--gold-400);
    text-decoration: none;
}

/* ---------- photo hero (home) + compact page hero (subpages) ---------- */

/* The hero photo is a real <img> (preloaded, fetchpriority=high) so the LCP
   element is discovered with the HTML instead of after CSS layout. The
   ::before scrim reproduces the old background-image gradient overlay. */
.hero-photo {
    position: relative;
    overflow: hidden;
}

.hero-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(23, 25, 28, .72), rgba(23, 25, 28, .78));
    z-index: 1;
}

.hero-photo .hero-inner {
    position: relative;
    z-index: 2;
}

.page-hero {
    background: var(--charcoal-900);
    color: var(--white);
    padding: 40px 0;
}

.page-hero-kicker {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.page-hero-kicker a {
    color: var(--gold-400);
}

.page-hero-title {
    color: var(--white);
    margin-bottom: 10px;
}

.page-hero-sub {
    color: var(--silver-100);
    max-width: 64ch;
}

.page-hero-sub a {
    color: var(--gold-400);
}

.page-hero-phone {
    font-family: var(--font-heading);
    font-size: 1.15em;
    white-space: nowrap;
}

.page-hero .hero-ctas {
    justify-content: flex-start;
    margin-top: 16px;
}

/* ---------- card grids (services hub, towns, reviews) ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.service-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(23, 25, 28, .12), 0 10px 30px rgba(23, 25, 28, .10);
}

.service-card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.service-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 18px;
    flex: 1;
}

.service-card-title {
    font-size: 1.1rem;
}

.service-card-blurb {
    font-size: 14.5px;
    flex: 1;
}

.service-card-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gold-700);
}

/* Hover keeps the AA-passing gold and adds an underline; it never lightens
   (UX-M3). */
.service-card:hover .service-card-link {
    color: var(--gold-700);
    text-decoration: underline;
}

.town-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.town-card:hover {
    text-decoration: none;
    border-color: var(--gold-400);
}

.area-note {
    margin-top: 22px;
}

/* ---------- copy blocks, checklists, steps ---------- */

.split-copy {
    display: grid;
    gap: 16px;
    max-width: 70ch;
}

.service-intro {
    max-width: 70ch;
    margin-bottom: 14px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: grid;
    gap: 8px;
}

.checklist li {
    padding-left: 26px;
    position: relative;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.5em;
    width: 12px;
    height: 7px;
    border-left: 3px solid var(--gold-500);
    border-bottom: 3px solid var(--gold-500);
    transform: rotate(-45deg);
}

.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0 0 26px;
    display: grid;
    gap: 16px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 52px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold-500);
    color: var(--charcoal-900);
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    margin-bottom: 4px;
}

/* ---------- service detail layout ---------- */

.service-detail-grid,
.about-grid,
.contact-grid {
    display: grid;
    gap: 28px;
}

@media (min-width: 900px) {
    .service-detail-grid,
    .about-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        align-items: start;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        align-items: start;
    }
}

.service-detail-aside,
.contact-aside,
.about-aside {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 130px;
}

.service-links {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 8px;
}

.drive-note {
    margin: 4px 0 24px;
}

.town-strip {
    list-style: none;
    padding: 0;
    margin: 14px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.town-strip a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--silver-300);
    border-radius: 999px;
    color: var(--charcoal-900);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.town-strip a:hover {
    border-color: var(--gold-500);
    color: var(--gold-700);
}

/* ---------- why-us grid ---------- */

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

.why-item h3 {
    margin-bottom: 6px;
    padding-left: 14px;
    border-left: 3px solid var(--gold-500);
}

.why-item p {
    font-size: 15px;
}

/* ---------- gallery + teasers ---------- */

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.teaser-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--silver-100);
}

.teaser-actions {
    margin-top: 20px;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-btn {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--silver-300);
    border-radius: 999px;
    background: var(--white);
    color: var(--charcoal-900);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--gold-500);
}

.filter-btn-active {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--charcoal-900);
}

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

.gallery-item {
    margin: 0;
    background: var(--white);
    border: 1px solid var(--silver-100);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-item figcaption {
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--steel-700);
}

/* ---------- CTA band ---------- */

.cta-band {
    background: var(--charcoal-900);
    color: var(--white);
    padding: 42px 0;
}

.cta-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.cta-band-title {
    color: var(--white);
    margin-bottom: 6px;
}

.cta-band-sub {
    color: var(--silver-100);
    max-width: 56ch;
}

.cta-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- FAQ ---------- */

.faq-list {
    display: grid;
    gap: 10px;
    margin-bottom: 30px;
    max-width: 820px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--silver-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 0;
}

.faq-item summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    color: var(--charcoal-900);
    list-style-position: outside;
}

.faq-item summary:hover {
    color: var(--gold-700);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--silver-100);
}

.faq-answer {
    padding: 14px 18px;
}

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

.quote-form,
.quote-success {
    max-width: 640px;
}

.quote-form-grid {
    display: grid;
    gap: 0 16px;
}

@media (min-width: 640px) {
    .quote-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.quote-file {
    padding: 8px;
}

.label-optional {
    font-weight: 400;
    color: var(--steel-600);
}

.form-hint {
    font-size: 13px;
    color: var(--steel-600);
}

.form-hint-strong {
    color: var(--success);
    font-weight: 600;
}

.quote-promise {
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--steel-600);
    text-align: center;
}

/* Honeypot: rendered but parked off-screen. NOT display:none, so simple bots
   still fill it in. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.mini-quote {
    padding: 20px;
}

.mini-quote-title {
    margin-bottom: 12px;
}

.mini-quote-sub {
    font-size: 14.5px;
}

/* ---------- reviews ---------- */

.reviews-empty {
    max-width: 720px;
    padding: 28px;
}

.reviews-empty h2 {
    margin-bottom: 12px;
}

.reviews-empty p {
    margin-bottom: 12px;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-stars {
    color: var(--gold-500);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.star-empty {
    color: var(--silver-300);
}

.review-author {
    font-weight: 600;
    color: var(--charcoal-900);
    font-size: 14.5px;
}

/* ---------- about ---------- */

.about-photo {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius);
    border: 1px solid var(--silver-100);
}

.about-contact p {
    margin-bottom: 6px;
}

.about-contact .btn {
    margin-top: 12px;
}

.contact-tips h3 {
    margin-bottom: 10px;
}

/* ---------- 404 ---------- */

.notfound-page {
    text-align: left;
}

.notfound-hero {
    padding: 48px 0;
}

.notfound-code {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--gold-400);
    line-height: 1;
}

.notfound-page .service-links {
    margin: 14px 0 22px;
}

.notfound-page .hero-ctas {
    justify-content: flex-start;
}
