/*
Theme Name: Foxlight Designs
Theme URI: https://www.foxlightdesigns.com/
Author: Foxlight Designs
Author URI: https://www.foxlightdesigns.com/
Description: Custom theme for Foxlight Designs, a creative and digital studio. Ink and near-white, teal for actions, coral for small splashes, leaf corners. Pairs with the foxlight-content mu-plugin for the contact form and SEO panel.
Version: 0.3.9
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
License: Private
Text Domain: foxlight
*/

/******************************************************
*******************************************************
Contents
  1. Fonts
  2. Tokens
  3. Base
  4. Type
  5. Buttons, links and tags
  6. Header and navigation
  7. Home hero
  8. Page hero
  9. Sections and surfaces
  10. Home sections
  11. Process band
  12. Cards
  13. Got an idea panel
  14. Services page
  15. Contact page and form
  16. Prose (privacy, terms, any plain page)
  17. Footer
  18. Reduced motion

House style
  - Headings never end in a full stop, and never use italic highlights.
  - No eyebrow headings: no small label lines above headings.
  - Headings are never smaller than the text below them.
  - No arrows in buttons.
  - One big leaf corner per page (the hero). Sections stay square;
    buttons, cards, photos and fields get leaf corners.
*******************************************************
*******************************************************/

/******************************************************
1. Fonts
   Self-hosted (no requests to Google). Licences in /fonts.
   Inter: everything. Archivo 700: a few big moments.
   Ubuntu: the Foxlight Designs logo only.
*******************************************************/
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("fonts/ubuntu-300.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("fonts/ubuntu-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

/******************************************************
2. Tokens
*******************************************************/
:root {
  /* Colour */
  --ink: #0c0f12;
  --black: #000000;
  --paper: #f5f5f2;
  --white: #ffffff;
  --stone: #dcdcd7;          /* image placeholders */
  --teal: #32b7aa;           /* buttons and accents */
  --teal-edge: #18938a;      /* 1px button border on light backgrounds */
  --teal-line: #1f9d91;      /* link underlines on light backgrounds */
  --coral: #ec6874;          /* small splashes only: New tags, the map X */
  --grey: #4a4f54;           /* body text on light, 7.9:1 on paper */
  --grey-light: #c3c8cc;     /* body text on ink */
  --grey-footer: #b4b9be;

  /* Context colours. Surfaces swap these, components read them. */
  --bg: var(--paper);
  --text: var(--ink);
  --muted: var(--grey);
  --card: var(--white);
  --btn-edge: var(--teal-edge);
  --link-line: var(--teal-line);
  --focus: var(--ink);
  --field-border: #8a9096;   /* 3:1 on white */

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-logo: "Ubuntu", "Inter", system-ui, sans-serif;
  --text-base: 1rem;                                          /* 16 > 17 */
  --text-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);     /* 17 > 19 */
  --text-heading: clamp(1rem, 0.85rem + 0.55vw, 1.3125rem);   /* 16 > 21 */
  --track-heading: 0.2em;                                     /* 0.3em from md */

  /* Leaf corners: top-left and bottom-right */
  --leaf-hero: clamp(72px, 11vw, 160px);
  --leaf-panel: clamp(48px, 6vw, 72px);
  --leaf-card: 40px;
  --leaf-btn: 24px;
  --leaf-btn-sm: 18px;
  --leaf-field: 16px;
  --leaf-tag: 10px;

  /* Layout (used by utilities.css) */
  --gutter: 24px;
  --inner-max: 1152px;
  --inner-narrow-max: 760px;
  --grid-gap: 16px;
  --section-y: 80px;
  --header-h: 88px;
}

@media (min-width: 768px) {
  :root {
    --text-base: 1.0625rem;
    --track-heading: 0.3em;
    --gutter: 40px;
    --grid-gap: 32px;
    --section-y: 104px;
  }
}
@media (min-width: 992px) {
  :root {
    --gutter: 64px;
    --section-y: 128px;
  }
}

/******************************************************
3. Base
*******************************************************/
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-feature-settings: "calt", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

a { color: inherit; }

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

[id] { scroll-margin-top: 24px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: var(--leaf-field) 0 var(--leaf-field) 0;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

main:focus { outline: none; }

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

/******************************************************
4. Type
   display-*  Archivo 700 in capitals, tight. Big moments only.
   heading    Inter 500 in capitals, wide tracking. Section headings.
   title      Inter 700 in capitals. Card and list titles.
*******************************************************/
.display,
.display-xl,
.display-lg,
.display-hi {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.5rem, 1.1rem + 5.4vw, 5rem); }          /* 40 > 80 */
.display-lg { font-size: clamp(2.375rem, 1.3rem + 4vw, 4.25rem); }       /* 38 > 68 */
.display-hi { font-size: clamp(6rem, 3.6rem + 9vw, 10rem); line-height: 0.8; } /* 96 > 160 */

.heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-heading);
  line-height: 1.5;
  letter-spacing: var(--track-heading);
  text-transform: uppercase;
}

.title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--muted);
}

.text-muted { color: var(--muted); }
.text-strong { color: var(--text); font-weight: 600; }
.measure { max-width: 36rem; }
.measure-wide { max-width: 40rem; }

/* Stack: even vertical rhythm between children */
.stack > * + * { margin-top: 1.25rem; }
.stack-sm > * + * { margin-top: 0.75rem; }

/******************************************************
5. Buttons, links and tags
   Teal buttons everywhere. On light backgrounds they get a 1px deeper teal
   border (--btn-edge); dark surfaces set the border to plain teal.
*******************************************************/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid var(--btn-edge);
  border-radius: var(--leaf-btn) 0 var(--leaf-btn) 0;
  background: var(--teal);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-radius 0.25s ease;
}
.btn:hover { background: #45c4b7; border-radius: 0 var(--leaf-btn) 0 var(--leaf-btn); }
.btn:active { background: #2aa699; }

.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--leaf-btn-sm) 0 var(--leaf-btn-sm) 0;
  font-size: 0.8125rem;
}
.btn-sm:hover { border-radius: 0 var(--leaf-btn-sm) 0 var(--leaf-btn-sm); }

/* Outline button, for the Menu toggle on dark */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid currentColor;
  border-radius: var(--leaf-field) 0 var(--leaf-field) 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Text link with a teal underline */
.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-underline-offset 0.2s ease;
}
.link:hover { text-underline-offset: 9px; }

/* Coral "New" tag */
.tag-new {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--leaf-tag) 0 var(--leaf-tag) 0;
  background: var(--coral);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/******************************************************
6. Header and navigation
   The header sits over the top of every hero (photo or ink).
*******************************************************/
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: var(--white);
  --focus: var(--teal);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

/* Brand: fox mark + Ubuntu wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.brand .logo-mark { width: 30px; height: auto; flex: none; }
.brand-word {
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Desktop nav */
.site-nav .menu {
  display: flex;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav .menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.site-nav .menu a:hover,
.site-nav .current-menu-item > a,
.site-nav .menu a[aria-current="page"] { text-decoration-line: underline; }

@media (min-width: 992px) {
  /* Home: the big logo is in the hero, so the menu sits centred on its own */
  .brand-home { display: none; }
  .home .header-bar,
  .header-bar-home { justify-content: center; }
}
.nav-toggle,
.nav-panel-extra { display: none; }

/* Phones and tablets: Menu button opens a full-height ink panel.
   Without JavaScript the links simply sit under the header. */
@media (max-width: 991.98px) {
  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--ink);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }
  .js.nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease;
  }
  .js .site-nav .menu { flex-direction: column; gap: 4px; }
  .js .site-nav .menu a { font-size: 1.125rem; letter-spacing: 0.2em; min-height: 56px; }
  .js .nav-panel-extra {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
  }
  .nav-panel-extra .nav-email { color: var(--grey-light); font-size: 0.9375rem; text-underline-offset: 4px; text-decoration-color: var(--teal); }

  .js .nav-toggle { position: relative; z-index: 40; }
  .js .brand { position: relative; z-index: 40; }

  /* No JavaScript: show the links in a row below the bar */
  .no-js .site-nav .menu { flex-wrap: wrap; gap: 0 24px; }
  .no-js .header-bar { flex-wrap: wrap; height: auto; padding: 16px 0; }
}

.nav-open { overflow: hidden; }

/******************************************************
7. Home hero
   The photo is a real <img> (fast, responsive, picked by date in
   Appearance > Seasonal hero) with an ink wash on top for contrast.
*******************************************************/
.hero-home {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--header-h) var(--gutter) clamp(88px, 9vw, 120px);
  border-radius: 0 0 var(--leaf-hero) 0;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  --muted: #eef0f1;
  --btn-edge: var(--teal);
  --focus: var(--teal);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img,
.hero-media picture {
  width: 100%;
  height: 100%;
}
.hero-media img { object-fit: cover; }
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 15, 18, 0.6) 0%, rgba(12, 15, 18, 0.5) 45%, rgba(12, 15, 18, 0.78) 100%);
}

.hero-logo { margin-top: clamp(40px, 5vw, 64px); }
.hero-logo .logo-mark { width: clamp(150px, 15vw, 220px); margin: 0 auto; }
.logo-word {
  margin-top: clamp(20px, 2.2vw, 28px);
  padding-left: 0.34em;
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: clamp(1.625rem, 1rem + 2vw, 2.625rem);
  line-height: 1;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.logo-sub {
  margin-top: clamp(10px, 1vw, 14px);
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.6rem + 1.1vw, 1.4375rem);
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-home h1 { margin-top: clamp(56px, 6.5vw, 88px); }
.hero-home .lead { max-width: 580px; margin-top: 24px; }
.hero-home .btn { margin-top: 32px; }

/******************************************************
8. Page hero (inner pages)
   Solid ink with the page's one big leaf corner.
*******************************************************/
.page-hero {
  padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(72px, 8vw, 120px);
  border-radius: 0 0 var(--leaf-hero) 0;
  background: var(--ink);
  color: var(--white);
  --text: var(--white);
  --muted: #eef0f1;
  --btn-edge: var(--teal);
  --link-line: var(--teal);
  --focus: var(--teal);
}
.page-hero h1 { max-width: 14ch; }
.page-hero .lead { max-width: 40rem; margin-top: 24px; }

/******************************************************
9. Sections and surfaces
*******************************************************/
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section + .section-flush,
.section-flush { padding-top: 0; }

.surface-white {
  background: var(--white);
  --card: var(--paper);
}
.surface-ink {
  background: var(--ink);
  color: var(--white);
  --text: var(--white);
  --muted: var(--grey-light);
  --card: #171c21;
  --btn-edge: var(--teal);
  --link-line: var(--teal);
  --focus: var(--teal);
}

.section-head { margin-bottom: clamp(36px, 4vw, 56px); }

/******************************************************
10. Home sections
*******************************************************/
.intro-text { max-width: 640px; margin: 20px auto 0; }

/* Service tiles */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 32px 28px;
  border-radius: var(--leaf-card) 0 var(--leaf-card) 0;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  --muted: var(--grey);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(12, 15, 18, 0.35); }
.tile-dark { background: var(--ink); color: var(--white); --muted: var(--grey-light); --focus: var(--teal); }
.tile .icon { width: 36px; height: 36px; }
.tile .tag-new { position: absolute; top: 30px; right: 28px; }
.tile .title { margin-top: 10px; }
.tile p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
@media (min-width: 992px) { .tile { min-height: 280px; } }

/* Photo with leaf corners */
.photo {
  overflow: hidden;
  border-radius: var(--leaf-panel) 0 var(--leaf-panel) 0;
  background: var(--stone);
}
.photo picture { height: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-crafted { aspect-ratio: 520 / 440; }

/* Ireland map with the coral X
   The outline fades into the coloured map over the sea when it scrolls into
   view. Both images share the same size and position, so the X stays put. */
.map { position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
.map img { width: 100%; height: auto; }
.map picture + picture { position: absolute; inset: 0; }
.map-colour {
  height: 100% !important;
  object-fit: cover;
  border-radius: var(--leaf-panel) 0 var(--leaf-panel) 0;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.map.is-coloured .map-colour { opacity: 1; }

/* Section mode: green land only, and the whole section becomes the ocean */
.map-land .map-colour { border-radius: 0; object-fit: contain; }
.map-land .map-outline { transition: opacity 1.8s ease; }
.map-land.is-coloured .map-outline { opacity: 0; }

.map-section { position: relative; isolation: isolate; overflow: hidden; }
.map-section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.map-section-bg picture,
.map-section-bg img { width: 100%; height: 100%; object-fit: cover; }
.map-section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 18, 0.4);
}
.map-section,
.map-section .text-muted,
.map-section .lead,
.map-section .link { transition: color 1.4s ease, text-decoration-color 1.4s ease; }
.map-section.is-coloured {
  color: var(--white);
  --text: var(--white);
  --muted: #dfe3e6;
  --link-line: var(--teal);
  --focus: var(--teal);
}
.map-section.is-coloured .map-section-bg { opacity: 1; }

/******************************************************
11. Process band ("Works like it should")
*******************************************************/
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--teal);
}
.step h3 { margin-top: 16px; font-size: 0.9375rem; letter-spacing: 0.2em; }
.step p { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }

/* Fine-line drawings as section backgrounds (img/fox.webp, img/harp.webp)
   They sit behind the content with the section's own colour underneath.
   Tweak strength with --drawing-opacity on each. */
.has-drawing-bg { position: relative; isolation: isolate; overflow: hidden; }
.drawing-bg {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: var(--drawing-opacity, 0.25);
}
.drawing-bg img { width: 100%; height: 100%; object-fit: contain; }

/* Fox: landscape, large across the lower right of the black band */
.drawing-bg-fox {
  top: 50%;
  right: -2%;
  height: 112%;
  aspect-ratio: 3 / 2;
  transform: translateY(-50%);
  --drawing-opacity: 0.22;
}

/* Harp: portrait, tall on the right of the Got an idea panel */
.drawing-bg-harp {
  top: 50%;
  right: 6%;
  height: 118%;
  aspect-ratio: 2 / 3;
  transform: translateY(-50%);
  --drawing-opacity: 0.35;
}

@media (max-width: 767.98px) {
  .drawing-bg-fox { top: auto; bottom: -4%; right: -30%; height: auto; width: 110%; transform: none; }
  .drawing-bg-harp { height: 90%; right: -18%; }
}

/* Editors only, until the file is added */
.drawing-bg.is-empty-editor {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1.5px dashed currentColor;
  font-size: 0.75rem;
  text-align: center;
  --drawing-opacity: 0.6;
}

/******************************************************
12. Cards
*******************************************************/
.card {
  height: 100%;
  padding: 32px 28px;
  border-radius: var(--leaf-card) 0 var(--leaf-card) 0;
  background: var(--card);
}
.card .title { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.9375rem; }

/******************************************************
13. Got an idea panel
*******************************************************/
.cta-panel {
  display: grid;
  gap: 36px;
  align-items: center;
  padding: 48px 28px;
  border-radius: var(--leaf-panel) 0 var(--leaf-panel) 0;
  background: var(--white);
  color: var(--ink);
}
.cta-panel .lead { max-width: 460px; margin-top: 20px; }
.cta-panel .btn { margin-top: 28px; }
@media (min-width: 768px) {
  .cta-panel { grid-template-columns: 1fr auto; padding: 72px 56px; gap: 56px; }
}
@media (min-width: 992px) {
  .cta-panel { padding: 88px 72px; gap: 80px; }
}

/******************************************************
14. Services page
*******************************************************/
.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #c9cdd1;
  border-radius: var(--leaf-field) 0 var(--leaf-field) 0;
  background: var(--white);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.jump-links a:hover { border-color: var(--teal-edge); }

.service-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.service .icon { width: 44px; height: 44px; margin-bottom: 24px; }
.service h2 { font-size: var(--text-heading); }

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-top: 1px solid rgba(127, 135, 142, 0.25);
  font-size: 0.9375rem;
}
.checklist li:first-child { border-top: 0; padding-top: 0; }
.checklist li:first-child::before { top: 3px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6 0H18V12A6 6 0 0 1 12 18H0V6A6 6 0 0 1 6 0Z' fill='%2332b7aa'/%3E%3Cpath d='M4.8 9.4l2.8 2.8 5.6-6.4' fill='none' stroke='%230c0f12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/******************************************************
15. Contact page and form
    White form panel and ink info panel, side by side and the same height.
    WPForms is styled here: set WPForms > Settings > General >
    "Include Form Styling" to "Base styling only".
*******************************************************/
.contact-layout { align-items: stretch; }

.form-panel {
  height: 100%;
  padding: 32px 24px;
  border-radius: var(--leaf-panel) 0 var(--leaf-panel) 0;
  background: var(--white);
}

.contact-aside {
  height: 100%;
  padding: 32px 24px;
  border-radius: var(--leaf-panel) 0 var(--leaf-panel) 0;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9375rem;
  --text: var(--white);
  --muted: var(--grey-light);
  --btn-edge: var(--teal);
  --link-line: var(--teal);
  --focus: var(--teal);
}
.contact-aside .block + .block { margin-top: 36px; }
.contact-aside p { color: var(--grey-light); }
.contact-aside .link { min-height: 0; color: var(--white); }
.contact-aside .map { max-width: 240px; margin: 24px 0 0; }
/* The black outline would vanish on ink, so this map shows coloured straight away */
.contact-aside .map-colour { opacity: 1; transition: none; }
.contact-aside .map-outline { visibility: hidden; }
@media (min-width: 768px) {
  .form-panel,
  .contact-aside { padding: 48px 44px; }
}

.steps-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.steps-list li {
  position: relative;
  padding-left: 44px;
  counter-increment: steps;
  color: var(--muted);
  font-size: 0.9375rem;
}
.steps-list li + li { margin-top: 16px; }
.steps-list li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--teal);
}
.form-panel .steps-list li::before { color: var(--teal-edge); }

/* WPForms, in the theme's style */
.form-panel .wpforms-container { margin: 0; }
.form-panel .wpforms-field { padding: 0 0 22px; }
.form-panel .wpforms-field-label,
.form-panel .wpforms-field-sublabel {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}
.form-panel .wpforms-field-sublabel { margin: 6px 0 0; color: var(--grey); font-size: 0.8125rem; font-weight: 400; }
.form-panel .wpforms-required-label { color: var(--grey); font-weight: 400; }
.form-panel .wpforms-field-description { margin-top: 6px; color: var(--grey); font-size: 0.875rem; }
.form-panel .wpforms-form input[type="text"],
.form-panel .wpforms-form input[type="email"],
.form-panel .wpforms-form input[type="tel"],
.form-panel .wpforms-form input[type="url"],
.form-panel .wpforms-form input[type="number"],
.form-panel .wpforms-form select,
.form-panel .wpforms-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  height: auto;
  padding: 12px 16px;
  border: 1px solid var(--field-border);
  border-radius: var(--leaf-field) 0 var(--leaf-field) 0;
  background-color: var(--white);
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.form-panel .wpforms-form textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.form-panel .wpforms-form select {
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230c0f12' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}
.form-panel .wpforms-form input:focus,
.form-panel .wpforms-form select:focus,
.form-panel .wpforms-form textarea:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--ink); }
.form-panel .wpforms-form .wpforms-field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form-panel .wpforms-form .wpforms-field-row-block { flex: 1 1 200px; padding: 0; }
.form-panel .wpforms-form input[type="checkbox"],
.form-panel .wpforms-form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--teal-edge); }
.form-panel .wpforms-form .wpforms-field-checkbox li,
.form-panel .wpforms-form .wpforms-field-radio li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.form-panel .wpforms-form .wpforms-field-checkbox ul,
.form-panel .wpforms-form .wpforms-field-radio ul { margin: 0; padding: 0; list-style: none; }

.form-panel .wpforms-form label.wpforms-error,
.form-panel .wpforms-form em.wpforms-error { display: block; margin-top: 8px; color: #b3261e; font-size: 0.9375rem; font-style: normal; font-weight: 600; }
.form-panel .wpforms-form input.wpforms-error,
.form-panel .wpforms-form textarea.wpforms-error,
.form-panel .wpforms-form select.wpforms-error { border: 2px solid #b3261e; }

.form-panel .wpforms-submit-container { padding: 8px 0 0; }
.form-panel .wpforms-form button[type="submit"],
.form-panel .wpforms-form .wpforms-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid var(--teal-edge);
  border-radius: var(--leaf-btn) 0 var(--leaf-btn) 0;
  background: var(--teal);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-radius 0.25s ease;
}
.form-panel .wpforms-form .wpforms-submit:hover { background: #45c4b7; border-radius: 0 var(--leaf-btn) 0 var(--leaf-btn); }

.form-panel .wpforms-confirmation-container-full,
.form-panel div[submit-success] > .wpforms-confirmation-container-full {
  margin: 0;
  padding: 20px 24px;
  border: 1px solid var(--teal-edge);
  border-radius: var(--leaf-field) 0 var(--leaf-field) 0;
  background: #e3f4f1;
  color: var(--ink);
}
.form-panel .wpforms-confirmation-container-full p { margin: 0; }

/******************************************************
16. Prose (privacy, terms, any plain page)
*******************************************************/
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);  /* never smaller than the text below */
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.prose h3 { margin-top: 2em; font-size: 1.125rem; font-weight: 700; }
.prose h2 + *,
.prose h3 + * { margin-top: 0.75em; }
.prose > :first-child { margin-top: 0; }
.prose p,
.prose li { color: var(--grey); }
.prose strong { color: var(--ink); }
.prose ul,
.prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--teal-edge); }
.prose a {
  color: var(--ink);
  text-decoration-color: var(--teal-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.prose blockquote {
  padding: 24px 28px;
  border-radius: var(--leaf-field) 0 var(--leaf-field) 0;
  background: var(--white);
}
.prose img { border-radius: var(--leaf-card) 0 var(--leaf-card) 0; }

/* Simple post list (index.php) */
.post-list { margin: 0; padding: 0; list-style: none; }
.post-list li + li { margin-top: 32px; }
.post-list h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; text-decoration-color: var(--teal-line); text-underline-offset: 4px; }

/******************************************************
17. Footer
*******************************************************/
.site-footer {
  padding: 72px 0 40px;
  background: var(--black);
  color: var(--white);
  text-align: center;
  --focus: var(--teal);
}
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.footer-brand .logo-mark { width: 64px; }
.footer-brand .logo-word { margin-top: 8px; font-size: 1.375rem; }
.footer-brand .logo-sub { margin-top: 0; font-size: 0.75rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 8px; }

.footer-areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 24px;
  margin-top: 4px;
  font-size: 0.875rem;
}
.footer-areas a { display: inline-flex; align-items: center; min-height: 44px; color: var(--grey-footer); text-underline-offset: 4px; text-decoration-color: var(--teal); }
.footer-areas a:hover { color: var(--white); }

.footer-email { margin-top: 12px; }
.footer-email a { color: var(--white); text-decoration-color: var(--teal); text-underline-offset: 4px; }

.footer-small {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin-top: 20px;
  color: var(--grey-footer);
  font-size: 0.8125rem;
}
.footer-small a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-underline-offset: 3px; }
.footer-small p { display: inline-flex; align-items: center; min-height: 44px; }

/******************************************************
18. Reduced motion
*******************************************************/
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .tile:hover { transform: none; }
}
