:root {
    --color-navy: #0f2d4a;
    --color-navy-dark: #0a1628;
    --color-navy-light: #1a4468;
    --color-accent: #e85d04;
    --color-accent-hover: #c74f03;
    --color-accent-soft: #fff4ec;
    --color-cool: #0891b2;
    --color-bg: #f4f7fb;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #dbe3ee;
    --shadow-sm: 0 2px 8px rgba(15, 45, 74, 0.06);
    --shadow-md: 0 12px 32px rgba(15, 45, 74, 0.12);
    --shadow-lg: 0 24px 48px rgba(15, 45, 74, 0.16);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --header-height: 76px;
    --promo-height: 44px;
    --chrome-height: 120px;
    --scroll-offset: 132px;
    --font-body: "DM Sans", system-ui, sans-serif;
    --font-display: "Outfit", system-ui, sans-serif;
    --container: min(1120px, calc(100% - 2rem));
    --transition: 0.22s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* Applied by lockScroll() in main-bold.js while the mobile nav, employee
   modal, or gallery lightbox is open. iOS ignores `overflow: hidden` on
   <body> for touch scrolling, so the body has to actually be pinned; the JS
   sets `top: -<scrollY>px` alongside this and restores it on close.
   left/right/width are required because a position: fixed element with
   `width: auto` shrink-wraps its content. */
body.mobile-nav-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-cool);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* The safe-area padding only resolves to a non-zero value on notched devices
   in landscape (head.php sets viewport-fit=cover); in portrait it is 0 and
   the container behaves exactly as before. box-sizing: border-box means it
   eats into the width rather than widening the element. */
.container {
    width: var(--container);
    margin-inline: auto;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Site chrome — fixed at top on every screen size so the menu is always visible */
.site-chrome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--color-navy-dark);
}

body {
    padding-top: var(--chrome-height, 120px);
}

/* Promo banner */
.promo-banner {
    background: linear-gradient(90deg, var(--color-navy-dark), var(--color-navy-light));
    z-index: 120;
    color: #fff;
    font-size: 0.875rem;
}

/* Stays a row at every width. It used to flip to flex-direction: column
   under 768px, which silently broke the ticker: .promo-ticker is flex: 1,
   so in a column the flex-basis: 0 applied to its HEIGHT, there was no free
   vertical space to grow into, and overflow: hidden collapsed the whole
   ticker to 0px tall on phones. */
.promo-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--promo-height);
    padding-block: 0.5rem;
}

.promo-banner__text {
    margin: 0;
}

.promo-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.promo-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.promo-banner__cta:hover {
    background: var(--color-accent-hover);
    text-decoration: none;
}

/* Header
   NOTE: this deliberately has no backdrop-filter. It used to carry
   blur(12px), which caused two iOS Safari bugs at once:
     1. Safari clips absolutely-positioned children to the border box of a
        backdrop-filtered element, so the mobile nav dropdown (which hangs
        below the header at top: 100%) opened but was invisible — the
        hamburger animated to an X and nothing appeared.
     2. A fixed, full-width blurred layer is re-composited every frame, so
        the continuously-animating ticker directly above it stuttered.
   The background below is 96-97% opaque anyway, so the blur was buying
   essentially nothing visually. */
.site-header {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    min-height: var(--header-height);
    padding-block: 0.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.site-logo:hover {
    text-decoration: none;
}

.site-logo__mark {
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-logo__name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
}

.site-logo__tagline {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Primary nav — inline pills on tablet/desktop; becomes a hamburger-toggled
   dropdown on mobile (see the max-width: 767px block below). */
.site-nav {
    order: 3;
    flex-basis: 100%;
    min-width: 0;
}

.site-nav__list {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0.15rem 0;
    gap: 0.4rem;
}

.site-nav__item {
    flex: 0 0 auto;
}

.site-nav__link {
    display: block;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-navy);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition), color var(--transition);
}

.site-nav__link:hover,
.site-nav__link.is-active {
    background: var(--color-accent-soft);
    color: var(--color-accent);
    text-decoration: none;
}

/* Only rendered inside the mobile dropdown (hidden on tablet/desktop —
   see the min-width: 768px block) so Employee Login has a home once the
   top-right link disappears on small screens. */
.site-nav__item--employee {
    display: none;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* 44x44 is Apple's minimum comfortable tap target; touch-action:manipulation
   drops the 300ms double-tap-zoom delay Safari otherwise adds before the
   click fires, which made the menu feel unresponsive. */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--color-accent-soft);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle__bar {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-text);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* In normal flow at the end of .header__actions rather than absolutely
   positioned at the header's top-right corner. While the Call button was
   present it reserved enough width that the nav never reached this link;
   with the button gone, .site-nav { margin-left: auto } would have run the
   nav straight underneath an out-of-flow element. Being a flex item means
   the nav simply stops short of it. */
.employee-login-link {
    border: 0;
    background: none;
    padding: 0.3rem 0;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-text-muted);
    opacity: 0.7;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.employee-login-link:hover {
    color: var(--color-accent);
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn--accent {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(232, 93, 4, 0.28);
}

.btn--accent:hover {
    background: var(--color-accent-hover);
    color: #fff;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn--lg {
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    /* .btn sets line-height: 1, which is fine for a single-line pill but
       leaves wrapped lines touching. Full-width buttons are the ones that
       carry long labels ("Request Service / Installation / Estimate" wraps
       to two lines on a phone), so they need real leading. */
    line-height: 1.3;
    white-space: normal;
    text-align: center;
}

/* Sections */
.section {
    padding-block: 4.5rem;
    scroll-margin-top: var(--scroll-offset, 132px);
}

/* Anchor targets that aren't the <section> element itself need the same
   offset or the fixed header lands on top of them. The location pages hang
   their "#minooka-contact-form" style ids off the <h2>, so before this the
   hero's "Get a Free Estimate" button scrolled the heading underneath the
   header. scroll-margin only has any effect when the element is actually
   the target of a scroll, so this is inert everywhere else. */
.section [id] {
    scroll-margin-top: var(--scroll-offset, 132px);
}

.section:nth-child(even) {
    background: var(--color-surface);
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-header--center {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: 2.5rem;
}

.section-eyebrow {
    margin: 0 0 0.5rem;
    color: var(--color-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    line-height: 1.15;
    color: var(--color-navy);
}

.section-intro {
    margin: 1rem 0 0;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* Hero */
.section-hero {
    position: relative;
    min-height: clamp(520px, 82vh, 760px);
    padding-block: 4rem 3rem;
    color: #fff;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.88) 0%, rgba(15, 45, 74, 0.72) 45%, rgba(8, 145, 178, 0.35) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2rem;
    align-content: center;
    min-height: inherit;
}

.hero__content {
    max-width: 760px;
}

.hero__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffd8bf;
}

.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.08;
}

.hero__subtitle {
    margin: 1rem 0 0;
    max-width: 620px;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.hero__trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.trust-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    text-align: center;
}

.trust-card__value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.2;
}

.trust-card__label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
}

/* About */
.about-grid {
    display: grid;
    gap: 2rem;
}

.content-card {
    display: grid;
    gap: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.content-card__media img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
}

.content-card__body {
    padding: 0 1.25rem 1.5rem;
}

.content-card__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--color-navy);
}

.content-card__text,
.content-card__note {
    margin: 0;
    color: var(--color-text-muted);
}

.content-card__note {
    margin-top: 1rem;
    font-size: 0.92rem;
}

.service-areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.service-areas-list li {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-navy);
}

/* Services */
.services-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.service-card {
    padding: 1.35rem;
    border-radius: var(--radius-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}

a.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent-soft), #e0f2fe);
    display: grid;
    place-items: center;
}

.service-card__icon-mark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-navy);
}

.service-card__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-navy);
}

.service-card__text {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.specials-card {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    color: #fff;
    box-shadow: var(--shadow-md);
}

.specials-card__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.specials-card__list {
    margin: 0;
    padding-left: 1.1rem;
}

.specials-card__note {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
}

/* Contact */
.contact-grid {
    display: grid;
    gap: 1.5rem;
}

.contact-info {
    display: grid;
    gap: 1rem;
}

.info-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.info-card__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    color: var(--color-navy);
}

.info-card__text,
.info-card__note {
    margin: 0 0 0.5rem;
    color: var(--color-text-muted);
}

.info-card__note {
    font-size: 0.88rem;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table th,
.hours-table td {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.hours-table th {
    width: 38%;
    color: var(--color-navy);
    font-weight: 600;
}

.contact-form {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.contact-form__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    color: var(--color-navy);
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-navy);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-cool);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.form-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
}

.form-alert[data-type="success"] {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-alert[data-type="error"] {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.contact-form__payment-note {
    margin: 0 0 1rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--color-accent-soft);
    border: 1px solid var(--color-accent);
    color: var(--color-navy);
    font-size: 0.88rem;
    font-weight: 600;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.gallery-item--more {
    display: none;
}

.gallery-grid.is-expanded .gallery-item--more {
    display: block;
}

.gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.gallery-grid.is-expanded + .gallery-actions {
    display: none;
}

.gallery-item {
    margin: 0;
}

.gallery-item__button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: none;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item__button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-item__button img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(10, 22, 40, 0.92);
}

.gallery-lightbox[hidden] {
    display: none !important;
}

.gallery-lightbox__image {
    max-width: min(960px, 100%);
    max-height: 75vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.gallery-lightbox__caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: #fff;
    text-align: center;
    max-width: 90%;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
}

.gallery-lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
    line-height: 1;
}

.gallery-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 2rem;
}

.gallery-lightbox__nav--prev {
    left: 1rem;
}

.gallery-lightbox__nav--next {
    right: 1rem;
}

.employee-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(10, 22, 40, 0.72);
}

.employee-modal[hidden] {
    display: none !important;
}

.employee-modal__panel {
    position: relative;
    width: min(400px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.employee-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.employee-modal__form[hidden] {
    display: none;
}

.employee-modal__hint {
    margin: -0.25rem 0 1rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.employee-modal__link {
    display: block;
    margin: 0.9rem auto 0;
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-cool);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Reviews */
.reviews-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.reviews-grid {
    display: grid;
    gap: 1rem;
}

.review-card {
    padding: 1.35rem;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.review-card__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    color: var(--color-navy);
}

.review-card__text {
    margin: 0;
    color: var(--color-text-muted);
}

/* Footer */
.site-footer {
    background: var(--color-navy-dark);
    color: rgba(255, 255, 255, 0.86);
}

.footer__grid {
    display: grid;
    gap: 2rem;
    padding-block: 3rem;
}

.footer__logo {
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.footer__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    color: #fff;
}

.footer__tagline,
.footer__text,
.footer__note,
.footer__copyright,
.footer__payment {
    margin: 0 0 0.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.footer__heading {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    color: #fff;
    font-size: 1rem;
}

.footer__hours,
.footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__hours li,
.footer__links li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
}

.footer__links a,
.footer__text a {
    color: #ffd8bf;
    text-decoration: none;
}

.footer__links a:hover,
.footer__text a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__bottom-inner {
    display: grid;
    gap: 0.35rem;
    padding-block: 1rem 1.25rem;
    text-align: center;
}

/* Staging-only deploy stamp — deliberately faint and out of the way; the
   whole block stops rendering once CRS_STAGING is false. */
.footer__build {
    grid-column: 1 / -1;
    margin: 0.5rem 0 0;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.32);
    letter-spacing: 0.02em;
}


/* Responsive */
@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .gallery-grid.is-expanded .gallery-item--more,
    .gallery-item--more {
        display: block;
    }

    .gallery-actions {
        display: none;
    }

    .content-card {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .content-card--reverse .content-card__media {
        order: 2;
    }

    .content-card__body {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 0.95fr 1.05fr;
        align-items: start;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    }

    .footer__bottom-inner {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        align-items: center;
    }

    .footer__payment {
        text-align: right;
    }

    .footer__build {
        text-align: right;
    }
}

/* Inline nav only kicks in once the header can actually fit logo + 7 nav
   links + the Call button on one line (~1100px). Below that the hamburger
   takes over — otherwise .header__actions wraps onto a second row and
   leaves a band of dead space under the nav. */
@media (min-width: 1100px) {
    .header__inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .site-nav {
        order: 0;
        flex-basis: auto;
        margin-left: auto;
    }

    .site-nav__list {
        overflow: visible;
        gap: 0.15rem;
    }

    .site-nav__link {
        padding: 0.5rem 0.62rem;
        background: transparent;
        font-size: 0.86rem;
    }

    .header__actions {
        flex-shrink: 0;
        margin-left: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .specials-card {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .hero__inner {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: end;
    }
}

@media (max-width: 1099px) {
    .site-logo__tagline {
        display: none;
    }

    /* Hamburger-toggled nav dropdown */
    .nav-toggle {
        display: inline-flex;
    }

    .employee-login-link {
        display: none;
    }

    /* .site-nav keeps flex-basis: 100% from the base rules, which forced the
       wrapping header onto a third, permanently-empty row (its list is
       absolutely positioned, so the nav element itself needs no space).
       Zeroing it lets logo + actions sit on one line. */
    .site-nav {
        order: 0;
        flex: 0 0 0px;
        width: 0;
    }

    .site-nav__list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        /* dvh tracks the *small* viewport on iOS, so the panel stops above
           the Safari toolbar instead of running underneath it. The vh line
           is the fallback for browsers without dvh. */
        max-height: calc(100vh - var(--chrome-height, 120px));
        max-height: calc(100dvh - var(--chrome-height, 120px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .site-nav.is-open .site-nav__list {
        display: flex;
    }

    .site-nav__item {
        flex: 0 0 auto;
        width: 100%;
    }

    .site-nav__link {
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: var(--radius-sm);
        background: transparent;
        font-size: 1rem;
        white-space: normal;
        text-align: left;
    }

    .site-nav__item--employee {
        display: block;
        margin-top: 0.4rem;
        padding-top: 0.6rem;
        border-top: 1px solid var(--color-border);
    }

    .site-nav__link--employee {
        color: var(--color-text-muted);
        font-size: 0.85rem;
        font-weight: 600;
    }
}

@media (max-width: 767px) {
    /* Tighter gap so the ticker keeps as much of the row as possible. The
       CTA sizing itself is in style-bold.css alongside the rest of the
       banner. The banner deliberately stays flex-direction: row here — see
       the note on .promo-banner__inner above. */
    .promo-banner__inner {
        gap: 0.6rem;
    }

    .promo-banner__actions {
        gap: 0.4rem;
    }

    /* Second word of each banner CTA ("Call Now" -> "Call", "Schedule
       Online" -> "Schedule"), which is what keeps all three items on one
       row on a 390px screen. */
    .promo-banner__cta-more {
        display: none;
    }

    /* The logo mark itself is sized in style-bold.css (it owns the 68px
       desktop value, and a same-specificity override here would lose the
       cascade to the later stylesheet). */
    .site-logo {
        gap: 0.5rem;
    }

    .site-logo__name {
        font-size: 0.92rem;
    }

    .header__inner {
        gap: 0.5rem;
    }

    .header__actions {
        gap: 0.5rem;
    }

    .hero__trust-grid {
        grid-template-columns: 1fr;
    }

    .hero__actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   Booking block — the scheduling section of the service-request form.
   Rendered hidden by contact-form.php and revealed by JS once
   /api/booking.php confirms there is availability to show, so none of these
   rules apply on a page where scheduling is unavailable.
   ========================================================================== */

/* Two fields on one line where they read as a pair (city + zip, date +
   time), collapsing to stacked on narrow screens. */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.75rem;
}

.form-row .form-field--narrow {
    max-width: 100%;
}

@media (max-width: 520px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-optional {
    font-weight: 400;
    color: var(--color-text-muted);
}

.booking {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem 0.35rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
}

.booking__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
}

.booking__modes {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.booking__mode {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--color-text);
    cursor: pointer;
}

/* The radio inherits the form-field width rule (width: 100%) otherwise,
   which stretches it across the row and pushes the label off-screen. */
.booking__mode input[type="radio"] {
    width: auto;
    margin: 0.2rem 0 0;
    flex: none;
    accent-color: var(--color-cool);
}

.booking__mode--urgent {
    font-weight: 600;
    color: #b91c1c;
}

.booking__picker {
    padding-top: 0.35rem;
    border-top: 1px dashed var(--color-border);
}

/* The "this is a request, not a confirmation" notice. Deliberately styled as
   a warning rather than fine print — a customer who misses this and expects
   a guaranteed slot is the worst outcome this feature can produce. */
.booking__notice {
    margin: 0 0 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
    font-size: 0.86rem;
    line-height: 1.5;
}

.booking__notice--urgent {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Turnstile renders nothing at all in interaction-only mode unless it
   decides a challenge is needed, so this collapses to zero height for
   virtually every real visitor rather than leaving a gap. */
.cf-turnstile {
    margin: 0 0 0.75rem;
}

.cf-turnstile:empty {
    margin: 0;
}
