/* =============================================================
   4homes — Base Stylesheet
   Loads: Google Fonts → Design tokens → Reset → Components
   Mobile-first. min-width breakpoints only.
   Breakpoints: 768px (tablet) · 1024px (desktop)
   ============================================================= */

/* Fonts and tokens loaded via <link> in PHP <head> — see index.php */


/* ── Reset ───────────────────────────────────────────────────── */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-body);
  line-height: var(--leading-base);
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

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

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

ul,
ol {
  list-style: none;
}

/* ── Base Typography ─────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--c-text);
}

h1 { font-size: clamp(2.5rem, 8vw, var(--text-5xl)); font-weight: var(--fw-display); }
h2 { font-size: clamp(2rem, 5vw, var(--text-4xl)); }
h3 { font-size: clamp(1.5rem, 3.5vw, var(--text-3xl)); }
h4 { font-size: clamp(1.25rem, 2.5vw, var(--text-2xl)); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  line-height: var(--leading-base);
}

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

strong { font-weight: var(--fw-bold); }

/* Eyebrow label — used above section headings */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-1);
}

/* ── Layout Utilities ────────────────────────────────────────── */

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

.container--narrow {
  max-width: var(--container-narrow);
}

/* Section vertical rhythm */
.section {
  padding-block: var(--sp-10);
}

.section--soft {
  background-color: var(--c-bg-soft);
}

.section--dark {
  background-color: var(--c-bg-dark);
  color: var(--c-text-inverse);
}

.section__header {
  margin-bottom: var(--sp-6);
}

.section__header--centered {
  text-align: center;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

.section__lead {
  margin-top: var(--sp-2);
  font-size: var(--text-md);
  color: var(--c-text-secondary);
  max-width: 60ch;
}

/* Orange rule — the only orange decorative element in sections */
.section__rule {
  display: block;
  width: 2.5rem;
  height: 2px;
  background-color: var(--c-accent);
  margin-top: var(--sp-2);
}

.section__rule--centered {
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--sp-3);
  }

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

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--sp-5);
  }
}


/* ── Navigation ──────────────────────────────────────────────── */

/* site-header: the sticky outer wrapper */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background-color: var(--c-nav-bg);
  box-shadow: var(--c-nav-shadow);
  transition:
    background-color var(--ease-in-out),
    box-shadow       var(--ease-in-out);
}

/* Transparent state — applied by JS on hero pages before scroll.
   Frosted glass rather than fully clear, so the menu keeps a subtle
   backing over the hero imagery.

   The frost sits on a pseudo-element, NOT on .site-header itself.
   backdrop-filter makes an element the containing block for its
   position:fixed descendants, and the mobile drawer (.nav__menu) is a
   fixed descendant of the header sized with top/bottom. With the filter
   on the header, the drawer resolved against the header's own 64px box
   and collapsed to a single row — only "Home" was visible. Never put
   backdrop-filter, transform, filter or will-change on .site-header. */
.site-header--transparent {
  background-color: transparent;
  box-shadow: none;
}

.site-header--transparent:not(.site-header--scrolled)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: rgba(20, 18, 16, 0.28);
  -webkit-backdrop-filter: blur(14px) saturate(0.9);
  backdrop-filter: blur(14px) saturate(0.9);
}

/* Scrolled state — applied by JS; overrides transparent */
.site-header--scrolled {
  background-color: var(--c-nav-bg);
  box-shadow: var(--c-nav-shadow);
}

/* On transparent: make links and phone white (desktop only —
   the mobile drawer always has a white background regardless) */
@media (min-width: 1024px) {
  /* .nav__link--trigger is listed separately: on linkable parents (e.g. About)
     the chevron lives in its own button that carries no .nav__link class */
  .site-header--transparent:not(.site-header--scrolled) .nav__link,
  .site-header--transparent:not(.site-header--scrolled) .nav__link--trigger,
  .site-header--transparent:not(.site-header--scrolled) .nav__phone {
    color: var(--c-text-inverse);
  }

  .site-header--transparent:not(.site-header--scrolled) .nav__link::after {
    background-color: rgba(255, 255, 255, 0.8);
  }
}

/* Transparent mobile: hamburger bars go white */
.site-header--transparent:not(.site-header--scrolled) .nav__toggle-bar {
  background-color: var(--c-text-inverse);
}

/* site-nav: semantic nav inside the header */
.site-nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-x);
}

/* Logo */
.nav__logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.nav__logo img {
  display: block;
  height: 36px;
  width: auto;
}

/* Dual-logo swap: light version on transparent (dark) nav, dark version otherwise */
/* Use .nav__logo .nav-logo--light (0,2,0) to beat .nav__logo img (0,1,1) */
.nav__logo .nav-logo--light {
  display: none;
}

.site-header--transparent:not(.site-header--scrolled) .nav-logo--dark {
  display: none;
}

.site-header--transparent:not(.site-header--scrolled) .nav-logo--light {
  display: block;
}

/* Hamburger — mobile only */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--c-text);
  transition: transform var(--ease-base), opacity var(--ease-base), background-color var(--ease-base);
  transform-origin: center;
}

/* Hamburger → X */
[data-nav-open] .nav__toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
[data-nav-open] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
[data-nav-open] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav__menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  inset-inline: 0;
  bottom: 0;
  background-color: var(--c-nav-bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--sp-3) var(--sp-2) var(--sp-10);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  gap: 0;
}

[data-nav-open] .nav__menu {
  display: flex;
}

.nav__list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nav__item {
  border-bottom: 1px solid var(--c-border-subtle);
}

.nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-2) 0;
  font-size: var(--text-lg);
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  color: var(--c-nav-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--ease-fast);
  -webkit-tap-highlight-color: transparent;
}

.nav__link:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.nav__link:hover,
.nav__link[aria-current="page"],
.nav__link[aria-current="true"] {
  color: var(--c-accent);
}

/* Split nav item — link + standalone chevron trigger */
.nav__item__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__item__wrap .nav__link {
  flex: 1;
}

.nav__link--trigger {
  display: flex;
  align-items: center;
  padding: var(--sp-2) 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-nav-text);
  transition: color var(--ease-fast);
  -webkit-tap-highlight-color: transparent;
}

.nav__link--trigger:hover,
.nav__link--trigger:focus-visible {
  color: var(--c-accent);
}

.nav__link--trigger:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Dropdown chevron */
.nav__chevron {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--ease-base);
  flex-shrink: 0;
}

.nav__item--open .nav__chevron {
  transform: rotate(180deg);
}

/* Mobile sub-nav */
.nav__sub {
  display: none;
  flex-direction: column;
  padding-left: var(--sp-2);
  padding-bottom: var(--sp-1);
  border-left: 2px solid var(--c-accent-muted);
  margin-left: 2px;
}

.nav__item--open .nav__sub {
  display: flex;
}

.nav__sub-link {
  display: block;
  padding: var(--sp-1) 0;
  font-size: var(--text-base);
  color: var(--c-text-secondary);
  transition: color var(--ease-fast);
}

.nav__sub-link:hover,
.nav__sub-link[aria-current="page"] {
  color: var(--c-accent);
}

.nav__sub-link:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* Phone — in mobile drawer */
.nav__phone {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border-subtle);
  font-size: var(--text-md);
  color: var(--c-text);
  transition: color var(--ease-fast);
}

.nav__phone:hover {
  color: var(--c-accent);
}

.nav__phone-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* CTA button in drawer */
.nav__cta {
  display: inline-flex;
  margin-top: var(--sp-3);
  align-self: flex-start;
}

/* Desktop phone+CTA group — hidden on mobile, shown via desktop grid */
.nav__actions {
  display: none;
}

/* ── Desktop nav — horizontal ─────────────────────────────────── */
@media (min-width: 1024px) {
  .nav__toggle {
    display: none;
  }

  .nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    padding-inline: var(--sp-5);
    max-width: none;
    margin-inline: 0;
  }

  .nav__menu {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    background: none;
    padding: 0;
    overflow: visible;
    gap: 0;
    justify-content: center;
  }

  /* Hide the drawer copies of phone+CTA on desktop */
  .nav__menu .nav__phone,
  .nav__menu .nav__cta {
    display: none;
  }

  /* Desktop phone+CTA group — right column of grid */
  .nav__actions {
    display: flex;
    align-items: center;
    justify-self: end;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0;
    width: auto;
  }

  .nav__item {
    border-bottom: none;
    position: relative;
  }

  .nav__link {
    padding: 0.375rem var(--sp-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--fw-ui);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--c-nav-text);
    position: relative;
    transition: color var(--ease-fast);
  }

  /* Orange underline on hover / active — not colour change on desktop */
  .nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: var(--sp-2);
    right: var(--sp-2);
    height: 1.5px;
    background-color: var(--c-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease-base);
  }

  .nav__link:hover,
  .nav__link[aria-current="page"],
  .nav__link[aria-current="true"] {
    color: var(--c-nav-text);
  }

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

  .nav__link--trigger {
    padding: 0.375rem 0.25rem;
  }

  .nav__chevron {
    display: block;
  }

  /* Desktop dropdown */
  .nav__sub {
    display: block;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 230px;
    background-color: var(--c-bg);
    border: 1px solid var(--c-border);
    border-top: 2px solid var(--c-accent);
    padding: var(--sp-1) 0;
    border-left: none;
    margin-left: 0;
    z-index: var(--z-dropdown);
    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--ease-base), transform var(--ease-base);
  }

  /* Hover OR keyboard-open */
  .nav__item:hover .nav__sub,
  .nav__item--open .nav__sub {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__sub-link {
    display: block;
    padding: 0.5rem var(--sp-2);
    font-size: var(--text-sm);
    color: var(--c-text);
    white-space: nowrap;
    transition: background-color var(--ease-fast), color var(--ease-fast);
  }

  .nav__sub-link:hover,
  .nav__sub-link[aria-current="page"] {
    background-color: var(--c-bg-soft);
    color: var(--c-accent);
  }

  /* Phone in desktop nav bar */
  .nav__phone {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    color: var(--c-text-secondary);
    margin-inline: var(--sp-1);
    white-space: nowrap;
    transition: color var(--ease-base);
  }

  .nav__phone-icon {
    width: 0.875rem;
    height: 0.875rem;
  }

  .nav__cta {
    margin-top: 0;
    margin-left: var(--sp-2);
    align-self: auto;
  }
}


/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  height: var(--btn-height);
  padding-inline: var(--btn-pad-x);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-fw);
  letter-spacing: var(--btn-tracking);
  text-transform: uppercase;
  border-radius: var(--btn-radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color var(--ease-base), color var(--ease-base),
              border-color var(--ease-base), box-shadow var(--ease-base);
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* Primary — orange fill */
.btn--primary {
  background-color: var(--c-accent);
  border-color: var(--c-accent-border);
  color: var(--c-text-inverse);
}

.btn--primary:hover {
  background-color: var(--c-accent-dark);
  border-color: var(--c-accent-border);
}

.btn--primary:active {
  background-color: var(--c-accent-dark);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Secondary — outline */
.btn--secondary {
  background-color: transparent;
  border-color: var(--c-accent-border);
  color: var(--c-text);
}

.btn--secondary:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* Ghost — for use on dark/image backgrounds */
.btn--ghost {
  background-color: transparent;
  border-color: var(--c-accent-border);
  color: var(--c-text-inverse);
}

.btn--ghost:hover {
  background-color: var(--c-text-inverse);
  color: var(--c-text);
  border-color: var(--c-accent-border);
}

/* Large variant — hero CTAs */
.btn--lg {
  height: var(--btn-height-lg);
  padding-inline: var(--sp-5);
  font-size: var(--text-base);
}

/* Focus ring — accessibility */
.btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* Nav CTA — slimmer than standard buttons */
@media (min-width: 1024px) {
  .nav__actions .nav__cta {
    height: 2.25rem;
    padding-inline: var(--sp-2);
    font-size: var(--text-xs);
  }
}


/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: var(--hero-min-h-fb);
  min-height: var(--hero-min-h);
  display: flex;
  align-items: flex-end;  /* content anchored to bottom — more cinematic */
  overflow: hidden;
  background-color: var(--c-bg-dark);  /* fallback while image loads */
  /* Pull the hero behind the sticky nav so the transparent header
     shows the hero background rather than the white body */
  margin-top: calc(var(--nav-height) * -1);
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.45) 0%,
    rgba(26, 26, 26, 0.15) 60%,
    rgba(26, 26, 26, 0.04) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--sp-8) var(--sp-2) var(--sp-10);
  color: var(--c-text-inverse);
}

.hero__title {
  font-size: clamp(2.75rem, 10vw, var(--text-6xl));
  font-weight: var(--fw-display);
  color: var(--c-text-inverse);
  max-width: 14ch;
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
}

.hero__subtitle {
  margin-top: var(--sp-2);
  font-size: clamp(var(--text-base), 2.5vw, var(--text-md));
  color: var(--c-text-inverse-muted);
  max-width: 42ch;
  font-weight: var(--fw-body);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

@media (min-width: 768px) {
  .hero__content {
    padding: var(--sp-12) var(--sp-5) var(--sp-12);
  }
}

@media (min-width: 1024px) {
  .hero__content {
    padding: var(--sp-16) var(--sp-8) var(--sp-16);
    max-width: var(--container-max);
    margin-inline: auto;
  }

  .hero__title {
    max-width: 16ch;
  }
}


/* ── Card / Project Tile ─────────────────────────────────────── */

.card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg, var(--c-bg));
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: box-shadow var(--ease-base), transform var(--ease-base);
}

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

.card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--c-bg-soft);
}

.card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.card:hover .card__image-wrap img {
  transform: scale(1.04);
}

.card__body {
  padding: var(--sp-3);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__category {
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-1);
}

.card__title {
  font-size: var(--text-xl);
  font-weight: var(--fw-heading);
  line-height: var(--leading-snug);
}

.card__excerpt {
  margin-top: var(--sp-1);
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  flex: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-accent);
  transition: gap var(--ease-fast);
}

.card__link:hover {
  gap: var(--sp-1);
}

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

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

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


/* ── Gallery Grid ─────────────────────────────────────────────── */

.gallery {
  display: grid;
  gap: var(--gallery-gap);
  grid-template-columns: repeat(var(--gallery-cols-sm), 1fr);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background-color: var(--c-bg-soft);
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.gallery__item:hover img {
  transform: scale(1.06);
}

/* Expand caption on hover */
.gallery__caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-2);
  background: linear-gradient(to top, rgba(26, 26, 26, 0.65) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--ease-base);
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
}

.gallery__caption-text {
  font-size: var(--text-sm);
  color: var(--c-text-inverse);
  font-weight: var(--fw-ui);
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(var(--gallery-cols-md), 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(var(--gallery-cols-lg), 1fr);
  }
}

/* Portrait gallery variant — for project showcases */
.gallery--portrait .gallery__item {
  aspect-ratio: 3 / 4;
}


/* ── SEO Accordion ────────────────────────────────────────────
   Hidden-by-default text for crawlers on visual pages.
   Users can expand; Googlebot reads it regardless.
   ─────────────────────────────────────────────────────────── */

.seo-accordion {
  border-top: 1px solid var(--c-border);
  margin-top: var(--sp-8);
}

.seo-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-2) 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--c-border-subtle);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-text-secondary);
  text-align: left;
  transition: color var(--ease-fast);
}

.seo-accordion__trigger:hover {
  color: var(--c-text);
}

.seo-accordion__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform var(--ease-base);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-accordion[open] .seo-accordion__icon,
.seo-accordion__trigger[aria-expanded="true"] .seo-accordion__icon {
  transform: rotate(180deg);
}

.seo-accordion__body {
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-4);
}

.seo-accordion__body p,
.seo-accordion__body li {
  font-size: var(--text-base);
  color: var(--c-text-secondary);
  line-height: var(--leading-loose);
}

/* Native <details> implementation (no JS needed) */
details.seo-accordion summary {
  list-style: none;
}

details.seo-accordion summary::-webkit-details-marker {
  display: none;
}

details.seo-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-border-subtle);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-text-secondary);
}

details.seo-accordion summary:hover {
  color: var(--c-text);
}

details.seo-accordion[open] summary {
  border-bottom-color: transparent;
}


/* ── Footer ──────────────────────────────────────────────────── */

.site-footer {
  background-color: var(--footer-bg);
  color: var(--c-text-inverse-muted);
  padding-top: var(--sp-10);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
}

.footer__brand .nav__logo {
  margin-bottom: var(--sp-2);
}

.footer__tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  max-width: 36ch;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-text-inverse);
  margin-bottom: var(--sp-2);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--c-text-inverse-muted);
  transition: color var(--ease-fast);
}

.footer__link:hover {
  color: var(--footer-accent);
}

.footer__address {
  font-style: normal;
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
}

.footer__bar {
  border-top: 1px solid var(--footer-border);
  padding-block: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  align-items: flex-start;
}

.footer__bar-copy {
  font-size: var(--text-xs);
  color: var(--c-text-inverse-muted);
}

.footer__bar-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer__bar-legal a {
  font-size: var(--text-xs);
  color: var(--c-text-inverse-muted);
  transition: color var(--ease-fast);
}

.footer__bar-legal a:hover {
  color: var(--footer-accent);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer__bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
  }
}


/* ── Holding Page ────────────────────────────────────────────────
   Temporary while the site is under construction.
   Remove this section once the full site goes live.
   ─────────────────────────────────────────────────────────── */

.holding {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-8) var(--sp-2);
  min-height: 80vh;
}

.holding__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, var(--text-5xl));
  font-weight: var(--fw-display);
  letter-spacing: var(--tracking-tight);
  color: var(--c-text);
}

.holding__rule {
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: var(--sp-3) auto;
  background: var(--c-accent);
}

.holding__tagline {
  font-size: clamp(1.1rem, 3vw, var(--text-md));
  color: var(--c-text);
}

.holding__message {
  margin-top: var(--sp-1);
  font-size: var(--text-base);
  color: var(--c-text-secondary);
}

/* Holding page uses a light off-white background */
body:has(.holding) {
  background-color: var(--c-bg-soft);
}


/* ══════════════════════════════════════════════════════════════
   HOMEPAGE SECTIONS
   ══════════════════════════════════════════════════════════════ */

/* ── Hero eyebrow ─────────────────────────────────────────────── */
.hero__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--sp-2);
}

/* ── Hero carousel ────────────────────────────────────────────── */
.hero-carousel {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #1a1a1a;
}

.hero-carousel__track {
  position: absolute;
  inset: 0;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}

.hero-carousel__slide--active {
  opacity: 1;
}

/* Media wrapper — slightly oversized so Ken Burns never shows edges */
.hero-carousel__media {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  background-size: cover;
  background-position: center;
  background-color: #2a2a2a; /* placeholder while images load */
}

/* Slide images are set via inline style from CMS blocks — see seed/hero-slides.sql */

/* Slides shown at full brightness — legibility comes from the frosted
   content bar below, not a darkening filter */
.hero-carousel__media {
  filter: none;
}

/* Homepage carousel: no full-viewport darkening overlay */
.hero-carousel .hero__overlay {
  display: none;
}

/* Ken Burns — runs only on the active slide's media */
.hero-carousel__slide--active .hero-carousel__media {
  animation: hero-kb 9s ease-out forwards;
}

@keyframes hero-kb {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.09) translate(-1%, -0.5%); }
}

/* Reduced motion: keep the carousel advancing, but cut the zoom and the crossfade
   so the change is instant rather than animated. The JS deliberately still runs. */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide { transition: none; }
  .hero-carousel__slide--active .hero-carousel__media { animation: none; }
}

/* Video upgrade: when a <video> replaces the div */
.hero-carousel__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hero text content sits above track and overlay */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--sp-10) var(--sp-12);
  color: var(--c-text-inverse);
}

.hero__title {
  font-size: clamp(2.5rem, 9vw, var(--text-6xl));
  font-weight: var(--fw-display);
  color: var(--c-text-inverse);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  max-width: 16ch;
  margin-bottom: var(--sp-2);
}

.hero__subtitle {
  font-size: clamp(var(--text-base), 2.5vw, var(--text-md));
  color: rgba(255, 255, 255, 0.8);
  max-width: 42ch;
  margin-bottom: var(--sp-4);
}

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

/* Homepage hero content: full-width frosted bar mirroring the service-page
   banner and fivevalleyresidences — orange line | title | divider | tagline |
   divider | CTA, spanning the frame with side padding. */
.hero-carousel .hero__content {
  max-width: none;
  margin-inline: 0;
  background: rgba(20, 18, 16, 0.38);
  -webkit-backdrop-filter: blur(18px) saturate(0.9);
  backdrop-filter: blur(18px) saturate(0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--sp-4) var(--sp-5);
}

@media (min-width: 1024px) {
  .hero-carousel .hero__content { padding: var(--sp-5) var(--sp-8); }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-carousel .hero__content { background: rgba(20, 18, 16, 0.72); }
}

.hero-carousel .hero__bar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: 100%;
}

/* Orange accent line at the very start */
.hero-carousel .hero__text {
  border-left: 3px solid var(--c-accent);
  padding-left: var(--sp-4);
}

.hero-carousel .hero__title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: var(--fw-heading);
  max-width: none;
  margin: 0;
  line-height: 1.1;
}

.hero-carousel .hero__eyebrow { margin-bottom: var(--sp-1); }

.hero-carousel .hero__subtitle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.78);
  max-width: none;
  margin: 0;
}

.hero-carousel .hero__actions { margin: 0; }

/* Landscape: one full-width row —
   text | grey divider | tagline (fills) | grey divider | CTA */
@media (min-width: 768px) {
  .hero-carousel .hero__bar {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-5);
  }
  .hero-carousel .hero__text { flex: 0 1 auto; }
  .hero-carousel .hero__subtitle {
    flex: 1 1 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    padding-left: var(--sp-5);
  }
  .hero-carousel .hero__actions {
    flex: 0 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    padding-left: var(--sp-5);
  }
}

/* Animated scroll cue — bottom-right, just above the frosted bar.
   Hidden on small screens where the bar stacks tall. */
.hero__scroll {
  display: none;
  position: absolute;
  right: var(--sp-5);
  bottom: 10.5rem;
  z-index: 3;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero__scroll { display: inline-flex; }
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}

.hero__scroll:hover { color: #fff; }

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-arrow { animation: none; }
}

@media (min-width: 1024px) {
  .hero__scroll { right: var(--sp-8); }
}

/* Dot navigation */
.hero-carousel__dots {
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.hero-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--ease-base), transform var(--ease-base);
  -webkit-tap-highlight-color: transparent;
}

.hero-carousel__dot:hover,
.hero-carousel__dot--active {
  background-color: var(--c-text-inverse);
  transform: scale(1.25);
}

.hero-carousel__dot:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .hero__content {
    padding-block: var(--sp-16) var(--sp-16);
  }
  .hero-carousel__dots {
    left: var(--sp-6);
  }
}


/* ── Services section ─────────────────────────────────────────── */
.services-section {
  /* No padding — tiles flush to edges */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.service-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--c-bg-dark);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.service-tile__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--ease-slow);
}

/* Service tile images sourced from each page's banner image — set inline by home.php */

.service-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.20) 60%, transparent 100%);
  transition: background var(--ease-base);
}

.service-tile:hover .service-tile__bg {
  transform: scale(1.04);
}

.service-tile:hover .service-tile__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.10) 100%);
}

.service-tile__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  z-index: 1;
}

.service-tile__label {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, var(--text-2xl));
  font-weight: var(--fw-heading);
  color: var(--c-text-inverse);
  text-align: center;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.service-tile__arrow {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--c-text-inverse);
  margin-top: var(--sp-1);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--ease-base), transform var(--ease-base);
}

.service-tile:hover .service-tile__arrow,
.service-tile:focus-visible .service-tile__arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-tile:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: -3px;
}

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

  .service-tile {
    aspect-ratio: 3 / 2;
  }
}


/* ── About intro ──────────────────────────────────────────────── */
.about-intro .container {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.about-intro__layout {
  max-width: 62ch;
  margin-inline: auto;
}

.about-intro__heading {
  font-size: clamp(1.75rem, 4vw, var(--text-3xl));
  margin-block: var(--sp-1) var(--sp-3);
  line-height: var(--leading-snug);
}

.about-intro__copy p {
  color: var(--c-text-secondary);
  line-height: var(--leading-loose);
  max-width: 62ch;
}

.about-intro__copy p + p {
  margin-top: var(--sp-2);
}

.about-intro__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: var(--sp-3);
  font-size: var(--text-sm);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-accent);
  transition: gap var(--ease-fast);
}

.about-intro__link:hover {
  gap: var(--sp-1);
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
}

.stats-strip__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stats-strip__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, var(--text-4xl));
  font-weight: var(--fw-display);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: var(--c-text);
}

.stats-strip__label {
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-text-secondary);
}

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

@media (min-width: 1024px) {
  .about-intro__layout {
    max-width: 56ch;
  }
}


/* ── Projects section ─────────────────────────────────────────── */
.projects-section .section__header {
  margin-bottom: var(--sp-6);
}

.projects-grid {
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr;
}

.project-card {
  position: relative;
  overflow: hidden;
  background-color: var(--c-bg-dark);
  cursor: pointer;
  display: block;
}

.project-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card--large .project-card__media  { aspect-ratio: 4 / 3; }
.project-card--medium .project-card__media { aspect-ratio: 4 / 3; }
.project-card--wide .project-card__media   { aspect-ratio: 16 / 9; }

.project-card__img {
  position: absolute;
  inset: 0;
  background-color: var(--c-bg-dark); /* fallback while the image loads */
  background-size: cover;
  background-position: center;
  transition: transform var(--ease-slow);
}

/* Cards are links to the project pages — keep overlay text styling */
a.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card:hover .project-card__img {
  transform: scale(1.04);
}

.project-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: padding var(--ease-base);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-heading);
  color: var(--c-text-inverse);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.project-card__category {
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* Masonry-ish layout on tablet+ */
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
  }

  /* Large card spans both rows on the left */
  .project-card--large {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .project-card--large .project-card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 480px;
  }

  .project-card--medium {
    grid-column: 2;
    grid-row: 1;
  }

  .project-card--wide {
    grid-column: 2;
    grid-row: 2;
  }

  .project-card--medium .project-card__media,
  .project-card--wide .project-card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 220px;
  }
}

@media (min-width: 1024px) {
  .project-card--large .project-card__media {
    min-height: 560px;
  }
  .project-card--medium .project-card__media,
  .project-card--wide .project-card__media {
    min-height: 275px;
  }
}

.projects-section__footer {
  margin-top: var(--sp-5);
  text-align: center;
}

.projects-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 2px;
  transition: color var(--ease-fast), border-color var(--ease-fast), gap var(--ease-fast);
}

.projects-link:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
  gap: var(--sp-1);
}


/* ── SEO section ──────────────────────────────────────────────── */
.seo-section {
  padding-block: var(--sp-6);
}

.seo-section .seo-accordion {
  border-top: none;
  margin-top: 0;
}


/* ── Testimonials ─────────────────────────────────────────────── */
.testimonials-section .section__header--centered {
  margin-bottom: var(--sp-6);
}

.testimonials-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}

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

.testimonial-card {
  padding: var(--sp-4);
  background-color: var(--c-bg-soft);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.testimonial-card__stars {
  color: var(--c-accent);
  font-size: var(--text-base);
  letter-spacing: 0.1em;
}

.testimonial-card__quote {
  flex: 1;
}

.testimonial-card__quote p {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--c-text-secondary);
  font-style: italic;
  max-width: none;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card__name {
  font-size: var(--text-sm);
  font-weight: var(--fw-ui);
  color: var(--c-text);
}

.testimonial-card__location {
  font-size: var(--text-xs);
  color: var(--c-text-secondary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.testimonials-trust {
  margin-top: var(--sp-6);
  text-align: center;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
}


/* ── Footer additions ─────────────────────────────────────────── */
.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__social {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.footer__social-link {
  color: var(--c-text-inverse-muted);
  transition: color var(--ease-fast);
}

.footer__social-link:hover {
  color: var(--footer-accent);
}

.footer__social-link--facebook {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-text-inverse-muted);
}

.footer__social-link--facebook .footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #fff;
  border-radius: 50%;
  color: #1877F2;
  flex-shrink: 0;
  transition: background var(--ease-fast);
}

.footer__social-link--facebook:hover {
  color: var(--c-text-inverse-muted);
}

.footer__social-link--facebook:hover .footer__social-icon {
  background: #e8f0fe;
}

.footer__social-link--instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-text-inverse-muted);
}

.footer__social-link--instagram .footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  transition: opacity var(--ease-fast);
}

.footer__social-link--instagram:hover {
  color: var(--c-text-inverse-muted);
}

.footer__social-link--instagram:hover .footer__social-icon {
  opacity: 0.85;
}

.footer__cta {
  margin-top: var(--sp-3);
  align-self: flex-start;
}

.footer__bar-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

@media (min-width: 768px) {
  .footer__bar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}


/* ── Generic page styles ──────────────────────────────────────── */
.page-header {
  padding-block: var(--sp-10) var(--sp-8);
}

.page-header h1 {
  margin-top: var(--sp-1);
}

.page-banner {
  position: relative;
  /* Fill the viewport below the sticky nav — banner + nav = one full screen */
  height: calc(100vh - var(--nav-height));
  height: calc(100svh - var(--nav-height));
  min-height: 420px;
  overflow: hidden;
  background-color: var(--c-bg-dark);
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Frosted-glass header bar pinned to the banner's bottom edge */
.page-banner__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 18, 16, 0.38);
  -webkit-backdrop-filter: blur(18px) saturate(0.9);
  backdrop-filter: blur(18px) saturate(0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@supports not (backdrop-filter: blur(1px)) {
  .page-banner__bar {
    background: rgba(20, 18, 16, 0.72);
  }
}

/* The page-header block inside the bar renders white-on-glass */
.page-banner__bar .page-header {
  padding-block: var(--sp-4) var(--sp-4);
  background: none;
}

/* Vertical accent line down the left of the header content */
.page-banner__bar .container {
  border-left: 3px solid var(--c-accent);
  padding-left: var(--sp-4);
}

.page-banner__bar h1 {
  color: white;
  margin-top: 0;
  /* Slimmer than the page-level h1 — this is a bar, not a hero title */
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.page-banner__bar .section__lead {
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--sp-1);
}

/* Landscape layout — title left, lead flowing beside it, so the bar
   stays shallow and hides as little of the photograph as possible */
@media (min-width: 768px) {
  .page-banner__bar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: var(--sp-5);
  }

  /* Breadcrumb (project pages) takes its own slim row above the title */
  .page-banner__bar .proj-breadcrumb {
    flex-basis: 100%;
    margin-bottom: var(--sp-1);
  }

  .page-banner__bar h1 {
    flex-shrink: 0;
    max-width: 45%;
  }

  .page-banner__bar .section__lead {
    flex: 1;
    min-width: 28ch;
    margin-top: 0;
    font-size: var(--text-sm);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: var(--sp-5);
  }
}

/* No eyebrow or rule inside the bar — the accent line does that job */
.page-banner__bar .eyebrow,
.page-banner__bar .section__rule {
  display: none;
}

/* Project breadcrumb inside the bar goes white-on-glass */
.page-banner__bar .proj-breadcrumb__link,
.page-banner__bar .proj-breadcrumb__item {
  color: rgba(255, 255, 255, 0.65);
}

.page-banner__bar .proj-breadcrumb__link:hover {
  color: white;
}

.page-banner__bar .proj-breadcrumb__item--current {
  color: rgba(255, 255, 255, 0.85);
}

.trade-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  margin-block: var(--sp-6);
}

.trade-partners__logo {
  max-height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Rich text / prose styles */
.prose--blog { max-width: 72ch; }

.prose p  { color: var(--c-text-secondary); line-height: var(--leading-loose); }
.prose h2 {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-normal);
  line-height: var(--leading-snug);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
}
.prose h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-normal);
  line-height: var(--leading-snug);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-1);
}
.prose ul, .prose ol { padding-left: var(--sp-4); margin-block: var(--sp-2); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { color: var(--c-text-secondary); line-height: var(--leading-loose); margin-bottom: var(--sp-1); }
.prose a  { color: var(--c-accent); text-decoration: underline; }
.prose a:hover { color: var(--c-accent-dark); }

/* Error page */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-block: var(--sp-16);
}

.error-page .eyebrow {
  font-size: var(--text-6xl);
  letter-spacing: var(--tracking-tight);
  color: var(--c-border);
  margin-bottom: 0;
  line-height: 1;
}

.error-page__title {
  margin-block: var(--sp-2);
}

.error-page__copy {
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-5);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}


/* ══════════════════════════════════════════════════════════════
   OUR PROJECTS — LISTING PAGE
   ══════════════════════════════════════════════════════════════ */

/* Tighten top padding — header section provides breathing room */
.proj-listing {
  padding-top: var(--sp-6);
}

/* ── Filter bar ───────────────────────────────────────────────── */

.proj-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-bottom: var(--sp-6);
}

.proj-filter__btn {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding-inline: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-text-secondary);
  background-color: transparent;
  border: 1.5px solid var(--c-border);
  cursor: pointer;
  transition:
    color            var(--ease-fast),
    border-color     var(--ease-fast),
    background-color var(--ease-fast);
  -webkit-tap-highlight-color: transparent;
}

.proj-filter__btn:hover {
  color: var(--c-text);
  border-color: var(--c-text);
}

.proj-filter__btn.is-active {
  color: var(--c-text-inverse);
  background-color: var(--c-accent);
  border-color: var(--c-accent);
}

.proj-filter__btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}


/* ── Regular grid ─────────────────────────────────────────────── */

.proj-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--sp-3);
  row-gap: var(--sp-4);
  padding-inline: var(--sp-2);
}

.proj-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* The display rule above beats the UA [hidden] rule, so the portfolio
   filter's card.hidden = true would otherwise have no visible effect */
.proj-card[hidden] {
  display: none;
}

.proj-card:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

/* ── Intro copy tile (service and project pages) ───────────────
   The intro copy rides inside the gallery grid as its first cell so
   the writing sits amongst the photos rather than as a block above them.
   Full row on the 2-col grid; two columns on wider grids. */
.proj-card--intro {
  grid-column: 1 / -1;
  background-color: var(--c-bg);
  padding: var(--sp-4);
}

.proj-card__intro-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.proj-card--intro .prose p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  margin: 0;
}

.proj-card--intro .prose p + p {
  margin-top: var(--sp-3);
}

@media (min-width: 600px) {
  .proj-card--intro {
    grid-column: span 2; /* two blocks wide, one row tall */
    padding: var(--sp-5);
  }
}

/* The intro tile makes its row taller than a single 4:3 photo. Let the
   photos sharing that row grow to fill the height (cover-cropped) so they
   read as tall lead images — as in the reference design — instead of a
   fixed crop with whitespace beneath. Scoped to gallery grids, so rows
   without an intro tile (uniform height) are visually unchanged. */
.gallery-grid .proj-card--gallery {
  height: 100%;
}

.gallery-grid .proj-card--gallery .proj-card__media {
  flex: 1 1 auto;
}

/* ── Projects listing pagination ─────────────────────────────── */
.proj-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding-top: var(--sp-8);
}

/* As with .proj-card above, the display rule beats the UA [hidden] rule —
   without this, hiding the pager for a single-page filter does nothing and
   it lingers on screen showing the previous filter's page count. */
.proj-pagination[hidden] {
  display: none;
}

.proj-pagination__indicator {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  min-width: 10ch;
  text-align: center;
}

.proj-pagination__btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Corner ribbon on a tagged photo ──────────────────────────
   Project galleries mix before and after shots in one grid; the before
   ones carry this diagonal band across the top-left corner. Geometry is
   in fixed rem rather than spacing tokens — the band has to line up with
   the 45° corner, so the numbers are related to each other, not to the
   page rhythm. Clipped by .proj-card__media's overflow: hidden. */
.proj-card__tag {
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  left: -2.25rem;
  width: 8rem;
  transform: rotate(-45deg);
  padding-block: 0.25rem;
  text-align: center;
  background-color: var(--c-accent);
  color: var(--c-text-inverse);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  line-height: 1.6;
  box-shadow: 0 1px 6px rgba(26, 26, 26, 0.25);
  pointer-events: none; /* the whole card is the click target */
}

@media (min-width: 600px) {
  .proj-card__tag {
    top: 1.25rem;
    left: -3rem;
    width: 11rem;
    font-size: var(--text-xs);
    padding-block: 0.35rem;
  }
}

/* ── Card media wrapper (sets the aspect ratio) ────────────────── */

.proj-card__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* All cards uniform 4:3 — consistent grid rhythm */

/* Real image (when client supplies photography) */
.proj-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--ease-slow);
}

.proj-card:hover .proj-card__img {
  transform: scale(1.04);
}

/* Placeholder div — coloured dark block until photography is supplied.
   --ph-hue is set inline by PHP to vary the hue per card. */
.proj-card__placeholder {
  position: absolute;
  inset: 0;
  background: hsl(var(--ph-hue, 220deg), 8%, 15%);
  transition: transform var(--ease-slow);
}

.proj-card:hover .proj-card__placeholder {
  transform: scale(1.04);
}

/* ── Caption below image ────────────────────────────────────────── */

.proj-card__body {
  padding: 0.625rem 0 0;
  background-color: var(--c-bg);
}

.proj-card__cat {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-text-secondary);
  margin-bottom: 0.25rem;
}

.proj-card__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-base), 1.4vw, var(--text-lg));
  font-weight: var(--fw-heading);
  color: var(--c-text);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin: 0;
  transition: color var(--ease-fast);
}

.proj-card:hover .proj-card__title {
  color: var(--c-accent);
}

/* Gallery captions read as body copy, not display headings */
.proj-card--gallery .proj-card__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-body);
  letter-spacing: var(--tracking-normal);
  line-height: var(--leading-base);
}

.proj-card__view {
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-accent);
}

/* Empty state */
.proj-empty {
  text-align: center;
  color: var(--c-text-secondary);
  padding-block: var(--sp-10);
  font-size: var(--text-md);
}

/* ── Responsive grid columns ───────────────────────────────────── */

@media (min-width: 600px) {
  .proj-masonry {
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--sp-4);
    padding-inline: var(--sp-3);
  }
}

@media (min-width: 1024px) {
  .proj-masonry {
    grid-template-columns: repeat(4, 1fr);
    column-gap: var(--sp-5);
    padding-inline: var(--sp-5);
  }
}


/* ══════════════════════════════════════════════════════════════
   INDIVIDUAL PROJECT PAGE
   ══════════════════════════════════════════════════════════════ */

/* ── Project hero ──────────────────────────────────────────────── */

.proj-hero {
  position: relative;
  height: 60vh;
  min-height: 340px;
  max-height: 680px;
  overflow: hidden;
  background-color: #1a1a1c;
}

.proj-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Placeholder (dark block) until client supplies the hero photograph */
.proj-hero__placeholder {
  position: absolute;
  inset: 0;
  background-color: #1c1c1e;
}

/* Subtle bottom-fade so the title section below reads cleanly */
.proj-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
}

@media (min-width: 768px) {
  .proj-hero {
    height: 65vh;
    min-height: 420px;
  }
}


/* ── Project intro section ─────────────────────────────────────── */

.proj-intro-section {
  padding-block: var(--sp-6) var(--sp-8);
}

.proj-intro__title {
  font-size: clamp(1.75rem, 4vw, var(--text-3xl));
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.proj-intro__lead {
  font-size: var(--text-md);
  color: var(--c-text-secondary);
  line-height: var(--leading-loose);
  max-width: 68ch;
}


/* ── Breadcrumb ────────────────────────────────────────────────── */

.proj-breadcrumb {
  margin-bottom: var(--sp-1);
}

.proj-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.proj-breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-text-secondary);
}

.proj-breadcrumb__item + .proj-breadcrumb__item::before {
  content: '/';
  margin-right: 0.375rem;
  color: var(--c-border);
}

.proj-breadcrumb__link {
  color: var(--c-text-secondary);
  transition: color var(--ease-fast);
}

.proj-breadcrumb__link:hover {
  color: var(--c-accent);
}

.proj-breadcrumb__item--current {
  color: var(--c-text);
}


/* ── Photo gallery section ─────────────────────────────────────── */

.proj-gallery-section {
  padding-block: var(--sp-4) var(--sp-10);
}

/* .proj-gallery is written into content_html by the CMS editor */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.proj-gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--c-bg-soft);
}

/* Wide item spans the full grid width — used for hero/establishing shot */
.proj-gallery__item--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}

/* Real images (once client uploads via Media Library) */
.proj-gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.proj-gallery__item:hover img {
  transform: scale(1.03);
}

/* Placeholder div — dark block for image slots before photography is supplied */
.proj-gallery__ph {
  position: absolute;
  inset: 0;
  background-color: #212123;
}

/* "Before" photo placeholder — slightly warmer dark tone for visual distinction */
.proj-gallery__ph--before {
  background-color: #231f1e;
}

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


/* ── Project CTA strip ─────────────────────────────────────────── */

.proj-cta-section {
  background-color: var(--c-bg-soft);
}

.proj-cta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: flex-start;
}

.proj-cta__heading {
  font-size: clamp(1.5rem, 3vw, var(--text-2xl));
  margin-bottom: var(--sp-1);
}

.proj-cta p {
  color: var(--c-text-secondary);
  max-width: 52ch;
}

.proj-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .proj-cta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-8);
  }
}


/* ── Accessibility utility ─────────────────────────────────────── */

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


/* ══════════════════════════════════════════════════════════════
   SERVICE PAGES — /kitchens, /bathrooms, /bedrooms
   ══════════════════════════════════════════════════════════════ */

/* ── Service hero ──────────────────────────────────────────────
   Reuses .hero to trigger the nav.js transparent-nav effect.
   Override the full-viewport height used on the homepage hero.
   ─────────────────────────────────────────────────────────── */

.svc-hero.hero {
  min-height: 62svh;
  min-height: 62vh;
  max-height: 680px;
}

.svc-hero__ph {
  position: absolute;
  inset: 0;
  background-color: #1c1c1e;
}

.svc-hero__title {
  font-size: clamp(2.5rem, 8vw, var(--text-5xl));
  font-weight: var(--fw-display);
  color: var(--c-text-inverse);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  max-width: 22ch;
}


/* ── Service intro ────────────────────────────────────────────── */

.svc-intro .prose p {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  max-width: 90ch;
}

.svc-intro .prose p + p {
  margin-top: var(--sp-3);
}


/* ── Service gallery section ──────────────────────────────────── */

.svc-gallery-section {
  padding-block: var(--sp-8);
}

@media (min-width: 768px) {
  .svc-gallery-section {
    padding-block: var(--sp-10);
  }
}


/* ── Service gallery grid ─────────────────────────────────────── */
/*
  5-image mixed layout:
    Mobile (2 cols): wide item full-width + 4 in a 2×2 grid
    Tablet+ (3 cols): wide item spans 2 cols, remaining 4 fill row 2 + start of row 3
                      → use 5 items so rows fill perfectly
*/

.svc-gallery {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(2, 1fr);
}

.svc-gal__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--c-bg-dark);
}

/* First item full-width on mobile, wide ratio */
.svc-gal__item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}

.svc-gal__ph {
  position: absolute;
  inset: 0;
  background-color: #1c1c1e;
}

.svc-gal__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--ease-slow);
}

.svc-gal__item:hover .svc-gal__img {
  transform: scale(1.04);
}

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

  /* First item spans 2 of 3 cols — fills row 1 alongside item 2 */
  .svc-gal__item:first-child {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
  }
}


/* ── USP strip ────────────────────────────────────────────────── */

.usp-strip {
  padding-block: var(--sp-8);
  background-color: var(--c-bg);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.usp-strip__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5) var(--sp-3);
}

.usp-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  text-align: center;
}

.usp-strip__icon {
  width: 2rem;
  height: 2rem;
  color: var(--c-accent);
  flex-shrink: 0;
}

.usp-strip__label {
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-text);
  line-height: var(--leading-snug);
  max-width: 14ch;
}

@media (min-width: 600px) {
  .usp-strip__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .usp-strip {
    padding-block: var(--sp-10);
  }

  .usp-strip__item {
    flex-direction: row;
    text-align: left;
    gap: var(--sp-2);
  }

  .usp-strip__label {
    max-width: none;
  }
}


/* ── Related projects — service page ─────────────────────────── */

.svc-related-section .section__header {
  margin-bottom: var(--sp-6);
}

.svc-related__grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}

.svc-proj-card {
  display: block;
  text-decoration: none;
  overflow: hidden;
  background-color: var(--c-bg);
  transition: box-shadow var(--ease-base);
  -webkit-tap-highlight-color: transparent;
}

.svc-proj-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.svc-proj-card:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.svc-proj-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--c-bg-dark);
}

.svc-proj-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.svc-proj-card:hover .svc-proj-card__img {
  transform: scale(1.04);
}

.svc-proj-card__ph {
  position: absolute;
  inset: 0;
  background-color: #1e1e1e;
}

.svc-proj-card__body {
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
}

.svc-proj-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-heading);
  letter-spacing: var(--tracking-tight);
  color: var(--c-text);
  line-height: var(--leading-snug);
}

.svc-proj-card__excerpt {
  margin-top: var(--sp-1);
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  line-height: var(--leading-base);
}

.svc-proj-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-accent);
  transition: gap var(--ease-fast);
}

.svc-proj-card:hover .svc-proj-card__link {
  gap: var(--sp-1);
}

.svc-related__footer {
  margin-top: var(--sp-5);
  text-align: center;
}

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

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


/* ── Service CTA block ────────────────────────────────────────── */

.svc-cta {
  background-color: var(--c-bg-dark);
  color: var(--c-text-inverse);
  padding-block: var(--sp-12);
  text-align: center;
}

.svc-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.svc-cta__heading {
  font-size: clamp(1.75rem, 4vw, var(--text-3xl));
  font-weight: var(--fw-display);
  color: var(--c-text-inverse);
  letter-spacing: var(--tracking-tight);
}

.svc-cta__sub {
  font-size: var(--text-md);
  color: var(--c-text-inverse-muted);
  max-width: 46ch;
  margin-top: calc(var(--sp-1) * -1);
}

.svc-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-1);
}

.svc-cta__phone {
  font-size: var(--text-md);
  font-weight: var(--fw-ui);
  color: var(--c-text-inverse-muted);
  letter-spacing: var(--tracking-wide);
  transition: color var(--ease-fast);
}

.svc-cta__phone:hover {
  color: var(--c-text-inverse);
}

@media (min-width: 768px) {
  .svc-cta {
    padding-block: var(--sp-16);
  }
}

/* ═══════════════════════════════════════════════════════════════
   ADDITIONAL SERVICES — parent page two-tile layout
   ═══════════════════════════════════════════════════════════════ */

.addl-tiles-section {
  padding-block: var(--sp-10);
}

.addl-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 768px) {
  .addl-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
  }
}

.addl-tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.addl-tile__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--c-near-black);
}

.addl-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.addl-tile__ph {
  width: 100%;
  height: 100%;
  background: #2a2520;
}

.addl-tile:hover .addl-tile__media img,
.addl-tile:focus-within .addl-tile__media img {
  transform: scale(1.04);
}

.addl-tile__body {
  padding: 1.25rem 0 0;
}

.addl-tile__heading {
  font-family: var(--ff-serif);
  font-weight: var(--fw-serif-light);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  color: var(--c-near-black);
  margin: 0 0 0.5rem;
}

.addl-tile__desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #555;
  margin: 0 0 0.875rem;
}

.addl-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-accent);
  transition: gap var(--ease-fast);
}

.addl-tile:hover .addl-tile__link,
.addl-tile:focus-within .addl-tile__link {
  gap: 0.65em;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Brand story ──────────────────────────────────────────── */
.about-story .section__header {
  text-align: left;
}

/* ── Team grid ────────────────────────────────────────────── */
.about-team-section {
  padding-block: var(--sp-12);
}

.about-team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8) var(--sp-6);
  margin-top: var(--sp-8);
}

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

@media (min-width: 1024px) {
  .about-team__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-10) var(--sp-6);
  }
}

.about-team__member {
  display: flex;
  flex-direction: column;
}

.about-team__photo,
.about-team__ph {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  background: #d8d4ce;
  border-radius: 2px;
  display: block;
}

.about-team__caption {
  padding-top: 0.75rem;
}

.about-team__name {
  font-family: var(--ff-serif);
  font-weight: var(--fw-serif-light);
  font-size: 1.0625rem;
  color: var(--c-near-black);
  margin: 0 0 0.125rem;
}

.about-team__role {
  font-size: var(--text-xs);
  color: #777;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin: 0;
}

/* ── Values grid ──────────────────────────────────────────── */
.about-values-section {
  padding-block: var(--sp-12);
}

.about-values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-top: var(--sp-8);
}

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

@media (min-width: 1024px) {
  .about-values__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
  }
}

.about-value {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.about-value__icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--c-accent);
  flex-shrink: 0;
}

.about-value__heading {
  font-family: var(--ff-serif);
  font-weight: var(--fw-serif-light);
  font-size: 1.1875rem;
  color: var(--c-near-black);
  margin: 0;
}

.about-value__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #555;
  margin: 0;
}

/* ── Sub-page tiles (3-col) ───────────────────────────────── */
.about-sub-section {
  padding-block: var(--sp-12);
}

.about-sub-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 600px) {
  .about-sub-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
  }
}

@media (min-width: 1024px) {
  .about-sub-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-sub-tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.about-sub-tile__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--c-near-black);
}

.about-sub-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.about-sub-tile__ph {
  width: 100%;
  height: 100%;
  background: #2a2520;
}

.about-sub-tile:hover .about-sub-tile__media img,
.about-sub-tile:focus-within .about-sub-tile__media img {
  transform: scale(1.04);
}

.about-sub-tile__body {
  padding: 1.25rem 0 0;
}

.about-sub-tile__heading {
  font-family: var(--ff-serif);
  font-weight: var(--fw-serif-light);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  color: var(--c-near-black);
  margin: 0 0 0.5rem;
}

.about-sub-tile__desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #555;
  margin: 0 0 0.875rem;
}

.about-sub-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-accent);
  transition: gap var(--ease-fast);
}

.about-sub-tile:hover .about-sub-tile__link,
.about-sub-tile:focus-within .about-sub-tile__link {
  gap: 0.65em;
}

/* ── CTA hours line ───────────────────────────────────────── */
.about-cta__hours {
  font-size: var(--text-sm);
  opacity: 0.75;
  display: block;
  margin-top: 0.3em;
}


/* ═══════════════════════════════════════════════════════════════
   COMPLETE SERVICE — 7-stage layout
   ═══════════════════════════════════════════════════════════════ */

.cs-intro-section {
  padding-block: var(--sp-12);
}

.cs-stages-section {
  padding-block: var(--sp-10);
}

.cs-stages {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-8);
  border-bottom: 1px solid var(--c-rule, #e8e4de);
}

.cs-stage:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .cs-stage {
    grid-template-columns: 7rem 1fr;
    gap: var(--sp-6);
    align-items: start;
  }
}

.cs-stage__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .cs-stage__header {
    grid-column: 1 / 2;
  }

  .cs-stage__body {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    padding-top: 0.2rem;
  }
}

.cs-stage__num {
  font-family: var(--ff-serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--c-accent);
  letter-spacing: -0.02em;
}

.cs-stage__title {
  font-family: var(--ff-serif);
  font-weight: var(--fw-serif-light);
  font-size: clamp(1.1875rem, 2.5vw, 1.5rem);
  color: var(--c-near-black);
  margin: 0;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .cs-stage__title {
    display: none;
  }
}

/* On desktop, title sits in body column alongside the num */
@media (min-width: 768px) {
  .cs-stage__body::before {
    content: attr(data-title);
    display: block;
    font-family: var(--ff-serif);
    font-weight: var(--fw-serif-light);
    font-size: 1.375rem;
    color: var(--c-near-black);
    margin-bottom: var(--sp-3);
  }
}


/* ═══════════════════════════════════════════════════════════════
   NEWS & BLOG INDEX
   ═══════════════════════════════════════════════════════════════ */

.blog-index {
  padding-block: var(--sp-10);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
}

@media (min-width: 600px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8) var(--sp-6);
  }
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.blog-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: var(--c-near-black);
  margin-bottom: var(--sp-4);
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card__ph {
  width: 100%;
  height: 100%;
  background: #2a2520;
}

.blog-card:hover .blog-card__img,
.blog-card:focus-within .blog-card__img {
  transform: scale(1.04);
}

.blog-card__date {
  font-size: var(--text-xs);
  color: #888;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.blog-card__title {
  font-family: var(--ff-serif);
  font-weight: var(--fw-serif-light);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--c-near-black);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 0.75rem;
  flex: 1;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-accent);
  margin-top: auto;
  transition: gap var(--ease-fast);
}

.blog-card:hover .blog-card__link,
.blog-card:focus-within .blog-card__link {
  gap: 0.65em;
}

.blog-empty {
  text-align: center;
  padding-block: var(--sp-12);
  color: #666;
  max-width: 40ch;
  margin: 0 auto;
}

.blog-empty p {
  margin-bottom: var(--sp-5);
}


/* ═══════════════════════════════════════════════════════════════
   CAREERS PAGE
   ═══════════════════════════════════════════════════════════════ */

.careers-vacancies,
.careers-why {
  padding-block: var(--sp-10);
}

.careers-why__list {
  margin-top: var(--sp-5);
}

.careers-why__list li {
  margin-bottom: var(--sp-3);
}

/* ═══════════════════════════════════════════════════════════════
   AFTERCARE & MAINTENANCE
   ═══════════════════════════════════════════════════════════════ */

/* ── Intro ────────────────────────────────────────────────── */
.ac-intro-section {
  padding-block: var(--sp-12);
}

.ac-intro-section .section__header {
  text-align: center;
}

/* ── Services grid ────────────────────────────────────────── */
.ac-services-section {
  padding-block: var(--sp-12);
}

.ac-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}

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

@media (min-width: 1024px) {
  .ac-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }
}

.ac-card {
  background: #fff;
  border: 1px solid #e8e4de;
  border-top: 3px solid var(--c-accent);
  border-radius: 2px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ac-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.ac-card--placeholder {
  opacity: 0.7;
}

.ac-card__inner {
  padding: var(--sp-6);
}

.ac-card__inner h3 {
  font-family: var(--ff-serif);
  font-weight: var(--fw-serif-light);
  font-size: 1.125rem;
  color: var(--c-near-black);
  margin: 0 0 var(--sp-3);
  line-height: 1.3;
}

.ac-card__inner p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #555;
  margin: 0;
}

.ac-card__inner p + p {
  margin-top: var(--sp-3);
}

/* ── How-to-book steps ────────────────────────────────────── */
.ac-how-section {
  padding-block: var(--sp-12);
}

.ac-how-section .section__header {
  text-align: center;
}

.ac-how__steps {
  list-style: none;
  padding: 0;
  margin: var(--sp-10) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  position: relative;
}

@media (min-width: 768px) {
  .ac-how__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.ac-how__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 var(--sp-6) 0 0;
  position: relative;
}

/* Connector line between steps on desktop */
@media (min-width: 768px) {
  .ac-how__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: calc(100% - 5rem);
    height: 1px;
    background: var(--c-accent);
    opacity: 0.35;
  }
}

.ac-how__num {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--c-accent);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.ac-how__title {
  font-family: var(--ff-serif);
  font-weight: var(--fw-serif-light);
  font-size: 1.25rem;
  color: var(--c-near-black);
  margin: 0 0 var(--sp-2);
}

.ac-how__body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #555;
  margin: 0;
  max-width: 28ch;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════════════ */

.contact-section {
  padding-block: var(--sp-10);
}

/* ── Two-column layout ────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 22rem;
    gap: var(--sp-10);
  }
}

/* ── Form ─────────────────────────────────────────────────── */
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 560px) {
  .contact-form__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-form__field--full {
    grid-column: 1 / -1;
  }
}

.contact-form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-ui);
  color: var(--c-near-black);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.contact-form__required {
  color: var(--c-accent);
  margin-left: 0.1em;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d8d4ce;
  border-radius: 2px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--c-near-black);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.12);
}

.contact-form__field.has-error .contact-form__input,
.contact-form__field.has-error .contact-form__select,
.contact-form__field.has-error .contact-form__textarea,
.contact-form__input.is-error,
.contact-form__select.is-error,
.contact-form__textarea.is-error {
  border-color: #c0392b;
}

/* Custom select arrow */
.contact-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpolyline points='3 6 8 11 13 6' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-form__textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.6;
}

/* Checkboxes */
.contact-form__checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem 1.25rem;
  margin-top: 0.125rem;
}

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

.contact-form__checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
  line-height: 1.3;
}

.contact-form__checkbox-item input[type="checkbox"] {
  width: 1.0625rem;
  height: 1.0625rem;
  accent-color: var(--c-accent);
  flex-shrink: 0;
  cursor: pointer;
}

/* Honeypot — visually hidden and outside tab order */
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Submit button */
.contact-form__submit {
  margin-top: var(--sp-6);
}

.contact-form__submit .btn {
  width: 100%;
}

@media (min-width: 560px) {
  .contact-form__submit .btn {
    width: auto;
    min-width: 14rem;
  }
}

/* Status message (error) */
.contact-form__status {
  color: #c0392b;
  font-size: 0.9375rem;
  padding: var(--sp-2) 0;
  line-height: 1.5;
}

/* Small print */
.contact-note {
  margin-top: var(--sp-5);
  font-size: var(--text-sm);
  color: #888;
  line-height: 1.6;
}

.contact-note__req {
  display: block;
  margin-top: 0.25rem;
}

/* Screen-reader-only utility */
.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;
}

/* ── Thank-you state ──────────────────────────────────────── */
.contact-thank-you {
  padding-block: var(--sp-10);
}

.contact-thank-you__icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--c-accent);
  display: block;
  margin-bottom: var(--sp-5);
}

.contact-thank-you h2 {
  font-family: var(--ff-serif);
  font-weight: var(--fw-serif-light);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--c-near-black);
  margin: 0 0 var(--sp-4);
  line-height: 1.25;
}

.contact-thank-you p {
  font-size: 1rem;
  color: #555;
  line-height: 1.65;
  max-width: 44ch;
  margin: 0;
}

.contact-thank-you a {
  color: var(--c-accent);
}

/* ── Details sidebar ──────────────────────────────────────── */
.contact-details-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-6));
}

.contact-details {
  background: #f7f4f0;
  border-radius: 2px;
  padding: var(--sp-6);
}

.contact-details h2 {
  font-family: var(--ff-serif);
  font-weight: var(--fw-serif-light);
  font-size: 1.25rem;
  color: var(--c-near-black);
  margin: 0 0 var(--sp-5);
}

.contact-detail-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-5);
}

.contact-detail-item:last-child {
  margin-bottom: 0;
}

.contact-detail__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--c-accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-detail__label {
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: #888;
  display: block;
  margin-bottom: 0.2rem;
}

.contact-detail__value {
  font-size: 0.9375rem;
  color: var(--c-near-black);
  line-height: 1.55;
  margin: 0;
}

.contact-detail__value a {
  color: var(--c-near-black);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.contact-detail__value a:hover {
  color: var(--c-accent);
}

address.contact-detail__value {
  font-style: normal;
}

/* ── Map embed ────────────────────────────────────────────── */
.contact-map {
  aspect-ratio: 4 / 3;
  background: #e8e4de;
  border-radius: 2px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-map__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--sp-6);
  box-sizing: border-box;
}

/* ============================================================
   Cookie Consent Banner
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  background: var(--c-bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--ease-slow), opacity var(--ease-slow);
  pointer-events: none;
}

.cookie-banner--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner--hiding {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--sp-3) var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--c-text-inverse-muted);
  line-height: var(--leading-base);
}

.cookie-banner__link {
  color: var(--c-accent-border);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.cookie-banner__link:hover {
  color: var(--c-accent);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--sp-1);
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  border-radius: var(--btn-radius);
  padding: 0.5rem var(--sp-2);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast);
  white-space: nowrap;
}

.cookie-banner__btn--accept {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

.cookie-banner__btn--accept:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
}

.cookie-banner__btn--decline {
  background: transparent;
  color: var(--c-text-inverse-muted);
  border-color: rgba(255, 255, 255, 0.18);
}

.cookie-banner__btn--decline:hover {
  color: var(--c-text-inverse);
  border-color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 640px) {
  .cookie-banner__inner {
    padding: var(--sp-2) var(--sp-5);
    flex-wrap: nowrap;
  }
}

/* Cookie policy preference buttons */
.cookie-pref-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin: var(--sp-4) 0;
}


/* ══════════════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════════════ */

.proj-card--gallery {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(18, 16, 14, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  animation: lb-fade-in 0.18s ease;
}

.lightbox[hidden] {
  display: none;
}

@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 1400px);
  max-height: 90vh;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  user-select: none;
}

.lightbox__img.lb-anim {
  animation: lb-img-in 0.15s ease;
}

@keyframes lb-img-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox__caption {
  margin-top: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.60);
  text-align: center;
  max-width: 60ch;
}

.lightbox__close {
  position: fixed;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--ease-fast), border-color var(--ease-fast);
}

.lightbox__close:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.65);
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity var(--ease-fast), border-color var(--ease-fast);
  user-select: none;
}

.lightbox__nav:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.65);
}

.lightbox__nav--prev { left:  var(--sp-2); }
.lightbox__nav--next { right: var(--sp-2); }

.lightbox__counter {
  position: fixed;
  top: var(--sp-2);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  color: rgba(255, 255, 255, 0.45);
}
