/* ==========================================================================
   Green Birds Construction
   Colour, type and spacing tokens were measured from the original Elementor
   build (see TOKENS.md). The surface, shadow and motion systems are new.
   ========================================================================== */

:root {
  /* ---- Colour ---- */
  --gbc-green:      #193e35;  /* footer, dark bands */
  --gbc-teal:       #1a3844;  /* headings, nav */
  --gbc-navy:       #1a203d;  /* body copy */
  --gbc-red:        #c93020;  /* primary CTA system */
  --gbc-red-accent: #e51212;  /* arrow icons, pagination */
  --gbc-surface:    #eff2ff;  /* cool surface, inverse nav text */
  --gbc-white:      #ffffff;
  --gbc-muted:      #494c4f;

  /* Warm neutrals — used behind Featured Projects and alternating bands so the
     page has some temperature instead of flat white throughout. */
  --gbc-warm:       #faf7f3;
  --gbc-warm-deep:  #f3ece4;
  --gbc-line:       rgba(26, 56, 68, .12);

  /* Declared in the original's Elementor kit but never rendered (FLAGS.md #16). */
  --gbc-navy-alt:   #242a56;
  --gbc-periwinkle: #bfd1ff;

  --gbc-ink:        var(--gbc-navy);
  --gbc-heading:    var(--gbc-teal);

  /* ---- Type ---- */
  --ff-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --ff-body:    'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-h1:   clamp(2.125rem, 1.20rem + 3.90vw, 4.4375rem); /* 34 → 71 */
  --fs-h2:   clamp(1.5rem,   0.85rem + 2.70vw, 3.25rem);   /* 24 → 52 */
  --fs-h3:   clamp(1.25rem,  1.02rem + 0.96vw, 1.75rem);   /* 20 → 28 */
  --fs-h4:   clamp(1.125rem, 1.02rem + 0.44vw, 1.5rem);    /* 18 → 24 */
  --fs-h5:   1.25rem;
  --fs-h6:   1.0625rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.44vw, 1.4375rem); /* 18 → 23 */
  --fs-body: 1.1875rem;
  --fs-sm:   1.0625rem;
  --fs-xs:   1rem;
  --fs-nav:  0.9375rem;

  /* Tightened from the original's airy 1.2 / 1.3 — headings now set closer.
     Heading and body letter-spacing are separate tokens so the GBC Design screen
     can adjust each independently; --ls-tight stays for buttons/nav/cards. */
  --lh-tight: 1.05;
  --lh-head:  1.15;
  --lh-body:  1.6;
  --ls-tight: -0.2px;
  --ls-head:  -0.2px;
  --ls-body:  -0.2px;
  --ls-nav:   0.2px;

  /* ---- Space ---- */
  --sp-3xs: .25rem; --sp-2xs: .5rem;  --sp-xs: .75rem;
  --sp-sm:  1rem;   --sp-md: 1.25rem; --sp-lg: 2rem;
  --sp-xl:  2.5rem; --sp-2xl: 4rem;   --sp-3xl: 6rem;

  --section-y: clamp(3.5rem, 2.2rem + 5.5vw, 7rem);
  --gutter:    clamp(1rem, 4vw, 2.5rem);
  --container: 1330px;
  --container-narrow: 800px;

  --radius:     6px;
  --radius-lg:  14px;
  --radius-xl:  22px;

  /* ---- Elevation ---- */
  --shadow-sm:   0 2px 8px rgba(16, 32, 40, .05);
  --shadow-card: 0 6px 22px rgba(16, 32, 40, .07);
  --shadow-lift: 0 22px 48px -14px rgba(16, 32, 40, .22);
  --shadow-pop:  0 30px 80px -20px rgba(16, 32, 40, .32);
  --shadow-cta:  0 12px 28px -8px rgba(201, 48, 32, .45);

  --header-h: 84px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  /* clip, not hidden: hidden makes html/body a scroll container, which breaks
     position:sticky on the header. clip contains overflow without that. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--gbc-ink);
  background: var(--gbc-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  /* Long single words must be able to break rather than force a scrollbar on
     narrow phones — see the min-width:0 note on .gbc-split. */
  overflow-wrap: break-word;
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
  color: var(--gbc-heading);
  margin: 0 0 var(--sp-md);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p { margin: 0 0 var(--sp-md); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
img, video, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--sp-md); padding-left: 1.25em; }
li { margin-bottom: .35em; }

:focus-visible {
  outline: 3px solid var(--gbc-red-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.is-dark :focus-visible,
.gbc-footer :focus-visible,
.gbc-hero :focus-visible { outline-color: var(--gbc-white); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gbc-white); color: var(--gbc-teal);
  padding: var(--sp-xs) var(--sp-md); font-weight: 600;
  box-shadow: var(--shadow-lift);
}
.skip-link:focus { left: var(--sp-sm); top: var(--sp-sm); }

/* ==========================================================================
   Layout
   ========================================================================== */

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

.gbc-section { padding-block: var(--section-y); position: relative; }
.gbc-section--flush { padding-block: 0; }

/* Surfaces. The original's tiled dot texture is gone — warm and cool neutrals
   carry the alternation instead. */
.gbc-section--light { background-color: var(--gbc-white); }
.gbc-section--warm  { background-color: var(--gbc-warm); }
.gbc-section--cool  { background-color: var(--gbc-surface); }
.gbc-section--dots  { background-color: var(--gbc-white); }  /* legacy alias */
.gbc-section--dark {
  background-color: var(--gbc-green);
  color: var(--gbc-white);
}
.gbc-section--dark h1, .gbc-section--dark h2,
.gbc-section--dark h3, .gbc-section--dark h4 { color: var(--gbc-white); }

.gbc-split {
  display: grid;
  gap: clamp(var(--sp-lg), 4vw, var(--sp-3xl));
  align-items: center;
}
/* Grid items default to min-width:auto, so a single long word ("Construction")
   can push a 1fr column wider than its container. Harmless with the real font,
   but the fallback used under `font-display: optional` is wider and blew the
   deliver section 3px past a 320px viewport. */
.gbc-split > * { min-width: 0; }
@media (min-width: 860px) {
  .gbc-split { grid-template-columns: 1fr 1fr; }
  .gbc-split--media-first > :first-child { order: 1; }
}
/* Global rule: when the picture sits on the RIGHT on desktop (a default split,
   content-first + media-second), it stacks ON TOP of the content on mobile.
   Only the media column moves — text/text splits (no img/gallery) are untouched,
   and --media-first (picture on the left) keeps content on top. */
@media (max-width: 859px) {
  .gbc-split:not(.gbc-split--media-first) > .gbc-media,
  .gbc-split:not(.gbc-split--media-first) > *:has(img),
  .gbc-split:not(.gbc-split--media-first) > *:has(.gbc-gallery) {
    order: -1;
  }
}

.gbc-lead { font-size: var(--fs-lead); line-height: 1.5; }
.gbc-prose { max-width: 62ch; }

/* Legal pages (Terms, Privacy) — long-form numbered clauses. Numbering runs
   continuously across sections, so each <ol> carries its own `start`. */
.gbc-legal__list { margin: 0 0 var(--sp-xl); padding-left: 1.6em; }
.gbc-legal__list > li { margin-bottom: var(--sp-md); padding-left: .2em; }
.gbc-legal__list > li::marker { font-weight: 600; color: var(--gbc-red); }
.gbc-legal__sub {
  list-style: lower-alpha;
  margin: var(--sp-sm) 0 0; padding-left: 1.5em;
}
.gbc-legal__sub > li { margin-bottom: var(--sp-xs); }
.gbc-legal__sub > li::marker { font-weight: 600; color: var(--gbc-muted); }
.gbc-legal__list p { margin: var(--sp-sm) 0 0; }
.gbc-legal__defs { margin: var(--sp-sm) 0 0; }
.gbc-legal__defs dt { font-weight: 600; color: var(--gbc-teal); margin-top: var(--sp-sm); }
.gbc-legal__defs dd { margin: 0 0 var(--sp-xs); }
.gbc-legal__date { color: var(--gbc-muted); font-size: var(--fs-sm); }

/* A small red rule above section headings — quiet brand furniture. */
.gbc-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2xs);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gbc-red);
  margin-bottom: var(--sp-sm);
}
.gbc-eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--gbc-red); border-radius: 2px;
}
.gbc-section--dark .gbc-eyebrow { color: #ff9b8d; }
.gbc-section--dark .gbc-eyebrow::before { background: #ff9b8d; }
/* On photographic heroes the red reads muddy — lift it. */
.gbc-eyebrow--onDark { color: #ff9b8d; }
.gbc-eyebrow--onDark::before { background: #ff9b8d; }

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.gbc-btn {
  display: inline-flex; align-items: center; gap: var(--sp-2xs);
  font-family: var(--ff-body);
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: var(--ls-tight);
  padding: .7em 1.35em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .25s var(--ease),
              background-color .2s ease, color .2s ease, border-color .2s ease;
}
.gbc-btn svg { transition: transform .22s var(--ease); }
.gbc-btn:hover svg { transform: translateX(3px); }

.gbc-btn--primary {
  background: var(--gbc-red);
  border-color: var(--gbc-red);
  color: var(--gbc-white);
  box-shadow: var(--shadow-cta);
}
/* Red at rest, brand green on hover. */
.gbc-btn--primary:hover {
  background: var(--gbc-green);
  border-color: var(--gbc-green);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -8px rgba(25, 62, 53, .45);
}
.gbc-btn--ghost {
  background: transparent;
  border-color: var(--gbc-line);
  color: var(--gbc-teal);
}
.gbc-btn--ghost:hover { border-color: var(--gbc-teal); background: var(--gbc-white); transform: translateY(-2px); }

/*
 * The site's signature CTA.
 *
 * Rest: a red circle-arrow on the left + a coloured label, on a transparent pill.
 * Hover: the pill fills solid red, the label turns white, the left circle collapses
 * away and a fresh arrow reveals on the RIGHT. The two halves are timed slightly
 * apart so the motion reads as layered rather than a single flat swap.
 *
 * No gap between flex children — spacing is done with margins so the collapsed
 * right-arrow leaves no phantom whitespace at rest.
 */
.gbc-cta {
  display: inline-flex;
  align-items: center;
  padding: 5px 5px;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--ls-tight);
  color: var(--gbc-red);
  background: transparent;
  text-decoration: none;
  transition: background-color .35s var(--ease), color .3s var(--ease),
              padding .35s var(--ease), box-shadow .35s var(--ease);
}
.gbc-cta__icon {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  margin-right: var(--sp-xs);
  border-radius: 50%;
  background: var(--gbc-red);
  color: var(--gbc-white);
  box-shadow: var(--shadow-cta);
  overflow: hidden;
  transition: width .35s var(--ease), opacity .28s var(--ease),
              margin .35s var(--ease), transform .35s var(--ease), box-shadow .3s var(--ease);
}
.gbc-cta__label { transition: color .3s var(--ease); white-space: nowrap; }
/* nowrap keeps the pill tidy at normal sizes, but a long label ("Our Purpose,
   Vision and Values") cannot fit one line inside a 320px viewport — it forced the
   pill 3px past the container. Let it wrap on the narrowest phones instead. */
@media (max-width: 400px) {
  .gbc-cta__label { white-space: normal; }
}
.gbc-cta__arrow {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 0; margin-left: 0;
  color: var(--gbc-white);
  opacity: 0;
  transform: translateX(-8px);
  overflow: hidden;
  /* Slight delay so the arrow arrives just after the pill has begun to fill. */
  transition: width .35s var(--ease) .05s, opacity .3s var(--ease) .08s,
              margin .35s var(--ease) .05s, transform .35s var(--ease) .08s;
}

.gbc-cta:hover,
.gbc-cta:focus-visible {
  background: var(--gbc-red);
  color: var(--gbc-white);
  padding: 5px 20px 5px 22px;
  box-shadow: var(--shadow-cta);
}
/* Left circle collapses out — the pill is already red, so it simply melts away. */
.gbc-cta:hover .gbc-cta__icon,
.gbc-cta:focus-visible .gbc-cta__icon {
  width: 0; margin-right: 0;
  opacity: 0;
  transform: scale(.5);
  box-shadow: none;
}
.gbc-cta:hover .gbc-cta__label,
.gbc-cta:focus-visible .gbc-cta__label { color: var(--gbc-white); }
/* Right arrow reveals. */
.gbc-cta:hover .gbc-cta__arrow,
.gbc-cta:focus-visible .gbc-cta__arrow {
  width: 18px; margin-left: var(--sp-xs);
  opacity: 1;
  transform: translateX(0);
}

/* Secondary CTA (`gbc_cta( …, 'text' )`) — rests as a soft pill with the arrow
   already showing on the right and no left circle, then fills red on hover like
   every other CTA. Used for the hero's lower-emphasis second action. */
.gbc-cta--text {
  background: rgba(255, 255, 255, .16);
  padding: 5px 16px 5px 18px;
}
.gbc-cta--text .gbc-cta__icon {
  width: 0; margin-right: 0;
  opacity: 0; transform: scale(.5);
  box-shadow: none;
}
.gbc-cta--text .gbc-cta__arrow {
  width: 18px; margin-left: var(--sp-xs);
  opacity: 1; transform: translateX(0);
}

.gbc-section--dark .gbc-cta,
.gbc-hero .gbc-cta,
.gbc-footer .gbc-cta { color: var(--gbc-white); }
/* On dark surfaces the resting label is already white; hover keeps the red pill. */

.gbc-cta--accent .gbc-cta__icon { background: var(--gbc-red-accent); }
.gbc-cta--accent:hover,
.gbc-cta--accent:focus-visible { background: var(--gbc-red-accent); }

@media (prefers-reduced-motion: reduce) {
  .gbc-cta, .gbc-cta__icon, .gbc-cta__label, .gbc-cta__arrow,
  .gbc-btn, .gbc-btn svg { transition: background-color .2s ease, color .2s ease; }
  .gbc-cta:hover .gbc-cta__icon, .gbc-cta:focus-visible .gbc-cta__icon { transform: none; }
  .gbc-cta:hover .gbc-cta__arrow, .gbc-cta:focus-visible .gbc-cta__arrow { transform: none; }
  .gbc-btn:hover, .gbc-btn:hover svg { transform: none; }
}

/* ==========================================================================
   Header — sticky, solid, blurred (Tidii pattern)
   ========================================================================== */

.gbc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Solid white in every state (incl. stuck/scrolled). No backdrop-filter — a
     solid bg makes it invisible anyway, and dropping it removes the containing
     block it created for position:fixed descendants. */
  background: var(--gbc-white);
  border-bottom: 1px solid var(--gbc-line);
  transition: box-shadow .25s ease;
}
.gbc-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 32, 40, .07); }

.gbc-header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: .75rem var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.gbc-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.gbc-logo img { width: clamp(150px, 14vw, 190px); height: auto; }
.gbc-logo__text {
  font-family: var(--ff-display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--gbc-teal); text-decoration: none;
  letter-spacing: var(--ls-tight);
}

.gbc-nav__list {
  display: flex; align-items: center;
  gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.gbc-nav__list li { margin: 0; }
.gbc-nav__list a {
  position: relative;
  display: inline-flex; align-items: center;
  font-size: var(--fs-nav);
  font-weight: 600;
  letter-spacing: var(--ls-nav);
  color: var(--gbc-teal);
  text-decoration: none;
  padding: .55rem .85rem;
  border-radius: 10px;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.gbc-nav__list a:hover { background: var(--gbc-warm-deep); color: var(--gbc-green); }
/* current-menu-ancestor / -parent cover a single project highlighting its
   Projects (archive) parent — see nav_menu_css_class in the core plugin. */
.gbc-nav__list .current-menu-item > a,
.gbc-nav__list .current_page_item > a,
.gbc-nav__list .current-menu-parent > a,
.gbc-nav__list .current-menu-ancestor > a { color: var(--gbc-red); }
.gbc-nav__list .current-menu-item > a::after,
.gbc-nav__list .current_page_item > a::after,
.gbc-nav__list .current-menu-parent > a::after,
.gbc-nav__list .current-menu-ancestor > a::after {
  content: '';
  position: absolute; left: .85rem; right: .85rem; bottom: .28rem;
  height: 2px; border-radius: 2px;
  background: var(--gbc-red);
}

.gbc-header__actions { display: flex; align-items: center; gap: var(--sp-sm); flex: 0 0 auto; }
.gbc-header__phone {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--gbc-teal); text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.gbc-header__phone:hover { color: var(--gbc-red); }

/* Quick-call shortcut left of the burger — mobile & tablet only. Phones show
   just the icon; tablets/iPads (≥768px) also show the full clickable number. */
.gbc-header__call {
  display: none;
  align-items: center; gap: .5rem;
  min-height: 44px; padding: 0 .3rem;
  color: var(--gbc-teal); text-decoration: none;
  font-size: var(--fs-sm); font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease;
}
.gbc-header__call:hover { color: var(--gbc-red); }
.gbc-header__call svg { flex: 0 0 auto; }
.gbc-header__call-num { display: none; }
@media (max-width: 1100px) {
  .gbc-header__call { display: inline-flex; margin-left: auto; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .gbc-header__call-num { display: inline; }
}

.gbc-nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: var(--gbc-warm);
  border: 1px solid var(--gbc-line);
  border-radius: 12px;
  color: var(--gbc-teal);
  cursor: pointer; padding: 0;
  transition: background .2s ease, border-color .2s ease;
}
.gbc-nav-toggle:hover { background: var(--gbc-warm-deep); }
.gbc-nav-toggle__bars { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.gbc-nav-toggle__bars::before,
.gbc-nav-toggle__bars::after {
  content: ''; position: absolute; left: 0;
  width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s ease;
}
.gbc-nav-toggle__bars::before { top: -6px; }
.gbc-nav-toggle__bars::after  { top: 6px; }
.gbc-nav-toggle[aria-expanded="true"] .gbc-nav-toggle__bars { background: transparent; }
.gbc-nav-toggle[aria-expanded="true"] .gbc-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.gbc-nav-toggle[aria-expanded="true"] .gbc-nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---- Full-screen mobile drawer (Tidii pattern) ------------------------- *
 * Lives at the top level of <body>, OUTSIDE the header. The header's
 * backdrop-filter creates a containing block for position:fixed, so a panel
 * nested inside it would be trapped to the header's box. This one isn't. */
.gbc-mobile {
  position: fixed; inset: 0; z-index: 120;
  background: var(--gbc-white);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  /* visibility:hidden keeps closed links out of the tab order (aria-hidden
     alone fails axe's aria-hidden-focus rule); the delay lets the slide finish. */
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
  overflow-y: auto;
}
.gbc-mobile.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .35s var(--ease);
}
.gbc-mobile__backdrop {
  position: fixed; inset: 0; z-index: 115;
  background: rgba(12, 20, 18, .5);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.gbc-mobile__backdrop.is-visible { opacity: 1; visibility: visible; }

.gbc-mobile__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem var(--gutter);
  min-height: var(--header-h);
  border-bottom: 1px solid var(--gbc-line);
}
.gbc-mobile__logo img { width: clamp(150px, 40vw, 190px); height: auto; }
.gbc-mobile__close {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gbc-warm);
  border: 1px solid var(--gbc-line);
  border-radius: 12px;
  color: var(--gbc-teal);
  cursor: pointer; padding: 0;
  transition: background .2s ease;
}
.gbc-mobile__close:hover { background: var(--gbc-warm-deep); }

.gbc-mobile__nav { flex: 1; padding: var(--sp-lg) var(--gutter); }
.gbc-mobile__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gbc-mobile__list li { margin: 0; }
.gbc-mobile__list a {
  display: block;
  padding: .85rem 1rem;
  font-family: var(--ff-display);
  font-size: 1.125rem; font-weight: 500;
  color: var(--gbc-teal); text-decoration: none;
  letter-spacing: var(--ls-tight);
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}
.gbc-mobile__list a:hover { background: var(--gbc-warm-deep); color: var(--gbc-green); }
/* Highlight the active section — incl. an ancestor (e.g. Projects while viewing
   a single project, flagged via nav_menu_css_class in the core plugin). */
.gbc-mobile__list .current-menu-item > a,
.gbc-mobile__list .current_page_item > a,
.gbc-mobile__list .current-menu-parent > a,
.gbc-mobile__list .current-menu-ancestor > a {
  background: var(--gbc-warm-deep);
  color: var(--gbc-red);
}

.gbc-mobile__cta {
  display: flex; flex-direction: column; gap: var(--sp-sm);
  padding: var(--sp-lg) var(--gutter) var(--sp-2xl);
  border-top: 1px solid var(--gbc-line);
}
.gbc-mobile__cta .gbc-btn { justify-content: center; }
.gbc-mobile__phone { justify-content: center; font-size: 1.0625rem; }

body.nav-open { overflow: hidden; }

@media (max-width: 1100px) {
  .gbc-header__actions { display: none; }
  .gbc-nav { display: none; }
  .gbc-nav-toggle { display: inline-flex; }
}

/* Desktop never shows the drawer; keep it fully inert there. */
@media (min-width: 1101px) {
  .gbc-mobile, .gbc-mobile__backdrop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gbc-nav, .gbc-nav-backdrop { transition: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.gbc-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 76svh, 820px);
  padding-block: var(--sp-3xl);
  color: var(--gbc-white);
  background: var(--gbc-teal);
  overflow: hidden;
  isolation: isolate;
}
.gbc-hero--compact { min-height: clamp(420px, 58svh, 640px); }

.gbc-hero__media { position: absolute; inset: 0; z-index: -2; }
.gbc-hero__media img,
.gbc-hero__media video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.gbc-hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.gbc-hero__media video.is-playing { opacity: 1; }
/*
 * YouTube/Vimeo facade. An iframe can't object-fit, so it is centred and blown
 * up to whichever of 16:9-by-width or 16:9-by-height covers the box — the same
 * result as object-fit:cover on the <video>.
 */
.gbc-hero__media iframe,
.gbc-media > iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;            /* 16:9 by width  */
  min-width: 177.78vh; min-height: 100vh;   /* 16:9 by height */
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
  opacity: 0; transition: opacity .7s var(--ease);
}
.gbc-hero__media iframe.is-playing,
.gbc-media > iframe.is-playing { opacity: 1; }
/* Inside a framed well the cover maths is relative to the well, not the viewport. */
.gbc-media { position: relative; }
.gbc-media > iframe {
  width: 100%; height: 100%;
  min-width: 0; min-height: 0;
  aspect-ratio: auto;
}
.gbc-hero__poster { position: absolute; inset: 0; }

/*
 * Tidii-style scrim: a strong left-to-right wash so the headline always has a
 * dark field under it, plus a bottom vignette to seat the section.
 */
.gbc-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12,22,20,.92) 0%, rgba(12,22,20,.78) 32%, rgba(12,22,20,.42) 66%, rgba(12,22,20,.20) 100%),
    linear-gradient(180deg, rgba(12,22,20,.35) 0%, transparent 30%, rgba(12,22,20,.55) 100%);
  pointer-events: none;
}
@media (max-width: 860px) {
  .gbc-hero::after {
    background: linear-gradient(180deg, rgba(12,22,20,.80) 0%, rgba(12,22,20,.58) 42%, rgba(12,22,20,.88) 100%);
  }
}

/*
 * Bands whose content spans the full width need an even scrim — the L→R wash
 * above only protects text on the left and leaves the right column floating over
 * whatever the video happens to be showing.
 */
.gbc-hero.is-dark::after {
  background:
    linear-gradient(180deg, rgba(10,20,18,.74) 0%, rgba(10,20,18,.68) 45%, rgba(10,20,18,.82) 100%);
}

.gbc-hero__inner { position: relative; width: 100%; }
.gbc-hero h1, .gbc-hero h2, .gbc-hero h3 { color: var(--gbc-white); }
.gbc-hero h1 { max-width: 17ch; }
.gbc-hero p { color: rgba(255,255,255,.92); }
.gbc-hero__lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 52ch; }
.gbc-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-xl); }
.gbc-hero__actions .gbc-btn--ghost { border-color: rgba(255,255,255,.5); color: var(--gbc-white); }
.gbc-hero__actions .gbc-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--gbc-white); }
.gbc-hero__meta {
  margin-top: var(--sp-lg);
  display: flex; flex-wrap: wrap;
  gap: var(--sp-2xs) var(--sp-lg);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.9);
}

/* Framed media wells (the "Delivering Safe" and Values videos). */
.gbc-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gbc-warm-deep);
  box-shadow: var(--shadow-lift);
}
.gbc-media > img,
.gbc-media > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.gbc-media > video { opacity: 0; transition: opacity .6s var(--ease); }
.gbc-media > video.is-playing { opacity: 1; }
.gbc-media--4x3 { aspect-ratio: 4/3; }
.gbc-media--4x5 { aspect-ratio: 4/5; }
@media (prefers-reduced-motion: reduce) {
  .gbc-media > video, .gbc-hero__media video { transition: none; }
}

/* ==========================================================================
   Services — peek carousel
   ========================================================================== */

/* Heading row with the prev/next arrows on the right. */
.gbc-services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

/* One card takes ~65% of the track, the next peeks at ~half — and that pattern
   repeats down the rail. Same behaviour on mobile, just a slightly wider card so
   the copy stays readable. */
.gbc-services-carousel .gbc-carousel__track {
  /*
   * A scroll container (overflow-x:auto) also clips vertically, which was slicing
   * the hover shadow into a hard-edged box. Padding gives the shadow room; the
   * negative inline margin pulls the rail back so the first card still lines up
   * with the section edge.
   */
  /* Full-bleed to the section gutter so the negative margin can't exceed it
     (that was pushing the page a few px wide on small screens). */
  padding: var(--sp-sm) var(--gutter) var(--sp-xl);
  margin-inline: calc(var(--gutter) * -1);
  /* scroll-padding matches the inline padding so the first card's snap point is at
     scrollLeft 0. Without it, a mandatory snap container adjusts its scroll on load
     and Chrome discards the hero's LCP candidate (FLAG-19). Keeps the snap feel. */
  scroll-padding-inline: var(--gutter);
}
.gbc-services__track > .gbc-service {
  flex: 0 0 65%;
  scroll-snap-align: start;
}
@media (max-width: 640px) {
  .gbc-services__track > .gbc-service { flex-basis: 82%; }
}

.gbc-service {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Fixed height so every card matches regardless of copy length; the body is
     clamped and a "Read more" carries the rest. */
  height: clamp(440px, 42vw, 540px);
  padding: var(--sp-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: var(--gbc-white);
  background: var(--gbc-teal);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gbc-service img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
/*
 * Photo reads clearly across the top, then the scrim ramps to near-solid so the
 * FULL body copy is legible even over a bright image — the previous gradient was
 * too weak and the text sat on the photo.
 */
.gbc-service::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(10,18,16,0)   0%,
    rgba(10,18,16,.10) 28%,
    rgba(10,18,16,.55) 48%,
    rgba(10,18,16,.86) 68%,
    rgba(10,18,16,.96) 100%);
}
/* A tight, downward shadow that stays within the rail's padding — the big
   spreading --shadow-pop was overflowing the scroller and clipping to a box. */
.gbc-service:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -16px rgba(10, 18, 16, .5);
}
.gbc-service:hover img { transform: scale(1.06); }

.gbc-service__num {
  position: absolute; top: var(--sp-lg); left: var(--sp-lg);
  font-family: var(--ff-display); font-size: .875rem; font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.gbc-service h3 { color: var(--gbc-white); margin-bottom: var(--sp-2xs); }
.gbc-service__rule {
  width: 40px; height: 3px; border-radius: 3px;
  background: var(--gbc-red-accent);
  margin-bottom: var(--sp-sm);
  transition: width .35s var(--ease);
}
.gbc-service:hover .gbc-service__rule { width: 72px; }
/* Clamped teaser — the full copy is a click away via "Read more". */
.gbc-service__body {
  font-size: var(--fs-sm); line-height: 1.55;
  color: #fff;
  margin: 0 0 var(--sp-md);
  max-width: 46ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

.gbc-service__more {
  display: inline-flex; align-items: center; gap: var(--sp-2xs);
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--gbc-white);
  text-decoration: none;
  align-self: flex-start;
}
.gbc-service__more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
/* Stretched link: the whole card is the click target. */
.gbc-service__more::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
}
.gbc-service:hover .gbc-service__more svg { transform: translateX(4px); }
.gbc-service__more:focus-visible { outline: 3px solid var(--gbc-white); outline-offset: 4px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  .gbc-service, .gbc-service img, .gbc-service__rule, .gbc-service__more svg { transition: none; }
  .gbc-service:hover, .gbc-service:hover img { transform: none; }
  .gbc-service:hover .gbc-service__more svg { transform: none; }
}

/* ==========================================================================
   Carousel (generic)
   ========================================================================== */

.gbc-carousel { position: relative; }
.gbc-carousel__track {
  display: flex;
  gap: var(--sp-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-block: var(--sp-2xs) var(--sp-lg);
}
.gbc-carousel__track::-webkit-scrollbar { display: none; }
/* Centre the cards when the whole set fits (JS adds .is-fit) so a short rail —
   e.g. only two projects — sits balanced rather than lopsided to the left. */
.gbc-carousel__track.is-fit { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .gbc-carousel__track { scroll-behavior: auto; } }

/* Prev / next arrow controls. */
.gbc-carousel__nav { display: flex; gap: var(--sp-2xs); flex: 0 0 auto; }
/* An explicit display wins over the [hidden] attribute's UA display:none, so the
   JS auto-hide needs this to actually take effect. */
.gbc-carousel__nav[hidden],
.gbc-carousel__dots[hidden] { display: none; }
.gbc-carousel__arrow {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gbc-line);
  background: var(--gbc-white);
  color: var(--gbc-teal);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease), opacity .2s ease;
}
.gbc-carousel__arrow svg { width: 18px; height: 18px; }
.gbc-carousel__arrow[data-dir="prev"] svg { transform: rotate(180deg); }
.gbc-carousel__arrow:hover {
  background: var(--gbc-red);
  border-color: var(--gbc-red);
  color: var(--gbc-white);
  transform: translateY(-2px);
}
.gbc-carousel__arrow:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
  background: var(--gbc-white);
  color: var(--gbc-teal);
  border-color: var(--gbc-line);
}
@media (prefers-reduced-motion: reduce) {
  .gbc-carousel__arrow { transition: background-color .2s ease, color .2s ease; }
  .gbc-carousel__arrow:hover { transform: none; }
}

.gbc-carousel__dots {
  display: flex; justify-content: center; gap: var(--sp-2xs);
  margin-top: var(--sp-md);
  padding: 0; list-style: none;
}
.gbc-carousel__dots li { margin: 0; }
.gbc-carousel__dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; padding: 0;
  background: rgba(26,32,61,.22);
  cursor: pointer;
  transition: background-color .2s ease, width .25s var(--ease), border-radius .25s var(--ease);
}
.gbc-carousel__dot[aria-selected="true"] { background: var(--gbc-red-accent); width: 26px; border-radius: 5px; }

/* ==========================================================================
   Project cards
   ========================================================================== */

/* Projects carousel — same peek behaviour as the services rail: two cards show
   and the next overflows a little, on desktop and mobile. Full-bleed to the gutter
   so the hover shadow has room and the first card lines up with the section edge. */
.gbc-projects-carousel .gbc-carousel__track {
  padding: var(--sp-sm) var(--gutter) var(--sp-xl);
  margin-inline: calc(var(--gutter) * -1);
  scroll-padding-inline: var(--gutter); /* snap point at scrollLeft 0 — see FLAG-19 */
}
/*
 * Cards are sized so the next one always overflows a little — the peek shows on
 * desktop as well as mobile, even with just two projects. When more are added the
 * arrows/dots reveal them. (>50% of the rail guarantees two cards can't both fit.)
 */
.gbc-projects__track > * {
  flex: 0 0 clamp(300px, 53%, 660px);
  scroll-snap-align: start;
}
@media (max-width: 640px) {
  .gbc-projects__track > * { flex-basis: 80%; }
}

.gbc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 560px;
  padding: var(--sp-lg);
  border-radius: var(--radius-lg);
  color: var(--gbc-white);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  background: var(--gbc-teal);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gbc-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.gbc-card::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,22,20,.15) 0%, rgba(12,22,20,.58) 45%, rgba(12,22,20,.93) 100%);
}
/* Tight downward shadow that stays inside the rail's padding (the big --shadow-pop
   was overflowing the scroller and clipping to a box). */
.gbc-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -16px rgba(10, 18, 16, .5); }
.gbc-card:hover img { transform: scale(1.05); }

.gbc-card__eyebrow {
  display: inline-block;
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: var(--sp-2xs);
}
.gbc-card__title { color: var(--gbc-white); font-size: var(--fs-h3); margin-bottom: var(--sp-xs); }
.gbc-card__excerpt {
  font-size: var(--fs-sm); line-height: 1.55;
  color: rgba(255,255,255,.88);
  margin: 0 0 var(--sp-md);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}

/*
 * The arrow is part of the flow, not absolutely positioned. The original floated
 * it over the corner, where it collided with any short excerpt.
 */
.gbc-card__arrow {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gbc-red-accent);
  color: var(--gbc-white);
  flex: 0 0 auto;
  box-shadow: 0 8px 20px -6px rgba(229, 18, 18, .6);
  transition: transform .3s var(--ease);
}
.gbc-card:hover .gbc-card__arrow { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .gbc-card, .gbc-card img, .gbc-card__arrow { transition: none; }
  .gbc-card:hover, .gbc-card:hover img, .gbc-card:hover .gbc-card__arrow { transform: none; }
}

.gbc-card--static { min-height: 520px; }

.gbc-grid {
  display: grid;
  gap: var(--sp-md);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

/* ==========================================================================
   Stats strip
   ========================================================================== */

.gbc-stats {
  display: grid;
  gap: var(--sp-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  list-style: none; margin: 0; padding: 0;
}
.gbc-stats li { margin: 0; }
.gbc-stat__num {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 600; line-height: 1;
  color: var(--gbc-red);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-2xs);
}
.gbc-stat__label { font-size: var(--fs-sm); color: var(--gbc-muted); margin: 0; }
.gbc-section--dark .gbc-stat__num { color: var(--gbc-white); }
.gbc-section--dark .gbc-stat__label { color: rgba(255,255,255,.78); }
/* Mobile: two columns, and a lone final stat (odd count) spans the full width
   instead of sitting alone in a half-width cell. */
@media (max-width: 640px) {
  .gbc-stats { grid-template-columns: 1fr 1fr; }
  .gbc-stats > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/*
 * Project-page stats. Profile badges are words as often as figures ("Internal &
 * external", "Multiple trades"), so the strip runs 20% smaller than the homepage
 * one — big display sizing suits numerals, not phrases.
 */
.gbc-stats--tight .gbc-stat__num {
  font-size: clamp(1.6rem, 1.05rem + 2.1vw, 2.6rem);
}
.gbc-stats--tight .gbc-stat__label { font-size: .875rem; }
/* Six badges split 3 + 3 — never the lopsided 5-and-an-orphan wrap. */
@media (min-width: 640px) {
  .gbc-stats--cols3 { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Team & values
   ========================================================================== */

.gbc-team {
  display: grid;
  gap: var(--sp-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.gbc-team__photo {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  margin-bottom: var(--sp-sm);
  border-radius: var(--radius-lg);
  background: var(--gbc-warm-deep);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gbc-team li:hover .gbc-team__photo { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.gbc-team__name { font-size: 1.5rem; line-height: 1.2; margin-bottom: var(--sp-3xs); }
.gbc-team__role { font-size: var(--fs-sm); color: var(--gbc-navy); margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .gbc-team__photo, .gbc-team li:hover .gbc-team__photo { transition: none; transform: none; }
}

.gbc-values { display: grid; gap: var(--sp-xl); }
@media (min-width: 780px) { .gbc-values { grid-template-columns: repeat(3, 1fr); } }
.gbc-value__number {
  font-family: var(--ff-display);
  font-size: var(--fs-h3); font-weight: 600;
  color: var(--gbc-red);
  margin-bottom: var(--sp-2xs);
}
.gbc-value h3 { font-size: 1.375rem; line-height: 1.25; margin-bottom: var(--sp-xs); }

/* Feature-card grid — shared by About "Values" (6) and Services "Why Green Birds" (6). */
.gbc-value-grid {
  display: grid;
  gap: var(--sp-md);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
/* Exactly six cards lay out 3 + 3 rather than an uneven 4 + 2. Larger sets (the
   7-step delivery process) keep the auto-fit flow. */
@media (min-width: 900px) {
  .gbc-value-grid:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
}
.gbc-value-card {
  position: relative;
  background: var(--gbc-white);
  border: 1px solid var(--gbc-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.gbc-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.gbc-value-card__num {
  display: block;
  font-family: var(--ff-display);
  font-size: .875rem; font-weight: 600;
  letter-spacing: .12em;
  color: var(--gbc-red);
  margin-bottom: var(--sp-sm);
}
.gbc-value-card h3 {
  font-size: 1.25rem; line-height: 1.2;
  margin-bottom: var(--sp-2xs);
}
.gbc-value-card p { font-size: var(--fs-sm); color: var(--gbc-muted); margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .gbc-value-card { transition: none; }
  .gbc-value-card:hover { transform: none; }
}

/* ==========================================================================
   Services page blocks
   ========================================================================== */

.gbc-block__body { max-width: 70ch; }
/* Service-block photo — rounded to match every other image on the site. */
.gbc-block__media img { border-radius: var(--radius-lg); }

/* ==========================================================================
   Project single
   ========================================================================== */

.gbc-breadcrumb {
  background: var(--gbc-white);
  border-bottom: 1px solid var(--gbc-line);
  font-size: var(--fs-xs);
}
.gbc-breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--sp-2xs) var(--sp-sm);
  list-style: none; margin: 0; padding-block: var(--sp-sm);
}
.gbc-breadcrumb li { margin: 0; display: flex; align-items: center; gap: var(--sp-sm); }
.gbc-breadcrumb li + li::before { content: '›'; color: var(--gbc-muted); }
.gbc-breadcrumb a { color: var(--gbc-teal); text-decoration: none; }
.gbc-breadcrumb a:hover { text-decoration: underline; }
.gbc-breadcrumb [aria-current="page"] { color: var(--gbc-muted); }

.gbc-gallery { display: grid; gap: var(--sp-md); grid-template-columns: repeat(2, 1fr); }
.gbc-gallery img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
/* Global rule: a lone image takes the full gallery width — the two-up layout is
   never left with an empty hole when the admin uploads just one photo. */
.gbc-gallery > :only-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
@media (max-width: 520px) { .gbc-gallery { grid-template-columns: 1fr; } }

/* Placeholder tile — shown wherever project photography is still to come. */
.gbc-ph {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sp-xs);
  aspect-ratio: 4/5;
  border: 2px dashed rgba(26, 56, 68, .25);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 50% 35%, rgba(26, 56, 68, .05), transparent 75%),
    var(--gbc-warm);
  color: var(--gbc-muted);
  font-size: .8125rem;
  font-weight: 500;
  text-align: center;
  padding: var(--sp-md);
}
.gbc-ph svg { opacity: .45; }
.gbc-gallery > .gbc-ph:only-child { aspect-ratio: 16/10; }

/* Imageless hero — brand gradient with a faint oversized brand arrow, so the page
   still opens with presence rather than a flat teal slab. */
.gbc-hero--ph { background: linear-gradient(135deg, #12262e 0%, var(--gbc-teal) 55%, #1f4a41 100%); }
.gbc-hero--ph .gbc-hero__watermark {
  position: absolute;
  right: -4%; bottom: -12%;
  z-index: -1;
  opacity: .07;
  pointer-events: none;
}
.gbc-hero--ph .gbc-hero__watermark svg { width: clamp(280px, 34vw, 520px); height: auto; }

/* Imageless project cards get the same faint mark. */
.gbc-card--noimg { background: linear-gradient(150deg, #13282f 0%, var(--gbc-teal) 60%, #1e463e 100%); }
.gbc-card__watermark {
  position: absolute;
  right: -8%; top: 6%;
  z-index: -1;
  opacity: .08;
  pointer-events: none;
}
.gbc-card__watermark svg { width: 190px; height: auto; }

.gbc-results { list-style: none; padding: 0; }
.gbc-results li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--sp-sm);
}
.gbc-results li::before {
  content: '';
  position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gbc-red);
  box-shadow: 0 0 0 4px rgba(201, 48, 32, .14);
}
.gbc-section--dark .gbc-results li::before { background: #ff9b8d; box-shadow: 0 0 0 4px rgba(255,155,141,.18); }

/* Works-delivered chips — a wrapping tag row on the dark band. */
.gbc-chips {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-2xs);
  list-style: none; margin: 0; padding: 0;
}
.gbc-chips li {
  margin: 0;
  padding: .45em 1em;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06);
}

/* Case-study testimonial. */
.gbc-quote {
  margin: 0;
  padding: var(--sp-lg);
  border-left: 4px solid var(--gbc-red-accent);
  background: rgba(255,255,255,.05);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.gbc-quote blockquote { margin: 0 0 var(--sp-sm); }
.gbc-quote blockquote p {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--gbc-white);
  margin: 0;
}
.gbc-quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); }
.gbc-quote figcaption strong { color: var(--gbc-white); }
.gbc-quote figcaption span { color: rgba(255,255,255,.72); }

/* Value cards sit on white by default; on the warm surface keep the border visible. */
.gbc-section--warm .gbc-value-card { border-color: rgba(26,56,68,.14); }

/* Scope-of-works pair: half the standard split gap, and both cards stretch to the
   same height regardless of how many items each list carries. */
.gbc-split--sow {
  gap: calc(clamp(var(--sp-lg), 4vw, var(--sp-3xl)) / 2);
  align-items: stretch;
}
.gbc-split--sow > .gbc-value-card { height: 100%; }
/* Global rule: a lone scope card takes the full row — no half-width orphan when a
   project has no additional-works list. */
.gbc-split--sow > :only-child { grid-column: 1 / -1; }

/* ==========================================================================
   Contact
   ========================================================================== */

.gbc-contact-grid { display: grid; gap: clamp(var(--sp-xl), 4vw, var(--sp-2xl)); align-items: start; }
@media (min-width: 900px) { .gbc-contact-grid { grid-template-columns: 1.15fr .85fr; } }

.gbc-form-card__intro { font-size: var(--fs-sm); color: var(--gbc-muted); margin: calc(var(--sp-sm) * -1) 0 var(--sp-lg); }

/* Contact-details panel — icon rows in a raised card. */
.gbc-contact-info {
  display: flex; flex-direction: column;
  background: var(--gbc-white);
  border: 1px solid var(--gbc-line);
  border-radius: var(--radius-xl);
  padding: var(--sp-sm) var(--sp-lg);
  box-shadow: var(--shadow-card);
}
.gbc-contact-row {
  display: flex; align-items: flex-start; gap: var(--sp-md);
  padding: var(--sp-md) 0;
  text-decoration: none;
  color: var(--gbc-ink);
}
.gbc-contact-row + .gbc-contact-row { border-top: 1px solid var(--gbc-line); }
.gbc-contact-row__icon {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gbc-warm-deep);
  color: var(--gbc-teal);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
a.gbc-contact-row:hover .gbc-contact-row__icon {
  background: var(--gbc-red);
  color: var(--gbc-white);
  transform: translateY(-2px);
}
.gbc-contact-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gbc-contact-row__label {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gbc-muted);
}
.gbc-contact-row__value {
  font-size: var(--fs-sm); font-weight: 500; font-style: normal;
  color: var(--gbc-teal); line-height: 1.45;
  word-break: break-word;
}
a.gbc-contact-row:hover .gbc-contact-row__value { color: var(--gbc-red); }
.gbc-contact-info__reg {
  font-size: var(--fs-xs); color: var(--gbc-muted);
  padding: var(--sp-md) 0 var(--sp-sm);
  margin: 0;
  border-top: 1px solid var(--gbc-line);
}
@media (prefers-reduced-motion: reduce) {
  .gbc-contact-row__icon { transition: none; }
  a.gbc-contact-row:hover .gbc-contact-row__icon { transform: none; }
}

.gbc-form { display: grid; gap: var(--sp-md); }
.gbc-form__row { display: grid; gap: var(--sp-md); }
@media (min-width: 620px) { .gbc-form__row--2 { grid-template-columns: 1fr 1fr; } }

.gbc-form-card {
  background: var(--gbc-white);
  border: 1px solid var(--gbc-line);
  border-radius: var(--radius-xl);
  padding: clamp(var(--sp-lg), 3vw, var(--sp-2xl));
  box-shadow: var(--shadow-card);
}

.gbc-field { display: grid; gap: var(--sp-2xs); }
.gbc-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--gbc-teal); }
.gbc-field .required { color: var(--gbc-red); }
.gbc-field input,
.gbc-field textarea {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-tight);
  color: var(--gbc-ink);
  background: var(--gbc-white);
  border: 1px solid rgba(26,56,68,.28);
  border-radius: var(--radius);
  padding: var(--sp-xs) var(--sp-sm);
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.gbc-field input:focus,
.gbc-field textarea:focus {
  border-color: var(--gbc-teal);
  box-shadow: 0 0 0 4px rgba(26,56,68,.10);
}
.gbc-field textarea { min-height: 160px; resize: vertical; }

.gbc-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.gbc-button {
  display: inline-flex; align-items: center; gap: var(--sp-2xs);
  font-family: var(--ff-body);
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: var(--ls-tight);
  color: var(--gbc-white);
  background: var(--gbc-red);
  border: 2px solid var(--gbc-red);
  border-radius: 999px;
  padding: .8em 1.6em;
  cursor: pointer;
  justify-self: start;
  box-shadow: var(--shadow-cta);
  transition: transform .22s var(--ease), box-shadow .25s var(--ease), background-color .2s ease, color .2s ease;
}
.gbc-button:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -8px rgba(201,48,32,.55); }
.gbc-button svg { transition: transform .22s var(--ease); }
.gbc-button:hover svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .gbc-button, .gbc-button svg { transition: none; }
  .gbc-button:hover, .gbc-button:hover svg { transform: none; }
}

.gbc-notice {
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius);
  border-left: 4px solid;
  font-size: var(--fs-sm);
}
.gbc-notice--success { background: rgba(25,62,53,.08); border-color: var(--gbc-green); color: var(--gbc-green); }
.gbc-notice--error   { background: rgba(201,48,32,.08); border-color: var(--gbc-red);   color: var(--gbc-red); }

.gbc-address { font-style: normal; font-size: var(--fs-sm); line-height: 1.7; }
.gbc-address a { color: var(--gbc-teal); }

.gbc-map {
  position: relative; aspect-ratio: 16/10;
  background: var(--gbc-warm-deep); overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.gbc-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.gbc-map__facade {
  position: absolute; inset: 0;
  display: grid; place-items: center; gap: var(--sp-sm);
  background: var(--gbc-teal); color: var(--gbc-white);
  border: 0; cursor: pointer; width: 100%;
  font-family: var(--ff-body); font-size: var(--fs-sm); font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.gbc-footer {
  background: var(--gbc-green);
  color: var(--gbc-white);
}
/* The green field. Padding lives here rather than on .gbc-footer so the
   accreditations band above it can sit on white, full-bleed. */
.gbc-footer__main { padding-block: var(--sp-2xl); }
.gbc-footer a { color: var(--gbc-white); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
.gbc-footer a:hover { text-decoration: underline; }

/* Centred, stacked, rule-separated. */
.gbc-footer__inner { text-align: center; }
.gbc-footer__cta { display: flex; justify-content: center; padding-bottom: var(--sp-2xl); }

.gbc-footer__rule {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.16);
  margin: 0 auto;
  max-width: 1040px;
}

/* Social — icon only, dot-separated. */
.gbc-footer__social {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: clamp(var(--sp-md), 3vw, var(--sp-2xl));
  list-style: none; margin: 0 0 var(--sp-2xl); padding: 0;
}
.gbc-footer__social li { margin: 0; position: relative; }
.gbc-footer__social li + li::before {
  content: '';
  position: absolute; left: calc(clamp(var(--sp-md), 3vw, var(--sp-2xl)) / -2);
  top: 50%; transform: translate(-50%, -50%);
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.gbc-footer__social a,
.gbc-footer__social span {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: rgba(255,255,255,.72);
  transition: color .2s ease, background-color .2s ease, transform .25s var(--ease);
}
.gbc-footer__social a:hover {
  color: var(--gbc-white);
  background: rgba(255,255,255,.10);
  transform: translateY(-2px);
}
.gbc-footer__social span { color: rgba(255,255,255,.34); }

/* Link rows — centred, dot-separated, wrapping cleanly. */
.gbc-footer__links {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: var(--sp-xs) clamp(var(--sp-md), 2.4vw, var(--sp-xl));
  list-style: none; margin: 0; padding: 0;
}
.gbc-footer__links li { margin: 0; position: relative; }
.gbc-footer__links li + li::before {
  content: '';
  position: absolute; left: calc(clamp(var(--sp-md), 2.4vw, var(--sp-xl)) / -2);
  top: 50%; transform: translate(-50%, -50%);
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.gbc-footer__links--primary {
  padding-block: var(--sp-xl);
  font-size: 1.0625rem;
  font-weight: 600;
}
/* LinkedIn icon sitting inline with the footer menu text. */
.gbc-footer__social-item > a {
  display: inline-flex; align-items: center;
  color: rgba(255,255,255,.72);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.gbc-footer__social-item > a:hover { color: var(--gbc-white); transform: translateY(-1px); }
.gbc-footer__links--primary .gbc-footer__social-item::before {
  /* Keep the dot separator before it, but sit the icon a touch lower to align. */
  top: 50%;
}
.gbc-footer__links--secondary {
  padding-block: var(--sp-lg);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.82);
}
.gbc-footer__links--secondary span { color: rgba(255,255,255,.62); }

/* Accreditations band — white, directly above the green footer field. Certification
   marks ship as fixed artwork and often carry an opaque white background, so this
   band stays white: a supplied logo can never punch a white box out of the green.
   Text badges stand in until the official artwork arrives. */
.gbc-footer__certs-band {
  background: var(--gbc-white);
  color: var(--gbc-teal);
  padding-block: var(--sp-xl);
  border-top: 1px solid var(--gbc-line);
}
.gbc-footer__certs {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: var(--sp-md) var(--sp-lg);
}
.gbc-footer__certs li { margin: 0; }
.gbc-footer__cert-badge {
  display: inline-flex; align-items: center;
  padding: .5rem .9rem;
  border: 1px solid var(--gbc-line);
  border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--ls-tight);
  color: var(--gbc-teal);
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}
/* .gbc-footer a is white for the green field — override inside the white band. */
.gbc-footer__certs-band a { color: var(--gbc-teal); text-decoration: none; display: inline-flex; }
.gbc-footer__certs-band a:hover { text-decoration: none; }
.gbc-footer__certs-band a:hover .gbc-footer__cert-badge {
  border-color: var(--gbc-green);
  color: var(--gbc-green);
}
/* Detailed roundels — the ring text ("QUALITY MANAGEMENT", "ACCREDITED
   CONTRACTOR") needs the size to stay legible. Fixed 90px at the client’s ask;
   the strip wraps rather than shrinking on narrow screens. */
.gbc-footer__cert.has-logo img {
  height: 90px; width: auto;
  object-fit: contain;
}
@media (max-width: 400px) {
  .gbc-footer__cert-badge { white-space: normal; text-align: center; }
}

/* Lightened so the current-page marker clears contrast on the green field. */
.gbc-footer .current-menu-item > a,
.gbc-footer .current_page_item > a { color: #ff9b8d; text-decoration: underline; }

.gbc-footer__bottom {
  padding-top: var(--sp-lg);
  margin: 0;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.78);
}
.gbc-footer__credit a { text-decoration: underline; }

@media (max-width: 640px) {
  /* Dots read as clutter once rows wrap to three or four lines. */
  .gbc-footer__links li + li::before { display: none; }
  .gbc-footer__links { gap: var(--sp-sm) var(--sp-md); }
}
@media (prefers-reduced-motion: reduce) {
  .gbc-footer__social a { transition: none; }
  .gbc-footer__social a:hover { transform: none; }
}

/* ==========================================================================
   Motion — scroll reveals
   ========================================================================== */

/*
 * Reveals are written as a *pending* state only — `:not(.is-visible)`. Declaring
 * `transform: none` on the revealed state would sit later in the cascade than the
 * card hover rules at equal specificity and silently cancel every hover lift.
 * With nothing declared once revealed, hover transforms apply normally.
 */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
  [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(22px);
  }

  /* Children stagger in behind their parent. */
  [data-reveal-stagger] > * { transition: opacity .6s var(--ease), transform .6s var(--ease); }
  [data-reveal-stagger]:not(.is-visible) > * {
    opacity: 0;
    transform: translateY(18px);
  }
  [data-reveal-stagger].is-visible > :nth-child(1) { transition-delay: .04s; }
  [data-reveal-stagger].is-visible > :nth-child(2) { transition-delay: .12s; }
  [data-reveal-stagger].is-visible > :nth-child(3) { transition-delay: .20s; }
  [data-reveal-stagger].is-visible > :nth-child(4) { transition-delay: .28s; }
  [data-reveal-stagger].is-visible > :nth-child(5) { transition-delay: .36s; }
  [data-reveal-stagger].is-visible > :nth-child(6) { transition-delay: .44s; }

  /* Once a card has arrived, hovering it should feel immediate — not inherit the
     long reveal easing or its stagger delay. */
  [data-reveal-stagger].is-visible > .gbc-service:hover,
  [data-reveal-stagger].is-visible > .gbc-card:hover { transition-delay: 0s; }
}

/* ==========================================================================
   404
   ========================================================================== */

.gbc-404 { text-align: center; padding-block: var(--sp-3xl); }
.gbc-404 h1 { color: var(--gbc-teal); }
