/* ==========================================================================
   Shenachie — components
   Header, footer, nav, bands, cards, testimonials, contact form.
   ========================================================================== */

/* ==========================================================================
   SITE HEADER
   Fixed overlay. Centred blurred pill holding two dropdown triggers either
   side of the logo, with the CTA anchored right, outside the pill.
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px var(--gutter);
  font-family: var(--f-body);
  pointer-events: none;               /* let the hero breathe; children re-enable */
}
.site-header > * { pointer-events: auto; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(18,16,16,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 11px 26px;
  border-radius: var(--r-pill);
}

/* The logo mark is a two-faced flip card -- see "LOGO" further down. It used
   to be a single <img> with its own hover spin, and that rule survived the
   rewrite: `.nav-pill__logo:hover img` (0,2,0) matched BOTH faces and beat the
   alt face's own `rotateY(180deg)` (0,1,0), forcing the reverse face to point
   forward on hover. Sizing now lives on the faces themselves. */

.nav-dd { position: relative; }

.nav-dd__trigger {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--c-white);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-dd__caret { font-size: 11px; transform: translateY(1px); transition: transform var(--t-fast); }
.nav-dd__trigger[aria-expanded="true"] .nav-dd__caret { transform: translateY(1px) rotate(180deg); }

/* The 16px padding-top is an invisible bridge: it keeps the pointer inside the
   wrapper's hit area while travelling from the trigger down to the panel.
   Use padding, not margin, or the menu closes as the mouse crosses the gap. */
.nav-dd__wrap {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 16px;
  z-index: 30;
}
.nav-dd__trigger[aria-expanded="false"] + .nav-dd__wrap { display: none; }

.nav-dd__panel {
  background: var(--c-ink);
  border-radius: 14px;
  padding: 10px;
  min-width: 220px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dd__panel a {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--c-white);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 9px;
  white-space: nowrap;
}
.nav-dd__panel a:hover,
.nav-dd__panel a:focus-visible { background: var(--c-yellow); color: var(--c-ink); }

.nav-cta {
  position: absolute;
  right: var(--gutter);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  color: var(--c-ink);
  background: var(--c-yellow);
  padding: 12px 24px;
  border-radius: var(--r-pill);
  text-decoration: none;
  /* Slow transition so the adaptive colour flip reads as a fade, not a snap */
  transition: background var(--t-slow), color var(--t-slow);
}
.nav-cta:hover { background: var(--c-white); color: var(--c-ink); }

/* Modes set by nav.js based on what's scrolling behind the button */
.nav-cta[data-cta-mode="onYellow"] { background: var(--c-ink);   color: var(--c-white); }
.nav-cta[data-cta-mode="overCard"] { background: var(--c-white); color: var(--c-ink); }

/* --- Mobile header -------------------------------------------------------
   Not in the design at all. The prototype's dropdowns are hover-only, which
   means they're unreachable on touch, and the absolutely-positioned CTA
   collides with the pill below ~560px. Both fixed here.
   ------------------------------------------------------------------------ */

.nav-burger {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(18,16,16,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-burger__bars { position: relative; width: 20px; height: 2px; background: var(--c-white); display: block; }
.nav-burger__bars::before,
.nav-burger__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--c-white);
  transition: transform var(--t-mid), top var(--t-mid);
}
.nav-burger__bars::before { top: -6px; }
.nav-burger__bars::after  { top: 6px; }

.nav-burger[aria-expanded="true"] .nav-burger__bars { background: transparent; }
.nav-burger[aria-expanded="true"] .nav-burger__bars::before { top: 0; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger__bars::after  { top: 0; transform: rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--c-ink);
  padding: 100px var(--gutter) 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.22,0.61,0.36,1), visibility 0.32s;
}
.nav-drawer[data-open="true"] { transform: translateY(0); visibility: visible; }

.nav-drawer__group { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.nav-drawer__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--c-white);
  background: none;
  border: none;
  padding: 18px 0;
  cursor: pointer;
}
.nav-drawer__toggle[aria-expanded="true"] { color: var(--c-yellow); }
.nav-drawer__panel { display: flex; flex-direction: column; gap: 2px; padding: 0 0 14px; }
.nav-drawer__toggle[aria-expanded="false"] + .nav-drawer__panel { display: none; }
.nav-drawer__panel a {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--t-2);
  padding: 12px 0 12px 16px;
  border-left: 2px solid var(--hairline);
}
.nav-drawer__panel a:hover { color: var(--c-yellow); border-left-color: var(--c-yellow); }
.nav-drawer__cta { margin-top: 24px; align-self: flex-start; }

body[data-nav-open="true"] { overflow: hidden; }

@media (max-width: 767px) {
  .site-header { justify-content: space-between; padding: 16px var(--gutter); }
  .nav-pill { gap: 0; padding: 0; background: none; backdrop-filter: none; }
  .nav-pill .nav-dd { display: none; }        /* moved into the drawer */
  .nav-cta { display: none; }                  /* moved into the drawer */
  .nav-burger { display: grid; }
}

@media (max-width: 520px) {
  .nav-pill { gap: 14px; padding: 10px 16px; }
}

/* ==========================================================================
   MIDNAV — three pills, mid page
   ========================================================================== */

.midnav {
  background: var(--c-black);
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.midnav__group { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   STORYBAND — full-width looping video with a knockout headline
   ========================================================================== */

.storyband {
  position: relative;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #111, #111 16px, #191919 16px, #191919 32px);
}
.storyband__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;                          /* design had this at 2, above the text */
}
/*
  In the prototype the video sat above the headline, so on all seven pages that
  use it the wordmark was invisible. Layering corrected here.
*/
.storyband__title {
  position: relative;
  z-index: 2;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(30px, 6vw, 68px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0 6vw;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.85);
  text-stroke: 1.5px rgba(255,255,255,0.85);
  margin: 0;
}
@supports not ((-webkit-text-stroke: 1px white) or (text-stroke: 1px white)) {
  .storyband__title { color: rgba(255,255,255,0.9); }
}

/* ==========================================================================
   SERVICE TILES
   ========================================================================== */

.tile {
  position: relative;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--c-tile);
  color: var(--c-white);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.tile__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.72) 32%, transparent 78%);
}
.tile__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--c-yellow);
  opacity: var(--veil, 0);
  transition: opacity var(--t-mid);
}
.tile:hover { --veil: 0.5; }
.tile__label {
  position: relative;
  z-index: 3;
  pointer-events: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 21px);
  text-transform: uppercase;
  color: inherit;
  padding: 20px 16px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
/* The whole tile is the link — the design used a 92px hotspot at the bottom
   and left the label outside the anchor, which gave screen readers six
   identical "View service" links with no context. */
.tile__link { position: absolute; inset: 0; z-index: 4; }
.tile__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink);
  background: var(--c-yellow);
  padding: 6px 13px;
  border-radius: var(--r-pill);
}

/* ==========================================================================
   CARDS — blog index, related posts
   ========================================================================== */

.card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.card:hover { background: var(--c-yellow); transform: translateY(-4px); }
.card__media { overflow: hidden; background: var(--c-card); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card--featured .card__media { height: 170px; }
.card--related .card__media { aspect-ratio: 16 / 10; }
.card__body { padding: 22px; }
.card__title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  color: var(--c-ink);
  margin: 0 0 10px;
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__excerpt {
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-body-light);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card--related .card__excerpt { font-size: 15px; }

/* List card — the horizontal rows on the yellow band.
   Hover flips text colour via custom properties cascading to descendants. */
.listcard {
  background: var(--c-white);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: background 0.18s ease;
}
.listcard:hover { background: var(--c-black); --h: var(--c-yellow); --b: var(--c-white); }
.listcard__media { position: relative; min-height: 150px; overflow: hidden; background: var(--c-card); }
.listcard__media img { width: 100%; height: 100%; object-fit: cover; }
.listcard__body { padding: 26px; }
.listcard__title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--h, var(--c-ink));
  margin: 0 0 8px;
  text-transform: none;
}
.listcard__excerpt { font-size: 16px; line-height: 1.55; color: var(--b, var(--c-body-light)); margin: 0; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials { position: relative; background: var(--c-black); padding: 72px var(--gutter) 56px; overflow: hidden; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 44px;
  align-items: center;
  /* Must match .testimonials__bar or the quote card runs wider than the
     slider beneath it. */
  max-width: var(--w-content);
  margin-inline: auto;
}
.testimonials__card {
  background: var(--c-yellow);
  border-radius: var(--r-2xl);
  padding: 44px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.testimonials__mark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 70px;
  line-height: 0.4;
  height: 36px;
  color: var(--c-ink);
}
.testimonials__quote { font-weight: 500; font-size: 17px; line-height: 1.65; color: var(--c-ink); margin: 0; }
.testimonials__bar {
  display: flex;
  align-items: stretch;
  background: var(--c-white);
  border-radius: 14px;
  overflow: hidden;
  margin: 26px auto 0;
  max-width: var(--w-content);
}
.testimonials__arrow {
  background: var(--c-yellow);
  border: none;
  padding: 18px 22px;
  font-size: 20px;
  line-height: 1;
  color: var(--c-ink);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.testimonials__arrow:hover { background: var(--c-ink); color: var(--c-yellow); }
.testimonials__attr {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--c-ink);
  min-height: 3.4em;                   /* stops short/long names shifting height */
}

/* ==========================================================================
   CONTACT FORM — three-step wizard
   ========================================================================== */

.contact { position: relative; background: var(--c-ink); padding: 80px var(--gutter); overflow: hidden; }
.contact__inner { position: relative; z-index: 2; max-width: var(--w-content); margin-inline: auto; }
.contact__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-h2);
  text-transform: uppercase;
  color: var(--c-yellow);
  line-height: 1;
  margin: 0;
}
.contact__sub { font-weight: 500; font-size: 17px; color: var(--t-2); margin: 6px 0 28px; }

.contact__progress { max-width: var(--w-prose); margin: 0 0 30px; }
.contact__pips { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.contact__pip {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  background: transparent;
  color: rgba(255,255,255,0.35);
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.contact__pip[data-state="active"] { color: var(--c-yellow); border-color: var(--c-yellow); }
.contact__pip[data-state="done"]   { background: var(--c-yellow); color: var(--c-ink); border-color: var(--c-yellow); }
.contact__bar { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.18); transition: background 0.25s ease; }
.contact__bar[data-state="done"] { background: var(--c-yellow); }
.contact__steptitle {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--c-white);
}
.contact__stephint { font-weight: 500; font-size: 14px; color: var(--t-3); }

.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: var(--w-prose); }
.contact__step[hidden] { display: none; }

.chip, .opt {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.28);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.opt { padding: 11px 18px; border-radius: var(--r-md); }
.chip[aria-pressed="true"], .opt[aria-pressed="true"] {
  background: var(--c-yellow);
  color: var(--c-ink);
  border-color: var(--c-yellow);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.contact__calltoggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  cursor: pointer;
  margin: 0 0 16px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.28);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.contact__calltoggle[aria-pressed="true"] { background: var(--c-yellow); color: var(--c-ink); border-color: var(--c-yellow); }

.tickbox {
  width: 20px; height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: transparent;
  transition: background 0.14s ease, border-color 0.14s ease;
}
[aria-pressed="true"] > .tickbox { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-ink); }
.contact__calltoggle[aria-pressed="true"] > .tickbox { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-yellow); }
.tickbox--lg { width: 22px; height: 22px; border-radius: 6px; font-size: 14px; }

.contact__story[data-dimmed="true"] { opacity: 0.35; }

.contact__nav { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.contact__done { max-width: 640px; }
.contact__donebadge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-yellow);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.contact__fox {
  position: absolute;
  right: 4vw;
  bottom: 0;
  z-index: 3;
  width: 340px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__grid > * { grid-column: 1 / -1; grid-row: auto; }
}

/* ==========================================================================
   SITE FOOTER — four stacked bands
   ========================================================================== */

.site-footer__pills {
  background: var(--c-yellow);
  padding: 20px var(--gutter);
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.site-footer__brand {
  position: relative;
  background: var(--c-card);
  padding: 52px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  overflow: hidden;
}
.site-footer__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,18,18,0.85), rgba(20,18,18,0.35));
  pointer-events: none;
}
.site-footer__lockup { position: relative; }
.site-footer__name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 52px);
  text-transform: uppercase;
  color: var(--c-yellow);
  line-height: 0.9;
  margin: 0;
}
.site-footer__line1 {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-white);
  border-top: 2px solid var(--c-white);
  padding-top: 7px;
  margin-top: 9px;
}
.site-footer__line2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-yellow);
}
.site-footer__logo { position: relative; width: 150px; height: 150px; object-fit: contain; }

.site-footer__areas { background: var(--c-ink); padding: 26px var(--gutter); text-align: center; }
.site-footer__areas-label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-yellow);
  margin-bottom: 12px;
}
.site-footer__areas ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 2;
}
.site-footer__areas a { color: rgba(255,255,255,0.75); }
.site-footer__areas a:hover { color: var(--c-yellow); }
/* Separators as pseudo-elements rather than literal spans, so the list can be
   driven by a WordPress menu without hard-coded pipes in the markup. */
.site-footer__areas li:not(:last-child)::after {
  content: "|";
  margin-left: 10px;
  color: rgba(255,255,255,0.55);
}

.site-footer__legal {
  background: var(--c-black);
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.site-footer__legal a { color: rgba(255,255,255,0.5); }
.site-footer__legal a:hover { color: var(--c-yellow); }

/* ==========================================================================
   BLOG — grids, badges, post meta, sidebar, pagination
   ========================================================================== */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Square-ish badge, not a pill — the design uses 8px here deliberately */
.badge-featured {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink);
  background: var(--c-yellow);
  padding: 10px 26px;
  border-radius: 8px;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* --- Single post --------------------------------------------------------- */

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.post-meta__pill {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: var(--ls-pill);
  text-transform: uppercase;
  color: var(--c-ink);
  background: var(--c-yellow);
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.post-meta__date { font-weight: 500; font-size: 14px; color: var(--t-3); }

.entry-title { margin: 0; }

/* Fallback when a post has no featured image */
.hero__media--placeholder {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, #2c2621, #2c2621 18px, #342d27 18px, #342d27 36px);
}

.post-cta {
  border-top: 1px solid var(--hairline);
  padding-top: 36px;
  margin-top: 40px;
}
.post-cta h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--c-white);
  margin: 0 0 12px;
}
.post-cta p { color: var(--t-2); margin: 0 0 24px; max-width: 560px; }

/* --- Sidebar ------------------------------------------------------------- */

.post-sidebar {
  position: sticky;
  top: var(--scroll-offset);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}
.post-sidebar__card { background: var(--c-black); border-radius: var(--r-lg); padding: 26px; }
.post-sidebar__card--yellow { background: var(--c-yellow); }
.post-sidebar__label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: var(--ls-pill);
  text-transform: uppercase;
  color: var(--c-yellow);
  margin-bottom: 16px;
}
.post-sidebar__card--yellow .post-sidebar__label { color: var(--c-ink); }
.post-sidebar__avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.post-sidebar__share {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-yellow);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.post-sidebar__share:hover { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-ink); }

/* On mobile the sidebar drops below the article, which would stack two CTAs
   back to back. Reordering puts share first and the yellow card last. */
@media (max-width: 1024px) {
  .post-sidebar { position: static; }
}

/* --- Pagination ---------------------------------------------------------
   Not in the design at all — built from the existing tokens.
   ---------------------------------------------------------------------- */

.wp-block-query-pagination,
.navigation.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.navigation.pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.navigation.pagination .page-numbers {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: var(--ls-button);
  color: var(--c-ink);
  background: transparent;
  border: 1.5px solid rgba(35,31,32,0.25);
  padding: 11px 20px;
  border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast);
}
.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
  background: var(--c-ink);
  color: var(--c-yellow);
  border-color: var(--c-ink);
}

/* --- Search form --------------------------------------------------------- */

.search-form input[type="search"] {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-soft);
  color: var(--c-white);
  border-radius: var(--r-pill);
  padding: 14px 22px;
}
.search-form input[type="search"]::placeholder { color: rgba(255,255,255,0.45); }
.section--yellow .search-form input[type="search"] {
  background: var(--c-white);
  border-color: rgba(35,31,32,0.2);
  color: var(--c-ink);
}

/* ==========================================================================
   HOMEPAGE
   Hero video variant, services strip, intro, why choose us — plus two small
   additions to the testimonials band. Everything above is unchanged.
   ========================================================================== */

/* --- Scroll reveal --------------------------------------------------------
   reveal.js only ever shows or hides; the design carried the initial hidden
   state inline on every element. Gated behind `scripting: enabled` so that
   with JavaScript off — or in a browser that doesn't understand the query —
   the content renders visible rather than sitting at opacity 0 forever.
   ------------------------------------------------------------------------ */

@media (scripting: enabled) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--t-reveal), transform var(--t-reveal);
  }
}

/* --- Hero: full-height and video variants ---------------------------------
   .hero sets an explicit height and is declared after [data-fullheight] in
   layout.css, so it wins on equal specificity. This file loads after
   layout.css, which is what lets .hero--full take it back.
   ------------------------------------------------------------------------ */

.hero--full { height: 100vh; min-height: 560px; }

@media (max-width: 768px) {
  .hero--full { height: 72vh; min-height: 420px; }
}

/* svh, not vh: on mobile, vh includes the browser chrome that disappears on
   scroll, so a 100vh hero is taller than the viewport actually is. */
@supports (height: 100svh) {
  .hero--full { height: 100svh; }
  @media (max-width: 768px) {
    .hero--full { height: 72svh; }
  }
}

.hero__poster     { z-index: 1; }
.hero__videomount { position: absolute; inset: 0; z-index: 2; }
.hero__video      { z-index: 2; }

/*
  The hero video plays at every width. hero.php mounts it from script with
  preload="none" behind a real poster <img>, so the poster is always the LCP
  element and the video streams after paint. It is skipped only for Data
  Saver and 2G connections.
*/

/* --- Services strip -------------------------------------------------------
   Full-bleed grid: the section keeps its top padding but drops the side
   gutter so tiles run edge to edge. The header block re-applies the gutter.
   ------------------------------------------------------------------------ */

.services { padding: 80px 0 0; overflow: hidden; }

.services__head {
  position: relative;
  z-index: 2;
  margin: 0 var(--gutter) 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.services__head h2 {
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--c-white);
  white-space: nowrap;
}
/* Weight and colour both shift mid-heading, as designed. */
.services__head h2 span { font-weight: 800; color: var(--c-yellow); }

/* Paired with the data-nowrap hook in the markup — the heading may only hold
   its line while there's room for it. */
@media (max-width: 1024px) {
  .services__head h2 { white-space: normal; }
}

.services__rule { width: 44px; height: 1px; background: var(--border-ghost); }

.services__grid { position: relative; z-index: 2; }

/* --- Intro ---------------------------------------------------------------- */

.intro {
  padding: 88px var(--gutter) 44px;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  background-color: var(--c-ink);
  background-size: cover;
  /* Approximates the y:6.87 framing offset carried on the design's source. */
  background-position: center 43%;
}

.intro__copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
/* h1 because this is the homepage's page-level heading; h2 kept alongside it
   so the block styles the same either way. These four declarations are exactly
   the ones where the base h1 and h2 differ (weight, size, line-height, margin),
   so the heading renders identically whichever tag is used. */
.intro__copy h1,
.intro__copy h2 {
  font-weight: 800;
  font-size: var(--fs-h2-sm);
  line-height: 1;
  margin: 0 0 22px;
}
.intro__copy p {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--t-1);
  margin: 0;
}

/* `margin: auto 0 0 auto` inside the column flex is what pins the cue to the
   bottom-right corner of the viewport-height section. */
.intro__cue {
  position: relative;
  z-index: 2;
  margin: auto 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 56px;
}
.intro__cue-label {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color var(--t-fast);
}
.intro__cue svg { fill: none; stroke: rgba(255,255,255,0.8); transition: stroke var(--t-fast); }
.intro__cue:hover .intro__cue-label { color: var(--c-yellow); }
.intro__cue:hover svg { stroke: var(--c-yellow); }

/* --- Why choose us -------------------------------------------------------- */

.whyus {
  padding: 64px 4vw;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--c-forest);
  background-size: cover;
  background-position: center;
}
.whyus__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--w-content);
  margin: 0 auto;
}

.whyus__head { text-align: center; margin-bottom: 48px; }
.whyus__head h2 { font-weight: 800; font-size: var(--fs-h2); }
.whyus__head p { font-size: var(--fs-body); color: var(--c-white); margin: 10px 0 0; }

.whyus__col { text-align: center; }
.whyus__icon { margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; }
.whyus__icon svg { fill: none; stroke: var(--c-yellow); }

/* min-height + flex-end baseline-aligns one-line and two-line titles across
   the row, so the three bodies start level. */
.whyus__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 10px;
  min-height: 2.2em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.whyus__body {
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--c-white);
  max-width: 268px;
  margin: 0 auto;
}
.whyus__body strong { color: var(--c-yellow); }

/* --- Testimonials: stacking and headline ----------------------------------
   .testimonials isn't a .section, so it doesn't pick up the
   `.section > .container` rule that lifts content above .scrim.
   ------------------------------------------------------------------------ */

.testimonials__grid,
.testimonials__bar { position: relative; z-index: 2; }

.testimonials__title {
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 0.9;
  color: var(--c-white);
  margin: 0;
}

/* ==========================================================================
   OUR STORY — page-templates/template-our-story.php

   The v2 design tags these bands with data-grid="split", but that hook already
   means something else in layout.css (article + sidebar). Bespoke classes here
   instead, with their own breakpoints, so the two never collide.
   ========================================================================== */

.story__accent { color: var(--c-yellow); }

.story__h2 { margin: 0 0 18px; }
.story__h2--yellow { color: var(--c-yellow); }
.story__h2--ink    { color: var(--c-ink); }

.story__copy { font-size: 16px; line-height: 1.7; margin: 0; }
.story__copy--dark  { color: var(--t-2); }
.story__copy--light { color: var(--c-body-light); max-width: 640px; }
.story__copy--gap   { margin: 0 0 14px; }

/* The hero itself uses template-parts/hero with height="tall" — the design's
   min(64vh,520px) and .hero--tall's min(62vh,520px) are the same box. */

/* --- S2 Our Name ---------------------------------------------------------
   No wrapper max-width and no left gutter: the image bleeds to the viewport
   edge, and only the text column is inset.
   ------------------------------------------------------------------------ */

.story__name {
  background: var(--c-black);
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.story__name-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 40%) 1fr;
  gap: 48px;
  align-items: center;
}
.story__name-figure { position: relative; }
.story__name-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 50vh;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.story__name-text {
  padding: 24px var(--gutter) 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}

/* --- S3 Our Fox, Finlay -------------------------------------------------- */

.story__fox {
  position: relative;
  background: var(--c-mist);
  padding: 0 var(--gutter);
  min-height: 50vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.story__fox-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center bottom;
  background-size: cover;
}
.story__fox-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(238,237,234,0.985) 0%,
    rgba(238,237,234,0.96) 62%,
    rgba(238,237,234,0.78) 100%);
}
.story__fox-grid {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: var(--w-content);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.55fr) minmax(220px, 1fr);
  gap: 56px;
  align-items: end;
}
.story__fox-text {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 0;
}
.story__fox-figure {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: flex-end;
}
/*
  The design carried width:477px, max-width:400px AND height:368px — three
  values that cannot all hold at once, baked in by the visual editor. Fluid
  instead: the image fills its column up to 400px and keeps its own ratio.
*/
.story__fox-img {
  display: block;
  width: 100%;
  max-width: 400px;
  max-height: 42vh;
  height: auto;
  object-fit: contain;
}

/* --- S4 Meet our Founder -------------------------------------------------
   Zero padding on the band: the photo bleeds to the left edge and is blended
   into the background by a fade on its right side.
   ------------------------------------------------------------------------ */

.story__founder {
  background: var(--c-ink);
  min-height: 50vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.story__founder-grid {
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(340px, 1.4fr);
  gap: 0;
  align-items: stretch;
}
.story__founder-photo { position: relative; min-height: 340px; overflow: hidden; }
.story__founder-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 28%;
}
.story__founder-fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 190px;
  pointer-events: none;
  background: linear-gradient(to left,
    var(--c-ink) 0px,
    rgba(35,31,32,0.72) 78px,
    rgba(35,31,32,0) 190px);
}
.story__founder-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px var(--gutter) 64px 56px;
  text-align: right;
}

/* --- S5 Our Values ------------------------------------------------------- */

.story__values {
  position: relative;
  background: #0e2a2e;                 /* one-off band colour, not a token */
  padding: 80px var(--gutter);
  overflow: hidden;
}
.story__values-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
}
.story__values-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(6,20,26,0.82), rgba(6,20,26,0.72));
}
.story__values-inner {
  position: relative;
  z-index: 2;
  max-width: var(--w-list);
  margin-inline: auto;
}
.story__values-head { color: var(--c-white); text-align: center; margin: 0 0 48px; }

.story__values-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }

.story__value { display: flex; gap: 18px; }
.story__value-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1.5px solid var(--c-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-yellow);              /* the SVGs stroke with currentColor */
}
.story__value-icon svg { width: 26px; height: 26px; }
.story__value-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--c-yellow);
  margin-bottom: 8px;
}
.story__value p { font-size: 16px; line-height: 1.6; color: var(--c-white); margin: 0; }

.story__badge { display: flex; justify-content: center; margin-top: 52px; }
.story__badge img { width: 115px; height: 115px; object-fit: contain; }

/* --- Our Story responsive ------------------------------------------------ */

@media (max-width: 1024px) {
  .story__fox-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: stretch;
  }
  .story__fox-text { padding: 48px 0 0; }
  .story__fox-figure { justify-content: center; }
  .story__founder-grid { grid-template-columns: 1fr; }
  .story__founder-fade { display: none; }   /* nothing to fade into once stacked */
}

@media (max-width: 768px) {
  .story__name { min-height: 0; }
  .story__name-grid { grid-template-columns: 1fr; gap: 0; }
  .story__name-text { padding: 32px var(--gutter) 48px; text-align: left; }
  .story__name-img { max-height: 42vh; }

  .story__fox { min-height: 0; }
  .story__fox-img { max-width: 300px; }

  .story__founder { min-height: 0; }
  .story__founder-text { padding: 48px var(--gutter); text-align: left; }

  .story__values { padding: 56px var(--gutter); }
  .story__values-grid { grid-template-columns: 1fr; gap: 32px; }
  .story__values-head { margin-bottom: 36px; }
}

@media (max-width: 520px) {
  .story__value { gap: 14px; }
  .story__badge img { width: 96px; height: 96px; }
}

/* ==========================================================================
   LEGALS — page-templates/template-legals.php
   ========================================================================== */

.legals__accent { color: var(--c-yellow); }

/* --- "Lawyers joke" band -------------------------------------------------
   Zero bottom padding: the wordmark and the fox both hang past the band edge
   via negative margins.
   ------------------------------------------------------------------------ */

.legals__joke {
  position: relative;
  background: var(--c-black);
  padding: 56px var(--gutter) 0;
  overflow: hidden;
}
.legals__joke-inner { max-width: var(--w-content); margin-inline: auto; }
.legals__joke-head { text-align: center; }
.legals__joke-title {
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 54px);
  line-height: 1.02;
  color: var(--c-white);
  margin: 0;
}
.legals__joke-intro {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 14px 0 0;
}
.legals__joke-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: end;
  margin-top: 24px;
}
.legals__joke-left { align-self: end; padding-bottom: 6px; }
.legals__aside {
  font-size: 15px;
  line-height: 1.6;
  color: var(--t-3);
  font-style: italic;
  margin: 0 0 14px;
}
.legals__wordmark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(30px, 5.4vw, 68px);
  line-height: 0.82;
  text-transform: uppercase;
  color: var(--c-yellow);
  white-space: nowrap;
  margin-bottom: -0.18em;
}
.legals__fox {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  align-self: end;
  margin-bottom: -14px;
}
/* Knockout: the artwork has a black background rather than alpha, so it is
   blended out against the near-black band. */
.legals__fox img { display: block; width: min(72%, 250px); height: auto; mix-blend-mode: screen; }

/* --- Policy tabs --------------------------------------------------------- */

.legals__policies { background: var(--c-yellow); padding: 64px var(--gutter) 80px; }
.legals__inner { max-width: var(--w-legals); margin-inline: auto; }
.legals__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-body-light);
  text-align: center;
  margin: 0 0 32px;
}

.legals__tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.legals__tab {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  padding: 15px 26px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  cursor: pointer;
  background: rgba(35,31,32,0.1);
  color: rgba(35,31,32,0.6);
  transition: background var(--t-fast), color var(--t-fast);
  /* Deep links land on the tab, so it needs clearance under the fixed nav. */
  scroll-margin-top: var(--scroll-offset);
}
.legals__tab:hover { color: var(--c-ink); }
.legals__tab[aria-selected="true"] { background: var(--c-white); color: var(--c-ink); }

.legals__panel {
  background: var(--c-white);
  border-radius: 0 0 14px 14px;
  padding: 48px clamp(24px, 5vw, 64px);
  box-shadow: 0 18px 44px rgba(35,31,32,0.12);
}

.legals__doc[hidden] { display: none; }

.legals__updated { font-family: var(--f-body); font-size: 14px; color: var(--c-muted); margin: 0 0 28px; }

.legals__doc h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--c-ink);
  margin: 28px 0 10px;
}
.legals__doc h3:first-of-type { margin-top: 0; }
.legals__doc h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--c-ink);
  margin: 22px 0 10px;
}
.legals__doc p { font-size: 16px; line-height: 1.75; color: var(--c-body-light); margin: 0 0 14px; }
.legals__doc strong, .legals__doc b { color: var(--c-ink); }
.legals__doc a { color: var(--c-ink); text-decoration: underline; }
.legals__doc a:hover { color: var(--c-body-light); }

/* Two-class selectors: .legals__doc p would otherwise out-specify these. */
.legals__doc .legals__leadin {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--c-ink);
  margin: 18px 0 8px;
}
.legals__doc .legals__scots {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-muted);
  font-style: italic;
  margin: 24px 0 0;
}

.legals__list {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-body-light);
  margin: 0 0 18px;
  padding-left: 22px;
}

.legals__table-wrap { overflow-x: auto; margin: 0 0 18px; }
.legals__table { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--c-body-light); }
.legals__table th {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink);
  text-align: left;
  padding: 0 16px 10px 0;
  border-bottom: 2px solid var(--c-ink);
}
.legals__table th:last-child { padding: 0 0 10px; }
.legals__table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--c-mist); line-height: 1.5; }
.legals__table td:last-child { padding: 12px 0; }

.legals__closing {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-body-light);
  text-align: center;
  margin: 28px auto 0;
  max-width: 620px;
}
.legals__closing a { color: var(--c-ink); text-decoration: underline; }

@media (max-width: 768px) {
  .legals__policies { padding: 48px var(--gutter) 64px; }
  .legals__panel { padding: 32px 22px; }
  .legals__tab { padding: 13px 18px; font-size: 13px; }
  .legals__fox { margin-bottom: 0; }
}

/* Printing a policy is a real use case here — show every panel, drop the tabs. */
@media print {
  .legals__tabs { display: none; }
  .legals__doc[hidden] { display: block; }
  .legals__panel { box-shadow: none; padding: 0; }
}

/* ==========================================================================
   SERVICE PAGES
   The five templates in page-templates/. Everything below is additive — the
   pages reuse .section--dark / --yellow, .container and [data-grid] wherever
   those already fit.
   ========================================================================== */

/* --- Shared band rhythm ---------------------------------------------------
   The design's vertical padding on these pages is 64 / 70 / 78px, not the
   80px .section default, and several bands carry a viewport-relative minimum
   height the layout leans on. Without it they read as under-filled.
   ------------------------------------------------------------------------ */

.svc-band        { position: relative; padding: 78px var(--gutter); }
.svc-band--tight { padding: 64px var(--gutter); }
.svc-band--70    { padding: 70px var(--gutter); }

.svc-band--half { min-height: 50vh;  display: flex; align-items: center; }
.svc-band--full { min-height: 100vh; display: flex; align-items: center; }

/* Deliberate zero bottom padding — the adjacent mockup is meant to sit flush
   on the section boundary. Do not tidy these to symmetric padding. */
.svc-band--flush {
  padding-bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* .container centres itself but has no width of its own; inside a flex band
   it would otherwise shrink to its content. */
.svc-band > .container { width: 100%; }

/* --- Shared type ---------------------------------------------------------
   Colour is left to inherit so the same class works on dark and on yellow
   (.section--yellow sets colour on the band).
   ------------------------------------------------------------------------ */

.svc-h2 { font-size: var(--fs-h2-sm); line-height: 0.98; margin: 0 0 18px; }
.svc-h2--sm     { font-size: clamp(24px, 3.2vw, 38px); }   /* care packages */
.svc-h2--tall   { font-size: clamp(24px, 3.6vw, 42px); line-height: 1; }
.svc-h2--center { text-align: center; }
.svc-hi         { color: var(--c-yellow); }

.svc-p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--t-2);
  margin: 0 0 14px;
}
.svc-p:last-child        { margin-bottom: 0; }
.svc-p--faint            { color: var(--t-3); }
.svc-p--bright           { color: var(--t-1); }
.section--yellow .svc-p  { color: var(--c-body-light); }
/* The closing line of several bands: same size, heavier, full contrast. */
.svc-p--strong                   { font-weight: 600; }
.section--yellow .svc-p--strong  { color: var(--c-ink); }

.svc-right     { text-align: right; }
.svc-col--pad  { align-self: center; padding-bottom: 78px; }

/* Yellow-ringed icon disc, used by the Websites & Hosting feature grid. */
.svc-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1.5px solid var(--c-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-yellow);
}

@media (max-width: 768px) {
  /* Right-aligned copy columns only read as "right" beside their image. Once
     the grid is one column there is nothing to align against. */
  .svc-right    { text-align: left; }
  .svc-col--pad { padding-bottom: 40px; }
  .svc-band, .svc-band--tight, .svc-band--70 { padding: 56px var(--gutter); }
  .svc-band--flush { padding-bottom: 0; }
  .svc-band--half  { min-height: 0; }
}

/* ==========================================================================
   SERVICE — WEBSITES & HOSTING
   ========================================================================== */

.svc-hosting__hero { background: #26292c; }

.svc-hosting__device { margin: 0; align-self: end; }
.svc-hosting__device img { width: 100%; height: auto; display: block; }

/* "Be found faster": copy on the left, the phone/tablet mockup on the right.
   This previously pulled itself up 200px so it overlapped the desktop mockup
   in the band above. That overlap is not wanted at any width. */
.svc-hosting__mobile {
  margin: 0;
  order: 2;
}
.svc-hosting__mobile ~ * { order: 1; }
.svc-hosting__mobile img { width: 100%; height: auto; display: block; }

/* --- "Our websites" ------------------------------------------------------- */

.svc-hosting__websites {
  background-color: var(--c-slate-blue);
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.svc-hosting__websites-scrim {
  background: linear-gradient(to bottom, rgba(12,16,24,0.84), rgba(12,16,24,0.76));
}
.svc-hosting__websites > .container { position: relative; z-index: 2; width: 100%; }

/* Fixed two columns, not auto-fit — the design pairs the items deliberately. */
.svc-hosting__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px 72px;
}
.svc-hosting__feature { display: flex; gap: 20px; }
.svc-hosting__feature-title {
  font-weight: 700;
  font-size: 17px;
  color: var(--c-yellow);
  margin: 0 0 10px;
}

/* --- "Land more..." ------------------------------------------------------- */

.svc-hosting__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(64px, 10vw, 140px);
  text-align: center;
  max-width: 1000px;              /* narrower than the 1120px wrapper */
  margin-inline: auto;
}
.svc-hosting__plate {
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
  background: var(--c-yellow);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
}
.svc-hosting__tile-title { font-weight: 800; font-size: 20px; margin: 0 0 10px; }

/* --- "Discovery to creation" (v2 addition) --------------------------------
   Horizontal padding is 0 on the band: the tab bars bleed to the viewport
   edge and self-pad at the gutter.
   ------------------------------------------------------------------------ */

.svc-hosting__discovery {
  position: relative;
  background: var(--c-yellow);
  padding: 80px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.svc-hosting__discovery-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.svc-hosting__discovery-title {
  font-weight: 900;
  font-size: clamp(28px, 4.4vw, 48px);
  color: var(--c-ink);
  margin: 0 var(--gutter) 4px;
}
.svc-hosting__discovery-sub {
  font-size: 16px;
  color: var(--c-body-light);
  margin: 0 var(--gutter) 36px;
}
.svc-hosting__discovery-body {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.svc-hosting__tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 520px;
}
.svc-hosting__tab {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 22px var(--gutter);
  border: none;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  background: var(--c-white);
  color: var(--c-ink);
  transition: background 0.18s ease, color 0.18s ease;
}
.svc-hosting__tab:hover,
.svc-hosting__tab[aria-selected="true"] { background: var(--c-ink); color: var(--c-yellow); }

.svc-hosting__panels { display: flex; flex-direction: column; background: var(--c-black); }
.svc-hosting__panel  { display: flex; flex-direction: column; flex: 1; }
.svc-hosting__panel[hidden] { display: none; }

.svc-hosting__shot {
  position: relative;
  flex: 1;
  min-height: 320px;
  overflow: hidden;
  background: var(--c-card);
}
.svc-hosting__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-hosting__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 230px;
  pointer-events: none;
  background: linear-gradient(to top,
    #0A0A0A 0px, #0A0A0A 92px,
    rgba(10,10,10,0.55) 150px,
    rgba(10,10,10,0) 230px);
}
/* Pulled up by exactly the fade's solid run, so the copy starts on black. */
.svc-hosting__paneltext {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-top: -92px;
  padding: 10px 36px 36px;
  background: linear-gradient(to bottom, rgba(10,10,10,0) 0%, #0A0A0A 1px);
}
.svc-hosting__paneltext h3 {
  font-weight: 800;
  font-size: 20px;
  color: var(--c-yellow);
  margin: 0 0 10px;
}
.svc-hosting__paneltext p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin: 0 0 12px;
}
.svc-hosting__paneltext p:last-child { margin-bottom: 0; }

/* --- Care packages -------------------------------------------------------- */

.svc-hosting__care {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.svc-hosting__care-left  { background: var(--c-ink); padding: 64px var(--gutter); }
.svc-hosting__care-right {
  position: relative;
  background-color: var(--c-black);
  background-position: center;
  background-size: cover;
  padding: 64px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.svc-hosting__care-scrim {
  background: linear-gradient(to bottom, rgba(6,6,8,0.88), rgba(6,6,8,0.8));
}

.svc-hosting__crosssell {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.svc-hosting__crosssell-label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--c-yellow);
  margin: 0 0 12px;
}
.svc-hosting__crosssell-links { display: flex; gap: 20px; flex-wrap: wrap; }
.svc-hosting__crosssell-links a { font-weight: 600; font-size: 14px; color: var(--c-white); }
.svc-hosting__crosssell-links a:hover { color: var(--c-yellow); }

.svc-hosting__carelist {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.svc-hosting__carelist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--t-1);
}
.svc-hosting__carelist svg { color: var(--c-yellow); flex-shrink: 0; }

.svc-hosting__price {
  position: relative;
  z-index: 2;
  margin: 28px 0 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 48px);
  text-transform: uppercase;
  color: var(--c-yellow);
  line-height: 0.9;
}
.svc-hosting__price span { display: block; font-size: 0.4em; color: var(--t-3); }

@media (max-width: 768px) {
  .svc-hosting__features { grid-template-columns: 1fr; gap: 36px; }
  .svc-hosting__tiles    { grid-template-columns: 1fr; gap: 56px; }
  .svc-hosting__tabs     { min-height: 0; }
  .svc-hosting__tab      { padding: 18px var(--gutter); }
  .svc-hosting__paneltext { padding: 10px 24px 28px; }
}

/* ==========================================================================
   SERVICE — SEARCH OPTIMISATION
   ========================================================================== */

.svc-seo__hero { background: #2b2926; }

.svc-seo__intro { max-width: 840px; text-align: center; }   /* narrower than 1120 */
.svc-seo__cite {
  font-size: 16px;
  line-height: 1.6;
  color: var(--t-3);
  margin: 0 0 14px;
}
.svc-seo__lead { line-height: 1.7; margin-bottom: 16px; }

/* Three lines, three weights — the size jump is the point. */
.svc-seo__lockup {
  text-align: right;
  font-family: var(--f-display);
  text-transform: uppercase;
  line-height: 0.82;
  color: var(--c-ink);
}
.svc-seo__lockup-lg { display: block; font-weight: 900; font-size: clamp(34px, 6vw, 68px); }
.svc-seo__lockup-sm { display: block; font-weight: 600; font-size: clamp(22px, 4vw, 44px); }

/* Decorative: an empty search field, no text and no behaviour. */
.svc-seo__searchbar {
  margin: 24px 0 0 auto;
  display: flex;
  align-items: center;
  background: var(--c-white);
  border-radius: var(--r-pill);
  padding: 16px 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  width: 82%;
}

/* Sections 4 and 5 share one viewport in the design. */
.svc-seo__stack { display: flex; flex-direction: column; }
.svc-seo__how   { flex: 1; min-height: 0; display: flex; align-items: center; }

.svc-seo__steps { display: flex; flex-direction: column; gap: 22px; }
.svc-seo__step-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--c-yellow);
  margin: 0 0 6px;
}
.svc-seo__glyph { display: flex; align-items: center; justify-content: center; color: var(--c-yellow); }
.svc-seo__glyph svg { width: min(70%, 240px); height: auto; }

/* Asymmetric 40% / rest, not auto-fit. */
.svc-seo__add {
  display: grid;
  grid-template-columns: minmax(260px, 40%) 1fr;
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}
.svc-seo__badge {
  display: inline-block;
  background: var(--c-ink);
  border-radius: var(--r-lg);
  padding: 22px 28px;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 34px);
  text-transform: uppercase;
  color: var(--c-white);
  line-height: 0.95;
}

/* The design flips the visual order with CSS `order` so the icon lands on the
   far right, outside the right-aligned copy. Kept, because reversing the
   markup instead would put the icon before the link in the reading order. */
.svc-seo__cross { display: flex; gap: 20px; align-items: center; }
.svc-seo__cross-icon {
  order: 2;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--c-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-seo__cross-text { order: 1; text-align: right; }
.svc-seo__cross-text a {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.svc-seo__cross-text .svc-p { line-height: 1.55; }

@media (max-width: 768px) {
  .svc-seo__lockup     { text-align: left; }
  .svc-seo__searchbar  { width: 100%; margin-left: 0; }
  .svc-seo__add        { grid-template-columns: 1fr; }
  .svc-seo__cross-icon { order: 1; }
  .svc-seo__cross-text { order: 2; text-align: left; }
}

/* ==========================================================================
   SERVICE — BLOG & SOCIAL CONTENT
   ========================================================================== */

.svc-blog__hero { background: #2a2724; }
/* The only hero in the set that is not centred on its image. */
.svc-blog__hero .hero__media { object-position: center 30%; }

/* Sections 2 and 3 share this wrapper so the mockup can hang between them. */
.svc-blog__overlap { position: relative; }
.svc-blog__band    { position: relative; z-index: 2; }

/* Anchored to the bottom edge of the dark band and pushed down by half its
   own height, so half of it sits on the yellow band below. This overlap is
   the signature visual of the page. */
.svc-blog__post {
  position: absolute;
  left: var(--gutter);
  bottom: 0;
  transform: translateY(50%);
  z-index: 3;
  width: min(52%, 630px);
  height: auto;
  border-radius: 14px;
}

@media (max-width: 768px) {
  /* At one column there is no left half to hang in, and a half-height
     overhang would cover the heading below. Drop it back into flow. */
  .svc-blog__post {
    position: static;
    transform: none;
    width: 100%;
    margin: 32px 0 0;
  }
  .svc-blog__spacer { display: none; }
}

.svc-blog__figure { display: flex; align-items: center; justify-content: center; margin: 0; }
.svc-blog__rank   { width: min(95%, 360px); height: auto; }

/* ==========================================================================
   SERVICE — PAY PER CLICK ADS
   ========================================================================== */

.svc-ppc__hero { background: #292522; }

/* Asymmetric: image column capped at 35%. */
.svc-ppc__split {
  display: grid;
  grid-template-columns: minmax(240px, 35%) 1fr;
  gap: 48px;
  align-items: end;
}
.svc-ppc__monitor { position: relative; align-self: end; margin: 0; }
.svc-ppc__monitor img { display: block; width: 100%; height: auto; }

.svc-ppc__process {
  position: relative;
  background: #1e1c1d;              /* page-specific warm dark, not a token */
  padding: 78px var(--gutter);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.svc-ppc__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Still fallback while the MP4 is not yet in the media library. */
.svc-ppc__still { background-position: center; background-size: cover; }
.svc-ppc__overlay {
  z-index: 1;
  background: linear-gradient(to bottom, rgba(16,15,16,0.72), rgba(16,15,16,0.66));
}
.svc-ppc__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;                /* narrower than the 1120px standard */
  margin-inline: auto;
}

.svc-ppc__steps { display: flex; flex-direction: column; gap: 64px; }
.svc-ppc__step  { display: flex; gap: 22px; align-items: flex-start; }
.svc-ppc__step-icon {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-ppc__step-icon img { width: 104px; height: 104px; object-fit: contain; }
.svc-ppc__step-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--c-white);
  margin: 0 0 7px;
}
.svc-ppc__step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--t-2);
  margin: 0;
  max-width: 640px;
}

@media (max-width: 768px) {
  .svc-ppc__split { grid-template-columns: 1fr; }
  .svc-ppc__steps { gap: 40px; }
  .svc-ppc__step  { gap: 16px; }
  .svc-ppc__step-icon img { width: 72px; height: 72px; }
}

/* ==========================================================================
   SERVICE — GRAPHIC DESIGN
   ========================================================================== */

.svc-design__hero { background: #2c2723; }

/* Asymmetric: image column capped at 32%. */
.svc-design__split {
  display: grid;
  grid-template-columns: minmax(220px, 32%) 1fr;
  gap: 48px;
  align-items: end;
}
.svc-design__easel { position: relative; align-self: end; margin: 0; }
.svc-design__easel img { display: block; width: 100%; height: auto; }

/* Measure control — the band is 1120px but the copy is capped well inside it. */
.svc-design__measure { max-width: 720px; }

.svc-design__cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px 48px;
}
.svc-design__cat { display: flex; gap: 16px; align-items: center; color: var(--c-yellow); }
.svc-design__cat svg { flex-shrink: 0; }
.svc-design__cat-label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--c-white);
  line-height: 1.05;
}

/* --- "The 30 second rule" ------------------------------------------------- */

.svc-design__rule { position: relative; }
.svc-design__rule-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: end;
}
.svc-design__rule-text  { align-self: center; padding-bottom: 78px; }
.svc-design__rule-media { position: relative; align-self: end; }

/* Backdrop behind the banner, rising 78px above the band's top padding.
   v2 replaced v1's #efe089 45deg hatch with a left-to-right gradient wash and
   widened the bleed from -7vw to -100vw, so the darkening now runs off the
   right of the page. The band is overflow:hidden, so the overshoot cannot
   create a horizontal scrollbar. */
.svc-design__wash {
  position: absolute;
  left: 0;
  right: -100vw;
  bottom: 0;
  top: -78px;
  pointer-events: none;
  background: linear-gradient(to right,
    rgba(35,31,32,0) 0%,
    rgba(35,31,32,0.14) 14%,
    rgba(35,31,32,0.30) 48%,
    rgba(35,31,32,0.40) 100%);
}
.svc-design__banner { position: relative; display: block; width: 100%; height: auto; }

/* Bold inside the yellow band is ink, not the default inherit. */
.svc-design__emph { color: var(--c-ink); font-weight: 700; }

@media (max-width: 768px) {
  .svc-design__split     { grid-template-columns: 1fr; }
  .svc-design__rule-text { padding-bottom: 40px; }
  .svc-design__wash      { top: -56px; }
}

/* ==========================================================================
   LOCATION PAGES — .loc__*
   One template drives all 13 towns (page-templates/template-location.php).
   Values come from build-spec/03-location-pages.md §1-§5, expressed through
   the existing tokens rather than the design's hard-coded hex and px.
   ========================================================================== */

/* --- Hero ----------------------------------------------------------------
   Taller than the standard .hero and centred rather than bottom-aligned,
   with a left-to-right scrim so the headline stays legible over any photo.
   ------------------------------------------------------------------------ */

.loc__hero { height: min(66vh, 560px); min-height: 440px; }

.loc__hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10,10,10,0.85), rgba(10,10,10,0.35));
}
/* v2 changed the hero overlay padding to 110px 7vw 40px — the extra top
   padding clears the fixed nav so the eyebrow is not tucked beneath it. */
.loc__hero-inner { align-items: center; padding: 110px var(--gutter) 40px; }

.loc__eyebrow { letter-spacing: 0.24em; margin-bottom: 16px; }

.loc__h1 { max-width: 16ch; line-height: 0.84; }
.loc__accent { color: var(--c-yellow); }

.loc__hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 22px 0 26px;
}

/* --- Shared section furniture -------------------------------------------- */

.loc__h2 { color: var(--c-white); margin: 0 0 20px; }

/* Lead paragraph under an H2 — dimmer than body copy, and measure-limited */
.loc__lead {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--t-3);
  max-width: 720px;
  margin: 0 0 36px;
}

.loc__prose p {
  font-size: var(--fs-small);
  line-height: 1.7;
  margin: 0 0 14px;
}
.loc__prose p:last-child { margin-bottom: 0; }
.section--yellow .loc__prose p { color: var(--c-body-light); }

/* --- Live and breathe ---------------------------------------------------- */

.loc__split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}
.loc__figure {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-card);
  margin: 0;
}
.loc__figure img { width: 100%; height: 100%; object-fit: cover; }

/* --- Positioning statement ----------------------------------------------- */

.loc__statement { max-width: 840px; margin-inline: auto; text-align: center; }
.loc__statement h2 { margin: 0 0 20px; }

/* --- Feature block: hairline rows ---------------------------------------- */

.loc__rows { margin-top: 8px; }
.loc__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}
.loc__row:last-child { border-bottom: 1px solid var(--hairline); }
.loc__row-label {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--c-yellow);
}
.loc__row-num { display: block; font-size: 34px; line-height: 1; margin-bottom: 8px; }
.loc__row-body {
  grid-column: span 2;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--t-2);
  margin: 0;
}

/* --- Feature block: label-only chips -------------------------------------
   The design supplied labels but no body copy for these blocks, so rather
   than render six empty rows we show the labels as a chip row. Adding a body
   in inc/locations.php switches that item to .loc__row instead.
   ------------------------------------------------------------------------ */

.loc__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.loc__chip {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--c-yellow);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 13px 24px;
}
.loc__chip-num { font-size: 13px; color: rgba(253,243,145,0.5); }

/* --- Feature block: tick checklist --------------------------------------- */

.loc__ticks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.loc__tick {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--t-2);
}
.loc__tick-mark { flex-shrink: 0; margin-top: 3px; color: var(--c-yellow); }
.section--yellow .loc__tick { color: var(--c-body-light); }
.section--yellow .loc__tick-mark { color: var(--c-ink); }

/* --- Three promises ------------------------------------------------------ */

.loc__promises-head { max-width: 720px; margin-bottom: 40px; }
.loc__promises-head .loc__lead { margin-bottom: 0; }

.loc__promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.loc__promise {
  background: var(--c-black);
  border-radius: 18px;
  padding: 32px;
}
.loc__promise-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--c-yellow);
  margin: 0 0 8px;
}
.loc__promise p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* --- Developer / care ---------------------------------------------------- */

.loc__care {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}
.loc__care-panel {
  background: var(--c-ink);
  border-radius: var(--r-2xl);
  padding: 36px;
}
.loc__care-label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: var(--ls-pill);
  text-transform: uppercase;
  color: var(--c-yellow);
  margin: 0 0 18px;
}
.loc__care-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.loc__care-item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  color: var(--t-1);
}
.loc__care-item svg { flex-shrink: 0; color: var(--c-yellow); }
.loc__care-price {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--c-yellow);
  border-top: 1px solid var(--hairline);
  margin: 26px 0 0;
  padding-top: 22px;
}
.loc__care-from {
  display: block;
  font-size: 0.38em;
  color: var(--t-3);
  margin-bottom: 4px;
}
.loc__care-note { font-size: 13px; line-height: 1.6; color: var(--t-4); margin: 14px 0 0; }

/* --- FAQ accordion -------------------------------------------------------
   <details>/<summary> rather than the design's JS state, so the answers are
   readable and searchable without JavaScript. Item 0 ships open, as before.
   Cards alternate dark / yellow; the design's #FFF391 typo on the first East
   Lothian card disappears here because everything reads --c-yellow.
   ------------------------------------------------------------------------ */

.loc__faq { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }

.loc__faq-item {
  background: var(--c-black);
  border-radius: 14px;
  padding: 26px 30px;
  --faq-fg: var(--c-yellow);
  --faq-body: var(--t-2);
}
/*
  Items alternate, as designed. The alternate colour just has to differ from
  the band behind it: on a yellow section the yellow card would vanish, so it
  becomes white there instead. Same rhythm, contrast preserved.
*/
.loc__faq-item:nth-child(even) {
  background: var(--c-yellow);
  --faq-fg: var(--c-ink);
  --faq-body: rgba(0, 0, 0, 0.72);
}
.section--yellow .loc__faq-item:nth-child(even) {
  background: var(--c-white);
  --faq-fg: var(--c-ink);
  --faq-body: var(--c-body-light);
}

.loc__faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--faq-fg);
}
.loc__faq-q::-webkit-details-marker { display: none; }

/* The +/- is generated, so the glyph can never drift out of sync with state */
.loc__faq-sign {
  flex-shrink: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  opacity: 0.7;
  color: var(--faq-fg);
}
.loc__faq-sign::before { content: "+"; }
.loc__faq-item[open] .loc__faq-sign::before { content: "\2013"; }   /* en dash */

.loc__faq-a { padding-top: 14px; }
.loc__faq-a p,
.loc__faq-a li { font-size: var(--fs-small); line-height: 1.65; color: var(--faq-body); margin: 0; }
.loc__faq-a ul { margin: 12px 0 0; padding-left: 20px; line-height: 1.7; }

.loc__coverage {
  font-size: var(--fs-caption);
  line-height: 1.7;
  color: var(--c-body-light);
  margin: 32px 0 0;
}

/* --- Final CTA -----------------------------------------------------------
   One treatment for all 13. Edinburgh was inverted in the design; normalised
   here (build-spec §9.6).
   ------------------------------------------------------------------------ */

.loc__cta { text-align: center; }
.loc__cta-inner { max-width: 780px; margin-inline: auto; }
.loc__cta-inner h2 { margin: 0 0 18px; }
.loc__cta-btn { margin-top: 26px; white-space: normal; }

@media (max-width: 768px) {
  .loc__hero { height: 72svh; min-height: 420px; }
  .loc__row-body { grid-column: auto; }
  .loc__care-panel { padding: 28px; }
  .loc__faq-item { padding: 22px 24px; }
}

/* ==========================================================================
   LOCATION PAGES — additional block types
   Stat band, two-card compare, closing statement, cross-sell cards.
   All optional: a town renders each only when the matching key exists in
   inc/locations.php.
   ========================================================================== */

/* --- Stat band -----------------------------------------------------------
   Four stats. v2 alternates this between the yellow and dark bands per town;
   normalised here to the yellow treatment, which three of the five use.
   ------------------------------------------------------------------------ */

.loc__stats-head {
  color: var(--c-ink);
  text-align: center;
  margin: 0 0 32px;
}
.loc__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 32px;
  text-align: center;
}
.loc__stat-value {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.9;
  color: var(--c-ink);
  margin: 0;
}
.loc__stat-caption {
  font-weight: 600;
  font-size: 15px;
  color: var(--c-body-light);
  margin: 8px 0 0;
}

/* --- Two-card compare ----------------------------------------------------
   A muted "what usually happens" card beside a yellow "what we do" card.
   Always on dark: v2 runs it on yellow for three of the five towns, but a
   single treatment keeps the band rhythm predictable across all 13 pages.
   ------------------------------------------------------------------------ */

.loc__compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.loc__compare-card {
  border-radius: 18px;
  padding: 32px;
}
.loc__compare-card p {
  font-size: 15px;
  line-height: 1.65;
  margin: 12px 0 0;
}
.loc__compare-label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.loc__compare-card--muted {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--hairline);
}
.loc__compare-card--muted .loc__compare-label { color: var(--t-3); }
.loc__compare-card--muted p { color: rgba(255,255,255,0.5); }

.loc__compare-card--accent { background: var(--c-yellow); }
.loc__compare-card--accent .loc__compare-label { color: var(--c-ink); }
.loc__compare-card--accent p { color: var(--c-body-light); }

/* --- Closing statement ---------------------------------------------------
   Rule-accent block. The heading is a <p> rather than a heading element
   because it is a closing remark, not a section title — it sits below the
   page's real headings in the outline and should not appear in it.
   ------------------------------------------------------------------------ */

.loc__closing { max-width: var(--w-narrow); margin-inline: auto; }
.loc__closing-head {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--c-ink);
  margin: 0 0 18px;
}
.loc__rule {
  width: 56px;
  height: 2px;
  background: var(--c-ink);
  margin: 0 0 28px;
}
.loc__closing .loc__prose p { max-width: 760px; }

/* --- Cross-sell service cards -------------------------------------------
   East Lothian only. Text cards: v2 backs each one with a base64 blob held
   in the design's image-slot state file rather than a real asset, so there
   is no artwork to reference yet.
   ------------------------------------------------------------------------ */

.loc__services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.loc__service {
  display: block;
  background: var(--c-black);
  border-radius: 18px;
  padding: 30px;
  text-decoration: none;
  outline: 1.5px solid transparent;
  transition: outline-color var(--t-fast), background var(--t-fast);
}
.loc__service:hover,
.loc__service:focus-visible { outline-color: var(--c-yellow); }
.loc__service-title {
  font-weight: 700;
  font-size: 17px;
  color: var(--c-yellow);
  margin: 0 0 8px;
}
.loc__service p {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: rgba(255,255,255,0.68);
  margin: 0;
}

@media (max-width: 768px) {
  .loc__compare-card { padding: 26px; }
  .loc__service { padding: 24px; }
  .loc__stats { gap: 26px; }
}

/* --- Cross-sell card thumbnail ------------------------------------------
   Optional: the template omits .loc__service-media entirely when the media
   library has no matching attachment, so the text-only card below is the
   fallback rather than an empty box.

   16:10 matches .card--related elsewhere in the theme and the registered
   shenachie-card size (800x500, hard-cropped), so WordPress does the cropping
   and object-fit is only a guard against an unexpected source ratio.
   ------------------------------------------------------------------------ */

.loc__service-media {
  display: block;
  aspect-ratio: 16 / 10;
  margin: 0 0 18px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-card);
}
.loc__service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================================================================
   FIXES — first full render on staging
   ========================================================================== */

/* --- WordPress admin bar -------------------------------------------------
   The header is position:fixed at top:0, so when the admin bar is present it
   sits underneath it. This is why the site looks broken while logged in and
   fine in a private window. WP inserts .admin-bar on <body>; the bar is 32px
   on desktop and 46px at 782px and below.
   ------------------------------------------------------------------------ */

.admin-bar .site-header { top: 32px; }
.admin-bar .nav-drawer  { top: 32px; }

@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .nav-drawer  { top: 46px; }
}

/* --- Contact fox ---------------------------------------------------------
   Was z-index 3, i.e. above the content, so it covered the email address and
   the Made in Scotland badge. Drop it behind the content and reserve space
   for it on narrow screens rather than letting it overlap.
   ------------------------------------------------------------------------ */

.contact__fox { z-index: 1; }

@media (max-width: 900px) {
  /* Clear the fox's column so the action row never runs under it. */
  .contact__inner { padding-bottom: 210px; }
  .contact__fox   { right: 50%; transform: translateX(50%); width: 190px; }
}

@media (max-width: 520px) {
  .contact__inner { padding-bottom: 170px; }
  .contact__fox   { width: 150px; }
}

/* --- Footer --------------------------------------------------------------
   space-between put the copyright and the legal links on opposite edges; at
   narrow widths that reads as a broken row. Stack and centre instead.
   ------------------------------------------------------------------------ */

@media (max-width: 700px) {
  .site-footer__legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    line-height: 1.8;
  }
  .site-footer__brand { justify-content: center; text-align: center; }
  .site-footer__logo  { width: 110px; height: 110px; }
}

/* --- MidNav --------------------------------------------------------------
   space-between strands the third pill on its own line at narrow widths.
   ------------------------------------------------------------------------ */

@media (max-width: 700px) {
  .midnav { justify-content: center; gap: 12px; }
  .midnav__group { justify-content: center; }
}


/* --- Location page: uncapped blocks --------------------------------------
   These spanned the full padded width (1636px at 1905px viewport) while
   everything around them capped at 1120, so they read as misaligned.
   ------------------------------------------------------------------------ */

.loc__statement,
.loc__cta-inner { max-width: var(--w-content); margin-inline: auto; }

/* --- Location page: service cards ----------------------------------------
   Rebuilt to the brief: image full-bleed behind the card with a black
   gradient rising from the bottom, text sitting over it. Same gradient as the
   homepage service tiles, so the two read as one family.

   With no image the card falls back to flat --c-black and still works, which
   matters while only some of the three have artwork uploaded.
   ------------------------------------------------------------------------ */

.loc__service {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.loc__service-media {
  position: absolute;
  left: 0;
  right: 0;
  /*
    Adjustable so a card can pull its subject up out from behind the text.
    A landscape image in a near-square card has no vertical slack under
    `cover` -- it renders exactly card-height -- so object-position does
    nothing. Enlarging the media box and offsetting it is the only way to
    move a focal point vertically. Defaults are a plain full-bleed fill.
  */
  top: var(--media-top, 0);
  height: var(--media-h, 100%);
  z-index: 0;
  display: block;
  margin: 0;
  aspect-ratio: auto;
  border-radius: 0;
  background: none;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.loc__service-media img { width: 100%; height: 100%; object-fit: cover; }
.loc__service:hover .loc__service-media { transform: scale(1.04); }

/* Gradient sits between image and text. Only drawn when there's an image to
   darken -- on a flat card it would just muddy the black. */
.loc__service:has(.loc__service-media)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.94) 0%,
    rgba(10,10,10,0.78) 34%,
    rgba(10,10,10,0.10) 100%
  );
}

.loc__service > :not(.loc__service-media) { position: relative; z-index: 2; }
.loc__service-title { margin-top: 0; }

@media (max-width: 520px) {
  .loc__service { min-height: 260px; }
}

/* --- Card text inside coloured sections ----------------------------------
   `.section--yellow p` is a descendant selector (0,1,1) and so outranks the
   card's own `.listcard__excerpt` (0,1,0), reaching inside components that
   happen to sit in a yellow band. On hover that left near-black body text on
   a black card.

   Doubling the class lifts these to (0,2,0) so a card always owns its own
   text colour regardless of the band it sits in. Self-contained, rather than
   coupling each card to every section variant it might appear in.
   ------------------------------------------------------------------------ */

.listcard__excerpt.listcard__excerpt { color: var(--b, var(--c-body-light)); }
.listcard__title.listcard__title     { color: var(--h, var(--c-ink)); }
.card__excerpt.card__excerpt         { color: var(--c-body-light); }
.card__title.card__title             { color: var(--c-ink); }

/* The featured card flips to yellow on hover, so its text must stay dark. */
.card:hover .card__title.card__title   { color: var(--c-ink); }
.card:hover .card__excerpt.card__excerpt { color: var(--c-body-light); }


/* Stat figures are display type, not body copy -- full ink weight. */
.loc__stat-value.loc__stat-value { color: var(--c-ink); }
.loc__stat-caption.loc__stat-caption { color: var(--c-body-light); }

/* --- Adjacent same-colour bands ------------------------------------------
   MidNav and Testimonials are both #0A0A0A, so on every page they merge into
   one undifferentiated black slab. The design intended a photograph behind
   the testimonials, which was never supplied. Until it is, a hairline gives
   the join definition without inventing a colour that isn't in the palette.
   ------------------------------------------------------------------------ */

.midnav + .testimonials,
.testimonials + .midnav {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Same treatment for any two stacked sections that resolve to one colour. */
.section--dark   + .section--dark,
.section--black  + .section--black,
.section--yellow + .section--yellow {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.section--yellow + .section--yellow { border-top-color: rgba(35, 31, 32, 0.12); }

/* Article column on a single post: the body plus its closing CTA, so the CTA
   stays in the same grid cell as the article rather than becoming a third
   item in the two-column split. */
.post-main { min-width: 0; }
.post-cta  { max-width: var(--w-measure); }

/* ==========================================================================
   BAND TOKENS
   ==========================================================================
   Section background colours are now chosen at render time by
   shenachie_band(), so a component can no longer assume which band it sits
   on. Anything with a hard-coded colour breaks the moment a section rotates
   -- black FAQ cards on a black band, a black CTA button on a black band,
   yellow accent text on a yellow band.

   So each band publishes a small palette, and components consume it. Add a
   new band colour here and every component adapts on its own.
   ========================================================================== */

.section--dark {
  --band-fg:            var(--t-2);
  --band-fg-strong:     var(--c-white);
  --band-fg-muted:      var(--t-3);
  --band-accent:        var(--c-yellow);
  --band-rule:          rgba(255, 255, 255, 0.14);
  --band-card:          var(--c-black);
  --band-card-fg:       var(--c-yellow);
  --band-card-body:     var(--t-2);
  --band-card-alt:      var(--c-yellow);
  --band-card-alt-fg:   var(--c-ink);
  --band-card-alt-body: rgba(0, 0, 0, 0.72);
  --band-btn-bg:        var(--c-yellow);
  --band-btn-fg:        var(--c-ink);
  --band-btn-bg-hover:  var(--c-white);
}

.section--black {
  --band-fg:            var(--t-2);
  --band-fg-strong:     var(--c-white);
  --band-fg-muted:      var(--t-3);
  --band-accent:        var(--c-yellow);
  --band-rule:          rgba(255, 255, 255, 0.14);
  /* On black, a black card disappears -- go white. */
  --band-card:          var(--c-white);
  --band-card-fg:       var(--c-ink);
  --band-card-body:     var(--c-body-light);
  --band-card-alt:      var(--c-yellow);
  --band-card-alt-fg:   var(--c-ink);
  --band-card-alt-body: rgba(0, 0, 0, 0.72);
  --band-btn-bg:        var(--c-yellow);
  --band-btn-fg:        var(--c-ink);
  --band-btn-bg-hover:  var(--c-white);
}

.section--yellow {
  --band-fg:            var(--c-body-light);
  --band-fg-strong:     var(--c-ink);
  --band-fg-muted:      var(--c-body-light);
  /* Yellow accent text on a yellow band is invisible -- use ink. */
  --band-accent:        var(--c-ink);
  --band-rule:          rgba(35, 31, 32, 0.14);
  --band-card:          var(--c-black);
  --band-card-fg:       var(--c-yellow);
  --band-card-body:     var(--t-2);
  --band-card-alt:      var(--c-white);
  --band-card-alt-fg:   var(--c-ink);
  --band-card-alt-body: var(--c-body-light);
  --band-btn-bg:        var(--c-ink);
  --band-btn-fg:        var(--c-white);
  --band-btn-bg-hover:  var(--c-white);
}

/* Sensible defaults outside a band. */
:root {
  --band-fg: var(--t-2);            --band-fg-strong: var(--c-white);
  --band-fg-muted: var(--t-3);      --band-accent: var(--c-yellow);
  --band-rule: rgba(255,255,255,0.14);
  --band-card: var(--c-black);      --band-card-fg: var(--c-yellow);
  --band-card-body: var(--t-2);
  --band-card-alt: var(--c-yellow); --band-card-alt-fg: var(--c-ink);
  --band-card-alt-body: rgba(0,0,0,0.72);
  --band-btn-bg: var(--c-yellow);   --band-btn-fg: var(--c-ink);
  --band-btn-bg-hover: var(--c-white);
}

/* --- Components rewired to the band --------------------------------------- */

.loc__accent { color: var(--band-accent); }

.loc__h2, .loc__statement { color: var(--band-fg-strong); }
.loc__lead, .loc__prose p, .loc__row-body, .loc__tick { color: var(--band-fg); }
.loc__coverage { color: var(--band-fg-muted); }
.loc__tick-mark { color: var(--band-accent); }
.loc__rule { background: var(--band-rule); }

/* FAQ: alternates, and both surfaces always differ from the band. */
.loc__faq-item,
.section--yellow .loc__faq-item,
.section--dark .loc__faq-item,
.section--black .loc__faq-item {
  background: var(--band-card);
  border: 0;
  --faq-fg: var(--band-card-fg);
  --faq-body: var(--band-card-body);
}
.loc__faq-item:nth-child(even),
.section--yellow .loc__faq-item:nth-child(even),
.section--dark .loc__faq-item:nth-child(even),
.section--black .loc__faq-item:nth-child(even) {
  background: var(--band-card-alt);
  --faq-fg: var(--band-card-alt-fg);
  --faq-body: var(--band-card-alt-body);
}

/* CTA button: always stands off its band. */
.loc__cta-btn {
  background: var(--band-btn-bg);
  color: var(--band-btn-fg);
}
.loc__cta-btn:hover {
  background: var(--band-btn-bg-hover);
  color: var(--c-ink);
}

/* Care panel, compare cards, stat band, service cards. */
.loc__care-panel { background: var(--band-card); }
.loc__care-label, .loc__care-price { color: var(--band-card-fg); }
.loc__care-item  { color: var(--band-card-body); }

.loc__compare-card--muted { background: var(--band-card); }
.loc__compare-card--muted .loc__compare-label { color: var(--band-card-fg); }
.loc__compare-card--muted p { color: var(--band-card-body); }

.loc__compare-card--accent { background: var(--band-card-alt); }
.loc__compare-card--accent .loc__compare-label { color: var(--band-card-alt-fg); }
.loc__compare-card--accent p { color: var(--band-card-alt-body); }

.loc__stat-value.loc__stat-value     { color: var(--band-fg-strong); }
.loc__stat-caption.loc__stat-caption { color: var(--band-fg); }

.loc__service { background: var(--band-card); }
.loc__service-title { color: var(--band-card-fg); }
.loc__service p { color: var(--band-card-body); }
/* A background image supplies its own contrast via the gradient. */
.loc__service:has(.loc__service-media) .loc__service-title { color: var(--c-yellow); }
.loc__service:has(.loc__service-media) p { color: var(--t-2); }

/* --- Remaining location components, wired to the band --------------------
   Anything here previously named a colour directly and so broke whenever the
   band rotated underneath it.
   ------------------------------------------------------------------------ */

.loc__row-label    { color: var(--band-accent); }
.loc__closing-head { color: var(--band-fg-strong); }

.loc__chip {
  background: var(--band-card);
  color: var(--band-card-fg);
  border-color: transparent;
}
.loc__chip-num { color: var(--band-card-fg); }

/* Promise cards sit on the band and carry their own surface. */
.loc__promise { background: var(--band-card); }
.loc__promise-title.loc__promise-title { color: var(--band-card-fg); }
.loc__promise p { color: var(--band-card-body); }

/* Care panel: every line, not just the label and price. */
.loc__care-from.loc__care-from,
.loc__care-note.loc__care-note { color: var(--band-card-body); opacity: 0.85; }

/* --- Care panel ----------------------------------------------------------
   This one keeps its own identity rather than following --band-card. It is a
   pricing panel, and the dark treatment with a yellow label and price is the
   look that was signed off (Scottish Borders): #0A0A0A panel, yellow label,
   white ticks, yellow price. Following the generic card token turned it white
   whenever the band rotated to black, which reads as a completely different
   component on the same site.

   Only the surface shifts, and only enough to stay visible: on a black band
   it lifts to ink so the panel still separates from the background.
   ------------------------------------------------------------------------ */

.section--dark   .loc__care-panel,
.section--yellow .loc__care-panel { background: var(--c-black); }
.section--black  .loc__care-panel { background: var(--c-ink); }

/* Panel contents are fixed to the dark-surface set on every band. */
.loc__care-panel .loc__care-label,
.loc__care-panel .loc__care-price      { color: var(--c-yellow); }
.loc__care-panel .loc__care-item       { color: var(--t-2); }
.loc__care-panel .loc__care-from.loc__care-from { color: var(--t-3); opacity: 1; }
.loc__care-panel .loc__care-note.loc__care-note { color: var(--t-4); opacity: 1; }
.loc__care-panel .loc__care-list       { border-color: rgba(255, 255, 255, 0.14); }


/* --- StoryBand on small screens ------------------------------------------
   The clips carry the wordmark in the footage, and at phone width it runs off
   the sides. Below 768px no video is mounted at all (see storyband.php), so
   the outlined headline shows instead -- and the file is never downloaded.
   ------------------------------------------------------------------------ */

.storyband[data-has-video] .storyband__title { display: none; }

@media (max-width: 767px) {
  .storyband { height: 220px; }
  .storyband__title { font-size: clamp(26px, 9vw, 44px); }
}

/* --- Full-height hero on mobile ------------------------------------------
   The design's own responsive.css caps full-height heroes at 72svh on phones.
   Iain wants the homepage hero to fill the viewport, so this deliberately
   departs from that file.
   ------------------------------------------------------------------------ */

@media (max-width: 768px) {
  .hero--full { height: 100vh; min-height: 480px; }
}
@supports (height: 100svh) {
  @media (max-width: 768px) {
    .hero--full { height: 100svh; }
  }
}

/* --- Touch targets --------------------------------------------------------
   The "Areas we serve" row is 13 links at 16px tall wrapped together, which
   is far too tight to hit reliably on a phone. Give each one real height on
   touch, and drop the pipe separators since the spacing now does that job.
   ------------------------------------------------------------------------ */

@media (max-width: 768px) {
  .site-footer__areas ul {
    gap: 4px 8px;
    line-height: 1.4;
  }
  .site-footer__areas li { display: flex; }
  .site-footer__areas a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 10px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.05);
  }
  .site-footer__areas li:not(:last-child)::after { content: none; }

  /* Legal links and the contact email get the same minimum. */
  .site-footer__legal a { display: inline-block; padding: 6px 0; }
  .contact__inner a[href^="mailto:"] { min-height: 44px; }
}

/* ==========================================================================
   MOBILE PASS — feedback round 1
   ========================================================================== */

@media (max-width: 768px) {

  /* 1. Page headers at roughly half height. The homepage hero is excluded --
        it stays full viewport. */
  /* Location heroes opt out -- they carry far more content, see below. */
  .hero:not(.hero--full):not(.loc__hero) { height: min(34vh, 240px); min-height: 200px; }
  /* Location heroes are set full-viewport further down -- they carry an
     eyebrow, headline, standfirst and button, so 34vh put the copy under
     the fixed logo. */
  .hero__inner           { padding-bottom: 22px; }

  /* 3. Service tile labels were ~16px, far too small to carry a tile. */
  .tile__label { font-size: clamp(21px, 6.4vw, 30px); padding: 18px 18px 20px; }
  [data-tile] { height: 260px; }

  /* 4. Testimonials: heading belongs above the quote once stacked. */
  .testimonials__grid { display: flex; flex-direction: column; gap: 26px; }
  .testimonials__title { order: -1; }

  /* 5. The fox no longer needs a 210px well beneath the content. */
  .contact__inner { padding-bottom: 150px; }
  .contact__fox   { width: 160px; right: 50%; transform: translateX(50%); }

  /* 7. Search Optimisation reads better centred once it is one column. */
  .svc-seo__intro,
  .svc-seo__lead,
  .svc-seo__cite,
  .svc-seo__lockup { text-align: center; }
  .svc-seo__lockup { margin-inline: auto; }
  .svc-seo__add        { text-align: center; }
  .svc-seo__badge      { margin-inline: auto; }
  .svc-seo__cross      { justify-content: center; flex-direction: column; align-items: center; }
  .svc-seo__cross-text { text-align: center; }

  /* 9. Category icons centre with their labels. */
  .svc-design__cat { justify-content: center; text-align: left; }

  /* 10. Legals: the wordmark is decorative and crowds a phone; the tab row
         becomes rounded buttons; the aside centres under the heading. */
  .legals__wordmark { display: none; }
  .legals__aside    { text-align: center; margin-inline: auto; }
  .legals__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    border: 0;
  }
  .legals__tab {
    flex: 0 1 auto;
    border-radius: var(--r-pill);
    padding: 12px 20px;
    font-size: 13px;
    border: 1.5px solid rgba(35, 31, 32, 0.25);
    background: transparent;
    color: var(--c-ink);
  }
  .legals__tab[aria-selected="true"] {
    background: var(--c-ink);
    color: var(--c-yellow);
    border-color: var(--c-ink);
  }
  .legals__panel { border-radius: var(--r-lg); }
}

/* 2. StoryBand is hidden outright on phones. The wordmark is baked into the
      footage and overruns; with no video the striped placeholder band adds
      nothing, so remove the section rather than show an empty texture. */
@media (max-width: 767px) {
  .storyband { display: none; }
}

/* 8. Blog & Social: the mockup is emitted before the copy, so once stacked it
      appeared above the heading. Reorder it below the text and let it straddle
      the band boundary, which is the effect the desktop overlap achieves. */
@media (max-width: 768px) {
  .svc-blog__band {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  .svc-blog__post {
    order: 2;
    width: min(74%, 320px);
    margin: 30px auto -70px;
    position: relative;
    z-index: 3;
  }
  .svc-blog__overlap > .section--yellow,
  .svc-blog__overlap > .svc-band--yellow { padding-top: 96px; }
}

/* 6. Our Story: the founder photo is full-bleed beside the copy on desktop.
      Stacked, a bleeding edge butts straight into the image above it, so it
      becomes a circular portrait instead. */
@media (max-width: 768px) {
  .story__founder-grid { gap: 28px; }
  .story__founder-photo {
    width: min(62vw, 240px);
    aspect-ratio: 1;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
  }
  .story__founder-photo img { object-position: 50% 22%; }
  .story__founder-fade { display: none; }
  .story__founder-text { text-align: center; }
}


/* --- Testimonials: crossfade, and a card sized to the longest quote -------
   Slides used to toggle `hidden`, which is display:none -- nothing to
   transition, and the yellow card resized to whatever quote was showing.

   Stacking every slide in one grid cell fixes both at once: the cell is as
   tall as the tallest quote, so the card holds a constant height, and the
   slides can crossfade over each other because they all remain in flow.
   ------------------------------------------------------------------------ */

.testimonials__quotes,
.testimonials__attr {
  display: grid;
  align-items: start;
}
.testimonials__quotes > .testimonials__slide,
.testimonials__attr   > [data-slide] {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
}
.testimonials__quotes > .testimonials__slide[data-active],
.testimonials__attr   > [data-slide][data-active] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.testimonials__attr > [data-slide] { justify-self: center; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .testimonials__quotes > .testimonials__slide,
  .testimonials__attr   > [data-slide] { transition-duration: 0.01ms; transform: none; }
}

/* --- Logo: flips between two marks over yellow bands ----------------------
   A two-faced card. The default mark faces front, the alternate is pre-turned
   180deg on the back; rotating the card swaps which one you see, so the change
   reads as a single spin rather than a crossfade.

   Base rotation is a custom property so the hover spin composes with the
   flip state instead of fighting it.
   ------------------------------------------------------------------------ */

.nav-pill__logo { --logo-rot: 0deg; display: block; width: 42px; height: 42px; perspective: 420px; }

.nav-pill__logo-flip {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(var(--logo-rot));
  transition: transform var(--t-logo);
}

.nav-pill__logo-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.nav-pill__logo-face--alt { transform: rotateY(180deg); }

/* Below 768px the nav collapses to a burger and the mark sits directly on the
   page bands, so a yellow mark on a yellow band genuinely needs the swap. */
@media (max-width: 767px) {
  .nav-pill__logo[data-on-yellow]       { --logo-rot: 180deg; }
  .nav-pill__logo[data-on-yellow]:hover { --logo-rot: 540deg; }

  /* Without an alternate mark there is nothing to reveal, so don't flip. */
  .nav-pill__logo:not([data-logo-flip])[data-on-yellow] { --logo-rot: 0deg; }
}

/* Desktop always has the dark pill behind the mark, so it never needs to
   change colour -- swapping it there put a black mark on a dark pill. Hover
   still spins a full turn, but returns to the same face: the alternate leaves
   the stack and the front face stays visible right through the turn instead of
   handing over at 90deg. */
@media (min-width: 768px) {
  .nav-pill__logo-face--alt { display: none; }
  .nav-pill__logo-face {
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }
  .nav-pill__logo:hover { --logo-rot: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-pill__logo-flip { transition: none; }
}

/* ==========================================================================
   MOBILE PASS — feedback round 2
   ========================================================================== */

@media (max-width: 768px) {

  /* 1. The founder portrait sat flush against the band above it. Give the
        section real breathing room at the top and pull the portrait down
        toward its own heading rather than the previous section's edge. */
  .story__founder { min-height: 0; padding: 56px 0 0; }
  .story__founder-grid { gap: 20px; }
  .story__founder-photo { margin-top: 8px; }

  /* 2. Pay Per Click: the monitor is the first thing in the stack, so the
        band's 78px top padding read as a void between it and the header. */
  .svc-ppc__split { gap: 20px; }
  .svc-ppc__split .svc-ppc__monitor { margin-top: -32px; }
  .svc-band--flush:has(.svc-ppc__split) { padding-top: 28px; }

  /* 4. Location headers go full viewport. Shrinking every page header to 34vh
        left the fixed logo sitting over the hero copy here, because these
        carry an eyebrow, headline, standfirst and a button rather than just a
        title. More height moves the bottom-aligned copy clear of the bar. */
  .hero.loc__hero { height: 100vh; min-height: 480px; }
}

@supports (height: 100svh) {
  @media (max-width: 768px) {
    .hero.loc__hero { height: 100svh; }
  }
}

/* 3. Contact form: the fox previously reserved a full-width well beneath the
      content -- 210px, 170px and 150px rules all matched at once and the
      largest empty gap won. It now sits in the corner and the action row
      simply steps around it, so there is no dead space at all. */
@media (max-width: 900px) {
  .contact__inner   { padding-bottom: 24px; }
  .contact__fox     { width: 130px; right: 2vw; left: auto; transform: none; }
  .contact__actions { padding-right: 130px; }
}

@media (max-width: 520px) {
  .contact__inner   { padding-bottom: 16px; }
  .contact__fox     { width: 104px; }
  .contact__actions { padding-right: 104px; gap: 14px; }
}

/* ==========================================================================
   MOBILE PASS — feedback round 3
   ========================================================================== */

@media (max-width: 768px) {

  /* PPC: lift the monitor further and open up the space beneath it, so it
     reads as attached to the header above rather than floating between. */
  .svc-band--flush:has(.svc-ppc__split) { padding-top: 4px; }
  .svc-ppc__split { gap: 44px; }
  .svc-ppc__split .svc-ppc__monitor { margin-top: -56px; }

  /* Contact: centre everything below the fields, buttons included, rather
     than reserving a gap beside the fox. */
  .contact__nav,
  .contact__actions {
    justify-content: center;
    text-align: center;
    padding-right: 0;
  }
  .contact__nav { flex-wrap: wrap; }
  .contact__done { text-align: center; margin-inline: auto; }
  .contact__donebadge { margin-inline: auto; }

  /* The fox tucks into the corner behind the content, so nothing has to
     step around it. */
  .contact__fox   { width: 116px; right: 0; opacity: 0.9; }
  .contact__inner { padding-bottom: 96px; }
}

@media (max-width: 520px) {
  .contact__actions { padding-right: 0; }
  .contact__fox     { width: 96px; }
  .contact__inner   { padding-bottom: 84px; }
}

/* --- Websites & Hosting: the two mockups on tablet ------------------------
   The phone/tablet mockup sits in column 1, directly beneath the desktop
   mockup in the band above, and pulls itself up 200px so the two overlap.
   That reads well at desktop width, where the columns are wide and the
   overlap is shallow. Between 769px and 1024px the columns narrow, the images
   grow relative to them, and the two collide.

   On tablet the mockup moves to the right-hand column -- so it is no longer
   underneath the desktop shot at all -- with "Be found faster" on the left,
   and the overhang reduces to something that reads as an overlap rather than
   a collision.
   ------------------------------------------------------------------------ */



/* --- Websites & Hosting: the two mockup bands as one screen ---------------
   These two bands are meant to be read together. The artwork was sized off
   column width, so on a wide-but-short display each band grew past its 50vh
   floor and the pair needed two screens. Capping the images against viewport
   height instead keeps the pair to one screen at any window shape.

   The copy cell also stretched to the artwork's height, which is what left
   the dead space beneath the paragraph -- centring the row fixes that rather
   than padding around it.
   ------------------------------------------------------------------------ */

@media (min-width: 768px) {
  .svc-band--half:has(.svc-hosting__device),
  .svc-band--half:has(.svc-hosting__mobile) { padding-top: 40px; }
  .svc-band--half:has(.svc-hosting__mobile) { padding-bottom: 40px; }

  /* Explicit height rather than `width:auto; max-height:` -- these are lazy
     images, and an auto width gives an unloaded one no intrinsic size to
     resolve against, collapsing the figure to nothing. A fixed box with
     object-fit keeps the aspect ratio and makes the band arithmetic
     deterministic whether or not the file has arrived yet. */
  .svc-hosting__device img {
    width: 100%;
    height: 40vh;
    object-fit: contain;
    object-position: left bottom;
  }
  /* web-mobile.webp is a 500x500 square whose artwork occupies only the middle
     71.8% vertically -- 14.2% of the file is transparent padding above the
     tablet and 14% below. Sizing the box alone therefore does NOT place the
     tablet: a box overlapping the boundary by 32px still left the artwork
     11px below it, because the padding ate the overlap. Everything below is
     measured against the artwork, not the file. */
  .svc-hosting__mobile img {
    width: 100%;
    height: var(--art);
    object-fit: contain;
    object-position: right top;
  }

  /* Copy centres against the artwork -- this is what removed the dead space,
     which was the cell stretching to the mockup's height rather than a gap
     under the paragraph. In the upper band it also lifts the paragraph clear
     of the boundary, so the mockup below overlaps empty space, not text.
     The band centres its .container, so the grid's top edge would otherwise
     float with whatever slack is going, and the mockup's negative margin is
     measured from that edge -- stretching the grid pins the origin, and the
     copy stays centred because the grid centres it. */
  .svc-band--half:has(.svc-hosting__mobile) { align-items: stretch; }
  .svc-band--half:has(.svc-hosting__mobile) [data-grid="two"] { align-items: center; }
  .svc-band--flush:has(.svc-hosting__device) .svc-right { align-self: center; }

  /* --art is the rendered size of the square file. object-fit:contain resolves
     it to min(column width, box height), so all three caps are stated here and
     the lift can be derived from the same value -- otherwise the two disagree
     wherever the column is the binding constraint (the container maxes out at
     1120px, so the column stops growing at 536px) and the overlap drifts.
     Lift = 40px band padding + 14.2% of the file that is transparent + the
     44px of tablet that should sit above the boundary. */
  .svc-hosting__mobile {
    --art: min(52vh, 536px, 38.5vw);
    align-self: start;
    margin-top: calc(-84px - 0.142 * var(--art));
    position: relative;
    z-index: 1;
  }
}
