/* ==========================================================================
   Nick's Tiles and Flooring — static site styles
   Single stylesheet, no build step. Tokens first, then layout, then blocks.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — deep navy reads as licensed/established; copper nods to tile work. */
  --navy-900: #0d2338;
  --navy-800: #12304a;
  --navy-700: #1a4166;
  --navy-600: #245b8c;
  --navy-050: #eaf1f8;

  --copper-700: #8f4218;
  --copper-600: #b45309;
  --copper-500: #d97706;
  --copper-050: #fdf5e9;

  /* Neutrals — warm, so the whole page doesn't read cold-blue. */
  --bg: #faf8f5;
  --bg-alt: #f2eee8;
  --surface: #ffffff;
  --line: #e3ddd4;
  --line-strong: #cfc7ba;

  --text: #17212e;
  --text-mid: #48525f;
  --text-dim: #6b7480;

  --good: #256b4d;
  --good-bg: #e9f4ee;
  --danger: #97231f;
  --danger-bg: #fbecea;

  /* Type scale */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 0.5vw + 1.15rem, 1.4rem);
  --step-3: clamp(1.5rem, 1.2vw + 1.25rem, 1.9rem);
  --step-4: clamp(1.95rem, 3vw + 1.2rem, 3.1rem);

  /* Space — 4px base */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(13, 35, 56, 0.05),
    0 1px 3px rgba(13, 35, 56, 0.06);
  --shadow: 0 2px 4px rgba(13, 35, 56, 0.04),
    0 8px 24px -6px rgba(13, 35, 56, 0.12);
  --shadow-lg: 0 4px 8px rgba(13, 35, 56, 0.05),
    0 20px 40px -12px rgba(13, 35, 56, 0.18);

  --maxw: 1120px;
  --maxw-narrow: 720px;
  --ring: 0 0 0 3px rgba(36, 91, 140, 0.35);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 5.25rem; /* clears the mobile sticky CTA */
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--sp-3);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-2);
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 var(--sp-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--navy-700);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--navy-600);
}

ul,
ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.25rem;
}

li + li {
  margin-top: var(--sp-2);
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-6) 0;
}

:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: var(--sp-3);
  top: -100px;
  z-index: 100;
  padding: var(--sp-2) var(--sp-4);
  background: var(--navy-800);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--sp-3);
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2rem, var(--maxw-narrow));
  margin-inline: auto;
}

.section {
  padding: var(--sp-7) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 44ch;
  margin-bottom: var(--sp-6);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-3);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--copper-600);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-head.center .eyebrow::before {
  display: none;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-mid);
  margin-bottom: var(--sp-5);
  text-wrap: pretty;
}

.dim {
  color: var(--text-dim);
}

.small {
  font-size: var(--step--1);
}

.grid {
  display: grid;
  gap: var(--sp-4);
  /* minmax(0,1fr), not the default minmax(auto,1fr): auto floors the track at
     max-content, so one unbreakable string (hello@nickstilesandflooring.com)
     pushed the whole grid past the viewport at 360px. */
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 620px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 620px) and (max-width: 859px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   4. Header + nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 68px;
  padding: var(--sp-3) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--navy-900);
  flex-shrink: 0;
}

/* Logo lockup mark. Two variants: the full-colour logo on light surfaces,
   and a simplified white knockout on navy, where the logo's own navy would
   disappear. See media/brand/README.md. */
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.brand-logo-knockout {
  height: 36px;
}

/* Full logo shown at size — About page only. One big logo per site is plenty. */
.brand-plate {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 0 var(--sp-5);
}

@media (max-width: 420px) {
  .brand-logo {
    height: 34px;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav a {
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--navy-800);
  background: var(--navy-050);
}

.nav a.active {
  color: var(--navy-800);
  background: var(--navy-050);
}

/* Qualified with .btn so this wins over the .btn display rule further down. */
.btn.header-cta {
  display: none;
  white-space: nowrap;
}

@media (min-width: 960px) {
  .btn.header-cta {
    display: inline-flex;
  }
}

/* Below the desktop breakpoint the nav drops to its own scrollable row. */
@media (max-width: 767px) {
  .header-inner {
    flex-wrap: wrap;
    gap: var(--sp-2);
    padding-bottom: 0;
  }
  .header-right {
    order: 3;
    width: 100%;
  }
  .nav {
    width: 100%;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--line);
    padding: var(--sp-1) 0;
    margin-top: var(--sp-1);
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    padding: 0.4rem 0.65rem;
  }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.btn-primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-accent {
  background: var(--copper-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: var(--copper-700);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--navy-800);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--navy-600);
  color: var(--navy-900);
  background: #fff;
}

.btn-onnavy {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-onnavy:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: var(--sp-5) 0 0;
}

.actions.center {
  justify-content: center;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
}

.textlink:hover {
  text-decoration: underline;
}

.textlink svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: var(--sp-8) 0 var(--sp-9);
}

/* Faint tile grid — subject-appropriate texture, no image request. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 100% at 78% 0%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 100% at 78% 0%, #000 15%, transparent 72%);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero-inner {
  max-width: 46rem;
}

.hero .eyebrow {
  color: var(--copper-500);
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--sp-4);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.2rem);
  max-width: 40rem;
}

.hero .actions {
  margin-top: var(--sp-6);
}

.hero-note {
  margin: var(--sp-5) 0 0;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   7. Trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--sp-7) * -1);
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (min-width: 620px) {
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 940px) {
  .trust-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4);
  background: var(--surface);
}

.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--copper-600);
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.trust-item span {
  display: block;
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.35;
}


/* --------------------------------------------------------------------------
   7b. Promo video
   -------------------------------------------------------------------------- */
.video-section {
  padding-top: var(--sp-6);
  padding-bottom: 0;
}

.video-block {
  max-width: 960px;
  margin: 0 auto;
}

.video-block video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.video-intro {
  margin: 0 0 var(--sp-3);
  text-align: center;
  color: var(--text-mid);
  font-size: var(--step-0);
}

.video-caption {
  margin: var(--sp-3) 0 0;
  text-align: center;
  font-size: var(--step-0);
  color: var(--text-mid);
}

.video-caption a {
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.video-caption a:hover {
  color: var(--copper-600);
}

.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;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.card-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.card h3 {
  margin-bottom: var(--sp-2);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--navy-050);
  color: var(--navy-700);
  margin-bottom: var(--sp-4);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-icon.accent {
  background: var(--copper-050);
  color: var(--copper-600);
}

/* Service cards */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  margin: 0;
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0 0;
  font-size: 0.94rem;
  color: var(--text-mid);
}

.tick-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-top: var(--sp-2);
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.85rem;
  height: 0.5rem;
  border-left: 2px solid var(--copper-600);
  border-bottom: 2px solid var(--copper-600);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   9. Steps / process
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  margin: 0;
  position: relative;
  padding-top: var(--sp-5);
  border-top: 3px solid var(--line-strong);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: calc(var(--sp-5) * -1 + 0.35rem);
  left: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  background: var(--navy-800);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 0 0 5px var(--bg);
}

.section-alt .steps li::before {
  box-shadow: 0 0 0 5px var(--bg-alt);
}

.steps h3 {
  font-size: var(--step-1);
  margin-bottom: var(--sp-2);
}

.steps p {
  color: var(--text-mid);
  font-size: 0.96rem;
  margin: 0;
}

@media (max-width: 619px) {
  .steps li {
    margin-top: var(--sp-6);
  }
  .steps li:first-child {
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   10. Area / chips / badges
   -------------------------------------------------------------------------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 0;
  margin: 0;
  list-style: none;
}

.chip-row li {
  margin: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-accent {
  background: var(--copper-050);
  color: var(--copper-700);
  border: 1px solid rgba(180, 83, 9, 0.25);
}

.badge-good {
  background: var(--good-bg);
  color: var(--good);
  border: 1px solid rgba(37, 107, 77, 0.25);
}

/* Heading that sits directly under a .badge */
.badge-heading {
  margin-top: var(--sp-3);
}

/* --------------------------------------------------------------------------
   11. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-900));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: var(--sp-3);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 46ch;
  margin-inline: auto;
}

.cta-band .actions {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   12. Booking flow
   -------------------------------------------------------------------------- */
.book-layout {
  display: grid;
  gap: var(--sp-5);
  align-items: start;
}

@media (min-width: 900px) {
  .book-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: var(--sp-6);
  }
  .book-aside {
    position: sticky;
    top: 92px;
  }

  /* Once the calendar is on screen it needs the whole page width: under about
     768px Cal stacks the time slots below the month grid instead of beside it.
     The sidebar drops to the bottom, where it's still reachable. */
  .book-layout.is-scheduling {
    grid-template-columns: minmax(0, 1fr);
  }
  .book-layout.is-scheduling .book-aside {
    position: static;
    max-width: 32rem;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.panel + .panel {
  margin-top: var(--sp-4);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.panel-head h2 {
  font-size: var(--step-2);
  margin: 0;
}

.step-badge {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--navy-050);
  color: var(--navy-700);
  font-size: 0.88rem;
  font-weight: 700;
}

.panel-note {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin: calc(var(--sp-2) * -1) 0 var(--sp-4);
}

/* Forms */
label {
  display: block;
  font-weight: 650;
  font-size: 0.94rem;
  margin-bottom: var(--sp-2);
}

.optional-label {
  margin-top: var(--sp-3);
  font-weight: 500;
  color: var(--text-dim);
}

.optional-inline {
  font-weight: 500;
  color: var(--text-dim);
  font-size: 0.86em;
}

.form-section {
  margin: 0 0 var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.form-section-title {
  margin: 0 0 var(--sp-3);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-900);
}

.field-grid {
  display: grid;
  gap: 0 var(--sp-3);
}

@media (min-width: 560px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.job-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.job-areas {
  margin-bottom: var(--sp-3);
}

.field-hint {
  margin: 0 0 var(--sp-3);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.scope-panel {
  margin: var(--sp-3) 0 0;
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2, var(--bg));
}

.scope-panel[hidden] {
  display: none !important;
}

.scope-panel + .scope-panel {
  margin-top: var(--sp-3);
}

.scope-title {
  margin: 0 0 var(--sp-2);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy-900);
}

.scope-note {
  margin: 0 0 var(--sp-3);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.soft-req {
  font-weight: 500;
  color: var(--text-dim);
  font-size: 0.86em;
}

.char-count {
  margin: calc(var(--sp-2) * -1) 0 var(--sp-3);
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: right;
}

.check-hint {
  display: inline;
  font-weight: 500;
  color: var(--text-dim);
  font-size: 0.9em;
}

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

.material-other-wrap[hidden] {
  display: none !important;
}

.material-other-wrap .optional-label {
  margin-top: var(--sp-1);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: flex-start;
}

.row .btn {
  flex-shrink: 0;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
  flex: 1 1 8rem;
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface);
  color: var(--text);
  margin-bottom: var(--sp-4);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

textarea {
  resize: vertical;
  min-height: 5.5rem;
  line-height: 1.45;
}

.row input[type="text"],
.row input[type="number"],
.row input[type="email"],
.row input[type="tel"] {
  margin-bottom: 0;
}

input[type="text"]:hover,
input[type="number"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="date"]:hover,
textarea:hover,
select:hover {
  border-color: var(--navy-600);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: var(--ring);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348525f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.4rem;
}

fieldset.yn {
  border: 0;
  padding: 0;
  margin: 0 0 var(--sp-4);
}

fieldset.yn legend {
  font-weight: 650;
  font-size: 0.94rem;
  margin-bottom: var(--sp-2);
  padding: 0;
}

.yn-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* Radio/checkbox rows styled as tappable cards. */
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 550;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.check:hover {
  border-color: var(--navy-600);
  background: var(--navy-050);
}

.check input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--navy-700);
  flex-shrink: 0;
}

.check:has(input:checked) {
  border-color: var(--navy-700);
  background: var(--navy-050);
  color: var(--navy-900);
}

.check-block {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 0.75rem 1rem;
  gap: 0.65rem;
}

.check-block input {
  margin-top: 0.18rem;
}

/* Status messages */
.msg {
  margin: var(--sp-3) 0 0;
  font-size: 0.94rem;
  font-weight: 550;
}

.msg:empty {
  margin: 0;
}

/* Explains the greyed-out Priority tab while the paid tier is switched off.
   Deliberately not .msg — that weight suits a one-line status, not a
   paragraph. Only the lead sentence is emphasised. */
.soon-note {
  display: block;
  margin: var(--sp-4) 0 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper-600);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-mid);
  font-size: var(--step--1);
  line-height: 1.55;
}

.soon-note strong {
  color: var(--text);
}

.msg.ok,
.msg.err {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
}

.msg.ok {
  color: var(--good);
  background: var(--good-bg);
  border: 1px solid rgba(37, 107, 77, 0.22);
}

.msg.err {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid rgba(151, 35, 31, 0.22);
}

.msg.ok::before {
  content: "✓";
  font-weight: 700;
}

.msg.err::before {
  content: "!";
  font-weight: 700;
}

.msg.warn {
  color: var(--navy-800, #0d2338);
  background: #fff6e8;
  border: 1px solid #e8c48a;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md, 8px);
}

.msg.warn::before {
  content: "!";
}

.trip-banner {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: #fff6e8;
  border: 1px solid #e8c48a;
  border-radius: var(--radius-md, 8px);
}

.trip-banner p {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.45;
}

.trip-pay-wrap {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--border, #d6d3cd);
}

.trip-pay-note {
  margin: 0 0 var(--sp-3);
  font-size: var(--step--1);
  color: var(--ink-muted, #5c5a55);
}

/* Priority / pricing card */
.priority-card {
  border-color: rgba(180, 83, 9, 0.35);
  box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.12), var(--shadow);
  background: linear-gradient(180deg, var(--copper-050), var(--surface) 34%);
}


/* Priority SLA timing callout */
.priority-sla {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid rgba(13, 35, 56, 0.12);
  border-radius: 10px;
  background: rgba(13, 35, 56, 0.04);
  color: var(--text-dim);
  font-size: var(--step--1);
  line-height: 1.45;
}
.priority-sla p {
  margin: 0;
}
.priority-sla p + p {
  margin-top: var(--sp-1);
}
.priority-sla strong {
  color: var(--navy-800);
  font-weight: 650;
}

/* Quiet Priority cancellation note — muted stone/navy */
.priority-policy {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: var(--step--1);
  line-height: 1.45;
}
.priority-policy-lead {
  margin: 0 0 var(--sp-2);
  font-weight: 650;
  color: var(--navy-700);
  font-size: var(--step--1);
  letter-spacing: 0.01em;
}
.priority-policy ul {
  margin: 0 0 var(--sp-3);
  padding-left: 1.15rem;
}
.priority-policy li {
  margin-bottom: var(--sp-1);
}
.priority-policy p {
  margin: 0;
}
.priority-policy a {
  color: var(--navy-700);
  text-underline-offset: 2px;
}
.priority-policy a:hover {
  color: var(--navy-900);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.price {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--navy-900);
  line-height: 1;
}

.price-unit {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.price-strike {
  font-size: 1rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.military-note {
  font-size: 0.93rem;
  color: var(--text-mid);
  margin: var(--sp-3) 0 0;
}

.intake-summary {
  margin: var(--sp-4) 0 0;
  padding: var(--sp-4);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.intake-summary p {
  margin: 0 0 var(--sp-2);
  font-size: 0.92rem;
}

.notes-pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-mid);
}

.cal-box {
  margin-top: var(--sp-4);
  padding: var(--sp-5);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.cal-box p {
  margin: 0;
}

/* Booking sidebar */
.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.aside-card h2 {
  font-size: var(--step-1);
  margin-bottom: var(--sp-4);
}

.aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-mid);
}

.aside-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: var(--sp-3);
}

.aside-list li:first-child {
  margin-top: 0;
}

.aside-list svg {
  width: 18px;
  height: 18px;
  color: var(--copper-600);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.contact-item .card-icon {
  margin-bottom: 0;
  /* Without this the icon is a shrinkable flex item: the Service area card's
     longer text squeezed it from 44px down to ~15px wide. A fixed width is not
     enough on its own inside a flex row. */
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: var(--step-1);
  margin-bottom: var(--sp-1);
}

.contact-item a {
  font-weight: 650;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding: var(--sp-7) 0 var(--sp-5);
  margin-top: var(--sp-8);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-tag {
  color: rgba(255, 255, 255, 0.5);
}

.footer-grid {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-col h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--sp-3);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.94rem;
}

.footer-col li {
  margin-top: var(--sp-2);
}

.footer-col li:first-child {
  margin-top: 0;
}

.footer-about p {
  font-size: 0.94rem;
  margin: var(--sp-4) 0 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.62);
}

.footer-bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   15. Sticky mobile CTA
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px -8px rgba(13, 35, 56, 0.25);
}

.sticky-cta .btn {
  width: 100%;
}

/* The booking page is itself the call to action — no need to double up. */
body.page-book .sticky-cta {
  display: none;
}

body.page-book {
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   16. Motion preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .sticky-cta,
  .cta-band,
  .actions {
    display: none !important;
  }
  body {
    background: #fff;
    padding-bottom: 0;
  }
  .site-footer {
    background: #fff;
    color: #000;
  }
}


/* Trip charge panel (separate from Priority — never on Priority card) */
.trip-card {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fffaf2;
}
.trip-under-wrap {
  margin-top: var(--sp-2);
}
.trip-pay-wrap {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Geoapify address autocomplete */
.addr-autocomplete {
  position: relative;
  margin-bottom: 0.35rem;
}
.addr-autocomplete input {
  width: 100%;
}
.addr-suggestions {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: var(--surface, #fff);
  border: 1px solid var(--stone, #d6d0c6);
  border-radius: var(--radius, 10px);
  box-shadow: 0 8px 24px rgba(28, 36, 48, 0.12);
  max-height: 240px;
  overflow-y: auto;
}
.addr-suggestions li {
  margin: 0;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text, #1c2430);
  line-height: 1.35;
}
.addr-suggestions li:hover,
.addr-suggestions li[aria-selected="true"] {
  background: #eef3f8;
}
.addr-suggestions li .addr-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim, #5c6675);
  margin-top: 0.15rem;
}
/* "No matches in 23692" — informational, not a selectable option. */
.addr-suggestions li.addr-empty,
.addr-suggestions li.addr-empty:hover {
  color: var(--text-dim, #5c6675);
  font-size: 0.88rem;
  cursor: default;
  background: transparent;
}
.geoapify-attr {
  margin: 0.15rem 0 1rem;
  font-size: 0.78rem;
}


/* Soft preference windows (Option 2 — no customer Cal embed) */
.pref-lead {
  margin-bottom: var(--sp-3);
}
.pref-quiet {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-5);
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.pref-quiet li {
  margin: 0 0 var(--sp-1);
  padding-left: 0.85rem;
  position: relative;
}
.pref-quiet li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}
.pref-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-2);
}
.pref-row {
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.pref-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: var(--sp-3);
}
.pref-fields {
  display: grid;
  gap: 0 var(--sp-3);
}
@media (min-width: 560px) {
  .pref-fields {
    grid-template-columns: 1.1fr 1fr;
  }
}
.pref-fields label {
  margin-bottom: var(--sp-2);
}
.pref-fields input[type="date"],
.pref-fields select {
  margin-bottom: 0;
}
.thanks-banner {
  margin: var(--sp-4) 0 0;
  padding: var(--sp-4);
  border-radius: var(--radius-sm);
  background: var(--good-bg);
  border: 1px solid rgba(37, 107, 77, 0.22);
  color: var(--good);
}
.thanks-banner p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}
.nick-ops-note {
  margin-top: var(--sp-4);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Scheduling step — Standard / Priority tabs + Cal.com embeds
   -------------------------------------------------------------------------- */
.path-tabs {
  display: grid;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-5);
}

@media (min-width: 560px) {
  .path-tabs { grid-template-columns: 1fr 1fr; }
}

.path-tab {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.14s ease, background-color 0.14s ease,
    box-shadow 0.14s ease;
}

.path-tab:hover { border-color: var(--navy-600); }

.path-tab.is-active {
  border-color: var(--navy-700);
  background: var(--navy-050);
  box-shadow: inset 0 0 0 1px var(--navy-700);
}

.path-tab-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

.path-tab-sub { font-size: 0.85rem; color: var(--text-dim); }

/* Cal injects an iframe here and sets it to height:100%, so the CONTAINER's
   height is what the calendar actually gets. Cal's own embed CSS also lands a
   ~300px height on this element, which clipped the time-slot panel entirely —
   hence the ID selectors below, which outrank it.
   Mobile needs more room because Cal stacks the times under the month grid. */
.cal-embed {
  width: 100%;
  border-radius: var(--radius-sm);
}

#cal-standard,
#cal-priority {
  min-height: 900px;
  overflow: visible;
}

@media (min-width: 900px) {
  #cal-standard,
  #cal-priority {
    min-height: 760px;
  }
}

/* Cal sets height:100% as an INLINE style on the iframe, and a percentage
   height can't resolve against a parent sized only by min-height — so it
   collapsed to ~150px. !important is the only way to outrank an inline style,
   and overriding a third-party one is exactly what it's for. */
#cal-standard iframe,
#cal-priority iframe {
  width: 100%;
  height: 900px !important;
  border: 0;
}

@media (min-width: 900px) {
  #cal-standard iframe,
  #cal-priority iframe {
    height: 760px !important;
  }
}

.cal-fallback { justify-content: center; }

.schedule-fallback {
  margin: var(--sp-5) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--text-mid);
}

/* The pay gate keeps the priority-card treatment inside the tab panel. */
#priority-pay-gate.priority-card {
  border: 1px solid rgba(180, 83, 9, 0.35);
  border-radius: var(--radius);
  padding: var(--sp-5);
  background: linear-gradient(180deg, var(--copper-050), var(--surface) 34%);
}

#priority-paid-msg { margin-bottom: var(--sp-4); }

/* Button that should read as a link (the preferred-times fallback). */
.linkish {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.linkish:hover { color: var(--navy-600); }

/* Completed step, collapsed to a summary line once you've moved past it. */
.collapsed-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
}

.collapsed-summary-text {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* Stripe Embedded Checkout mounts its own iframe here. */
.stripe-checkout {
  margin: var(--sp-4) 0 0;
  min-height: 420px;
}

/* Priority tab when Cal has nothing inside the promised window. */
.path-tab.is-unavailable {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--bg-alt);
  border-color: var(--line);
  box-shadow: none;
}

.path-tab.is-unavailable:hover {
  border-color: var(--line);
}

.path-tab.is-unavailable .path-tab-sub {
  color: var(--danger);
  font-weight: 600;
}

/* Cancellation / refund policy shown before payment. */
.policy-box {
  margin: var(--sp-4) 0;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.policy-head {
  margin: 0 0 var(--sp-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.policy-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-mid);
}

.policy-contact {
  margin: var(--sp-3) 0 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.policy-accept {
  border-color: var(--copper-600);
}

.policy-accept:has(input:checked) {
  border-color: var(--good);
  background: var(--good-bg);
}

.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Equal tiles. A spanning "hero" tile was tried and removed: with a fixed 16/9
   ratio it grew far taller than its single-column neighbour and left a large
   hole in the grid. */

.gallery-item { margin: 0; }

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  font: inherit;
  text-align: left;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gallery-open:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.gallery-open img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.gallery-open figcaption {
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 1400px);
  max-height: 94vh;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(13, 35, 56, 0.88);
  backdrop-filter: blur(3px);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--navy-900);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lightbox-close:hover { background: var(--bg-alt); }

/* Gallery tabs (Our work / Inspiration) and the reference-image disclaimer. */
.gallery-tabs {
  max-width: 34rem;
  margin-inline: auto;
}

.gallery-note {
  max-width: 52ch;
  margin: 0 auto var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-mid);
  text-align: center;
}

/* Phone photos are a mix of portrait and landscape; 4:3 crops both without
   decapitating the portraits the way 16:9 did. */
.gallery-open img {
  aspect-ratio: 4 / 3;
}

/* Scheduling fallback: two explicit actions rather than a run-on sentence
   where the links were easy to miss. */
.schedule-fallback-lead {
  margin: 0 0 var(--sp-3);
  font-size: 0.95rem;
  color: var(--text-mid);
}

.schedule-fallback-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 620px) {
  .schedule-fallback-list { grid-template-columns: 1fr 1fr; }
}

.schedule-fallback-list li {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}

.schedule-fallback-list span {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.45;
}


/* Long email/URL text must be allowed to shrink and wrap inside the flex row. */
.contact-item > div {
  min-width: 0;
}

.contact-item a {
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Form field states
   Quiet by default; a tick when a filled field is good; a single line of red
   only once the field has actually been used.
   -------------------------------------------------------------------------- */
.field-msg {
  margin: calc(var(--sp-2) * -1) 0 var(--sp-3);
  min-height: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-dim);
}

.field-msg:empty {
  margin: 0;
}

.field-msg.is-error {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--danger);
  font-weight: 550;
}

.field-msg.is-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

input.is-invalid.is-invalid,
select.is-invalid.is-invalid {
  /* inset shadow rather than a thicker border: reads as a 2px edge without
     changing the box size, so nothing shifts when the state flips. */
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
  background-color: #fff5f4;
}

input.is-invalid.is-invalid:focus,
select.is-invalid.is-invalid:focus {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger), 0 0 0 3px rgba(151, 35, 31, 0.18);
}

/* Filled and valid: green edge plus a tick drawn in the padding, so nothing
   reflows when the state changes. */
input.is-valid.is-valid,
select.is-valid.is-valid {
  border-color: var(--good);
  box-shadow: inset 0 0 0 1px rgba(37, 107, 77, 0.45);
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23256b4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
}

input.is-valid.is-valid:focus,
select.is-valid.is-valid:focus {
  border-color: var(--good);
  box-shadow: inset 0 0 0 1px rgba(37, 107, 77, 0.45), 0 0 0 3px rgba(37, 107, 77, 0.18);
}

/* select already uses a background-image chevron — keep it, shift the tick. */
select.is-valid.is-valid {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23256b4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348525f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 2.3rem center, right 0.75rem center;
  background-size: 1rem, 1.1rem;
  padding-right: 3.9rem;
}

/* ============================================================
   SEO landing components — service-area page and the FAQ block
   ============================================================ */

.section-tight {
  padding-bottom: var(--sp-5);
}

.section-intro {
  max-width: 62ch;
  color: var(--text-mid);
  margin-bottom: var(--sp-6);
}

.center {
  text-align: center;
}

.center .actions,
.center p {
  margin-left: auto;
  margin-right: auto;
}

/* --- breadcrumb ------------------------------------------------ */

.breadcrumb {
  font-size: var(--step--1);
  color: var(--text-dim);
  margin-bottom: var(--sp-4);
}

.breadcrumb a {
  color: var(--text-mid);
}

.breadcrumb span[aria-hidden] {
  margin: 0 var(--sp-2);
  color: var(--line-strong);
}

/* --- city cards ------------------------------------------------- */

/* minmax(0,1fr) not minmax(auto,1fr): the ZIP runs are long unbroken
   strings and the auto floor lets them push the grid wider than the page. */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--sp-5);
}

.area-card {
  min-width: 0;
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.area-card h3 {
  margin: 0 0 var(--sp-3);
  font-size: var(--step-1);
}

.area-card p {
  margin: 0 0 var(--sp-3);
  color: var(--text-mid);
}

.area-card p:last-child {
  margin-bottom: 0;
}

.area-zips {
  font-size: var(--step--1);
  color: var(--text-dim) !important;
  overflow-wrap: anywhere;
}

.area-zips-label {
  display: block;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  margin-bottom: var(--sp-1);
}

.zip-dump {
  font-size: var(--step--1);
  line-height: 1.9;
  color: var(--text-mid);
  overflow-wrap: anywhere;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

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

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 600;
}

/* Chevron drawn in CSS so the markup stays clean and there's no icon font. */
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--copper-600);
  border-bottom: 2px solid var(--copper-600);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq-item summary:hover h3 {
  color: var(--navy-600);
}

.faq-item summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

.faq-answer {
  padding: 0 0 var(--sp-5);
  max-width: 68ch;
}

.faq-answer p {
  margin: 0;
  color: var(--text-mid);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after {
    transition: none;
  }
}

/* Chips became links to /service-area, so they need link affordances the
   inert <span> version didn't. */
a.chip {
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

a.chip:hover {
  color: var(--navy-700);
  border-color: var(--navy-600);
  background: var(--navy-050);
}

@media (prefers-reduced-motion: reduce) {
  a.chip {
    transition: none;
  }
}
