/*
Theme Name: M G Patrickson Glazing
Description: Block theme for mgpatrickson.co.uk. Ported from the original hand-built PHP site; the design is unchanged. Colours: Slate #1E2A32, Ember #B5511F, Glacier #3E6B80, Ivory #F8F5F0.
Author: Paul Irvine
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: mgp
*/
/* ==========================================================================
   M G Patrickson Glazing
   Slate #1E2A32 · Ember #B5511F · Glacier #3E6B80 · Ivory #F8F5F0
   ========================================================================== */

:root {
  --slate:        #1E2A32;
  --slate-deep:   #162026;
  --ink:          #1E2A32;
  --ink-soft:     #4F5F6A;
  --ink-faint:    #78858D;
  --ember:        #B5511F;
  --ember-dark:   #8E3F17;
  --ember-light:  #E9884F;
  --glacier:      #3E6B80;
  --glacier-pale: #D9E4EA;
  --ivory:        #F8F5F0;
  --mist:         #E4DFD7;
  --rule:         #DDD7CD;
  --white:        #FFFFFF;

  --shell: 1140px;
  --gutter: 20px;

  --r: 3px;
  --shadow: 0 1px 2px rgba(30,42,50,.05), 0 8px 24px -12px rgba(30,42,50,.16);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ember); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ember-dark); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--slate); color: var(--ivory);
  padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- type --- */

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
  font-weight: 700;
}

h1 { font-size: clamp(2.05rem, 1.35rem + 2.9vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.22rem + 1.6vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); letter-spacing: -0.006em; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  margin: 0 0 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ember);
}
.eyebrow--pale { color: var(--ember-light); }

.lede {
  font-size: clamp(1.1rem, 1.02rem + .38vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

.strap {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--glacier);
}

.measure { max-width: 68ch; }

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  font: inherit;
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}
.btn--lg { min-height: 54px; padding: 16px 30px; font-size: 1.03rem; }

.btn--primary { background: var(--ember); color: var(--white); }
.btn--primary:hover { background: var(--ember-dark); color: var(--white); }

.btn--dark { background: var(--slate); color: var(--ivory); }
.btn--dark:hover { background: var(--slate-deep); color: var(--white); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.on-dark .btn--ghost, .cta-band .btn--ghost, .hero .btn--ghost {
  color: var(--ivory);
  border-color: rgba(248,245,240,.4);
}
.on-dark .btn--ghost:hover, .cta-band .btn--ghost:hover, .hero .btn--ghost:hover {
  border-color: var(--ivory); color: var(--white);
}

/* -------------------------------------------------------------- header --- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248,245,240,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--slate); }
.brand .mark { flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__name { font-size: 1.04rem; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.brand__sub { font-size: .6rem; font-weight: 600; letter-spacing: .42em; color: var(--ember); line-height: 1; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ember); }
.nav a[aria-current="page"] { border-bottom-color: var(--ember); color: var(--slate); font-weight: 600; }

/* .nav a sets a colour, so this needs to out-specify it or the number
   disappears into the slate background. */
.nav .btn--phone, .btn--phone {
  background: var(--slate); color: var(--ivory);
  min-height: 42px; padding: 9px 17px; font-size: .92rem;
  border-radius: var(--r); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  border-bottom: none;
}
.nav .btn--phone:hover, .btn--phone:hover { background: var(--slate-deep); color: var(--white); }

.nav-toggle {
  display: none;
  align-items: center; gap: 9px;
  background: none; border: 1px solid var(--rule); border-radius: var(--r);
  padding: 9px 14px; min-height: 44px;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3.5px; }
.nav-toggle__bars span { display: block; width: 17px; height: 2px; background: var(--slate); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--rule); }
  .nav a { display: block; padding: 14px 2px; border-bottom: none; }
  .nav a[aria-current="page"] { color: var(--ember); }
  .btn--phone { margin-top: 16px; justify-content: center; min-height: 48px; }
}

/* ---------------------------------------------------------- breadcrumbs --- */

.crumbs { background: var(--mist); border-bottom: 1px solid var(--rule); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 11px 0; list-style: none; font-size: .82rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-faint); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ember); text-decoration: underline; }

/* ---------------------------------------------------------------- hero --- */

.hero {
  background: var(--slate);
  color: var(--ivory);
  padding-block: clamp(52px, 7vw, 86px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--ember) 0 34%, rgba(233,136,79,.25) 34% 100%);
}
.hero__grid {
  display: grid;
  gap: clamp(34px, 5vw, 60px);
  align-items: center;
}
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }

.hero h1 { color: var(--white); }
.hero .lede { color: #C6D0D6; }
.hero__strap {
  font-family: Fraunces, Georgia, serif; font-style: italic;
  font-size: 1.18rem; color: var(--ember-light); margin: 0 0 18px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero__points {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 30px 0 0; padding: 22px 0 0; list-style: none;
  border-top: 1px solid rgba(248,245,240,.17);
  font-size: .9rem; color: #BCC7CE;
}
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points svg { flex: none; color: var(--ember-light); }

.hero__art { width: 100%; height: auto; border-radius: var(--r); }
.diagram { width: 100%; height: auto; }

/* ------------------------------------------------------------- sections --- */

.section { padding-block: clamp(54px, 6.5vw, 92px); }
.section--mist { background: var(--mist); }
.section--white { background: var(--white); }
.section--slate { background: var(--slate); color: var(--ivory); }
.section--slate h2, .section--slate h3 { color: var(--white); }
.section--slate p { color: #BFCAD1; }

.section__head { max-width: 70ch; margin-bottom: clamp(30px, 4vw, 48px); }
.section__head p { margin-top: 15px; }

/* ---------------------------------------------------------------- grids --- */

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ember);
  padding: 28px 26px 30px;
  display: flex; flex-direction: column; gap: 12px;
}
.section--white .card { background: var(--ivory); }
.card h3 { margin-bottom: 2px; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card__more { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .94rem; text-decoration: none; }
.card__more::after { content: " →"; }
.card__more:hover { text-decoration: underline; }

/* --------------------------------------------------------- split blocks --- */

.split { display: grid; gap: clamp(30px, 4.5vw, 56px); align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: -1; }
}

.panel {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: clamp(26px, 3.2vw, 38px);
}
.panel--dark { background: var(--slate); color: var(--ivory); border-color: var(--slate); }
.panel--dark h3 { color: var(--white); }
.panel--dark p, .panel--dark li { color: #BFCAD1; }

/* ---------------------------------------------------------------- lists --- */

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks svg { margin-top: 5px; color: var(--ember); }
.panel--dark .ticks svg, .section--slate .ticks svg { color: var(--ember-light); }

.crosses li svg { color: var(--glacier); }

/* ---------------------------------------------------------------- steps --- */

.steps { counter-reset: s; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: s;
  display: grid; grid-template-columns: 54px 1fr; gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-size: .9rem; font-weight: 700; color: var(--ember);
  font-variant-numeric: tabular-nums; padding-top: 3px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: .97rem; }

/* ----------------------------------------------------------------- faqs --- */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 44px 20px 0;
  font-weight: 600; font-size: 1.04rem; color: var(--slate);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--ember); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--ember); }
.faq__body { padding: 0 48px 24px 0; color: var(--ink-soft); }

/* ---------------------------------------------------------------- areas --- */

.areas { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.areas li {
  background: var(--white); border: 1px solid var(--rule);
  padding: 7px 14px; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
}
.section--mist .areas li { background: var(--ivory); }

/* -------------------------------------------------------------- figures --- */

.figure { margin: 0; }
.figure figcaption { margin-top: 11px; font-size: .84rem; color: var(--ink-faint); }

.photo-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, rgba(30,42,50,.035) 0 10px, transparent 10px 20px),
    var(--mist);
  border: 1px dashed #BDB4A6;
  color: var(--ink-faint);
  padding: 20px;
}
.photo-slot strong { display: block; color: var(--ink-soft); font-size: .95rem; font-weight: 600; }
.photo-slot span { font-size: .82rem; max-width: 34ch; }

/* --------------------------------------------------------------- badges --- */

.creds { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.creds li {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--rule); background: var(--white);
  padding: 10px 15px; font-size: .88rem; font-weight: 500; color: var(--ink-soft);
}
.creds svg { color: var(--ember); flex: none; }
.section--slate .creds li, .hero .creds li {
  background: rgba(248,245,240,.07); border-color: rgba(248,245,240,.2); color: #C6D0D6;
}
.section--slate .creds svg, .hero .creds svg { color: var(--ember-light); }

/* ------------------------------------------------------------- cta band --- */

.cta-band { background: var(--slate-deep); color: var(--ivory); padding-block: clamp(44px, 5vw, 66px); }
.cta-band__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .cta-band__inner { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: #BFCAD1; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 13px; }

/* -------------------------------------------------------------- footer --- */

.site-foot { background: var(--slate); color: #AEBAC2; padding-block: 56px 28px; font-size: .93rem; }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-foot h3 { color: var(--white); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 15px; }
.site-foot a { color: #D2DBE0; text-decoration: none; }
.site-foot a:hover { color: var(--ember-light); text-decoration: underline; }
.foot-name { margin: 12px 0 2px; color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.foot-name span { color: var(--ember-light); letter-spacing: .3em; font-size: .72rem; display: block; margin-top: 4px; }
.foot-strap { font-family: Fraunces, Georgia, serif; font-style: italic; color: #9FB2BC; margin: 8px 0 12px; }
.foot-blurb { color: #93A2AB; font-size: .88rem; max-width: 32ch; }
.foot-links, .foot-contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.foot-areas { line-height: 1.75; color: #9FADB6; font-size: .88rem; }
.foot-note { margin-top: 10px; font-size: .82rem; color: #7E8E98; }
.foot-addr { color: #9FADB6; line-height: 1.6; padding-top: 4px; }

.foot-base {
  display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center;
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(248,245,240,.14);
  font-size: .82rem; color: #84949E;
}
.foot-base p { margin: 0; }
.foot-creds { color: #9FADB6; }

/* ---------------------------------------------------------------- forms --- */

.form-layout { display: grid; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .form-layout { grid-template-columns: 1.25fr .75fr; } }

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

.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--slate); }
.field .hint { font-size: .82rem; color: var(--ink-faint); font-weight: 400; }
.field .req { color: var(--ember); }

.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: var(--r);
  padding: 13px 14px;
  width: 100%;
  min-height: 50px;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--glacier); }
.field--error input, .field--error select, .field--error textarea { border-color: #A3341F; background: #FDF6F4; }
.field__error { font-size: .85rem; color: #A3341F; font-weight: 500; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--ember); }
.consent label { font-size: .9rem; font-weight: 400; color: var(--ink-soft); line-height: 1.5; }

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

.notice { padding: 18px 20px; border-left: 3px solid; font-size: .96rem; }
.notice--error { background: #FDF3F0; border-color: #A3341F; color: #7C2616; }
.notice--ok { background: #EEF4F2; border-color: #2F6B4F; color: #1F4A37; }
.notice p { margin-bottom: .5em; }
.notice ul { margin: .4em 0 0; padding-left: 1.1em; }

.aside-card { background: var(--white); border: 1px solid var(--rule); padding: 28px 26px; display: grid; gap: 22px; }
.aside-card h3 { font-size: 1.05rem; }
.contact-line { display: grid; gap: 4px; margin: 0; }
.contact-line dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.contact-line dd { margin: 0; font-size: 1.08rem; font-weight: 600; }
.contact-line dd a { text-decoration: none; }

/* --------------------------------------------------------------- utility -- */

.stack > * + * { margin-top: 1.1em; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   WordPress adaptations (everything above is the original site.css)
   ========================================================================== */

.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }
.site-head-wrap { position: sticky; top: 0; z-index: 40; }
.admin-bar .site-head-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head-wrap { top: 46px; } }
.site-head { position: relative; }
.nav-toggle { font-family: inherit; }

/* Buttons from the block editor (wrapper carries .bt-*, link carries the look) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 13px; }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 13px 24px;
  border: 1.5px solid transparent; border-radius: var(--r);
  font: inherit; font-size: .97rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; background: transparent; color: var(--ink);
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}
.wp-block-button.bt-lg .wp-block-button__link { min-height: 54px; padding: 16px 30px; font-size: 1.03rem; }
.wp-block-button.bt-primary .wp-block-button__link { background: var(--ember); color: var(--white); }
.wp-block-button.bt-primary .wp-block-button__link:hover { background: var(--ember-dark); color: var(--white); }
.wp-block-button.bt-dark .wp-block-button__link { background: var(--slate); color: var(--ivory); }
.wp-block-button.bt-dark .wp-block-button__link:hover { background: var(--slate-deep); color: var(--white); }
.wp-block-button.bt-ghost .wp-block-button__link { color: var(--ink); border-color: var(--rule); }
.wp-block-button.bt-ghost .wp-block-button__link:hover { border-color: var(--ink); }
.hero .bt-ghost .wp-block-button__link, .cta-band .bt-ghost .wp-block-button__link, .on-dark .bt-ghost .wp-block-button__link {
  color: var(--ivory); border-color: rgba(248,245,240,.4);
}
.hero .bt-ghost .wp-block-button__link:hover, .cta-band .bt-ghost .wp-block-button__link:hover {
  border-color: var(--ivory); color: var(--white);
}

/* Icons that used to be inline SVG are now CSS, so the text stays editable */
.ticks li::before, .hero__points li::before, .creds li::before {
  content: ""; flex: none;
  -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.ticks li::before { width: 18px; height: 18px; margin-top: 5px; background: var(--ember); }
.panel--dark .ticks li::before, .section--slate .ticks li::before { background: var(--ember-light); }
.hero__points li::before { width: 16px; height: 16px; background: var(--ember-light); }
.creds li::before { width: 17px; height: 17px; background: var(--ember); }
.section--slate .creds li::before, .hero .creds li::before { background: var(--ember-light); }
.crosses li::before {
  background: var(--glacier);
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}
.wp-block-list.hero__points, .wp-block-list.ticks, .wp-block-list.creds, .wp-block-list.areas { padding-left: 0; }

/* Steps: were <ol><li>, now blocks */
.steps { counter-reset: s; display: grid; gap: 2px; margin: 0; padding: 0; }
.steps > .step {
  counter-increment: s;
  display: grid; grid-template-columns: 54px 1fr; gap: 0 20px;
  padding: 24px 0; border-top: 1px solid var(--rule);
}
.steps > .step:last-child { border-bottom: 1px solid var(--rule); }
.steps > .step::before {
  content: counter(s, decimal-leading-zero);
  grid-row: 1 / span 3;
  font-size: .9rem; font-weight: 700; color: var(--ember);
  font-variant-numeric: tabular-nums; padding-top: 3px;
}
.steps > .step > * { grid-column: 2; }
.steps h3 { margin-bottom: 6px; }
.section--slate .steps { --rule: rgba(248,245,240,.16); }

/* FAQ (core/details) */
.faq details { margin: 0; }
.faq details > p { padding: 0 48px 24px 0; color: var(--ink-soft); }

/* Small parts that were inline elements */
.card-more-wrap { margin-top: auto !important; padding-top: 10px; }
.card-more-wrap .card__more { padding-top: 0; font-weight: 600; font-size: .94rem; text-decoration: none; }
.card-more-wrap .card__more::after { content: " →"; }
.card-more-wrap .card__more:hover { text-decoration: underline; }
.figure .figcaption { margin-top: 11px; font-size: .84rem; color: var(--ink-faint); }
.photo-slot__title { margin: 0; color: var(--ink-soft); font-size: .95rem; font-weight: 600; }
.photo-slot__text { margin: 0; font-size: .82rem; max-width: 34ch; }
.contact-line { display: grid; gap: 4px; margin: 0; }
.contact-line__label { margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.contact-line__value { margin: 0; font-size: 1.08rem; font-weight: 600; }
.contact-line__value a { text-decoration: none; }
.contact-line__value--plain { font-weight: 400; font-size: 1rem; line-height: 1.6; }

/* Contact Form 7 inside the existing form styles */
.wpcf7 form { margin: 0; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 .field input[type="file"] { padding: 10px 12px; min-height: 0; background: var(--white); }
.wpcf7 .field input[type="file"] + input[type="file"], .wpcf7 .field .wpcf7-form-control-wrap + .wpcf7-form-control-wrap { margin-top: 8px; }
.wpcf7-list-item { margin: 0; display: block; }
.wpcf7-acceptance label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; font-weight: 400; }
.wpcf7-acceptance input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--ember); }
.wpcf7-not-valid-tip { font-size: .85rem; color: #A3341F; font-weight: 500; }
.wpcf7 .wpcf7-not-valid { border-color: #A3341F; background: #FDF6F4; }
.wpcf7-response-output { margin: 20px 0 0 !important; padding: 18px 20px !important; border-width: 0 0 0 3px !important; font-size: .96rem; background: #EEF4F2; border-color: #2F6B4F !important; color: #1F4A37; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { background: #FDF3F0; border-color: #A3341F !important; color: #7C2616; }
.wpcf7-spinner { display: none; }
.wpcf7 form.submitting .wpcf7-spinner { display: inline-block; }
input.wpcf7-submit.btn { cursor: pointer; }

/* Posts: "Our work" */
.post-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); padding: 0; list-style: none; }
.post-card { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--ember); display: flex; flex-direction: column; }
.post-card .wp-block-post-featured-image { margin: 0; }
.post-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .wp-block-post-title { font-size: 1.2rem; line-height: 1.25; margin: 0; }
.post-card .wp-block-post-title a { color: var(--slate); text-decoration: none; }
.post-card .wp-block-post-title a:hover { color: var(--ember); }
.post-card .wp-block-post-date { font-size: .82rem; color: var(--ink-faint); }
.post-card .wp-block-post-excerpt { color: var(--ink-soft); font-size: .95rem; }
.post-card .wp-block-post-excerpt p { margin: 0; }
.post-single { max-width: 760px; }
.post-single .wp-block-post-featured-image img { width: 100%; height: auto; border-radius: var(--r); }
.post-single .wp-block-post-content > * + * { margin-top: 1.1em; }
.post-single .wp-block-image img { border-radius: var(--r); }
.post-single .wp-block-gallery { margin-block: 1.6em; }
.post-meta { color: var(--ink-faint); font-size: .88rem; }
.wp-block-query-pagination { margin-top: 36px; gap: 18px; display: flex; flex-wrap: wrap; }

/* Admin-bar and editor niceties */
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* Contact Form 7 housekeeping (its own stylesheet is switched off) */
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); border: 0; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form .wpcf7-response-output:empty { display: none; }
.consent { display: block; }
.wpcf7-acceptance input { margin: 3px 0 0; }
.wpcf7 fieldset.hidden-fields-container { display: none; border: 0; margin: 0; padding: 0; }

/* inline-style utilities generated by tools/html2blocks.py */
.ic-shield-pin li:nth-child(1)::before{--tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E")}
.ic-shield-pin li:nth-child(2)::before{--tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")}
.ic-shield-quote-pin li:nth-child(1)::before{--tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E")}
.ic-shield-quote-pin li:nth-child(2)::before{--tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 13h6M9 17h6'/%3E%3C/svg%3E")}
.ic-shield-quote-pin li:nth-child(3)::before{--tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")}
.ic-sun-snow-clock-home li:nth-child(1)::before{--tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E")}
.ic-sun-snow-clock-home li:nth-child(2)::before{--tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M4.2 7l15.6 10M19.8 7 4.2 17M12 6l-2.5-2.5M12 6l2.5-2.5M12 18l-2.5 2.5M12 18l2.5 2.5'/%3E%3C/svg%3E")}
.ic-sun-snow-clock-home li:nth-child(3)::before{--tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}
.ic-sun-snow-clock-home li:nth-child(4)::before{--tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E")}
.u-11f87e{margin-top:34px}
.u-1e0283{border-color:rgba(248,245,240,.2)}
.u-3ae1f6{margin-top:20px}
.u-4a909e{margin-top:18px}
.u-4b015f{margin-top:32px}
.u-553a64{margin-top:14px}
.u-5b06e9{margin-top:14px;font-size:.86rem;color:var(--ink-faint)}
.u-65cb85{color:var(--ember-light)}
.u-6bc8ee{margin-top:22px;color:var(--ink-soft)}
.u-6f543d{font-size:.88rem;color:var(--ink-faint);margin-top:28px}
.u-72f574{color:var(--ink-soft);margin-top:12px}
.u-75d78b{color:var(--ink-soft);font-size:.95rem}
.u-766ab4{--rule:rgba(248,245,240,.16)}
.u-816a37{margin-top:30px}
.u-a18ac8{margin-top:4px}
.u-b0043e{margin-top:16px}
.u-b89a77{margin-top:22px}
.u-c3ff69{text-decoration:none;color:inherit}
.u-d43169{margin-top:8px}
.u-mt-32{margin-top:32px}
