/* ============================================================================
   Packfilm Group — components
   ========================================================================== */

/* ---------------------------------------------------------------- topbar --- */
.topbar {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, .88);
  font-size: var(--step--1);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-block: .55rem;
}
.topbar__dot {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 139, 60, .22);
}
.topbar__link {
  margin-left: auto;
  color: #fff;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.topbar__link:hover { color: #fff; border-color: var(--accent); }

/* ---------------------------------------------------------------- header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 246, .88);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.header.is-stuck {
  background: rgba(250, 248, 246, .96);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .7rem;
}

.brand { display: flex; align-items: center; gap: .6rem; flex: none; }
.brand img { height: 40px; width: auto; }
.brand:hover { opacity: .85; }

/* ------------------------------------------------------------------- nav --- */
.nav { display: flex; align-items: center; gap: .15rem; margin-left: .75rem; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .8rem;
  border-radius: var(--r-pill);
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease);
}
.nav__link:hover { background: var(--brand-tint); color: var(--brand-deep); }
.nav__link[aria-current="page"] {
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-weight: 600;
}
.nav__chev { transition: transform var(--t) var(--ease); flex: none; }
.nav__item { position: relative; }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }

/* --- mega menu ------------------------------------------------------------- */
.megamenu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  z-index: 10;
  min-width: 20rem;
  padding: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              visibility var(--t-fast);
}
.nav__item.is-open .megamenu { opacity: 1; visibility: visible; transform: none; }
.megamenu a {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .6rem .75rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease);
}
.megamenu a:hover { background: var(--brand-wash); color: var(--brand-deep); }
.megamenu__count {
  margin-left: auto;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.megamenu__sep {
  height: 1px;
  margin: .4rem .75rem;
  background: var(--border);
}

/* --------------------------------------------------------------- actions --- */
.header__actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

.iconbtn {
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: var(--r-pill);
  color: var(--ink);
  transition: background var(--t-fast) var(--ease);
}
.iconbtn:hover { background: var(--brand-tint); }
.iconbtn--menu { display: none; }

/* --- language toggle ------------------------------------------------------- */
.lang {
  display: inline-flex;
  padding: 2px;
  background: var(--brand-tint);
  border-radius: var(--r-pill);
}
.lang__btn {
  padding: .3rem .6rem;
  border-radius: var(--r-pill);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lang__btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--brand-deep);
  box-shadow: var(--shadow-sm);
}
/* With no JS the toggle cannot work, so it must not pretend to. */
.no-js .lang { display: none; }

/* --- quote basket count --------------------------------------------------- */
.basket { position: relative; }
.basket__count {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 1.15rem;
  padding: 0 .25rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--ink);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}
.basket__count[hidden] { display: none; }

/* -------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.3rem;
  border-radius: var(--r-pill);
  font-size: var(--step-0);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .9rem 1.7rem; font-size: var(--step-1); }
.btn--sm { padding: .45rem .9rem; font-size: var(--step--1); }
.btn--block { width: 100%; }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover {
  background: var(--brand-deep);
  color: #fff;
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
/* Ochre carries --ink, never white: white-on-ochre measures 2.90 and fails AA. */
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover {
  background: #b87c31;
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -8px rgba(201, 139, 60, .5);
  transform: translateY(-1px);
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--brand-mid); color: var(--brand-deep); }
.btn--outline-light {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* --------------------------------------------------------------- badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: var(--step--1);
  font-weight: 600;
}
.badge--brand { background: var(--brand-tint); color: var(--brand-deep); }
.badge--sage  { background: #e4e9de; color: var(--sage); }
.badge--quiet { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }

/* ----------------------------------------------------------------- hero --- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 40rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--brand-deep);
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img, .hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Brown, not black: the overlay has to belong to the palette.
   Contrast over video cannot be derived from the palette, because the frame
   underneath changes — this footage pans from dark warehouse roof to bright sky.
   So the overlay is deep across the WHOLE height rather than only at the bottom,
   and the text carries a soft shadow as a second line of defence. Measured
   against the brightest frame of hero.mp4, not against the poster alone. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(51,36,31,.74) 0%, rgba(51,36,31,.70) 45%, rgba(51,36,31,.88) 100%);
}
.hero__inner > * { text-shadow: 0 1px 12px rgba(28, 21, 18, .45); }
.hero__cta, .hero__facts { text-shadow: none; }
.hero__fact b, .hero__fact span { text-shadow: 0 1px 12px rgba(28, 21, 18, .45); }
.hero__inner { padding-block: clamp(4rem, 3rem + 8vw, 8rem); }
.hero__title { max-width: 22ch; }
.hero__sub {
  margin-top: 1.2rem;
  max-width: 48ch;
  font-size: var(--step-1);
  color: rgba(255, 255, 255, .86);
}
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__facts {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.75rem;
}
.hero__fact b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--accent);
}
.hero__fact span { font-size: var(--step--1); color: rgba(255, 255, 255, .78); }

/* --- page hero (interior pages) ------------------------------------------- */
.pagehero {
  padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  background: var(--brand-wash);
  border-bottom: 1px solid var(--border);
}
.pagehero h1 { font-size: var(--step-4); max-width: 26ch; }
.pagehero p { margin-top: .9rem; max-width: 58ch; color: var(--muted); font-size: var(--step-1); }

/* --- breadcrumbs ---------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs li { display: flex; align-items: center; }

/* -------------------------------------------------------------- searchbar -- */
.searchbar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem .35rem .35rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.searchbar:focus-within { border-color: var(--brand-mid); box-shadow: var(--shadow); }
.searchbar svg { flex: none; color: var(--muted); }
.searchbar input {
  flex: 1;
  min-width: 0;
  padding: .55rem 0;
  border: none;
  background: none;
  outline: none;
}
.searchbar input::placeholder { color: var(--muted); opacity: .75; }
.searchbar__go {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  flex: none;
}
.searchbar__go:hover { background: var(--brand-deep); }

/* ------------------------------------------------------------ area cards --- */
/* Exactly five areas, so the grid is explicit rather than auto-fit: three
   columns with the first card spanning both rows fills perfectly with no
   orphan tile, which auto-fit cannot do for an odd count. */
.areas {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 15.5rem;
}
.areacard {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 1.25rem;
  border-radius: var(--r-card);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--brand-deep);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.areacard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: #fff; }
.areacard--tall { grid-row: span 2; }
.areacard img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.areacard:hover img { transform: scale(1.04); }
.areacard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(51,36,31,.15) 0%, rgba(51,36,31,.55) 55%, rgba(51,36,31,.88) 100%);
}
.areacard__eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
/* "Acondicionamento" is one 16-character unbreakable word and overflowed its
   card. Hyphenation handles it properly (html carries lang="pt-PT", so the
   break points are Portuguese), with break-word as the fallback for engines
   without a Portuguese dictionary. */
.areacard__title {
  margin-top: .3rem;
  font-size: var(--step-1);
  line-height: 1.12;
  hyphens: auto;
  overflow-wrap: break-word;
}
.areacard--tall .areacard__title { font-size: var(--step-2); }
.areacard__meta { margin-top: .3rem; font-size: var(--step--1); color: rgba(255,255,255,.82); }

/* ---------------------------------------------------------------- pillars -- */
.pillars {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.pillar {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.pillar__ic {
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  margin-bottom: .9rem;
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  color: var(--brand-deep);
}
.pillar h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--step-0); }
.pillar p { margin-top: .4rem; font-size: var(--step--1); color: var(--muted); }

/* ----------------------------------------------------------------- split --- */
.split {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.split--reverse > *:first-child { order: 2; }
.split__media {
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--brand-tint);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* --- inline video player -------------------------------------------------- */
.videobox {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--brand-deep);
  box-shadow: var(--shadow);
}
.videobox video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ----------------------------------------------------------------- stats --- */
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}
.stat {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--brand);
}
.stat b i { font-style: normal; color: var(--accent-deep); }
.stat span { display: block; margin-top: .5rem; font-size: var(--step--1); color: var(--muted); }

/* ------------------------------------------------------------ logo strip --- */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}
.logos img {
  height: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  width: auto;
  /* Partner marks arrive in many colours; muting them keeps the strip calm and
     stops it competing with the brown. Full colour on hover. */
  opacity: .55;
  filter: grayscale(1);
  transition: opacity var(--t) var(--ease), filter var(--t) var(--ease);
}
.logos a:hover img, .logos img:hover { opacity: 1; filter: none; }

/* ========================================================== CATALOGUE ==== */

/* --- layout: sidebar + grid ----------------------------------------------- */
.catalogue {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  align-items: start;
  grid-template-columns: 16rem minmax(0, 1fr);
}

/* --- sidebar tree --------------------------------------------------------- */
.tree {
  position: sticky;
  top: 5.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
}
.tree h2 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}
.tree__group + .tree__group { margin-top: .2rem; }
.tree__link {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  width: 100%;
  padding: .45rem .55rem;
  border-radius: var(--r-sm);
  font-size: var(--step-0);
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease);
}
.tree__link:hover { background: var(--brand-wash); color: var(--brand-deep); }
.tree__link.is-active {
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-weight: 600;
}
.tree__link b { font-weight: inherit; }
.tree__n {
  margin-left: auto;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.tree__kids { margin-left: .6rem; padding-left: .55rem; border-left: 1px solid var(--border); }
.tree__kids .tree__link { font-size: var(--step--1); padding-block: .35rem; }
.tree__group[hidden] { display: none; }

/* Level-2 groups collapse via <details> so the tree works with no JS at all. */
.tree details > summary {
  list-style: none;
  cursor: pointer;
}
.tree details > summary::-webkit-details-marker { display: none; }
.tree details > summary .tree__caret {
  margin-left: auto;
  flex: none;
  transition: transform var(--t-fast) var(--ease);
}
.tree details[open] > summary .tree__caret { transform: rotate(90deg); }

/* --- toolbar above the grid ---------------------------------------------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.toolbar__count { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.toolbar__count b { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .35rem .8rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: var(--step--1);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--brand-mid); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}

/* --- product grid -------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}
.tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile[hidden] { display: none; }
.tile__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--brand-wash);
}
.tile__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: .6rem;
}
.tile__body { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; flex: 1; }
.tile__name {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}
.tile__name button {
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
}
.tile__name button:hover { color: var(--brand); }
.tile__meta {
  margin-top: .3rem;
  font-size: var(--step--1);
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile__foot {
  margin-top: auto;
  padding-top: .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
/* Prices are never published, so the tile says so plainly rather than showing
   a blank space or a misleading zero. */
.tile__price { font-size: var(--step--1); font-weight: 600; color: var(--accent-deep); }
.tile__add { margin-left: auto; }

.tile__add.is-added { background: var(--sage); color: #fff; box-shadow: none; }

/* --- empty state --------------------------------------------------------- */
.empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--r-card);
  color: var(--muted);
}
.empty[hidden] { display: none; }

/* --- search results (hub) ------------------------------------------------ */
.results { display: grid; gap: .5rem; }
.result {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.result img { width: 3rem; height: 3rem; object-fit: contain; flex: none; }
.result__areas { margin-left: auto; display: flex; flex-wrap: wrap; gap: .35rem; }

/* ========================================================== QUOTE FLOW === */

.drawer {
  position: fixed;
  inset-block: 0;
  right: 0;
  z-index: 150;
  width: min(26rem, 100%);
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--t) var(--ease);
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.drawer__head h2 { font-size: var(--step-1); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer__foot { padding: 1rem 1.25rem; border-top: 1px solid var(--border); }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(51, 36, 31, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t);
}
.scrim.is-open { opacity: 1; visibility: visible; }

.qitem {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.qitem img { width: 2.75rem; height: 2.75rem; object-fit: contain; flex: none; }
.qitem__name { font-size: var(--step--1); font-weight: 600; line-height: 1.3; }
.qitem__qty {
  width: 3.4rem;
  padding: .3rem .4rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  text-align: center;
}
.qitem__rm { color: var(--muted); padding: .25rem; }
.qitem__rm:hover { color: var(--danger); }

/* ------------------------------------------------------------------ forms -- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: var(--step--1); font-weight: 600; }
.field .hint { font-size: var(--step--1); color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  padding: .7rem .85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(95, 72, 68, .12);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.field__err { font-size: var(--step--1); color: var(--danger); }
.field__err[hidden] { display: none; }
.form__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }

/* Honeypot — must be hidden from people but reachable by naive bots, so it is
   moved off-screen rather than display:none. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note {
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  font-size: var(--step--1);
  border: 1px solid var(--border);
  background: var(--surface);
}
.note--ok { background: #eef2ea; border-color: #cfdac7; color: #3c5637; }
.note--err { background: #fbeeec; border-color: #e8cdc8; color: #7d3327; }
.note[hidden] { display: none; }

/* ------------------------------------------------------------------- cta --- */
.cta {
  padding: clamp(2.25rem, 1.5rem + 4vw, 4rem);
  border-radius: var(--r-card);
  background: var(--brand-deep);
  color: #fff;
  text-align: center;
  background-image: linear-gradient(140deg, rgba(201,139,60,.16), transparent 55%);
}
.cta h2 { font-size: var(--step-4); max-width: 24ch; margin-inline: auto; }
.cta p { margin: 1rem auto 0; max-width: 48ch; color: rgba(255,255,255,.82); }
.cta__actions { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------------------------------------------------------------- footer --- */
.footer { background: var(--brand-deep); color: rgba(255,255,255,.76); margin-top: var(--section); }
.footer__grid {
  display: grid;
  gap: 2.25rem;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.footer__brand { max-width: 30ch; }
.footer__brand img { height: 40px; width: auto; margin-bottom: .9rem; }
.footer h2, .footer h3, .footer h4 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .9rem;
}
.footer a { color: rgba(255,255,255,.76); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer li + li { margin-top: .5rem; }
.footer address { font-style: normal; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--step--1);
}
.footer__legal { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1rem; }

/* --------------------------------------------------------- mobile menu --- */
.mobilemenu {
  display: none;
  padding: .5rem var(--gutter) 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mobilemenu.is-open { display: block; }
.mobilemenu a {
  display: block;
  padding: .7rem .5rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
}
.mobilemenu a:hover { background: var(--brand-wash); }
.mobilemenu__sub a { padding-left: 1.5rem; font-size: var(--step--1); color: var(--muted); }

/* =========================================================== RESPONSIVE == */

@media (max-width: 1080px) {
  .catalogue { grid-template-columns: 13.5rem minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .iconbtn--menu { display: grid; }

  /* Two columns: the tall card keeps its row span so 5 cards still fill
     (tall + 1, then 2, then 1). */
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 13rem; }

  /* The tree becomes a disclosure sheet rather than a squeezed column. */
  .catalogue { grid-template-columns: minmax(0, 1fr); }
  .tree { position: static; max-height: none; }

  .split--reverse > *:first-child { order: 0; }
  .hero { min-height: auto; }
}

@media (max-width: 560px) {
  /* One column: the row span would make the first card twice as tall as the
     rest for no benefit at this width, so it is dropped. */
  .areas { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 12rem; }
  .areacard--tall { grid-row: span 1; }
  .areacard--tall .areacard__title { font-size: var(--step-1); }

  .topbar__inner > span:not(.topbar__dot) { display: none; }
  .hero__facts { gap: 1.25rem 2rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
  .footer__legal { margin-left: 0; }
  .btn { width: 100%; }
  .hero__cta .btn, .cta__actions .btn { width: auto; flex: 1 1 auto; }
}

/* ================================================================ PRINT == */
@media print {
  .topbar, .header, .mobilemenu, .drawer, .scrim, .footer__legal, .tile__add { display: none; }
  body { background: #fff; }
  .tile, .pillar, .stat { break-inside: avoid; }
}
