/* ==========================================================================
   Blue Horse Painters
   Navy ink, cobalt blue, warm gold accent. Fraunces headings, Public Sans body.
   ========================================================================== */

:root {
  /* Colour */
  --ink: #0b1630;
  --ink-2: #101f44;
  --ink-3: #1a2c5c;
  --blue: #1f56d8;
  --blue-dark: #1843ad;
  --blue-light: #8fb6ff;
  --blue-bright: #4d8dff;
  --blue-tint: #e8effd;
  --gold: #f0b24a;
  --gold-light: #f8cc7e;
  --gold-dark: #d6922a;
  --gold-deep: #9a6210;
  --overlay-soft: rgba(11, 22, 48, 0.45);
  --overlay-deep: rgba(6, 12, 28, 0.94);
  --paper: #f7f4ee;
  --paper-2: #efeadf;
  --white: #ffffff;
  --text: #18213a;
  --muted: #4d5872;
  --line: #d9d3c5;
  --field-line: #6c758c;
  --btn-light-mid: #f3efe6;
  --btn-light-low: #e2dccd;
  --line-dark: rgba(255, 255, 255, 0.16);
  --on-dark: #f4f1ea;
  --on-dark-muted: #c2cbe0;
  --error: #b3261e;
  --success: #1b6e3c;

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --container: 72rem;
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --nav-h: 76px;

  /* Radii */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-card: 0 4px 16px rgba(11, 22, 48, 0.06), 0 1px 3px rgba(11, 22, 48, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-card-hover: 0 28px 56px rgba(11, 22, 48, 0.14), 0 10px 20px rgba(11, 22, 48, 0.08);
  --shadow-nav: 0 6px 24px rgba(4, 9, 22, 0.35);

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  /* Keeps focused elements clear of the chat launcher fixed to the bottom */
  scroll-padding-bottom: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
}

h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
}

p {
  margin: 0 0 var(--space-2);
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-light);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 400;
  padding: 0.8rem 1.1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--gold);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Logo mark ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
}

.logo-mark {
  width: auto;
  height: 44px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 480px) {
  .logo-name {
    font-size: 1.2rem;
  }
}

.logo-sub {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
}

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

.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  box-shadow: 0 4px 15px rgba(240, 178, 74, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(240, 178, 74, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-light {
  color: var(--ink);
  background: linear-gradient(180deg, var(--white) 0%, var(--btn-light-mid) 50%, var(--btn-light-low) 100%);
  box-shadow: 0 4px 15px rgba(4, 9, 22, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(4, 9, 22, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-lg {
  min-height: 56px;
  padding: 1rem 1.9rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

.btn-nav {
  padding-inline: 1.6rem;
  white-space: nowrap;
}

/* Secondary actions are text links */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--gold-deep);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.text-link:hover {
  color: var(--blue);
  text-decoration-color: var(--blue);
}

.text-link--light {
  color: var(--white);
  text-decoration-color: var(--gold);
}

.text-link--light:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

.kicker-rule {
  display: inline-block;
  width: 34px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: var(--ink);
  box-shadow: var(--shadow-nav);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--nav-h);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0 11px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) 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(-8px) rotate(-45deg);
}

/* Mobile menu: solid background, never see-through */
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2) var(--gutter) var(--space-3);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  box-shadow: var(--shadow-nav);
}

.nav-menu.open {
  display: flex;
}

.site-header.menu-open {
  background: var(--ink);
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-links {
    display: flex;
    gap: var(--space-4);
  }

  .nav-links a::after {
    left: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 780px);
  padding-block: calc(var(--nav-h) + var(--space-5)) var(--space-6);
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
}

.hero-bg,
.cta-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Left-weighted so the headline stays readable over the photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 22, 48, 0.96) 0%, rgba(11, 22, 48, 0.88) 38%, rgba(11, 22, 48, 0.5) 72%, rgba(11, 22, 48, 0.3) 100%),
    linear-gradient(180deg, rgba(11, 22, 48, 0.55) 0%, rgba(11, 22, 48, 0) 30%);
}

.hero .container {
  position: relative;
}

.hero-content {
  max-width: 40rem;
}

.hero-title {
  margin-bottom: var(--space-3);
  font-size: clamp(2.35rem, 6.4vw, 4.3rem);
  color: var(--white);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-dark-muted);
}

.hero-line {
  display: block;
}

.hero-title .highlight {
  color: var(--blue-light);
}

.hero-text {
  max-width: 34rem;
  margin-bottom: var(--space-4);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--on-dark);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: 0.95rem;
  background: var(--ink-2);
  border-block: 1px solid var(--line-dark);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--on-dark);
}

.marquee-item::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 1.6rem;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- Area strip ---------- */
.area-strip {
  padding-block: 0.9rem;
  color: var(--white);
  background: var(--blue);
}

.area-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem var(--space-4);
}

.area-strip p {
  margin: 0;
  font-weight: 600;
}

.area-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.area-strip .area-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.4rem;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  gap: var(--space-5);
}

.services-intro p {
  max-width: 30rem;
  color: var(--muted);
}

.svc-list {
  border-top: 2px solid var(--ink);
}

.svc {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.svc-photo {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: var(--paper-2);
}

.svc-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.svc-body {
  align-self: center;
}

.svc h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.service-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--blue);
}

.svc p {
  margin: 0;
  max-width: 32rem;
  color: var(--muted);
}

@media (min-width: 480px) {
  .svc {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  }
}

@media (min-width: 768px) {
  .svc {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: var(--space-6);
    align-items: start;
  }

  .services-intro {
    position: sticky;
    top: calc(var(--nav-h) + var(--space-4));
  }
}

/* ---------- Proof band ---------- */
.proof {
  color: var(--on-dark);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(31, 86, 216, 0.35) 0%, rgba(31, 86, 216, 0) 55%),
    var(--ink);
}

.proof-top {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.proof-title {
  margin: var(--space-2) 0 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
}

.proof-title span {
  display: block;
}

.proof-title .proof-accent {
  color: var(--gold);
}

.proof-note {
  max-width: 30rem;
  margin: 0;
  font-size: 1.1rem;
  color: var(--on-dark-muted);
}

.facts {
  display: grid;
  border-top: 1px solid var(--line-dark);
}

.fact {
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line-dark);
}

.fact dt {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.fact dd {
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--white);
}

.fact dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

@media (min-width: 768px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line-dark);
  }

  .fact {
    padding: var(--space-3) var(--space-3) var(--space-3) 0;
    border-bottom: 0;
  }

  .fact + .fact {
    padding-left: var(--space-3);
    border-left: 1px solid var(--line-dark);
  }
}

@media (min-width: 1024px) {
  .proof-top {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: end;
  }
}

/* ---------- Getting a quote ---------- */
.quote {
  background: var(--white);
}

.quote-grid {
  display: grid;
  gap: var(--space-4);
}

.quote-intro p {
  max-width: 28rem;
  color: var(--muted);
}

.quote-list {
  border-top: 2px solid var(--ink);
}

.quote-item {
  display: grid;
  gap: 0.3rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.quote-item dt {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.quote-item dd {
  color: var(--muted);
}

.quote-item dd a {
  display: inline-block;
  padding-block: 0.7rem;
  color: var(--blue-dark);
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .quote-item {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: var(--space-4);
    align-items: baseline;
  }
}

@media (min-width: 1024px) {
  .quote-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: var(--space-6);
    align-items: start;
  }

  .quote-intro {
    position: sticky;
    top: calc(var(--nav-h) + var(--space-4));
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.about-photos {
  position: relative;
  max-width: 30rem;
}

.about-photo-main {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  background: var(--paper-2);
}

.about-photo-main img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  right: -10px;
  bottom: -22px;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  background: var(--white);
  border: 4px solid var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
}

.about-badge img {
  width: 68px;
  height: auto;
}

.about-lead {
  font-size: 1.2rem;
  color: var(--text);
}

.about-copy p {
  max-width: 34rem;
}

.about-copy p:not(.about-lead) {
  color: var(--muted);
}

.about-copy .btn {
  margin-top: var(--space-2);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: var(--space-6);
  }
}

/* ---------- CTA banner ---------- */
.cta {
  position: relative;
  padding-block: clamp(4rem, 9vw, 6.5rem);
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 22, 48, 0.95) 0%, rgba(11, 22, 48, 0.86) 50%, rgba(11, 22, 48, 0.6) 100%);
}

.cta-inner {
  position: relative;
}

.cta h2 {
  max-width: 44rem;
  font-size: clamp(2rem, 5vw, 3.3rem);
  color: var(--white);
}

.cta h2 span {
  display: block;
}

.cta-accent {
  color: var(--gold);
}

.cta p {
  max-width: 34rem;
  margin-bottom: var(--space-4);
  font-size: 1.1rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-5);
}

.contact-info > p {
  max-width: 32rem;
  color: var(--muted);
}

.contact-list {
  margin-top: var(--space-4);
  border-top: 2px solid var(--ink);
}

.contact-item {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: var(--space-2);
  align-items: center;
  min-height: 56px;
  padding-block: 0.4rem;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.contact-item dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item dd {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (min-width: 480px) {
  .contact-item {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }
}

.contact-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue-dark);
}

.form-panel {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.5s var(--ease-spring), border-color 0.5s var(--ease-spring), transform 0.5s var(--ease-spring);
}

.form-fields {
  display: grid;
  gap: var(--space-2);
}

.form-row {
  display: grid;
  gap: var(--space-2);
}

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

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--paper);
  border: 1.5px solid var(--field-line);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 86, 216, 0.28);
}

.form-field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error,
.form-error {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--error);
}

.form-error a {
  color: var(--error);
}

.form-privacy {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-privacy a {
  display: inline-block;
  padding-block: 0.75rem;
  color: var(--blue-dark);
}

.form-success h3 {
  color: var(--success);
}

.hp-field {
  position: absolute;
  left: -9999px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--space-6);
    align-items: start;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: var(--space-6);
  color: var(--on-dark-muted);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

.footer-brand p {
  max-width: 22rem;
  margin-top: var(--space-2);
}

.site-footer h2 {
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.site-footer li {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.site-footer li a,
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
  text-decoration: none;
  transition: transform 0.3s ease, color var(--transition-fast);
}

.site-footer li a:hover,
.footer-bottom a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-3);
  /* Leaves room for the chat launcher */
  padding-block: var(--space-2) 5.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.95rem;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-5);
  }

  .footer-bottom {
    padding-bottom: var(--space-3);
    padding-right: 13rem;
  }
}

/* ---------- Legal and 404 pages ---------- */
.site-header--solid {
  position: sticky;
  top: 0;
  background: var(--ink);
}

.legal-back {
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.legal {
  max-width: 46rem;
  padding-block: var(--space-5) var(--space-6);
}

.legal h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.legal h2 {
  margin-top: var(--space-4);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.legal ul {
  margin: 0 0 var(--space-2);
  padding-left: 1.3rem;
  list-style: disc;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--blue-dark);
}

.legal-contact a {
  display: inline-block;
  padding-block: 0.7rem;
}

.legal-updated {
  color: var(--muted);
}

.legal-draft {
  padding: var(--space-2) var(--space-3);
  background: var(--blue-tint);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
}

.hero--plain {
  min-height: 100vh;
}

/* ---------- Shared: screen-reader text and preview notes ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Marks placeholder content in the preview. Remove with the placeholders. */
.sample-note {
  display: inline-block;
  margin-top: var(--space-2);
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--gold-light);
  border-radius: var(--radius-sm);
}

/* ---------- Our work (gallery) ---------- */
.work-head,
.reviews-head {
  max-width: 40rem;
  margin-bottom: var(--space-4);
}

.gallery-grid {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--overlay-soft);
  opacity: 0;
}

.gallery-overlay svg {
  width: 34px;
  height: 34px;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
}

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

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

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 4.5rem 0.75rem 1.5rem;
  background: var(--overlay-deep);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-figure {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.lightbox-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 11rem);
  margin-inline: auto;
  border-radius: var(--radius);
}

.lightbox-caption {
  margin-top: 0.9rem;
  color: var(--white);
}

.lightbox-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--white);
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-btn:hover {
  background: var(--blue);
}

.lightbox-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.lightbox-btn svg {
  width: 24px;
  height: 24px;
}

.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
}

.lightbox-prev svg {
  transform: rotate(180deg);
}

/* ---------- Reviews ---------- */
.reviews {
  background: var(--white);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold-dark);
}

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

.review-featured {
  margin: 0 0 var(--space-4);
  padding-left: 1.2rem;
  border-left: 3px solid var(--blue);
}

.review-featured blockquote,
.review blockquote {
  margin: 0.6rem 0 0.8rem;
}

.review-featured blockquote p {
  max-width: 46rem;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.35;
  color: var(--ink);
}

.review-by {
  font-weight: 700;
  color: var(--ink);
}

.review-by span {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.review-list {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.review {
  padding: 1.4rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .review-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-4);
  }
}

/* ==========================================================================
   Motion. Everything here is skipped when the visitor asks for less motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveals (only when JS is running) */
  .js .fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s var(--ease-spring), transform 1.2s var(--ease-spring);
  }

  .js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .js .svc-list .fade-in:nth-child(2),
  .js .quote-list .fade-in:nth-child(2) {
    transition-delay: 0.08s;
  }

  .js .svc-list .fade-in:nth-child(3),
  .js .quote-list .fade-in:nth-child(3) {
    transition-delay: 0.16s;
  }

  /* Marquee */
  .marquee-track {
    animation: scroll-marquee 26s linear infinite;
  }

  @keyframes scroll-marquee {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }

  /* Hero */
  .hero-bg img {
    animation: hero-zoom-out 20s ease-out forwards;
  }

  @keyframes hero-zoom-out {
    from {
      transform: scale(1.15);
    }
    to {
      transform: scale(1);
    }
  }

  .hero-kicker {
    animation: slide-down 0.8s var(--ease-spring) 0.2s both;
  }

  @keyframes slide-down {
    from {
      transform: translateY(-20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Shimmer on the highlighted phrase, in the brand blue */
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-title .highlight {
      background: linear-gradient(100deg, var(--blue-light) 0%, var(--blue-light) 35%, var(--white) 50%, var(--blue-light) 65%, var(--blue-light) 100%);
      background-size: 250% 100%;
      background-position: 100% 0;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: blue-shimmer 4s ease 1s infinite;
    }
  }

  @keyframes blue-shimmer {
    0% {
      background-position: 100% 0;
    }
    60%,
    100% {
      background-position: 0 0;
    }
  }

  .btn-pulse {
    animation: pulse-glow 2.5s ease-in-out 2s infinite;
  }

  @keyframes pulse-glow {
    0%,
    100% {
      box-shadow: 0 4px 15px rgba(240, 178, 74, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
    50% {
      box-shadow: 0 8px 40px rgba(240, 178, 74, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
  }

  .btn-nav {
    animation: nav-cta-pulse 2s ease-in-out infinite;
  }

  @keyframes nav-cta-pulse {
    0%,
    100% {
      box-shadow: 0 4px 15px rgba(240, 178, 74, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
    50% {
      box-shadow: 0 6px 26px rgba(240, 178, 74, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
  }

  /* Service rows */
  .svc:hover .svc-photo img {
    transform: scale(1.05);
  }

  .js .svc .service-icon {
    transform: scale(0);
  }

  .js .svc.visible .service-icon {
    animation: icon-pop 0.6s var(--ease-spring) 0.3s forwards;
  }

  @keyframes icon-pop {
    0% {
      transform: scale(0);
    }
    60% {
      transform: scale(1.15);
    }
    100% {
      transform: scale(1);
    }
  }

  /* About photo: slow settle when it scrolls in */
  .js .about-photo-main img {
    transform: scale(1.15);
  }

  .js .about-photos.visible .about-photo-main img {
    animation: about-zoom 12s linear forwards;
  }

  @keyframes about-zoom {
    from {
      transform: scale(1.15);
    }
    to {
      transform: scale(1);
    }
  }

  /* Micro-interactions */
  .form-panel:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: var(--shadow-card-hover);
  }

  .contact-item:hover,
  .quote-item:hover {
    transform: translateX(8px);
  }

  .site-footer li a:hover {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .marquee-track {
    animation-duration: 16s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    row-gap: 0.4rem;
  }

  /* The second copy only exists for the loop */
  .marquee-item:nth-child(n + 9) {
    display: none;
  }

  .btn,
  .form-panel,
  .contact-item,
  .quote-item,
  .svc-photo img,
  .site-footer li a {
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  }

  .btn:hover {
    transform: none;
  }
}

/* Below-the-fold sections render lazily */
.quote,
.about,
.contact,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .marquee,
  .hero-bg,
  .cta-bg,
  .nav-toggle,
  #cc-chat-toggle,
  #cc-chat-panel,
  .form-panel {
    display: none;
  }

  .hero,
  .proof,
  .cta,
  .site-footer {
    color: #000;
    background: #fff;
  }

  .hero-title,
  .proof-title,
  .cta h2,
  .fact dd {
    color: #000;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-item {
    transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring);
  }

  .gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
  }

  .gallery-item img {
    transition: transform var(--transition-slow);
  }

  .gallery-item:hover img {
    transform: scale(1.05);
  }

  .gallery-overlay {
    transition: opacity var(--transition-base);
  }

  .gallery-overlay svg {
    transform: scale(0.8);
    transition: transform var(--transition-base);
  }

  .gallery-item:hover .gallery-overlay svg {
    transform: scale(1);
  }

  .lightbox.open .lightbox-img {
    animation: lightbox-zoom 0.4s var(--ease-spring);
  }

  .review {
    transition: transform 0.4s var(--ease-spring);
  }

  .review:hover {
    transform: translateY(-6px);
  }

  .review.visible .stars svg {
    animation: star-pop 0.3s var(--ease-spring) backwards;
  }

  .review.visible .stars svg:nth-child(1) { animation-delay: 0.2s; }
  .review.visible .stars svg:nth-child(2) { animation-delay: 0.3s; }
  .review.visible .stars svg:nth-child(3) { animation-delay: 0.4s; }
  .review.visible .stars svg:nth-child(4) { animation-delay: 0.5s; }
  .review.visible .stars svg:nth-child(5) { animation-delay: 0.6s; }

  @keyframes lightbox-zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  @keyframes star-pop {
    0% { transform: scale(0) rotate(-30deg); }
    70% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0); }
  }
}
