:root {
  --bg: #f2f1e8;
  --surface: #fbfaf3;
  --panel: rgba(250, 249, 240, 0.9);
  --ink: #17211d;
  --muted: #556158;
  --line: rgba(23, 33, 29, 0.18);
  --sand: #c8d0c3;
  --olive: #27483f;
  --sky: #496f82;
  --terracotta: #934a27;
  --yellow: #e1b34b;
  --shadow: 0 1px 0 rgba(23, 33, 29, 0.16);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --max-width: 1180px;
  --display: "League Spartan", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  background:
    linear-gradient(90deg, rgba(39, 72, 63, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #f7f5ed 0%, #e8eee8 58%, #f1eee4 100%);
  background-size: 96px 100%, auto;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

.site-shell {
  overflow: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(242, 241, 232, 0.94);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  letter-spacing: 0.04em;
}

.brand-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.62rem;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-copy {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.28rem;
  width: 100%;
  height: 1px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.call-chip {
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.1;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button {
  background: var(--olive);
  color: #fff;
  box-shadow: var(--shadow);
}

.button:hover,
.button:focus-visible {
  background: #18332d;
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(73, 111, 130, 0.1);
  border-color: rgba(73, 111, 130, 0.28);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(73, 111, 130, 0.52);
  transform: translateY(-1px);
}

.hero {
  width: 100%;
  padding: 0;
  position: relative;
}

.hero-grid {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.hero-copy,
.hero-visual {
  padding: clamp(2rem, 4vw, 4rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.2rem;
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
}

.hero-copy h1,
.page-hero-copy h1 {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.hero-copy h1 {
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  max-width: 7.2ch;
}

.hero-copy h1 span,
.page-hero-copy h1 span {
  display: block;
  color: var(--terracotta);
}

.hero-copy p,
.page-hero-copy p {
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 1.3rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.micro-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2.3rem;
  max-width: 42rem;
}

.micro-proof div {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.micro-proof strong {
  display: block;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.micro-proof span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  justify-content: end;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 16, 13, 0.04) 0%, rgba(19, 16, 13, 0.18) 100%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(19, 16, 13, 0) 0%, rgba(19, 16, 13, 0.5) 100%);
}

.hero-photo-home {
  background-image: url("assets/bowdens-home-hero.jpg");
  background-size: cover;
  background-position: center center;
}

.visual-caption {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin: 0 0 2rem;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(250, 249, 240, 0.88);
  box-shadow: var(--shadow);
  border: 1px solid rgba(250, 249, 240, 0.72);
}

.visual-caption strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}

.visual-caption p {
  margin: 0.65rem 0 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.section {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 0.92;
  text-transform: uppercase;
  max-width: 10ch;
}

.section-header p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.service-grid,
.location-grid,
.faq-grid,
.work-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-item,
.location-item,
.faq-item,
.story-panel,
.contact-panel,
.detail-panel,
.coverage-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.service-item,
.location-item,
.faq-item,
.detail-panel,
.coverage-panel {
  border-top: 3px solid rgba(39, 72, 63, 0.58);
}

.location-item {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.location-item:hover,
.location-item:focus-visible {
  background: rgba(232, 238, 232, 0.92);
  border-color: rgba(39, 72, 63, 0.42);
  transform: translateY(-2px);
}

.service-item:nth-child(2n),
.faq-item:nth-child(2n),
.coverage-panel:nth-child(2n) {
  border-top-color: rgba(73, 111, 130, 0.58);
}

.service-item:nth-child(3n),
.faq-item:nth-child(3n) {
  border-top-color: rgba(225, 179, 75, 0.72);
}

.service-item,
.location-item,
.faq-item,
.detail-panel,
.coverage-panel {
  padding: 1.6rem;
}

.service-item h3,
.location-item h3,
.faq-item h3,
.detail-panel h3,
.coverage-panel h3,
.story-panel h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.95;
}

.service-item h3,
.location-item h3,
.faq-item h3,
.detail-panel h3,
.coverage-panel h3 {
  font-size: 1.75rem;
}

.service-item p,
.location-item p,
.faq-item p,
.detail-panel p,
.coverage-panel p,
.story-panel p,
.contact-panel p,
.quote-note {
  color: var(--muted);
  margin: 0.7rem 0 0;
}

.service-list,
.coverage-list,
.detail-list,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.service-list li,
.coverage-list li,
.detail-list li,
.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.service-list li::before,
.coverage-list li::before,
.detail-list li::before,
.contact-list li::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(225, 179, 75, 0.18);
}

.story-layout,
.contact-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.story-panel,
.contact-panel {
  padding: 2rem;
}

.story-panel h2,
.contact-panel h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  max-width: 8ch;
}

.family-note {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(73, 111, 130, 0.1);
  border: 1px solid rgba(73, 111, 130, 0.2);
  color: var(--olive);
  font-size: 0.84rem;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.story-stats div {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.story-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 0.95;
}

.story-stats span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 1.4rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(23, 33, 29, 0.26);
  background: rgba(255, 255, 250, 0.92);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sky);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.quote-note {
  font-size: 0.92rem;
}

.work-gallery {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.work-photo {
  margin: 0;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--sand);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.work-photo.wide {
  min-height: 520px;
  grid-row: span 2;
}

.work-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.work-photo figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(23, 33, 29, 0.76);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
}

.footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2.8rem;
}

.footer-inner {
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-area-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.footer-area-links a {
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.page-hero {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.page-hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
}

.page-hero-copy,
.page-hero-side {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero-copy h1 {
  font-size: clamp(3rem, 6.5vw, 5.4rem);
}

.page-hero-side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.page-hero-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 17, 14, 0.06) 0%, rgba(21, 17, 14, 0.62) 100%);
}

.page-hero-side > * {
  position: relative;
  z-index: 1;
}

.page-hero-side strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero-side p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0.7rem 0 0;
}

.photo-mackay {
  background-image: url("assets/bowdens-mackay-floor.jpg");
  background-size: cover;
  background-position: center center;
}

.photo-sarina {
  background-image: url("assets/bowdens-sarina-patio.jpg");
  background-size: cover;
  background-position: center center;
}

.photo-marian {
  background-image: url("assets/bowdens-marian-bathroom.jpg");
  background-size: cover;
  background-position: center center;
}

.photo-walkerston {
  background-image: url("assets/bowdens-walkerston-driveway.jpg");
  background-size: cover;
  background-position: center center;
}

.fade-in {
  animation: riseIn 650ms ease both;
}

.fade-delay-1 {
  animation-delay: 120ms;
}

.fade-delay-2 {
  animation-delay: 240ms;
}

.fade-delay-3 {
  animation-delay: 360ms;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .topbar-inner,
  .hero-grid,
  .story-layout,
  .contact-layout,
  .detail-layout,
  .page-hero-wrap {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    padding: 0.9rem 0;
    display: grid;
    justify-content: stretch;
  }

  .nav-links,
  .header-actions {
    justify-content: flex-start;
  }

  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 1rem;
  }

  .hero-visual {
    min-height: 420px;
    align-items: end;
  }

  .visual-caption {
    margin-right: auto;
  }

  .micro-proof,
  .service-grid,
  .location-grid,
  .faq-grid,
  .work-gallery,
  .story-stats,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .work-photo.wide {
    min-height: 340px;
    grid-row: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .section,
  .page-hero,
  .footer {
    width: min(var(--max-width), calc(100% - 1.25rem));
  }

  .hero-copy,
  .hero-visual,
  .story-panel,
  .contact-panel,
  .page-hero-copy,
  .page-hero-side,
  .service-item,
  .location-item,
  .faq-item,
  .detail-panel,
  .coverage-panel {
    padding: 1.25rem;
  }

  .work-photo {
    min-height: 260px;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .call-chip {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 250, 0.6);
    color: var(--ink);
  }

  .call-chip {
    white-space: normal;
  }
}
