/* =========================================================================
   2nd Chance Travels - design system
   =========================================================================

   Mobile-first throughout: every rule is written for the narrow viewport
   and widened at breakpoints, never the reverse. That is also what makes
   the Capacitor shell viable later - the phone layout is the primary one,
   not a squeezed desktop.

   The palette replaces the Odoo theme's greys. The old site set its
   primary colour to rgba(71,141,66,0) - the brand green with the alpha
   dragged to zero - so every primary button compiled to near-white
   #f2f2f3. The green below is that same hue, deepened and given an actual
   opacity, with a warm gold as the call-to-action counterpoint.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */

:root {
  /* Brand green. Anchored on the original #478D42 hue, deepened. */
  --brand-50:  #F1F7F3;
  --brand-100: #DCEDE3;
  --brand-200: #B9DBC6;
  --brand-300: #8AC2A1;
  --brand-400: #55A278;
  --brand-500: #2F8455;
  --brand-600: #1F6B43;
  --brand-700: #175637;
  --brand-800: #12432B;
  --brand-900: #0C2C1D;

  /* Warm gold. The CTA colour and the only place hue competes. */
  --gold-100: #FBEFD9;
  --gold-200: #F5DCAE;
  --gold-300: #EFC77C;
  --gold-400: #E5AC4A;
  --gold-500: #D89428;
  --gold-600: #B4761B;

  /* Neutrals, very slightly green-warm so they sit with the brand. */
  --n-0:   #FFFFFF;
  --n-50:  #F7F9F7;
  --n-100: #EFF2EF;
  --n-200: #DFE4E0;
  --n-300: #C3CBC5;
  --n-400: #9AA49D;
  --n-500: #727C75;
  --n-600: #545D57;
  --n-700: #3C443E;
  --n-800: #262C28;
  --n-900: #141815;

  /* Semantic - light theme */
  --bg:            var(--n-0);
  --bg-alt:        var(--brand-50);
  --surface:       var(--n-0);
  --surface-2:     var(--n-50);
  --surface-sunk:  var(--n-100);
  --text:          var(--brand-900);
  --text-body:     var(--n-700);
  --text-muted:    var(--n-500);
  --text-invert:   var(--n-0);
  --border:        var(--n-200);
  --border-strong: var(--n-300);

  --primary:       var(--brand-600);
  --primary-hover: var(--brand-700);
  --primary-ink:   var(--n-0);
  --accent:        var(--gold-500);
  --accent-hover:  var(--gold-600);
  --accent-ink:    var(--brand-900);

  --shadow-sm: 0 1px 2px rgba(12, 44, 29, .06), 0 1px 3px rgba(12, 44, 29, .05);
  --shadow-md: 0 4px 10px rgba(12, 44, 29, .07), 0 12px 28px rgba(12, 44, 29, .06);
  --shadow-lg: 0 10px 24px rgba(12, 44, 29, .10), 0 28px 64px rgba(12, 44, 29, .10);

  /* Type */
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.8125rem, .78rem + .16vw, .875rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.06rem + .32vw, 1.3125rem);
  --step-2:  clamp(1.375rem, 1.24rem + .64vw, 1.75rem);
  --step-3:  clamp(1.625rem, 1.4rem + 1.12vw, 2.375rem);
  --step-4:  clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --step-5:  clamp(2.5rem, 1.85rem + 3.2vw, 4.5rem);

  /* Space + shape */
  --wrap:        1200px;
  --wrap-narrow: 760px;
  --wrap-wide:   1440px;
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);
  --section-y:   clamp(3.5rem, 8vw, 7rem);

  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill: 999px;

  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
}

/* Dark theme. Defined for the system default and for an explicit toggle,
   so both directions win. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0B120E;
    --bg-alt:        #0F1913;
    --surface:       #121B16;
    --surface-2:     #16201A;
    --surface-sunk:  #0E1611;
    --text:          #EAF2EC;
    --text-body:     #BDC9C1;
    --text-muted:    #8B978F;
    --border:        #223029;
    --border-strong: #2E3F35;

    --primary:       var(--brand-400);
    --primary-hover: var(--brand-300);
    --primary-ink:   #06110B;
    --accent:        var(--gold-400);
    --accent-hover:  var(--gold-300);
    --accent-ink:    #12100A;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, .45);
    --shadow-lg: 0 16px 44px rgba(0, 0, 0, .55);
  }
}

:root[data-theme="dark"] {
  --bg:            #0B120E;
  --bg-alt:        #0F1913;
  --surface:       #121B16;
  --surface-2:     #16201A;
  --surface-sunk:  #0E1611;
  --text:          #EAF2EC;
  --text-body:     #BDC9C1;
  --text-muted:    #8B978F;
  --border:        #223029;
  --border-strong: #2E3F35;

  --primary:       var(--brand-400);
  --primary-hover: var(--brand-300);
  --primary-ink:   #06110B;
  --accent:        var(--gold-400);
  --accent-hover:  var(--gold-300);
  --accent-ink:    #12100A;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, .45);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, .55);
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

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

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

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

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

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

::selection { background: var(--brand-200); color: var(--brand-900); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-900); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- layout */

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--alt   { background: var(--bg-alt); }
.section--sunk  { background: var(--surface-sunk); }
.section--dark {
  background: var(--brand-900);
  color: var(--brand-100);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--gold-300); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent);
  border-radius: 2px; flex: none;
}
.section--dark .eyebrow { color: var(--gold-300); }
.eyebrow--center::before { display: none; }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-body);
}

.grid { display: grid; gap: clamp(1rem, 3vw, 1.75rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Reveal on scroll. Only armed when JS is present, so a failed script
   never leaves the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem;
  min-height: 48px;               /* comfortable tap target */
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; transform: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); color: var(--accent-ink); }

.btn--solid {
  background: var(--primary);
  color: var(--primary-ink);
}
.btn--solid:hover { background: var(--primary-hover); color: var(--primary-ink); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }

.btn--onDark {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
}
.btn--onDark:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.btn--lg { padding: 1.05rem 2rem; font-size: var(--step-1); min-height: 56px; }
.btn--block { width: 100%; }

.btn-row {
  display: flex; flex-wrap: wrap; gap: .75rem;
}
@media (max-width: 479px) {
  .btn-row .btn { width: 100%; }
}

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

.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.header__inner {
  display: flex; align-items: center; gap: 1rem;
  height: var(--header-h);
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Over a hero the header floats transparently until the page scrolls. */
.header--overlay {
  position: fixed; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
}
.header--overlay .nav__link,
.header--overlay .header__tel { color: rgba(255, 255, 255, .92); }
.header--overlay .nav__link:hover { color: #fff; }
.header--overlay .burger span { background: #fff; }

.header.is-stuck {
  position: fixed;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header.is-stuck .nav__link,
.header.is-stuck .header__tel { color: var(--text-body); }
.header.is-stuck .burger span { background: var(--text); }

/* No backdrop-filter support: fall back to an opaque bar. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header.is-stuck { background: var(--surface); }
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand__mark { height: 38px; width: auto; }
.brand__type { display: none; }
@media (min-width: 420px) { .brand__type { display: block; height: 34px; width: auto; } }
@media (min-width: 900px) { .brand__mark { height: 44px; } .brand__type { height: 40px; } }

/* Two logo renderings: white over the hero, deep green once stuck. */
.brand img[data-variant="light"] { display: none; }
.header--overlay:not(.is-stuck) .brand img[data-variant="light"] { display: block; }
.header--overlay:not(.is-stuck) .brand img[data-variant="dark"] { display: none; }
:root[data-theme="dark"] .brand img[data-variant="light"] { display: block; }
:root[data-theme="dark"] .brand img[data-variant="dark"] { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img[data-variant="light"] { display: block; }
  :root:not([data-theme="light"]) .brand img[data-variant="dark"] { display: none; }
}

.header__spacer { flex: 1; }

.header__actions { display: flex; align-items: center; gap: .5rem; }
.header__tel {
  display: none;
  align-items: center; gap: .45rem;
  font-size: var(--step--1); font-weight: 600;
  color: var(--text-body); text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 1100px) { .header__tel { display: inline-flex; } }
.header__cta { display: none; }
@media (min-width: 780px) { .header__cta { display: inline-flex; } }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: transparent; color: inherit; cursor: pointer;
}
.theme-toggle:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ------------------------------------------------------------------ nav */

.nav { display: none; }

@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: .25rem; }
  .nav__item { position: relative; }
  .nav__link {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .6rem .85rem;
    font-size: var(--step--1); font-weight: 600;
    color: var(--text-body); text-decoration: none;
    border-radius: var(--r-sm);
    white-space: nowrap;
    background: none; border: 0; cursor: pointer;
    font-family: inherit;
  }
  .nav__link:hover { color: var(--primary); }
  .nav__link[aria-current="page"] { color: var(--primary); }
  .nav__link[aria-current="page"]::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem;
    height: 2px; background: var(--accent); border-radius: 2px;
  }
  .nav__caret { width: 12px; height: 12px; transition: transform .2s var(--ease); }
  .nav__item.is-open .nav__caret { transform: rotate(180deg); }

  .nav__panel {
    position: absolute; top: calc(100% + .5rem); left: 0;
    min-width: 320px;
    padding: .6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease),
                visibility .2s var(--ease);
  }
  .nav__item.is-open .nav__panel { opacity: 1; visibility: visible; transform: none; }

  .nav__panel a {
    display: grid; grid-template-columns: 34px 1fr; gap: .1rem .75rem;
    align-items: start;
    padding: .7rem .8rem;
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--text);
  }
  .nav__panel a:hover { background: var(--bg-alt); }
  .nav__panel strong { grid-column: 2; font-size: var(--step-0); font-weight: 600; }
  .nav__panel span {
    grid-column: 2; font-size: var(--step--1); color: var(--text-muted);
    line-height: 1.45;
  }
  .nav__panel .ico {
    grid-row: 1 / span 2; width: 34px; height: 34px;
    display: grid; place-items: center;
    background: var(--bg-alt); color: var(--primary);
    border-radius: 10px;
  }
  .nav__panel .ico svg { width: 18px; height: 18px; }
}

/* ------------------------------------------------------- mobile drawer */

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 150;
  display: grid; grid-template-rows: auto 1fr;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform .32s var(--ease);
  overscroll-behavior: contain;
}
.drawer.is-open { transform: none; }
@media (min-width: 1000px) { .drawer { display: none; } }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--border);
}
.drawer__body { overflow-y: auto; padding: 1.25rem var(--gutter) 3rem; }

.drawer__link {
  display: block;
  padding: .95rem 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.drawer__group > button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: .95rem 0;
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 500;
  color: var(--text); background: none; border: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer; text-align: left;
}
.drawer__group > button svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.drawer__group.is-open > button svg { transform: rotate(180deg); }
.drawer__sub { display: none; padding: .5rem 0 .75rem .25rem; }
.drawer__group.is-open .drawer__sub { display: block; }
.drawer__sub a {
  display: block; padding: .65rem 0;
  font-size: var(--step-0); color: var(--text-body); text-decoration: none;
}
.drawer__sub a:hover { color: var(--primary); }

.drawer__foot { margin-top: 1.75rem; display: grid; gap: .75rem; }
.drawer__tel {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 0; color: var(--text-body); text-decoration: none;
  font-size: var(--step--1);
}
.drawer__tel strong { color: var(--text); min-width: 5.5rem; }

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

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(86svh, 780px);
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(2.5rem, 8vw, 5rem);
  isolation: isolate;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(6, 22, 14, .92) 0%, rgba(6, 22, 14, .55) 42%,
                    rgba(6, 22, 14, .32) 70%, rgba(6, 22, 14, .5) 100%);
}
.hero h1 { color: #fff; max-width: 18ch; margin-bottom: .35em; }
.hero__est {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .95rem;
  margin-bottom: 1.35rem;
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold-300);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
}
.hero__sub {
  max-width: 52ch;
  font-size: var(--step-1);
  color: rgba(255, 255, 255, .88);
  margin-bottom: 1.75rem;
}
.hero__scroll {
  display: none;
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
}
@media (min-width: 900px) { .hero__scroll { display: block; } }

/* Compact hero for interior pages. */
.pagehead {
  position: relative;
  display: grid; align-items: end;
  min-height: min(52svh, 460px);
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  isolation: isolate;
  color: #fff;
}
.pagehead__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(6, 22, 14, .9), rgba(6, 22, 14, .45) 65%,
                              rgba(6, 22, 14, .55));
}
.pagehead h1 { color: #fff; font-size: var(--step-4); margin-bottom: .25em; }
.pagehead p { color: rgba(255, 255, 255, .85); max-width: 56ch; font-size: var(--step-1); }

.crumbs {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: 1rem;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, .7);
}
.crumbs a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------------------------------------------------------------- cards */

.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-sunk); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }

.card__body { padding: clamp(1.15rem, 3vw, 1.6rem); display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: var(--step-2); margin-bottom: .4rem; }
.card__body p { color: var(--text-muted); font-size: var(--step--1); line-height: 1.6; }
.card__more {
  margin-top: auto; padding-top: 1rem;
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--step--1); font-weight: 600;
  color: var(--primary); text-decoration: none;
}
.card__more svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card:hover .card__more svg { transform: translateX(3px); }

/* Whole card clickable without nesting interactive elements. */
.card--link { position: relative; }
.card--link .stretch::after { content: ""; position: absolute; inset: 0; }

.card__icon {
  position: absolute; left: 1rem; bottom: 1rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--primary);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.card__icon svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- stats */

.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--surface); padding: clamp(1.25rem, 3.5vw, 2rem); text-align: center; }
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1;
  color: var(--primary);
  margin-bottom: .35rem;
}
.stat__label { display: block; font-weight: 600; color: var(--text); font-size: var(--step--1); }
.stat__detail { display: block; font-size: var(--step--1); color: var(--text-muted); margin-top: .2rem; }

/* --------------------------------------------------------------- splits */

.split {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > *:first-child { order: 2; }
}
.split__media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.5rem, 2vw, 1rem);
}
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.gallery button {
  padding: 0; border: 0; background: var(--surface-sunk); cursor: zoom-in;
  border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1;
  display: block; width: 100%;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 22, 14, .93);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: 100%; max-height: 85svh; width: auto;
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r-pill);
  cursor: pointer;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8); font-size: var(--step--1);
}

/* ---------------------------------------------------------- testimonials */

.quotes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(88vw, 420px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.quotes::-webkit-scrollbar { height: 6px; }
.quotes::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.quote {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: clamp(1.35rem, 3.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.quote__mark {
  /* The glyph carries a deep descender box that opens a gap under it.
     Clipping to the visible cap height closes it. */
  font-family: var(--font-display); font-size: 3rem; line-height: 1;
  height: 1.55rem; overflow: hidden;
  color: var(--brand-200); margin-bottom: .9rem;
}
:root[data-theme="dark"] .quote__mark { color: var(--brand-700); }
.quote__text {
  font-size: var(--step-0); line-height: 1.65; color: var(--text-body);
  margin-bottom: 1.25rem;
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical;
  overflow: hidden;
}
.quote.is-expanded .quote__text { -webkit-line-clamp: unset; }
.quote__more {
  align-self: flex-start; margin-bottom: 1rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--primary);
}
.quote__who { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
/* Monogram rather than a photo. The Odoo site used its own marketing
   badges here, which read as decoration next to a person's name, and we
   have no real headshots - a stock face would be a lie. */
.quote__avatar {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .02em;
}
:root[data-theme="dark"] .quote__avatar { background: var(--brand-800); color: var(--brand-200); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .quote__avatar {
    background: var(--brand-800); color: var(--brand-200);
  }
}
.quote__name { font-weight: 600; color: var(--text); font-size: var(--step--1); }
.quote__agent { font-size: var(--step--1); color: var(--text-muted); }

/* -------------------------------------------------------------- partners */

.partners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 2.5vw, 1.5rem);
  align-items: center;
}
@media (min-width: 640px) { .partners { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .partners { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.partners img {
  width: 100%; height: 54px; object-fit: contain;
  filter: grayscale(1); opacity: .62;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.partners img:hover { filter: none; opacity: 1; }
:root[data-theme="dark"] .partners img { filter: grayscale(1) brightness(1.9); opacity: .7; }
:root[data-theme="dark"] .partners img:hover { filter: brightness(1.15); opacity: 1; }

/* -------------------------------------------------------------- timeline */

.timeline { display: grid; gap: 1rem; }
@media (min-width: 780px) { .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }

.milestone {
  position: relative;
  display: block;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.milestone:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.milestone__year {
  display: block;
  font-family: var(--font-display); font-size: var(--step-3); font-weight: 600;
  color: var(--accent); line-height: 1; margin-bottom: .3rem;
}
.milestone__place { display: block; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.milestone p { font-size: var(--step--1); color: var(--text-muted); line-height: 1.55; margin: 0; }
.milestone__badge { position: absolute; top: 1.1rem; right: 1.1rem; height: 30px; width: auto; opacity: .9; }

/* -------------------------------------------------------- enquiry pad */

.pad {
  /* Keeps the post-submit scroll clear of the sticky header. */
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pad__head {
  padding: clamp(1.25rem, 3.5vw, 1.85rem);
  background: var(--brand-900);
  color: var(--brand-100);
}
.pad__head h3 { color: #fff; font-size: var(--step-2); margin-bottom: .35rem; }
.pad__head p { font-size: var(--step--1); color: rgba(255, 255, 255, .75); margin: 0; }
.pad__body { padding: clamp(1.25rem, 3.5vw, 1.85rem); }

.field { margin-bottom: 1.1rem; }
.field > label {
  display: block; margin-bottom: .4rem;
  font-size: var(--step--1); font-weight: 600; color: var(--text);
}
.field__hint { font-size: var(--step--1); color: var(--text-muted); font-weight: 400; }

.input, .textarea, .select {
  width: 100%;
  padding: .8rem .95rem;
  min-height: 48px;
  font: inherit;
  font-size: var(--step-0);
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  appearance: none;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23727C75' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}
.field--invalid .input, .field--invalid .textarea, .field--invalid .select {
  border-color: #C0392B;
}
.field__error { display: none; margin-top: .35rem; font-size: var(--step--1); color: #C0392B; }
.field--invalid .field__error { display: block; }

/* Honeypot. Off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.grid-fields { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .grid-fields { grid-template-columns: 1fr 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.chip {
  padding: .5rem .9rem;
  font: inherit; font-size: var(--step--1); font-weight: 600;
  color: var(--text-body);
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip[aria-pressed="true"] {
  background: var(--brand-600); border-color: var(--brand-600); color: #fff;
}

/* Confirm card: what the parser understood, before it is sent. */
.confirm {
  display: none;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-md);
}
:root[data-theme="dark"] .confirm { border-color: var(--brand-700); }
.confirm.is-shown { display: block; }
.confirm h4 {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans); font-size: var(--step--1); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--primary);
  margin-bottom: .75rem;
}
.confirm dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: 0; }
.confirm dt { font-size: var(--step--1); color: var(--text-muted); }
.confirm dd { margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--text); }
.confirm__note { margin-top: .75rem; font-size: var(--step--1); color: var(--text-muted); }

.pad__status { margin-top: 1rem; font-size: var(--step--1); }
.pad__status[data-tone="error"] { color: #C0392B; }
.pad__status[data-tone="busy"]  { color: var(--text-muted); }

.pad__done { display: none; text-align: center; padding: clamp(2rem, 6vw, 3.5rem) 1.5rem; }
.pad__done.is-shown { display: block; }
.pad__done .tick {
  width: 64px; height: 64px; margin: 0 auto 1.25rem;
  display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand-600);
  border-radius: 50%;
}
:root[data-theme="dark"] .pad__done .tick { background: var(--brand-800); color: var(--brand-300); }
.pad__done .tick svg { width: 30px; height: 30px; }
.pad__ref {
  display: inline-block; margin-top: .75rem;
  padding: .35rem .8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--step--1);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- offices */

.offices { display: grid; gap: 1rem; }
@media (min-width: 640px) { .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .offices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.office {
  padding: clamp(1.15rem, 3vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.office h3 { font-size: var(--step-1); margin-bottom: .15rem; }
.office__since { font-size: var(--step--1); color: var(--accent); font-weight: 600; }
.office__cities { font-size: var(--step--1); color: var(--text-muted); margin: .5rem 0 .9rem; }
.office__tel {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--text); text-decoration: none;
  font-size: var(--step-0);
}
.office__tel:hover { color: var(--primary); }
.office__tel svg { width: 16px; height: 16px; color: var(--primary); }

/* Contact rows. On a phone the label and the number will not sit on one
   line without one of them being squeezed, so below 520px they stack. */
.contact-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; text-decoration: none;
}
.contact-row__label { display: block; color: var(--text); font-size: var(--step-1); }
.contact-row__detail { display: block; font-size: var(--step--1); color: var(--text-muted); }
.contact-row .office__tel { white-space: nowrap; }

@media (max-width: 519px) {
  .contact-row { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .contact-row .office__tel { white-space: normal; overflow-wrap: anywhere; }
}

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

.footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, .72);
  padding-block: clamp(3rem, 7vw, 4.5rem) 0;
}
.footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

.footer__grid { display: grid; gap: clamp(2rem, 5vw, 3rem); }
@media (min-width: 700px)  { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer__brand img { height: 74px; width: auto; margin-bottom: 1.1rem; }
.footer__brand p { font-size: var(--step--1); max-width: 34ch; line-height: 1.6; }

.footer h4 {
  color: #fff; font-family: var(--font-sans);
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; font-size: var(--step--1); }

.footer__tel {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: var(--step--1); margin-bottom: .55rem;
}
.footer__tel span:first-child { color: rgba(255, 255, 255, .55); }

.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-pill);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.socials a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.socials svg { width: 19px; height: 19px; }

.footer__accred {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem;
}
.footer__accred span {
  padding: .25rem .65rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .08em;
  color: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-sm);
}

.footer__bar {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: var(--step--1);
}

/* ------------------------------------------------------------- CTA band */

.cta {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: #fff;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 90% at 80% 10%,
              rgba(216, 148, 40, .28), transparent 65%);
}
.cta h2 { color: #fff; margin-bottom: .5rem; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 52ch; margin-inline: auto; margin-bottom: 1.75rem; }
.cta .btn-row { justify-content: center; }

/* -------------------------------------------------------------- prose */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.15em; }
.prose li::marker { color: var(--accent); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.ticks li {
  display: grid; grid-template-columns: 24px 1fr; gap: .75rem;
  align-items: start; margin: 0;
  font-size: var(--step-0); color: var(--text-body);
}
.ticks svg { width: 22px; height: 22px; color: var(--primary); margin-top: .15rem; }

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

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.25rem; }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
