/* Overdue North — Homepage Styles */
/*@import "blog.css";*/
/* ── Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Manrope:wght@300;400;500;600;700&display=swap');
@font-face{
  font-family: "Trajan Pro";
  url("/templates/tpl_overduenorth/fonts/Trajan-Pro.woff")format("woff"),
  url("/templates/tpl_overduenorth/fonts/Trajan-Pro.woff2")format("woff2"),
  font-weight:normal;
  font-style:normal;
  font-display:swap;
}
/* ── Custom Properties ─────────────────────────────────────────── */
:root {
  --ink: #0C223B;
  --ink-2: #1d3450;
  --ink-soft: #4a5a72;
  --ink-mute: #7a869a;
  --em-blue:#355c88;

  --bg: #0C223B;
  --bg-2: #14304f;
  --paper: #0a1d34;
  --line: rgba(242,233,210,.16);
  --line-2: rgba(242,233,210,.08);

  --peach: #E8A87C;
  --terracotta: #E8A87C;
  --yellow: #FFE07A;
  --yellow-ink: #0C223B;
  --yellow-shadow: rgba(196,156,40,.35);

  --serif: "Trajan Pro", serif;
  --sans: "Manrope", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 34px);
  --maxw: 1400px;

  /* Dark theme overrides */
  --ink: #F2E9D2;
  --ink-2: #E6DBBE;
  --ink-soft: #b9c4d4;
  --ink-mute: #8294ad;

  color-scheme: dark;
  --nav-margin-left: 272px;
}
body, html {
  background: var(--bg) !important;
}
@view-transition {
  navigation: auto;
}

/* Lift the topbar and footer out of the root snapshot so they don't slide
   with the page. Naming them gives each its own transition group; disabling
   that group's animation freezes them in place during the page transition. */
.topbar { view-transition-name: site-header; }
.foot   { view-transition-name: site-footer; }

::view-transition-group(site-header),
::view-transition-group(site-footer) {
  animation: none !important;
}

/* Create a custom animation */
@keyframes fade-out {
  from {
    opacity:1;
  }

  to {
    opacity:0;
  }
}

@keyframes fade-in {
  from {
    opacity:0;
  }

  to {
    opacity:1;
  }
}

/* Apply the custom animation to the old and new page states */
::view-transition-old(root) {
  animation: 0.4s ease-in both fade-out;
}

::view-transition-new(root) {
  animation: 0.4s ease-in both fade-in;
}
/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Smooth-scroll menu anchor links (homepage only) and offset targets so
   section headings clear the sticky 70px topbar instead of hiding under it. */
html:has(body.homepage) { scroll-behavior: smooth; }
body.homepage main [id],
body.homepage main#top { scroll-margin-top: 20px; }
@media (prefers-reduced-motion: reduce) {
  html:has(body.homepage) { scroll-behavior: auto; }
}
body {
  background: var(--bg) !important;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "kern";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.mod-menu.mod-list.nav {
  list-style:none;
}
  /* Kill Cassiopeia defaults — homepage only, so inner pages keep Joomla's grid */
.homepage .site-grid, .homepage .container-component, .homepage .grid-child { all: unset; display: block; }
.homepage .container-header, .homepage header.header { all: unset; display: block; }
.homepage .container-banner, .homepage .container-footer { all: unset; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Topbar ────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.topbar-inner {
  display: flex; align-items: center; gap: 24px;
  height: 70px;
}

.brand {
  display: grid;
  align-items: center;
  justify-items: center;
  flex: 0 0 auto;
  position: absolute;
  top: 20px;
  width: 220px;
  font-family: "Trajan Pro", serif;
  row-gap: 12px;

  &::before {
    border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(255,224,122,.18), transparent 70%);
  }
  .brand-mark {
    display: grid;
    align-items: start;
    justify-items: center;
    will-change: transform;
  }
}
.brand-mark img {
  object-fit: contain;
  width:80%;
}
.brand-name {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: .01em;
  line-height: 1;
}
.brand-name em { font-style: italic; color: var(--terracotta); font-weight: 500; }
nav {
  margin-left:var(--nav-margin-left);
}
footer.foot {
  .brand {
    display: grid;
    align-items: center;
    justify-items: center;
    flex: 0 0 auto;
    position:relative;
    width: 220px;
    font-family: "Trajan Pro", serif;
    row-gap: 12px;
  }
}
.nav {
  display: flex;
  gap: 28px;
  margin-left: 0px;
  flex-direction:row;
  padding-left:0;
}
.nav a {
  font-size: 14px; color: var(--ink-soft);
  letter-spacing: .02em;
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.topbar-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.topbar-meta { font-size: 12.5px; color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; }
footer {
  position:relative;
}
/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .005em;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .15s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: 0 1px 0 rgba(12,34,59,.06), 0 10px 24px -10px var(--yellow-shadow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(12,34,59,.06), 0 14px 30px -10px var(--yellow-shadow); }

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

.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

/* ── Section primitives ────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 88px) 0; }
.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6;
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.012em;
  font-size: clamp(48px, 7.2vw, 92px);
  color: var(--ink);
  margin: 0;
}
.display em { font-style: italic; color: var(--terracotta); font-weight: 500; }
h2.heading, .heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0;
}
h2.heading em, .heading em { font-style: italic; color: var(--terracotta); font-weight: 500; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); max-width: 56ch; line-height: 1.55; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 7vw, 110px) 0 clamp(40px, 6vw, 90px); position: relative; overflow: hidden; }
.hero-grid {

  .mod-custom {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
  }
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  margin-bottom: 28px;
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px color-mix(in oklab, var(--terracotta) 18%, transparent); }

.hero .display { margin-bottom: 24px; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-text .hero-meta-row {
  display: flex; align-items: center; gap: 18px; margin-top: 34px;
  font-size: 13px; color: var(--ink-mute); letter-spacing: .04em;
}
.hero-meta-row .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

.hero-art { position: relative; }
.hero-compass {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 1;
  max-width: 560px; margin: 0 auto;
}
.hero-compass::before {
  content: ""; position: absolute; inset: -8%;
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--peach) 28%, transparent), transparent 62%);
  filter: blur(6px);
  z-index: 0;
}
.hero-compass svg {
  position: relative; z-index: 1;
  width: 84%;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)) brightness(1.05);
}
.hero-compass img {
  position: relative; z-index: 1;
  width: 84%;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)) brightness(1.05);
}
.hero-cardinals { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-cardinals span {
  position: absolute; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-soft);
}
.hero-cardinals .n { top: 0; left: 50%; transform: translate(-50%, -10px); color: var(--terracotta); font-weight: 600; }
.hero-cardinals .e { right: 0; top: 50%; transform: translate(10px, -50%); }
.hero-cardinals .s { bottom: 0; left: 50%; transform: translate(-50%, 10px); }
.hero-cardinals .w { left: 0; top: 50%; transform: translate(-10px, -50%); }

/* ── Promise strip ─────────────────────────────────────────────── */
.strip {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 22px 0;
  background: var(--paper);
}
.strip-inner {
  display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: center; justify-content: space-between;
  font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.strip-inner span em { font-style: italic; text-transform: none; letter-spacing: 0; color: var(--terracotta); font-family: var(--serif); font-size: 17px; margin-right: 4px; }

/* ── About / manifesto ─────────────────────────────────────────── */
.about { background: var(--bg-2); }
.about-grid {

  .mod-custom {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(40px, 7vw, 100px);
    align-items: flex-start;
  }
}
.about-side { position: sticky; top: 110px; }
.about-side .eyebrow { margin-bottom: 18px; }
.about-side .heading { margin-bottom: 24px; }
.about-rule {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 14px;
  color: var(--ink-soft);
}
.about-rule b { color: var(--ink); font-weight: 600; }

.manifesto {
  font-family: var(--serif);
  font-size: clamp(22px, 1.95vw, 30px);
  line-height: 1.42;
  color: var(--ink);
}
.manifesto p { margin: 0 0 1.1em; }
.manifesto p:last-child { margin-bottom: 0; }
.manifesto .lead {
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1.28;
  letter-spacing: -.005em;
  margin-bottom: 1.1em;
}
.manifesto .lead em { color: var(--terracotta); }
.manifesto .pull {
  border-left: 2px solid var(--terracotta);
  padding-left: 22px;
  margin: 1.4em 0;
  font-style: italic;
  font-size: clamp(24px, 2.1vw, 32px);
  color: var(--ink-2);
}
.manifesto .sig {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 28px;
}

/* ── Treat (services) ──────────────────────────────────────────── */
.treat-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  margin-bottom: 56px;
}
.treat-head .lede { margin: 0; }

.treat-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.treat-row {
  display: grid;
  grid-template-columns: 80px 1.5fr 2fr auto;
  gap: 32px;
  padding: 30px 0;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
  cursor: default;
}
.treat-row:hover { background: color-mix(in oklab, var(--paper) 60%, transparent); }
.treat-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--terracotta);
}
.treat-name {
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 38px);
  letter-spacing: -.005em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
}
.treat-desc { color: var(--ink-soft); font-size: 15.5px; max-width: 60ch; }
.treat-tag {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
}

/* ── Principles ────────────────────────────────────────────────── */
.principles { background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.principles .eyebrow { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.principles .heading { color: var(--bg); }
.principles .heading em { color: var(--em-blue); }
.principles .lede { color: color-mix(in oklab, var(--bg) 80%, transparent); }
.principles-head { max-width: 70ch; margin-bottom: 64px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
}
.pillar {
  background: var(--ink);
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 320px;
}
.pillar-num {
  font-family: var(--serif); font-style: italic; font-size: 12px;
  color: var(--yellow);
  letter-spacing: .04em;
  width:30px;
  height:30px;
  border-radius:100vh;
  background:var(--bg);
  display:grid;
  place-content:center;
}
.pillar-title {
  font-family: var(--serif);
  font-size: 28px; line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.005em;
  margin: 0;
}
.pillar-body { font-size: 15px; color: color-mix(in oklab, var(--bg) 78%, transparent); line-height: 1.55; }
.pillar:hover { background: var(--ink-2); }

.principles-bg {
  position: absolute; right: -10%; top: 50%; transform: translateY(-50%);
  width: 600px; opacity: .06; pointer-events: none;
}

/* ── How it works ──────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 80px;
  margin-top: 48px;
}
.step { position: relative; }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step-title {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.08;
  margin: 0 0 14px;
  font-weight: 500;
}
.step-body { color: var(--ink-soft); font-size: 16px; max-width: 50ch; }
.step .step-rule {
  display: block; width: 56px; height: 1px; background: var(--line);
  margin-bottom: 18px;
}

/* ── FAQ ───────────────────────────────────────────────────────── */
.section-faq { background: var(--bg-2); }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(40px, 7vw, 96px); align-items: flex-start; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none; padding: 28px 0;
  display: flex; gap: 24px; align-items: flex-start; justify-content: space-between;
  color: var(--ink);
}
.faq-q-text {
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 26px);
  line-height: 1.18;
  letter-spacing: -.005em;
  text-align: left;
}
.faq-q .plus {
  flex: 0 0 auto; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  position: relative; transition: background .15s, transform .25s ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: currentColor;
}
.faq-q .plus::before { width: 12px; height: 1.5px; }
.faq-q .plus::after  { width: 1.5px; height: 12px; transition: transform .25s ease; }
.faq-item[data-open="true"] .plus { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
.faq-item[data-open="true"] .plus::after { transform: scaleY(0); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .25s ease;
  color: var(--ink-soft);
  font-size: 16px; line-height: 1.6;
  max-width: 64ch;
}
.faq-item[data-open="true"] .faq-a { max-height: 360px; padding-bottom: 28px; }

/* ── Contact / Inquire ─────────────────────────────────────────── */
.inquire { background: var(--bg-2); }
.inquire .wrap {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  padding:0;
  max-width: var(--maxw);
  .contact-right-side {
    .mod-custom {
      display:grid;
      height:100%;
    }
  }
}
.inquire-l { padding: clamp(40px, 4.5vw, 64px); }
.inquire-r {
  position: relative; padding: clamp(40px, 4.5vw, 64px);
  background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 32px;
}
.inquire-r .heading { color: var(--bg); }
.inquire-r .heading em { color: var(--yellow); }
/* Reassign colors inside dark-on-light inquire right panel */
.inquire-r { --bg: #F2E9D2; --ink: #0C223B; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-family: var(--sans);
  font-size: 15.5px; letter-spacing: 0; text-transform: none;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-bottom-color: var(--terracotta);
}
.field textarea { min-height: 90px; resize: vertical; }
.contact-meta {
  display: flex; flex-direction: column; gap: 20px;
}
.contact-line {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14.5px;
}
.contact-line .k { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: color-mix(in oklab, var(--bg) 60%, transparent); }
.contact-line .v { color: var(--bg); font-family: var(--serif); font-size: 22px; line-height: 1.2; }

/* Fix inquire-r colors — it's a dark panel inside the dark theme */
.inquire-r {
  --bg: #F2E9D2;
  background: #F2E9D2;
  color: #0C223B;
}
.inquire-r .heading { color: #0C223B; }
.inquire-r .heading em { color: var(--em-blue); }
.inquire-r .eyebrow { color: #7a869a; }
.inquire-r .contact-line .k { color: #7a869a; }
.inquire-r .contact-line .v { color: #0C223B; }
.inquire-r .in-crisis { font-size: 13px; letter-spacing: .05em; line-height: 1.5; color: var(--em-blue); }

/* ── Contact / Inquire — ConvertForms integration ──────────────────
   The left cell is a ConvertForms form (.convertforms markup), not the
   static .inquire-l/.field markup. These rules restyle CF's .cf-* output
   to match the reference #inquire form. Scoped under `.inquire .convertforms`
   (≥ 0,3,0 specificity) so they win over com_convertforms.css base rules. */

/* Left cell padding — stands in for .inquire-l */
.inquire .wrap > .convertforms { padding: clamp(40px, 4.5vw, 64px); }
.inquire .convertforms .cf-form-wrap { background: transparent !important; padding: 0; }

/* CF defaults the whole form to --font: Arial; restore the site sans so
   labels, the intro eyebrow/lede and the button inherit Manrope. The
   heading keeps its own --serif, inputs set --sans explicitly below. */
.inquire .convertforms { font-family: var(--sans); }

/* Field gutters: 14px between fields (matches reference .form-row gap) */
.inquire .convertforms .cf-fields { margin: -7px; }
.inquire .convertforms .cf-control-group { padding: 7px; }

/* Intro block (eyebrow / heading / lede) */
.inquire .convertforms .contact-intro p { margin: 0; }
.inquire .convertforms .contact-intro .heading { margin: 18px 0 0; color:var(--ink);}
.inquire .convertforms .contact-intro .lede { margin: 18px 0 8px; }

/* Labels: small uppercase, soft — mirrors reference .field (sans, 400) */
.inquire .convertforms .cf-control-label { margin-bottom: 6px; }
.inquire .convertforms .cf-label {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 400; line-height: 1.3; margin-bottom: 0;
}
.inquire .convertforms .cf-required-label { color: var(--terracotta); }

/* Inputs: minimalist underline on transparent */
.inquire .convertforms .cf-input,
.inquire .convertforms .cf-select select {
  font-family: var(--sans);
  font-size: 15.5px; letter-spacing: 0; text-transform: none;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  transition: border-color .15s ease;
}
.inquire .convertforms .cf-input:focus,
.inquire .convertforms .cf-input:invalid:focus,
.inquire .convertforms .cf-select select:focus {
  outline: none; box-shadow: none; border-bottom-color: var(--terracotta);
}
.inquire .convertforms .cf-input::placeholder { color: var(--ink-mute); }
.inquire .convertforms textarea.cf-input { min-height: 90px; resize: vertical; }

/* Select: transparent, with a visible cream chevron */
.inquire .convertforms .cf-select { background: transparent; }
.inquire .convertforms .cf-select select { cursor: pointer; }
.inquire .convertforms .cf-select option { color: #0C223B; background: #F2E9D2; }
.inquire .convertforms .cf-select::after {
  display: block;
  border-color: var(--ink-soft) transparent transparent transparent;
}

/* Submit → pill button, like .btn.btn-primary.btn-lg */
.inquire .convertforms .cf-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--yellow-ink);
  border: 1px solid transparent; border-radius: 999px;
  padding: 18px 28px; font-size: 16px; font-weight: 600; letter-spacing: .005em;
  box-shadow: 0 1px 0 rgba(12,34,59,.06), 0 10px 24px -10px var(--yellow-shadow);
  transition: transform .12s ease, box-shadow .2s ease;
}
.inquire .convertforms .cf-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(12,34,59,.06), 0 14px 30px -10px var(--yellow-shadow);
}
.inquire .convertforms .cf-btn-text::after { content: " \2192"; }

/* hCaptcha breathing room */
.inquire .convertforms .cf-control-group[data-type="hcaptcha"] { margin-top: 8px; }

/* ── Footer ────────────────────────────────────────────────────── */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; align-items: flex-start; }
.foot h6 { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 14px; font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.foot ul a:hover { color: var(--ink); }
.foot-brand { display: flex; flex-direction: column; gap: 16px; max-width: 36ch; }
.foot-fine { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-mute); }

/* ── Error page ────────────────────────────────────────────────── */
/* Sticky footer: column layout fills the viewport so .foot pins to the
   bottom, and the error-message position sits centred in the space above. */
body.error-page { min-height: 100vh; display: flex; flex-direction: column; }
body.error-page .foot { margin-top: auto; }
.error-main {
  flex: 1 0 auto;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(48px, 10vh, 120px) 0;
}
.error-message { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ── Floating blobs ────────────────────────────────────────────── */
.blob {
  position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; z-index: 0;
}
.blob-1 { width: 380px; height: 380px; background: color-mix(in oklab, var(--peach) 55%, transparent); top: -120px; right: -60px; opacity: .55; }
.blob-2 { width: 260px; height: 260px; background: color-mix(in oklab, var(--yellow) 60%, transparent); bottom: -80px; left: -60px; opacity: .45; }

/* ── Mobile nav (hamburger trigger + full-screen takeover) ─────── */
/* NOT .homepage-scoped: homepage.css is loaded on interior pages too,
   and the mobile menu must work site-wide. */

/* Trigger button (module 122) — hidden on desktop, shown below 992px. */
.mobile-menu { display: none; }

.hamburger {
  appearance: none; -webkit-appearance: none;
  background: none; border: 0; padding: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); line-height: 0;
  position: relative; z-index: 60; /* stays above the overlay to act as close */
}
.hamburger svg { display: block; width: 30px; height: 30px; overflow: visible; }
.hamburger line {
  stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  transform-box: fill-box; transform-origin: center;
  transition: transform .3s ease, opacity .2s ease;
}
/* Bars morph to an X while the menu is open. Lines sit at y=9/15/21,
   so the outer two shift ±6px to the centre before rotating. */
body.nav-open .hamburger .line-top { transform: translateY(6px) rotate(45deg); }
body.nav-open .hamburger .line-mid { opacity: 0; }
body.nav-open .hamburger .line-bot { transform: translateY(-6px) rotate(-45deg); }

/* Full-screen overlay (module 121). */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter) 56px;
  overflow-y: auto; /* long menus stay reachable */
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
body.nav-open .mobile-nav-overlay {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .35s ease;
}
/* Lift the bar above the overlay so brand + X stay visible and clickable,
   and let the blurred menu show straight through the bar. */
body.nav-open .topbar {
  z-index: 60; background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: transparent;
}
body.nav-open { overflow: hidden; } /* scroll lock */

.mobile-nav-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.mobile-nav-overlay .mod-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: clamp(6px, 2.4vh, 22px);
}
.mobile-nav-overlay .mod-menu a {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 8vw, 60px); line-height: 1.05;
  letter-spacing: -.01em; color: var(--ink);
  display: inline-block; transition: color .15s ease;
}
.mobile-nav-overlay .mod-menu a:hover,
.mobile-nav-overlay .mod-menu .current > a { color: var(--terracotta); }

/* Stagger: links start low + transparent, ease in when the menu opens. */
.mobile-nav-overlay .mod-menu li {
  opacity: 0; transform: translateY(18px);
  transition: opacity .4s ease, transform .4s ease;
}
body.nav-open .mobile-nav-overlay .mod-menu li { opacity: 1; transform: none; }
body.nav-open .mobile-nav-overlay .mod-menu li:nth-child(1) { transition-delay: .06s; }
body.nav-open .mobile-nav-overlay .mod-menu li:nth-child(2) { transition-delay: .12s; }
body.nav-open .mobile-nav-overlay .mod-menu li:nth-child(3) { transition-delay: .18s; }
body.nav-open .mobile-nav-overlay .mod-menu li:nth-child(4) { transition-delay: .24s; }
body.nav-open .mobile-nav-overlay .mod-menu li:nth-child(5) { transition-delay: .30s; }
body.nav-open .mobile-nav-overlay .mod-menu li:nth-child(6) { transition-delay: .36s; }
body.nav-open .mobile-nav-overlay .mod-menu li:nth-child(7) { transition-delay: .42s; }
body.nav-open .mobile-nav-overlay .mod-menu li:nth-child(8) { transition-delay: .48s; }

/* Show the hamburger / hide the desktop nav below the 992px breakpoint. */
@media (max-width: 991.98px) {
  .menu-module, .topbar-cta { display: none; }
  .mobile-menu { display: inline-flex; margin-left: auto;}
}
@media (min-width: 992px) {
  .mobile-menu, .mobile-nav-overlay { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-overlay,
  .mobile-nav-overlay .mod-menu li,
  .hamburger line { transition-duration: .001s; }
  body.nav-open .mobile-nav-overlay .mod-menu li { transition-delay: 0s; }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .topbar-inner { height: 64px; }
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid, .treat-head, .faq-grid { grid-template-columns: 1fr; }
  .about-side { position: static; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .treat-row { grid-template-columns: 40px 1fr; }
  .treat-row .treat-desc, .treat-row .treat-tag { grid-column: 2; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .inquire-card, .inquire .wrap { grid-template-columns: 1fr; }
  .inquire .convertforms .cf-one-half { width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar {
    .brand {
      row-gap: 6px;
    }
  }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ── Joomla module overrides ───────────────────────────────────── */
.homepage .container-hero .card,
.homepage .container-top-a .card,
.homepage .container-top-b .card,
.homepage .container-top-c .card,
.homepage .container-top-d .card,
.homepage .container-top-e .card,
.homepage .container-top-f .card {
  all: unset;
  display: block;
}
@media screen and ( width < 768px ) {
  section.hero {
    .hero-grid {
      .mod-custom {
        grid-template-columns:1fr;
        .hero-art {
          position:absolute;
          top:0;
          right:0;
          max-width:200px;
          z-index:0;
          opacity:0.2;
        }
        .hero-text {
          z-index:3;
        }
      }
    }
  }
}