/* ==========================================================================
   Elementa — base stylesheet (1 of 3, handle "elementa").
   Tokens first (fonts, palette, scale), then 00 reset, 01 primitives and
   02 header. sections.css carries the design's sections 03–12 and pages.css
   the inner-page components (13). functions.php links the three in that
   order, so the cascade is the one stylesheet it used to be.
   2.2.2: type capped to the live site's sizes (hero 42px, h2 28px, h3 22px,
   body 16px/26px), 90px full-width header with the 192px logo and the menu
   flush right, every section white; the dark/greige contexts are no-ops.
   ========================================================================== */

/* Elementa v2 — tokens
   Helvetica LT Std, six cuts, self-hosted. No accent colour by brand decision. */

@font-face { font-family: "Helvetica LT Std"; font-weight: 300; font-style: normal;  font-display: swap; src: url(../fonts/helvetica-lt-light.woff2) format("woff2"); }
@font-face { font-family: "Helvetica LT Std"; font-weight: 300; font-style: italic;  font-display: swap; src: url(../fonts/helvetica-lt-light-oblique.woff2) format("woff2"); }
@font-face { font-family: "Helvetica LT Std"; font-weight: 400; font-style: normal;  font-display: swap; src: url(../fonts/helvetica-lt-roman.woff2) format("woff2"); }
@font-face { font-family: "Helvetica LT Std"; font-weight: 400; font-style: italic;  font-display: swap; src: url(../fonts/helvetica-lt-roman-oblique.woff2) format("woff2"); }
@font-face { font-family: "Helvetica LT Std"; font-weight: 700; font-style: normal;  font-display: swap; src: url(../fonts/helvetica-lt-bold.woff2) format("woff2"); }
@font-face { font-family: "Helvetica LT Std"; font-weight: 700; font-style: italic;  font-display: swap; src: url(../fonts/helvetica-lt-bold-oblique.woff2) format("woff2"); }

:root {
  /* palette */
  --e-ink: #0e0e0e;
  --e-ink-muted: #5a5a5a;
  --e-muted: #b2b2b2;
  --e-greige: #f4f0ef;
  --e-stone: #ded8d6;
  --e-grey: #f7f7f7;
  --e-white: #ffffff;
  --e-google: #fbbc04;

  /* context pairs — every section paints with these */
  --bg: var(--e-white);
  --fg: var(--e-ink);
  --fg-muted: var(--e-ink-muted);
  --line: rgba(14, 14, 14, .14);
  --line-strong: rgba(14, 14, 14, .4);

  /* type */
  --font: "Helvetica LT Std", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t-display: clamp(1.875rem, 1.125rem + 1.7vw, 2.625rem); /* hero h1: 30px on phones, 42px from 1440 (live) */
  --t-h2: 1.75rem;                                           /* 28px at every width, the live section h2 (inner pages: 30px, below) */
  --t-h3: clamp(1.25rem, 1.1rem + .5vw, 1.375rem);           /* 20px → 22px */
  --t-h4: clamp(1.0625rem, 1rem + .25vw, 1.125rem);          /* 17px → 18px */
  --t-quote: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);        /* 22px → 28px */
  --t-lede: 1.0625rem;                                       /* 17px, the live standfirst */
  --t-body: 1rem;                                            /* 16px, 26px leading (body below) */
  --t-small: .875rem;
  --t-label: .6875rem;

  /* layout */
  --edge: clamp(1.25rem, .5rem + 3vw, 4.5rem);
  --gutter: clamp(1rem, .5rem + 1.25vw, 2rem);
  --split-gap: clamp(1.5rem, .5rem + 2.5vw, 3rem); /* picture beside text: one gap everywhere */
  --container: 100rem;
  --space-section: clamp(3.5rem, 2rem + 4.5vw, 6.5rem);   /* 104px at 1440 (was 160px) */
  --space-block: clamp(2rem, 1rem + 3vw, 4rem);
  --header-h: 4rem;

  /* shape + motion */
  --r-pill: 999px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: .25s;
  --dur: .6s;
  --dur-slow: 1.1s;
}

@media (min-width: 62rem) {
  :root { --header-h: 5.625rem; } /* 90px, as the live header */
}

/* context switches: no-ops since 2.2.2. Every section is white with ink text
   (client note N5); the footer paints its own greige. The classes stay so a
   template that still carries one renders exactly like the rest. */
.e-dark {}
.e-greige {}

/* ==========================================================================
   Elementa v2 — main stylesheet
   00 reset · 01 primitives · 02 header · 03 hero · 04 statement · 05 work ·
   06 journey · 07 services · 08 quotes · 09 news · 10 enquiry · 11 footer ·
   12 utilities
   ========================================================================== */

/* 00 Reset + base ---------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.625;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: 0; margin: 0; border-radius: 0; }
button { cursor: pointer; padding: 0; }
textarea { resize: vertical; }
strong { font-weight: 400; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--e-ink); color: var(--e-greige); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 01 Primitives ------------------------------------------------------------ */

.e-wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.e-section {
  padding-block: var(--space-section);
  background: var(--bg);
  color: var(--fg);
}

.e-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--gutter);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-block);
}

.e-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-block);
}
.e-grid > * { grid-column: 1 / -1; min-width: 0; }
/* two columns side by side sit on adjacent grid columns, this far apart */
.e-split { column-gap: var(--split-gap); }

@media (min-width: 62rem) {
  .e-col-3  { grid-column-end: span 3; }
  .e-col-4  { grid-column-end: span 4; }
  .e-col-5  { grid-column-end: span 5; }
  .e-col-6  { grid-column-end: span 6; }
  .e-col-7  { grid-column-end: span 7; }
  .e-col-8  { grid-column-end: span 8; }
  .e-col-9  { grid-column-end: span 9; }
  .e-start-1 { grid-column-start: 1; }
  .e-start-5 { grid-column-start: 5; }
  .e-start-6 { grid-column-start: 6; }
  .e-start-7 { grid-column-start: 7; }
  .e-start-8 { grid-column-start: 8; }
  .e-start-9 { grid-column-start: 9; }
}

/* type: the live site's treatment. Headings in the Bold cut, ink, no added
   tracking; labels and running text in Light, normal case, no tracking. */
.e-label {
  font-size: .9375rem;   /* 15px */
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
}
.e-h2 {
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  color: var(--fg);
  text-wrap: balance;
}
body:not(.home) .e-h2 { font-size: 1.875rem; }   /* 30px, the live inner-page h2 */
.e-h3 {
  font-size: 1.375rem;   /* 22px at every width */
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  color: var(--fg);
}
.e-h4 {
  font-size: var(--t-h4);
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
}
.e-lede {
  font-size: var(--t-lede);
  font-weight: 300;
  line-height: 1.5;
}
.e-prose { max-width: 62ch; }
.e-prose p + p { margin-top: 1em; }
.e-muted { color: var(--fg-muted); }

/* underline that draws in from the left on hover */
.e-ul {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur) var(--ease-out);
}
a:hover .e-ul, .e-ul:hover, a:focus-visible .e-ul { background-size: 100% 1px; }

/* controls */
.e-btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .9em 1.6em;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-size: .9375rem;   /* 15px Light, as the live buttons */
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.e-btn svg { width: .9em; height: .9em; transition: transform var(--dur-fast); }
.e-btn:hover { background: var(--fg); color: var(--bg); }
.e-btn:hover svg { transform: translateX(3px); }
.e-btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.e-btn--solid:hover { background: transparent; color: var(--fg); }
.e-btn--light { background: var(--e-white); color: var(--e-ink); border-color: var(--e-white); }
.e-btn--light:hover { background: transparent; color: var(--e-white); }
.e-btn--ghost-light { color: var(--e-white); border-color: rgba(255, 255, 255, .6); }
.e-btn--ghost-light:hover { background: var(--e-white); color: var(--e-ink); border-color: var(--e-white); }

.e-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding-bottom: .25em;
  font-size: .9375rem;   /* 15px Light, as the live text links */
  font-weight: 300;
  letter-spacing: 0;
}
.e-link svg { width: .9em; height: .9em; transition: transform var(--dur-fast); }
.e-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.e-link:hover::after, .e-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.e-link:hover svg { transform: translateX(3px); }

.e-icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: inherit;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast);
}
.e-icon-btn svg { width: 1.1rem; height: 1.1rem; }
.e-icon-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.e-icon-btn:disabled { opacity: .3; pointer-events: none; }

/* media */
.e-media {
  position: relative;
  overflow: hidden;
  background: var(--e-stone);
}
.e-media > img, .e-media > video { width: 100%; height: 100%; object-fit: cover; }

.e-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* reveal on scroll (only when JS is present and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
/* printed pages show everything, without waiting for a transition */
@media print {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* 02 Header ---------------------------------------------------------------- */

.e-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--e-white);
  isolation: isolate;
  transition: color var(--dur), box-shadow var(--dur);
}
.e-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  opacity: 0;
  transition: opacity var(--dur);
}
.e-header[data-state="solid"] { color: var(--e-ink); box-shadow: 0 1px 0 rgba(14, 14, 14, .1); }
.e-header[data-state="solid"]::before { opacity: 1; }

.e-header__in {
  /* full viewport width, not the 100rem container: 40px edges from 62rem */
  width: 100%;
  padding-inline: var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
}

.e-logo { display: block; flex: 0 0 auto; }
/* The PNG's artwork fills 96.8% of its width, so each box is the live
   logo's visible width / .968: 142px on phones, 177px on tablets, 192.25px
   on desktop. The same width in both header states (over the hero, solid). */
.e-logo img { width: 146px; height: auto; transition: filter var(--dur); }
@media (min-width: 48rem) { .e-logo img { width: 183px; } }
@media (min-width: 75rem) { .e-logo img { width: 199px; } }
.e-header[data-state="over"] .e-logo img { filter: brightness(0) invert(1); }

.e-nav { display: none; }
.e-nav__item { position: relative; }
.e-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .5rem 0;
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.375;   /* 16/22, live */
  letter-spacing: 0;
}
.e-nav__link svg { width: .7em; height: .7em; opacity: .7; }
.e-nav__sub {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 13rem;
  padding: .75rem 0;
  background: var(--e-white);
  color: var(--e-ink);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-fast), transform var(--dur-fast), visibility var(--dur-fast);
}
.e-nav__item:hover .e-nav__sub, .e-nav__item:focus-within .e-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.e-nav__sub a {
  display: block;
  padding: .55rem 1rem;
  font-size: .8125rem;   /* 13/20 Light #282828, live dropdown */
  font-weight: 300;
  line-height: 1.5385;
  letter-spacing: 0;
  color: #282828;
}
.e-nav__sub a:hover { background: var(--e-greige); }

.e-header__actions { display: flex; align-items: center; gap: .625rem; }
.e-header .e-icon-btn { width: 2.5rem; height: 2.5rem; border-color: currentColor; }
/* WhatsApp beside the menu, the bare logo in the header's colour, as on live */
.e-header__wa { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: inherit; transition: opacity var(--dur-fast); }
.e-header__wa svg { width: 1.375rem; height: 1.375rem; } /* 22px, as on live */
.e-header__wa:hover { opacity: .6; }
@media (min-width: 62rem) { .e-header__actions { margin-left: .5rem; } } /* icon about 42px after Contact, as on live */

.e-burger {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  gap: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.e-burger span {
  grid-area: 1 / 1;
  display: block;
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  transition: transform .3s var(--ease-out);
}
.e-burger span:first-child { transform: translateY(-3px); }
.e-burger span:last-child { transform: translateY(3px); }
.e-burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.e-burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

@media (min-width: 62rem) {
  .e-header__in { padding-inline: 2.5rem; }
  .e-nav { display: flex; align-items: center; gap: 2.5rem; margin-left: auto; }
  .e-burger { display: none; }
}

/* mobile overlay */
.e-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: calc(var(--header-h) + 2rem) var(--edge) 2rem;
  background: var(--e-ink);
  color: var(--e-greige);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur), visibility var(--dur);
}
.e-mobile-nav[data-open="true"] { opacity: 1; visibility: visible; }
.e-mobile-nav__list { display: grid; gap: .25rem; }
.e-mobile-nav__list a {
  display: block;
  padding: .35rem 0;
  font-size: clamp(1.5rem, 6vw, 1.75rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.e-mobile-nav__list .is-sub a { font-size: 1.125rem; font-weight: 300; padding-left: 1.25rem; color: rgba(244, 240, 239, .7); }
.e-mobile-nav__foot { display: grid; gap: .5rem; font-size: var(--t-small); color: rgba(244, 240, 239, .7); }
.e-mobile-nav__foot a:hover { color: var(--e-greige); }

body:has(.e-burger[aria-expanded="true"]) { overflow: hidden; }
.e-header:has(.e-burger[aria-expanded="true"]) { color: var(--e-greige); box-shadow: none; }
.e-header:has(.e-burger[aria-expanded="true"])::before { opacity: 0; }
.e-header:has(.e-burger[aria-expanded="true"]) .e-logo img { filter: brightness(0) invert(1); }
