/* Rooster Carpentry — homepage styles
   ------------------------------------------------------------
   1. Tokens          5. Hero              9. Founder
   2. Base            6. Services         10. Reviews
   3. Layout helpers  7. Certifications   11. Contact
   4. Header + nav    8. Recent work      12. Footer
                                          13. City pages
   ------------------------------------------------------------ */

/* 1. Tokens */

:root {
  /* Colour */
  --ink: #0e0f11;          /* text on light backgrounds */
  --charcoal: #151719;     /* dark grey: header, menu and every dark section */
  --ink-soft: #36332f;   /* body copy on light backgrounds (~11:1) */
  --paper: #f6f4ef;
  --white: #ffffff;
  --cedar: #af8560;        /* brand tan (from Squarespace): large display text, accents on dark */
  --cedar-strong: #8f6d4f; /* buttons + tan band: passes AA with white text */
  --cedar-ink: #7e6045;    /* small tan text on light backgrounds (AA) */
  --line-dark: rgba(14, 15, 17, 0.18);
  --line-light: rgba(255, 255, 255, 0.22);

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --text-xs: 0.8125rem;  /* 13 */
  --text-sm: 0.9375rem;  /* 15 */
  --text-base: 1rem;     /* 16 */
  --text-lg: 1.125rem;   /* 18 */
  --text-h3: 1.375rem;   /* 22 */
  --text-h2: clamp(2rem, 1.4rem + 2.6vw, 3rem);       /* 32 → 48 */
  --text-h1: clamp(2.75rem, 1.9rem + 4vw, 4.75rem);    /* 44 → 76 */
  --text-stat: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);  /* 36 → 48 */

  /* Space (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --container: 72rem; /* 1152 */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --header-h: 5.5rem;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 768px) {
  :root { --header-h: 4.5rem; }
}

/* 2. Base */

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

html {
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

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

a { color: inherit; }

p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.2; }
h2 strong { font-weight: 600; }

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

.accent { color: var(--cedar); }

.nowrap { white-space: nowrap; }

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

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* 3. Layout helpers */

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

.section { padding-block: var(--section-y); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-tan { background: var(--cedar-strong); color: var(--white); }

/* Eyebrow + heading block that opens each section */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-7);
}

@media (max-width: 768px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
  }
}

.eyebrow {
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cedar-ink);
}
.section-dark .eyebrow { color: var(--cedar); }
.eyebrow-light,
.section-tan .eyebrow { color: var(--white); }

.lede { max-width: 34rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 var(--space-6);
  border: 0;
  border-radius: 0;
  background: var(--cedar-strong);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.btn:hover { background: var(--cedar-ink); }
.btn-sm { min-height: 2.75rem; padding: 0 var(--space-5); font-size: var(--text-sm); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.text-link:hover { color: var(--cedar-ink); }

/* 4. Header + nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
}

.brand { display: block; flex-shrink: 0; }
.brand img { width: auto; height: 4rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding-block: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { background-size: 100% 1px; }

.nav-toggle { display: none; }

@media (max-width: 768px) {
  .brand img { height: 3.25rem; }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-right: calc(var(--space-3) * -1);
    border: 0;
    background: none;
    color: var(--white);
    cursor: pointer;
  }

  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s var(--ease), background-color 0.25s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before,
  .nav-toggle-bar::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-6);
    padding: var(--space-4) var(--gutter) var(--space-7);
    background: var(--charcoal);
    border-top: 1px solid var(--line-light);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    display: block;
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--line-light);
    font-size: 1.75rem;
    background: none;
  }
  .nav-links a[aria-current="page"] { color: var(--cedar); }

  .site-nav .btn { width: 100%; min-height: 3.25rem; font-size: var(--text-base); }
}

/* 5. Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 47.5rem);
  padding-block: var(--space-9);
  color: var(--white);
  background: var(--charcoal);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.38) 55%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content { position: relative; z-index: 1; }

.hero .eyebrow {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-style: italic;
  letter-spacing: 0.08em;
}

/* Primary call to action: a step up from the standard button */
.hero .btn {
  min-height: 3.75rem;
  padding-inline: var(--space-7);
  font-size: var(--text-lg);
}

/* Always two lines. "Fencing, framing," is ~7.2em wide in Oswald caps, so on
   narrow screens the size shrinks to keep that line inside the container.
   A page with a longer line sets its own --hero-fit (that line's width in em, plus a little). */
.hero h1 {
  margin-bottom: var(--space-5);
  font-size: min(var(--text-h1), calc((100vw - 2 * var(--gutter)) / var(--hero-fit, 7.4)));
}
.hero-line { display: block; white-space: nowrap; }

/* Matches the headline's width (~548px at full size), so the copy sits as a block under it */
.hero-text {
  max-width: 34rem;
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
  line-height: 1.6;
  text-wrap: pretty;
}

@media (max-width: 768px) {
  .hero {
    min-height: min(calc(100svh - var(--header-h)), 40rem);
    padding-block: var(--space-8);
  }
  /* Text sits mid-image on phones, so darken evenly rather than toward the bottom */
  .hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.5) 100%);
  }
  .hero-text { font-size: var(--text-base); }
}

/* 6. Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8) var(--space-6);
}

.service img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: var(--space-5);
}

/* Service titles: body typeface, small spaced caps */
.service h3 {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
}
.service p { color: var(--ink-soft); }

.extras {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--line-dark);
  text-align: center;
}

/* Same space below the tags as between the divider and the label */
#services { padding-bottom: var(--space-7); }

.extras-label {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.extras-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Below the width where all six fit on one line, cap the list so it
   breaks 4 + 2 instead of leaving one tag alone (5 + 1). */
@media (max-width: 1179px) {
  .extras-list { max-width: 44rem; }
}

.extras-list li {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line-dark);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Carousel dots only appear on phones (below) */
.service-dots { display: none; }

/* Phones: a swipeable row instead of six stacked cards. The next card
   peeks in from the right so it's clear the row scrolls. */
@media (max-width: 560px) {
  .service-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: var(--space-4);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .service-grid::-webkit-scrollbar { display: none; }
  .service { scroll-snap-align: start; }
  .service img { margin-bottom: var(--space-4); }
  .service h3 { margin-bottom: var(--space-2); }
  .service-grid:focus-visible { outline-offset: -2px; }

  /* Left-aligned with the card text (offsets the first dot's tap padding) */
  .service-dots {
    display: flex;
    margin: var(--space-3) 0 0 -0.25rem;
  }

  .extras { margin-top: var(--space-6); padding-top: var(--space-6); }
}

/* Dots: small pills, the active one stretches wider and turns tan.
   Each button is 44px tall with side padding, so it's easy to tap. */
.service-dots button {
  display: grid;
  place-items: center;
  height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  cursor: pointer;
}

.service-dots button::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: rgba(14, 15, 17, 0.22);
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.service-dots button[aria-current="true"]::before {
  width: 1.25rem;
  background: var(--cedar-strong);
}

/* 7. Certifications */

.certs h2 { margin-bottom: var(--space-5); }
.certs-copy { max-width: 40rem; }

/* One row of logos under the copy, left-aligned with it; 2 × 2 on phones */
.cert-logos {
  --logo-scale: 1;
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
}

.cert-logos li { display: flex; align-items: center; min-width: 0; }

.cert-logos img {
  width: auto;
  height: calc(var(--logo-h, 2.25rem) * var(--logo-scale));
  max-width: 100%;
  /* One-colour white so every logo reads on the tan band */
  filter: brightness(0) invert(1);
}

@media (max-width: 640px) {
  .cert-logos {
    --logo-scale: 0.85;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-7) var(--space-5);
  }
  .cert-logos li { justify-content: center; }
}

/* 8. Recent work */

.work-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr;
  grid-template-rows: repeat(2, clamp(10rem, 18vw, 15rem));
  grid-template-areas:
    "a b d"
    "a c d";
  gap: var(--space-2);
}

.work-grid img { width: 100%; height: 100%; object-fit: cover; }
.work-a { grid-area: a; }
.work-b { grid-area: b; }
.work-c { grid-area: c; }
.work-d { grid-area: d; }

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, clamp(8.5rem, 32vw, 13rem));
    grid-template-areas:
      "a b"
      "a c"
      "d d";
  }
}

/* 9. Founder */

.founder {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-7) var(--space-8);
  align-items: start;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.founder h2 { margin-bottom: var(--space-5); }

.founder-copy { max-width: 36rem; }
.founder-copy p + p { margin-top: var(--space-4); }

.stats {
  display: flex;
  gap: var(--space-8);
  margin: var(--space-7) 0 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-light);
}

.stats dt {
  font-family: var(--font-display);
  font-size: var(--text-stat);
  line-height: 1;
}

.stats dd {
  margin: var(--space-2) 0 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 28rem; }
}

@media (max-width: 480px) {
  .stats { gap: var(--space-7); }
}

/* 10. Reviews */

.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--space-7) var(--space-7) var(--space-6);
  background: var(--white);
}

.review::before {
  content: '“';
  height: 2.25rem;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--cedar);
}

.review blockquote { margin: 0 0 var(--space-6); }

.review figcaption {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-style: italic;
  font-weight: 600;
}

@media (max-width: 768px) {
  .reviews { grid-template-columns: 1fr; gap: var(--space-4); }
  .review { padding: var(--space-6) var(--space-5) var(--space-5); }
}

/* 11. Contact */

.contact {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-7) var(--space-8);
  align-items: start;
}

.contact h2 { margin-bottom: var(--space-5); }

.contact-list {
  margin: var(--space-6) 0 0;
  border-top: 1px solid var(--line-light);
}

.contact-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line-light);
}

.contact-list dt {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

/* Inline links get a 44px tap area without changing the row height */
.contact-list a,
.footer-contact a {
  display: inline-block;
  padding-block: 0.75rem;
  margin-block: -0.75rem;
}

.contact-list a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s var(--ease);
}
.contact-list a:hover { text-decoration-color: currentColor; }

.contact-form {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-7);
  background: var(--white);
  color: var(--ink);
}

.contact-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-form legend { margin-bottom: var(--space-3); padding: 0; font-weight: 600; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

.contact-form label { display: block; font-size: var(--text-sm); font-weight: 500; }
.contact-form label span { font-weight: 400; color: var(--ink-soft); }

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid #8a8580;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-base); /* 16px stops iOS zooming on focus */
  font-weight: 400;
  transition: border-color 0.2s var(--ease);
}
.contact-form input { min-height: 3rem; }
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-form input:hover,
.contact-form textarea:hover { border-color: var(--ink); }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline-offset: 0; border-color: var(--cedar-strong); }

.contact-form .btn { justify-self: start; margin-top: var(--space-2); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .contact-form { padding: var(--space-6) var(--space-5); gap: var(--space-4); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
}

/* 12. Footer */

.site-footer {
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-7) var(--space-6);
}

.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Body typeface, one step up and bold. Tight line-height so its cap
   tops line up with the "Areas we serve" heading. */
.footer-title {
  margin: -0.125rem 0 var(--space-4);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}


.footer-logo { width: 7.5rem; margin-top: var(--space-6); }

.footer-contact,
.footer-col ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-heading {
  margin: 0 0 var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}

/* Alphabetical, reading down each column */
.footer-col .area-list {
  display: block;
  columns: 4;
  column-gap: var(--space-5);
}
.area-list li { break-inside: avoid; margin-bottom: var(--space-2); }

/* 36px-wide hit areas (44px tall) keep the icons close together;
   the negative margin lines the first icon up with the text above */
.footer-social {
  display: flex;
  gap: var(--space-1);
  margin: var(--space-3) 0 0 -0.4375rem;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.75rem;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.footer-social a:hover { color: var(--cedar-ink); }

@media (max-width: 1024px) {
  .footer-col .area-list { columns: 3; }
}

@media (max-width: 768px) {
  .footer-col .area-list { columns: 2; }
}

/* Phones: one column, with the logo moved to the very bottom */
@media (max-width: 560px) {
  .footer-grid { display: flex; flex-direction: column; gap: 0; }
  .footer-brand { display: contents; }
  .footer-areas { order: 1; margin-top: var(--space-7); }
  .footer-logo { order: 2; margin-top: var(--space-7); }
}


/* Message shown under the Submit button after sending */
.form-status {
  margin: 0;
  padding: var(--space-4);
  border-left: 3px solid;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.form-status--success { border-color: var(--cedar-strong); background: #f3ece4; }
.form-status--error { border-color: #a33a2b; background: #f8e9e6; }
.form-status a { color: inherit; text-decoration: underline; }
.contact-form .btn:disabled { opacity: 0.7; cursor: wait; }

.form-privacy {
  margin-top: calc(var(--space-2) * -1);
  font-size: var(--text-xs);
  color: var(--ink-soft);
}

/* Standalone message pages (404) */

.page-message {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
}
.page-message h1 { margin-bottom: var(--space-5); font-size: var(--text-h2); }
.page-message h1 strong { font-weight: 600; }
.page-message .lede { margin-bottom: var(--space-6); }
.page-message .lede a { color: var(--cedar); }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }

/* 13. City pages (/port-moody/ etc.) */

/* Heading on the left, copy on the right; same columns as the founder block */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-5) var(--space-8);
  align-items: start;
}

.city-copy { max-width: 40rem; }
.section:not(.section-dark) .city-copy p { color: var(--ink-soft); }
.city-copy p + h3 { margin-top: var(--space-6); }

/* Same small spaced caps as the service titles */
.city-copy h3 {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
}
.city-copy h3:first-child { margin-top: 0.3rem; }

/* All twelve services: capped so they wrap in even rows of four on desktop
   instead of leaving one tag alone on the last line */
.services-list { max-width: 50rem; }

/* Neighbourhood tags: left-aligned, outlined in white on the dark band */
.neighbourhoods { justify-content: flex-start; }
.section-dark .extras-list li { border-color: var(--line-light); }

.work-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.work-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.city-reviews-head { margin-top: var(--space-9); }

/* City links look like the plain names around them until hovered */
.site-footer .area-list a { color: inherit; }
.site-footer .area-list a:hover {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .work-pair { grid-template-columns: 1fr; }
  .city-reviews-head { margin-top: var(--space-8); }
}
