/* site.css – Site theme: brand tokens, type, buttons, header/footer, homepage sections. Scoped to body.site. */

.site {
    --black: #0b0b0b;
    --ink: #161616;
    --red: #d0202e;
    --red-dark: #a8141f;
    --white: #ffffff;
    --paper: #f5f4f2;
    --grey: #6b6b6b;
    --line: #e3e1dd;
    --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    --body: "Barlow", Arial, sans-serif;

    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--white);
    background: var(--black);
}

/* Undo the global section styles from styles.css */
.site main section {
    max-width: none;
    margin: 0;
    padding: clamp(4rem, 8vw, 7rem) 0;
    text-align: left;
}

.site h1,
.site h2,
.site h3 {
    font-family: var(--head);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    margin: 0;
}
.site main h2 {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    color: inherit;
    margin-bottom: 1.25rem;
}
.site h3 { font-size: 1.6rem; font-weight: 700; }

.h-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.h-light {
    background: var(--white);
    color: var(--ink);
}

.h-red { color: var(--red); }

.h-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--head);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
}
/* Diamond marker – echoes the logo */
.h-eyebrow::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    background: var(--red);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.h-head { max-width: 760px; margin-bottom: 2.5rem; }

/* ── Header on the homepage ── */
.site header { background: var(--black); box-shadow: 0 1px 0 rgba(255,255,255,0.08); }
.site .mobile-menu { background: var(--black); }
.site .desktop-nav a { font-family: var(--body); font-weight: 600; }
.site .desktop-nav a:hover { color: var(--red); }
.site .nav-phone { background: var(--red); border-radius: 4px; }
.site .nav-phone:hover { background: var(--red-dark); }

/* Dropdowns (Termites, Areas): hover/focus on desktop, indented list on mobile */
.site .desktop-nav .has-sub { position: relative; }
.site .desktop-nav .has-sub > a::after {
    content: "";
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    margin-left: 0.45em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.2em) rotate(45deg);
}
.site .desktop-nav .nav-sub {
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 15rem;
    margin: 0;
    padding: 0.6rem 0;
    list-style: none;
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--red);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.site .desktop-nav .has-sub::after {      /* hover bridge between the link and the panel */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 1rem;
}
.site .desktop-nav .nav-sub { margin-top: 1rem; }
.site .desktop-nav .has-sub:hover > .nav-sub,
.site .desktop-nav .has-sub:focus-within > .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.site .desktop-nav .nav-sub a {
    display: block;
    padding: 0.55rem 1.2rem;
    font-weight: 500;
    white-space: nowrap;
}
.site .desktop-nav .nav-sub a:hover { background: rgba(255, 255, 255, 0.05); }

.site .mobile-menu { max-height: calc(100vh - 76px); overflow-y: auto; }
.site .mobile-nav .has-sub { text-align: center; }
.site .mobile-nav .nav-sub {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}
.site .mobile-nav .nav-sub a { font-size: 1rem; font-weight: 500; color: #bdbdbd; }

/* Hamburger: keep the 32x24 icon, but give it a 52x44 tap area */
.site .hamburger { box-sizing: content-box; padding: 10px; margin: -10px; }

/* Phones: long button labels wrap instead of pushing the layout wider than the screen */
@media (max-width: 600px) {
    .site .h-btn { white-space: normal; text-align: center; }
}

/* The menu fits on one line down to ~1100px; below that, use the hamburger menu */
.site .desktop-nav a { white-space: nowrap; }
@media (max-width: 1100px) {
    .site .hamburger { display: flex; }
    .site .desktop-nav { display: none; }
}

/* ── Buttons ── */
.h-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.h-btn:hover { transform: translateY(-2px); }
.h-btn:focus-visible,
.h-link:focus-visible,
.h-service:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.h-btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.h-btn-lg { padding: 1.05rem 1.8rem; font-size: 1.125rem; }
.h-btn-block { width: 100%; }
.h-btn-red { background: var(--red); color: var(--white); }
.h-btn-red:hover { background: var(--red-dark); }
.h-btn-ghost { border-color: rgba(255,255,255,0.5); color: var(--white); }
.h-btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.h-btn-dark { background: var(--black); color: var(--white); }
.h-btn-dark:hover { background: #2a2a2a; }
.h-btn-white { background: var(--white); color: var(--red); }
.h-btn-white:hover { background: var(--black); color: var(--white); }

.h-link {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* ── HERO ── */
.site main .h-hero {
    padding-top: calc(88px + clamp(3rem, 7vw, 6rem)); /* fixed header */
    background:
        radial-gradient(ellipse at 85% 30%, rgba(208,32,46,0.22), transparent 55%),
        var(--black);
    overflow: hidden;
}
.h-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.h-hero h1 {
    font-size: clamp(3rem, 7.5vw, 6rem);
    margin-bottom: 1.5rem;
}
.h-lede {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    color: #d6d6d6;
    max-width: 36rem;
    margin-bottom: 2rem;
}
.h-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.5rem; }

.h-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.14);
    color: #b5b5b5;
    font-size: 0.95rem;
}
.h-trust strong { color: var(--white); font-weight: 700; }

.h-hero-media {
    position: relative;
    justify-self: center;
    width: min(100%, 400px);
}
.h-diamond {
    position: absolute;
    inset: -8% -18% auto auto;
    width: 85%;
    aspect-ratio: 1;
    border: 3px solid var(--red);
    transform: rotate(45deg);
    opacity: 0.55;
}
.h-hero-photo {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.55);
}
.h-hero-badge {
    position: absolute;
    left: -2rem;
    bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    background: var(--red);
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.h-badge-num { font-family: var(--head); font-size: 3rem; font-weight: 800; line-height: 1; }
.h-badge-text { font-size: 0.9rem; font-weight: 600; line-height: 1.25; }
.h-photo-tag {
    position: relative;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #9a9a9a;
    text-align: right;
}

/* ── SERVICES ── */
.h-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.h-service {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.h-service:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
.h-service img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.h-service-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.h-service h3 { margin-bottom: 0.5rem; }
.h-service p { color: #4a4a4a; font-size: 0.98rem; margin-bottom: 1rem; flex: 1; }
.h-more { font-weight: 700; color: var(--red); }
.h-more::after { content: " →"; transition: margin 0.2s ease; }
.h-service:hover .h-more::after { margin-left: 0.25rem; }

.h-unsure {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: 1.5rem;
    padding: 1.4rem 1.6rem;
    background: var(--paper);
    border-left: 4px solid var(--red);
    border-radius: 4px;
}
.h-unsure p { margin: 0; max-width: 40rem; }
.h-unsure-links { display: flex; align-items: center; gap: 1.5rem; }

/* ── INSPECTION ── */
.h-inspect { background: var(--black); }
.h-inspect-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.h-inspect-copy > p { color: #cfcfcf; max-width: 34rem; }

.h-compare { margin: 2rem 0 2.25rem; display: grid; gap: 0.85rem; max-width: 34rem; }
.h-compare-row {
    display: grid;
    grid-template-columns: 11rem 1fr 4.5rem;
    align-items: center;
    gap: 1rem;
}
.h-compare-label { font-size: 0.95rem; color: #bdbdbd; }
.h-compare-val { font-family: var(--head); font-size: 1.35rem; font-weight: 700; text-align: right; white-space: nowrap; }
.h-bar { display: block; height: 14px; width: var(--w); border-radius: 2px; }
.h-bar-grey { background: #3b3b3b; }
.h-bar-red { background: var(--red); }

.h-checks {
    list-style: none;
    counter-reset: check;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}
.h-checks li {
    counter-increment: check;
    position: relative;
    padding-left: 3rem;
    color: #b8b8b8;
    font-size: 0.95rem;
}
.h-checks li::before {
    content: counter(check);
    position: absolute;
    left: 0.3rem;
    top: 0.15rem;
    width: 1.9rem;
    height: 1.9rem;
    display: grid;
    place-items: center;
    font-family: var(--head);
    font-weight: 800;
    color: var(--white);
    background: var(--red);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.h-checks strong {
    display: block;
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.h-inspect-media {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}
.h-inspect-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.5);
}
.h-inspect-a { grid-column: 1 / 5; grid-row: 1; }
.h-inspect-b {
    grid-column: 3 / 7;
    grid-row: 1;
    margin-top: 45%;
    border: 6px solid var(--black);
}

/* ── REVIEWS BAND ── */
.site main .h-reviews { background: var(--red); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.h-reviews-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 3rem;
}
.h-reviews-count { display: flex; align-items: center; gap: 1rem; }
.h-reviews-count .review-count {
    font-family: var(--head);
    font-size: clamp(3.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 0.9;
}
.h-reviews-count > span:last-child {
    font-family: var(--head);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}
.h-reviews p { flex: 1 1 18rem; margin: 0; font-size: 1.05rem; }

/* ── TEAM ── */
.h-team-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 4rem;
    align-items: end;
    margin-bottom: 3rem;
}
.h-team-intro h2 { margin-bottom: 0 !important; }
.h-team-intro > p { color: #4a4a4a; margin: 0; }

.h-team-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem 1.25rem;
}
.h-team-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 6px;
    display: block;
    margin-bottom: 0.8rem;
    background: var(--paper);
}
.h-team-grid strong {
    display: block;
    font-family: var(--head);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}
.h-team-grid span { color: var(--grey); font-size: 0.95rem; }

/* ── REALTORS ── */
.h-realtor { background: var(--ink); }
.h-realtor-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.h-realtor-grid img {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px;
    justify-self: center;
}
.h-realtor-grid p:not(.h-eyebrow) { color: #cfcfcf; max-width: 34rem; margin-bottom: 2rem; }

/* ── SERVICE AREA ── */
.h-area-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.h-area-card {
    position: relative;
    padding: 1.75rem;
    background: var(--paper);
    border-radius: 6px;
}
.h-area-card h3 { margin-bottom: 0.75rem; }
.h-area-card p { color: #444; margin: 0; }
.h-area-card-accent { background: var(--black); color: var(--white); }
.h-area-card-accent p { color: #cfcfcf; }
.h-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.25rem 0.65rem;
    background: var(--red);
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.h-zip { max-width: 30rem; }
.h-zip label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.h-zip-row { display: flex; gap: 0.6rem; }
.h-zip input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 2px solid var(--line);
    border-radius: 4px;
    font: inherit;
}
.h-zip input:focus { outline: none; border-color: var(--ink); }
.zip-result { margin-top: 0.75rem; }
.zip-result.is-note { min-height: 1.6em; font-weight: 600; color: #ff7b88; }

/* ZIP result card */
.zip-card {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 1.4rem;
    align-items: center;
    max-width: 44rem;
    padding: 1.1rem;
    background: rgba(16, 16, 16, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #ff4d5e;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(255, 45, 69, 0.18), 0 24px 50px rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: left;
    animation: zip-card-in 0.35s ease-out both;
}
.zip-card.is-no { border-left-color: rgba(255, 255, 255, 0.5); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
@keyframes zip-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.zip-card-media { position: relative; margin: 0; align-self: stretch; }
.zip-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 9.5rem;
    object-fit: cover;
    border-radius: 4px;
}
.zip-card-media figcaption {
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.4rem;
    padding: 0.25rem 0.45rem;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 3px;
    font-size: 0.72rem;
    line-height: 1.3;
    color: #e6e6e6;
}

.zip-card-badge {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
}
.zip-card-badge::before {
    content: "";
    position: absolute;
    width: 4.5rem;
    height: 4.5rem;
    border: 1.5px solid #ff4d5e;
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(255, 45, 69, 0.35), inset 0 0 14px rgba(255, 45, 69, 0.25);
}
.zip-card-badge span {
    position: relative;
    font-family: var(--head);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.zip-card.is-no .zip-card-badge::before { border-color: rgba(255, 255, 255, 0.55); box-shadow: none; }

.zip-card-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bdbdbd;
}
.zip-card-zip {
    padding: 0.1rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    font-family: var(--head);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: #fff;
}
.zip-card-tag {
    padding: 0.15rem 0.5rem;
    background: var(--red);
    border-radius: 3px;
    font-size: 0.72rem;
    color: #fff;
}
.site .zip-card h3 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.zip-card-body > p:not(.zip-card-kicker):not(.zip-card-status) { margin: 0; color: #c8c8c8; font-size: 0.98rem; }
.zip-card-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.zip-card-actions .h-btn { padding: 0.7rem 1.1rem; }

.zip-card-waitlist { display: flex; gap: 0.5rem; margin-top: 1rem; }
.zip-card-waitlist input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: #fff;
    font: inherit;
}
.zip-card-waitlist input[type="email"]:focus { outline: none; border-color: #ff2d45; box-shadow: 0 0 0 1px #ff2d45; }
.zip-card-status { margin: 0.6rem 0 0; min-height: 1.2em; font-size: 0.92rem; color: #bdbdbd; }
.zip-card-status:empty { display: none; }
.zip-card-status.is-done { color: #6ee7a0; font-weight: 600; }
.zip-card-call { display: inline-block; margin-top: 0.4rem; color: #fff; font-weight: 600; text-decoration-color: #ff4d5e; text-underline-offset: 3px; }

/* Let the hidden attribute win over display rules like .h-btn { display: inline-flex } */
[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .zip-card { grid-template-columns: 1fr; gap: 1rem; }
    .zip-card-media img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
    .zip-card-badge { display: none; }
    .zip-card-actions .h-btn { flex: 1 1 100%; }
    .zip-card-waitlist { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .zip-card { animation: none; }
}

/* ── BOOKING ── */
.h-book {
    background:
        linear-gradient(135deg, transparent 60%, rgba(208,32,46,0.18)),
        var(--black);
}
.h-book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}
.h-steps { list-style: none; counter-reset: step; margin: 1.5rem 0 2.5rem; display: grid; gap: 1.25rem; }
.h-steps li {
    counter-increment: step;
    position: relative;
    min-height: 3.4rem;          /* two lines, so circles stay evenly spaced */
    padding-left: 3.5rem;
    line-height: 1.7rem;
    color: #c8c8c8;
}
.h-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -0.35rem;               /* centers the 2.4rem circle on the first 1.7rem line */
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border: 2px solid var(--red);
    border-radius: 50%;
    font-family: var(--head);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
}
.h-steps strong { color: var(--white); }

.h-book-call { display: flex; flex-direction: column; gap: 0.2rem; }
.h-book-call span { color: #9a9a9a; font-size: 0.95rem; }
.h-book-call a {
    font-family: var(--head);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
}
.h-book-call a:hover { color: var(--red); }

.h-book-card {
    background: var(--white);
    color: var(--ink);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 6px;
    border-top: 6px solid var(--red);
    box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
.h-form { display: grid; gap: 1rem; }
.h-field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.h-field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.h-field label span { color: var(--grey); font-weight: 400; }
.h-field input,
.h-field select,
.h-field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 2px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}
.h-field textarea { resize: vertical; }
.h-field input:focus,
.h-field select:focus,
.h-field textarea:focus { outline: none; border-color: var(--ink); }
.h-form .h-btn { margin-top: 0.25rem; font-size: 1.1rem; padding: 1rem; }
.booking-status { min-height: 1.4em; margin: 0; font-size: 0.95rem; color: var(--grey); }
.booking-status.is-error { color: var(--red-dark); font-weight: 600; }
.booking-success h3 { color: var(--ink); margin-bottom: 0.5rem; }
.booking-success a { color: var(--red); font-weight: 700; }

/* ── Mobile call bar ── */
.h-callbar { display: none; }

/* ── Footer on the homepage ── */
.site footer { background: #000; border-top: 3px solid var(--red); }
.site .sf-title { font-family: var(--head); font-size: 1rem; letter-spacing: 0.12em; }
.site .sf-phone { font-family: var(--head); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.site .sf-phone:hover { color: var(--red) !important; }
.site .sf-cta { background: var(--red); }
.site .sf-cta:hover { background: var(--red-dark); }
.site .sf-social a:hover { background: var(--red); border-color: var(--red); }

/* Extra link rows under the footer columns (termite services, area pages) */
.site .sf-links {
    display: grid;
    gap: 0.75rem;
    margin-top: clamp(2rem, 4vw, 2.75rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site .sf-links nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.4rem; }
.site .sf-links-title {
    font-family: var(--head);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}
.site .sf-links a { color: #a8a8a8; text-decoration: none; transition: color 0.2s ease; }
.site .sf-links a:hover { color: #fff; }
.site .sf-links + .sf-bottom { margin-top: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 1000px) {
    .h-service-grid { grid-template-columns: repeat(2, 1fr); }
    .h-team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .site main .h-hero { padding-top: calc(76px + 2.5rem); }
    .h-hero-grid,
    .h-inspect-grid,
    .h-realtor-grid,
    .h-book-grid,
    .h-team-intro,
    .h-area-grid { grid-template-columns: 1fr; }

    .h-hero-media { width: min(100%, 340px); margin: 0 auto; }
    .h-hero-badge { left: -1rem; }
    .h-diamond { inset: -6% -10% auto auto; }
    .h-inspect-media { max-width: 460px; margin: 0 auto; width: 100%; }
    .h-realtor-grid img { max-width: 320px; }
}

@media (max-width: 760px) {
    .h-callbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0.6rem max(0.75rem, env(safe-area-inset-left)) calc(0.6rem + env(safe-area-inset-bottom));
        background: rgba(11,11,11,0.96);
        border-top: 1px solid rgba(255,255,255,0.1);
        transform: translateY(110%);
        transition: transform 0.3s ease;
    }
    .h-callbar.is-visible { transform: none; }
    .h-callbar .h-btn { padding: 0.8rem 0.5rem; }
    .site footer { padding-bottom: 5.5rem; }
}

@media (max-width: 600px) {
    .h-actions .h-btn { width: 100%; }
    .h-service-grid { grid-template-columns: 1fr; }
    .h-service { flex-direction: row; }
    .h-service img { width: 38%; aspect-ratio: auto; height: auto; min-height: 100%; }
    .h-service-body { padding: 1rem; }
    .h-service p { font-size: 0.92rem; }
    .h-team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
    .h-checks { grid-template-columns: 1fr; }
    .h-compare-row { grid-template-columns: 1fr 4.5rem; row-gap: 0.35rem; }
    .h-compare-label { grid-column: 1 / -1; }
    .h-field-row { grid-template-columns: 1fr; }
    .h-tag { position: static; display: inline-block; margin-bottom: 0.75rem; }
    .h-unsure-links { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    .site * { transition: none !important; }
}
