/* ==========================================================================
   TIMI Partners Portugal — styles.css
   Design system: "Verde cívico" — a clean, modern mobility brand.
   Palette, typography and components follow the approved UI mockups.
   Mobile-first. No frameworks. No minification.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted, latin subset, variable weight)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Greens — from deep forest to bright accent. */
  --green-950: #062315;
  --green-900: #0a3d24;
  --green-800: #0b5334;
  --green-700: #0e6b43;
  --green-600: #158a55;
  --green-500: #1fa866;

  /* Bright accent used for highlights, badges and CTAs on dark. */
  --accent: #3ed36a;
  --accent-strong: #2fbe58;
  --accent-soft: #d8f7e0;

  /* Neutrals. */
  --ink: #0b1f16;
  --ink-soft: #24392e;
  --muted: #5d6e64;
  --muted-light: #9db1a4;
  --paper: #ffffff;
  --sand: #f6faf7;
  --mint: #eaf6ee;
  --mint-deep: #ddeee1;
  --line: #e3ebe5;
  --line-strong: #cbd9cf;

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 76rem;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --header-height: 4.75rem;
  --prose: 68ch;
  --hero-radius: 0;

  --radius-xs: 0.5rem;
  --radius-sm: 0.75rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(9, 40, 25, 0.05);
  --shadow-md: 0 18px 40px -28px rgba(9, 40, 25, 0.35);
  --shadow-lg: 0 40px 80px -44px rgba(9, 40, 25, 0.45);

  --transition: 180ms ease;
  --transition-slow: 320ms ease;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

p + p {
  margin-top: 0.9em;
}

ul,
ol {
  margin: 0;
  padding-left: 1.15em;
}

li + li {
  margin-top: 0.35em;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-900);
}

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

/* On dark surfaces the focus ring switches to the bright accent. */
.hero :focus-visible,
.section--dark :focus-visible,
.final-cta :focus-visible,
.photo-band :focus-visible,
.promo-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--accent);
}

/* Skip link: first focusable element on every page. */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--green-900);
  color: #ffffff;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
  color: #ffffff;
}

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

[hidden] {
  display: none !important;
}

/* Generic line-icon helper. All icons inherit colour and stroke weight. */
/* Line icons carry fill="none" in the markup; filled glyphs opt back in. */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--lg {
  width: 1.6rem;
  height: 1.6rem;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 7vw, 5.75rem);
}

.section--tight {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
}

.section--dark {
  background: var(--green-900);
  color: #ffffff;
}

.section--dark p {
  color: rgba(255, 255, 255, 0.78);
}

.section--sand {
  background: var(--sand);
}

.section--mint {
  background: var(--mint);
}

.mt-1 {
  margin-top: 1rem;
}

.mt-1-25 {
  margin-top: 1.25rem;
}

.mt-1-5 {
  margin-top: 1.5rem;
}

.split {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

/* --------------------------------------------------------------------------
   5. Typography
   -------------------------------------------------------------------------- */

.display {
  font-size: clamp(2.05rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.display--sm {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.2;
}

.display--md {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.14;
}

.display--lg {
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  line-height: 1.05;
}

.display--xl {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1;
}

.eyebrow {
  display: block;
  margin: 0 0 0.85rem;
  color: var(--green-600);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section--dark .eyebrow,
.final-cta .eyebrow,
.photo-band .eyebrow {
  color: var(--accent);
}

.lead {
  max-width: 44rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.62;
  color: var(--muted);
}

.section--dark .lead,
.final-cta .lead,
.photo-band .lead {
  color: rgba(255, 255, 255, 0.82);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.86rem;
}

.fine-print {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}

.section--dark .fine-print,
.final-cta .fine-print,
.photo-band .fine-print {
  color: rgba(255, 255, 255, 0.68);
}

/* Inline accent text inside headings (the green second line of the mockups). */
.highlight {
  color: var(--accent-strong);
}

.section--dark .highlight,
.final-cta .highlight,
.photo-band .highlight,
.hero .highlight {
  color: var(--accent);
}

.highlight--underline {
  background: linear-gradient(transparent 68%, var(--accent-soft) 68%);
  padding: 0 0.05em;
}

.section--dark .highlight--underline,
.final-cta .highlight--underline {
  background: linear-gradient(transparent 68%, rgba(62, 211, 106, 0.35) 68%);
}

/* --------------------------------------------------------------------------
   6. Buttons, links and pills
   -------------------------------------------------------------------------- */

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.78rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--green-700);
  color: #ffffff;
  border-color: var(--green-700);
  box-shadow: 0 14px 26px -18px rgba(14, 107, 67, 0.8);
}

.btn--primary:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #ffffff;
}

/* Bright green button used on dark surfaces. */
.btn--accent {
  background: var(--accent);
  color: var(--green-950);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--green-950);
}

.btn--dark {
  background: var(--green-900);
  color: #ffffff;
  border-color: var(--green-900);
}

.btn--dark:hover {
  background: var(--green-950);
  border-color: var(--green-950);
  color: #ffffff;
}

.btn--ghost {
  background: #ffffff;
  color: var(--green-700);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--green-600);
  color: var(--green-800);
}

.btn--ghost-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* Compact outlined button used in the header. */
.btn--outline {
  min-height: 2.5rem;
  padding: 0.5rem 1.05rem;
  background: #ffffff;
  color: var(--green-800);
  border-color: var(--green-700);
  font-size: 0.8rem;
}

.btn--outline:hover {
  background: var(--mint);
  color: var(--green-900);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green-700);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--green-900);
}

.text-link span[aria-hidden="true"] {
  transition: transform var(--transition);
}

.text-link:hover span[aria-hidden="true"] {
  transform: translateX(3px);
}

.section--dark .text-link,
.final-cta .text-link,
.photo-band .text-link {
  color: var(--accent);
}

.section--dark .text-link:hover,
.final-cta .text-link:hover {
  color: #ffffff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--green-800);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill--lime {
  background: var(--accent);
  color: var(--green-950);
}

/* Small circular icon button (search, chevrons, arrows). */
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--green-800);
  background: transparent;
  border: 0;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}

.icon-button:hover {
  background: var(--mint);
  color: var(--green-900);
}

/* --------------------------------------------------------------------------
   7. Header and navigation
   -------------------------------------------------------------------------- */

/* Solid background: a backdrop-filter here would create a containing block
   and break the fixed positioning of the mobile navigation panel. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -26px rgba(9, 40, 25, 0.45);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: 2rem;
}

.brand__wordmark {
  padding-left: 0.8rem;
  border-left: 1px solid var(--line-strong);
  color: var(--green-800);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.brand__wordmark span {
  display: block;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.site-header__search,
.site-header__cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.8rem;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.nav-toggle__bars {
  position: relative;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  transition: background-color var(--transition);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition), top var(--transition);
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  position: fixed;
  inset: var(--header-height) 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-nav__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list li + li {
  margin-top: 0;
}

.site-nav__list a {
  display: block;
  padding: 0.85rem 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--green-700);
}

.site-nav__cta {
  width: 100%;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   8. Hero (full-bleed photo with dark green overlay)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--green-900);
  isolation: isolate;
}

/* Optional photographic layer. Rendered as an <img> so it can be responsive. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Legibility scrim: strongest on the left, where the copy sits. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(6, 35, 21, 0.95) 0%,
    rgba(6, 35, 21, 0.86) 34%,
    rgba(6, 35, 21, 0.58) 62%,
    rgba(6, 35, 21, 0.34) 100%
  );
}

.hero--flat::after {
  background: radial-gradient(
      circle at 12% 18%,
      rgba(62, 211, 106, 0.16),
      transparent 34rem
    ),
    linear-gradient(100deg, var(--green-900), var(--green-950));
}

.hero__inner {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero--page .hero__inner {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
}

.hero__copy {
  max-width: 44rem;
}

.hero__title {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero--page .hero__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.hero__lead {
  max-width: 36rem;
  margin-top: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero .button-row {
  margin-top: 1.75rem;
}

/* Rounded search field that sits inside the hero. */
.hero-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 33rem;
  margin-top: 1.75rem;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  background: #ffffff;
  border-radius: var(--radius-pill);
  box-shadow: 0 24px 44px -30px rgba(0, 0, 0, 0.65);
}

.hero-search__icon {
  color: var(--green-600);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 0.92rem;
  outline: none;
}

.hero-search input::placeholder {
  color: var(--muted);
}

.hero-search select {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 0.92rem;
  outline: none;
}

.hero-search__submit {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: none;
  color: #ffffff;
  background: var(--green-700);
  border: 0;
  border-radius: 50%;
  transition: background-color var(--transition);
}

.hero-search__submit:hover {
  background: var(--green-900);
}

/* --------------------------------------------------------------------------
   9. Section headings, feature rows and stats band
   -------------------------------------------------------------------------- */

.section-head {
  display: grid;
  gap: 0.6rem;
  max-width: 52rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-head .lead {
  margin-top: 0.15rem;
}

.section-head__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Row of icon + title + text columns separated by thin rules. */
.feature-row {
  display: grid;
  gap: 1.75rem;
}

.feature {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-700);
}

.section--dark .feature__icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.feature__title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.section--dark .feature p {
  color: rgba(255, 255, 255, 0.72);
}

/* Light green band with big numbers. */
.stats-band {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.stats-band__numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--green-700);
  letter-spacing: -0.03em;
}

.stat__label {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Two-column split where the text column stays narrower than the content. */
.media-split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}

/* --------------------------------------------------------------------------
   10. Partner cards
   -------------------------------------------------------------------------- */

.partner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    border-color var(--transition-slow);
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.partner-card:focus-within {
  outline: 3px solid var(--green-600);
  outline-offset: 3px;
}

.partner-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mint);
}

.partner-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.partner-card:hover .partner-card__media img {
  transform: scale(1.035);
}

/* Green "Parceiro TIMI" badge over the photo. */
.partner-card__badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  color: #ffffff;
  background: var(--green-700);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.partner-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem;
}

.partner-card__title {
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.partner-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.partner-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.partner-card__title a:focus-visible {
  outline: none;
}

.partner-card__location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 600;
}

.partner-card__location .icon {
  width: 1rem;
  height: 1rem;
}

.partner-card__excerpt {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.partner-card__benefit {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.1rem;
  padding: 0.5rem 0.65rem;
  color: var(--green-900);
  background: var(--accent-soft);
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.partner-card__benefit-label {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--green-700);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.partner-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.7rem;
  color: var(--green-700);
  font-size: 0.84rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   11. Fact panels, timelines and step cards
   -------------------------------------------------------------------------- */

.fact-panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.fact-panel__title {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.fact-panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-panel__row:last-child {
  border-bottom: 0;
}

.fact-panel__row dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fact-panel__row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: right;
}

.fact-panel__note {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.timeline {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  margin: 0;
  padding-left: 1.7rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 0;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--accent);
  border: 2px solid var(--green-700);
  border-radius: 50%;
}

.timeline time {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-card__number {
  color: var(--green-600);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.step-card__title {
  font-size: 1.2rem;
  line-height: 1.2;
}

.step-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.section--dark .step-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.section--dark .step-card p {
  color: rgba(255, 255, 255, 0.72);
}

.section--dark .step-card__number {
  color: var(--accent);
}

/* Numbered how-it-works steps: markers + copy on the left, image right. */
.steps {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps > li {
  margin: 0;
}

.step {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.step__content {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.step__markers {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.7rem;
}

.step__number {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.step__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-700);
}

.step__title {
  font-size: 1.2rem;
  line-height: 1.25;
}

.step__text p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.step__media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mint);
}

.step__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   12. District cards and maps
   -------------------------------------------------------------------------- */

.district-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 10.5rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.district-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-600);
  box-shadow: var(--shadow-md);
}

.district-card:focus-within {
  outline: 3px solid var(--green-600);
  outline-offset: 3px;
}

.district-card__count {
  color: var(--green-700);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.district-card__count span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.district-card__title {
  font-size: 1.2rem;
  line-height: 1.2;
}

.district-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.district-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.district-card__title a:focus-visible {
  outline: none;
}

.district-card__places {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.map-panel {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

/* Light, illustrative map plate. */
.map-plate {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(160deg, var(--mint), #f4fbf6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.map-plate .portugal-map {
  width: min(100%, 15rem);
}

.portugal-map {
  width: min(100%, 14rem);
  height: auto;
  overflow: visible;
}

.portugal-map__outline {
  fill: rgba(14, 107, 67, 0.06);
  stroke: rgba(14, 107, 67, 0.45);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.portugal-map__route {
  fill: none;
  stroke: rgba(14, 107, 67, 0.5);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  stroke-linecap: round;
}

.portugal-map__stop {
  fill: var(--green-700);
  stroke: #ffffff;
  stroke-width: 2;
}

.portugal-map__stop--major {
  fill: var(--accent-strong);
  stroke: #ffffff;
  stroke-width: 3;
}

/* Region list with chevrons (partners directory). */
.region-list {
  display: grid;
  gap: 0.4rem;
  padding: 0.6rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  list-style: none;
  margin: 0;
}

.region-list li {
  margin: 0;
}

.region-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  background: var(--sand);
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}

.region-list a:hover {
  background: var(--mint);
  color: var(--green-900);
}

.region-list a[aria-current="page"],
.region-list a.is-active {
  background: var(--green-800);
  color: #ffffff;
}

.region-list .icon {
  width: 1rem;
  height: 1rem;
  color: currentColor;
  opacity: 0.7;
}

/* Simple stacked list (locations index). */
.map-panel__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-panel__list li + li {
  margin-top: 0;
}

.map-panel__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.map-panel__list a:hover {
  color: var(--green-700);
}

.map-panel__list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   13. News cards, media frames and community
   -------------------------------------------------------------------------- */

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    border-color var(--transition-slow);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.news-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mint);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-card__media img {
  transform: scale(1.035);
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.news-card__title {
  font-size: 1.25rem;
  line-height: 1.25;
}

.news-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.news-card__title a:hover {
  color: var(--green-700);
}

.news-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.news-card__title a:focus-visible {
  outline: none;
}

.news-card:focus-within,
.news-feature:focus-within {
  outline: 3px solid var(--green-600);
  outline-offset: 3px;
}

.news-card__excerpt {
  color: var(--muted);
  font-size: 0.88rem;
}

.news-card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 700;
}

.news-feature {
  position: relative;
  display: grid;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.news-feature__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mint);
}

.news-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  padding: clamp(1.35rem, 4vw, 2.5rem);
}

.news-feature__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.news-feature__title a {
  color: var(--ink);
  text-decoration: none;
}

.news-feature__title a:hover {
  color: var(--green-700);
}

.news-feature__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.news-feature__title a:focus-visible {
  outline: none;
}

.news-feature__excerpt {
  color: var(--muted);
}

/* Photo with a floating dark-green card (used on the home page). */
.media-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mint);
}

.media-card > img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.media-card__badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(13rem, 60%);
  padding: 1.25rem;
  color: #ffffff;
  background: rgba(11, 83, 52, 0.95);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.media-card__badge h3 {
  font-size: 1.05rem;
  line-height: 1.25;
}

.media-card__badge p {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.media-card__badge .icon-button {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.85rem;
  color: var(--green-950);
  background: var(--accent);
}

.media-card__badge .icon-button:hover {
  background: #ffffff;
}

.media-frame {
  overflow: hidden;
  background: var(--mint);
  border-radius: var(--radius-lg);
}

.media-frame img {
  width: 100%;
  height: auto;
}

.media-frame figcaption {
  padding: 0.85rem 1rem;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.75rem;
}

.section--dark .media-frame figcaption {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   14. Directory filters
   -------------------------------------------------------------------------- */

.page-intro {
  padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem);
}

.page-intro .display {
  max-width: 52rem;
}

.page-intro .lead {
  margin-top: 1rem;
}

.filter-bar {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  padding: clamp(1rem, 2.5vw, 1.35rem);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.filter-bar__grid {
  display: grid;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus,
.field select:focus {
  border-color: var(--green-600);
  background: #ffffff;
  outline: none;
}

.filter-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.9rem;
}

.results-count {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.results-count strong {
  color: var(--ink);
}

.no-js-note {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--accent-soft);
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 500;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  padding: clamp(2rem, 6vw, 4rem) 1rem;
  text-align: center;
  background: var(--sand);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.empty-state__title {
  font-size: 1.4rem;
}

.empty-state p {
  max-width: 34rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   15. Breadcrumbs, partner detail and prose
   -------------------------------------------------------------------------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.breadcrumbs li {
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--green-700);
}

.hero .breadcrumbs,
.hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.72);
}

.hero .breadcrumbs a:hover {
  color: #ffffff;
}

.hero .breadcrumbs li + li::before {
  color: rgba(255, 255, 255, 0.4);
}

.partner-hero {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.partner-hero__copy {
  max-width: 42rem;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.meta-line span + span::before {
  content: "·";
  margin-right: 0.45rem;
  color: var(--line-strong);
}

.partner-hero__title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.05;
}

.partner-hero__lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
}

.benefit-panel {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  color: var(--green-950);
  background: var(--accent-soft);
  border-radius: var(--radius);
}

.benefit-panel__label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--green-700);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.benefit-panel p {
  font-weight: 600;
}

.partner-hero__media {
  overflow: hidden;
  background: var(--mint);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.partner-hero__media img {
  width: 100%;
  height: auto;
}

.partner-facts {
  display: grid;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.partner-facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.partner-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.partner-facts dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.prose {
  max-width: var(--prose);
  font-size: 1.02rem;
  line-height: 1.78;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.prose h3 {
  margin-top: 1.8rem;
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose a {
  font-weight: 600;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.1rem;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  font-size: 1.05rem;
}

.notice {
  max-width: var(--prose);
  padding: 1.1rem 1.25rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-600);
  border-radius: var(--radius-xs);
  font-size: 0.92rem;
}

.notice--dark {
  color: #ffffff;
  background: var(--green-900);
  border-color: var(--green-900);
  border-left-color: var(--accent);
}

.notice--dark p {
  color: rgba(255, 255, 255, 0.8);
}

.notice strong {
  display: block;
  margin-bottom: 0.2rem;
}

.partner-hero__actions {
  margin-top: 1.5rem;
}

.partner-related {
  padding-top: clamp(1rem, 3vw, 1.75rem);
}

.county-group + .county-group {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.county-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.1rem;
}

.county-group__head p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table-wrap caption {
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  background: var(--sand);
  font-size: 0.75rem;
  text-align: left;
}

.table-wrap th,
.table-wrap td {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: #ffffff;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-wrap td {
  background: #ffffff;
  color: var(--muted);
}

.table-wrap tr:first-child th {
  border-top: 0;
}

/* --------------------------------------------------------------------------
   16. News article
   -------------------------------------------------------------------------- */

.article-header {
  max-width: 52rem;
}

.article-header .display {
  margin-top: 0.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.article-hero {
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  background: var(--mint);
  border-radius: var(--radius-lg);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-hero figcaption {
  padding: 0.8rem 1rem;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.75rem;
}

.article-layout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.article-body {
  max-width: var(--prose);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body p + p {
  margin-top: 1.15em;
}

.article-sources {
  padding: 1.15rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
}

.article-sources h2 {
  font-size: 1rem;
  letter-spacing: 0;
}

.article-sources ul {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}

.article-sources a {
  overflow-wrap: anywhere;
}

.article-aside {
  display: grid;
  gap: 1rem;
}

.article-aside__card {
  padding: 1.15rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
}

.article-aside__card h2 {
  font-size: 1rem;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   17. Community gallery and video facades
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.gallery-grid > * {
  overflow: hidden;
  background: var(--mint);
  border-radius: var(--radius);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 0.75rem 0.9rem;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.74rem;
}

.gallery-grid__wide {
  grid-column: 1 / -1;
}

.video-grid {
  display: grid;
  gap: 1rem;
}

.video-facade {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(
      circle at 30% 25%,
      rgba(62, 211, 106, 0.25),
      transparent 16rem
    ),
    linear-gradient(145deg, var(--green-800), var(--green-950));
  border: 1px solid rgba(62, 211, 106, 0.3);
  border-radius: var(--radius-lg);
  text-align: left;
}

.video-facade__button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.video-facade:hover .video-facade__play {
  transform: scale(1.07);
  background: #ffffff;
}

.video-facade__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--accent);
  border-radius: 50%;
  transition: transform var(--transition), background-color var(--transition);
}

.video-facade__play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.25rem;
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-left: 0.85rem solid var(--green-950);
}

.video-facade__label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.video-facade__label span:last-child {
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade.is-playing {
  background: #000000;
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 52rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--green-600);
}

.faq-item summary {
  position: relative;
  padding: 1.1rem 2.9rem 1.1rem 1.15rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.15rem;
  color: var(--green-600);
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: "\2212";
  transform: translateY(-50%) rotate(180deg);
}

.faq-item__answer {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq-item__answer p + p {
  margin-top: 0.7rem;
}

/* --------------------------------------------------------------------------
   19. Dark CTA band, promo band and photo band
   -------------------------------------------------------------------------- */

.final-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  color: #ffffff;
  background: radial-gradient(
      circle at 82% 18%,
      rgba(62, 211, 106, 0.18),
      transparent 26rem
    ),
    var(--green-900);
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 60rem;
}

.final-cta .display {
  max-width: 46rem;
}

.final-cta .lead {
  margin-top: 1rem;
}

.final-cta .button-row {
  margin-top: 1.75rem;
}

.final-cta .fine-print {
  max-width: 44rem;
  margin-top: 1.5rem;
}

/* Inline dark band with icon, message and button. */
.promo-band {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  color: #ffffff;
  background: var(--green-800);
  border-radius: var(--radius-lg);
}

.promo-band__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.promo-band__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo-band__title {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.2;
}

/* Full-bleed photo band with a heading and the TIMI wordmark. */
.photo-band {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--green-900);
  isolation: isolate;
}

.photo-band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(6, 35, 21, 0.92) 0%,
    rgba(6, 35, 21, 0.74) 45%,
    rgba(6, 35, 21, 0.5) 100%
  );
}

.photo-band__inner {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.photo-band .display {
  max-width: 40rem;
}

.photo-band__logo {
  width: auto;
  height: 2.1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  color: rgba(255, 255, 255, 0.82);
  background: var(--green-900);
  font-size: 0.88rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer__top {
  display: grid;
  gap: 1.75rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-footer__logo {
  width: auto;
  height: 1.9rem;
  filter: brightness(0) invert(1);
}

.site-footer__wordmark {
  padding-left: 0.8rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-footer__wordmark span {
  display: block;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}

.site-footer__nav a {
  font-size: 0.85rem;
  font-weight: 600;
}

.site-footer__social {
  display: flex;
  gap: 0.5rem;
}

.site-footer__social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
}

.site-footer__social a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.site-footer__disclaimer {
  display: grid;
  gap: 0.5rem;
  max-width: 60rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer__disclaimer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 1.75rem;
  padding-block: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
}

.site-footer__bottom p {
  max-width: 46rem;
}

.site-footer__bottom p + p {
  margin-top: 0;
}

.site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

/* --------------------------------------------------------------------------
   21. Error page
   -------------------------------------------------------------------------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding-block: clamp(3rem, 8vw, 6rem);
  text-align: center;
}

.error-page__inner {
  max-width: 38rem;
}

.error-code {
  color: var(--mint-deep);
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 12rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.error-page h1 {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.error-page p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.error-page .button-row {
  justify-content: center;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   22. Responsive enhancements
   -------------------------------------------------------------------------- */

@media (min-width: 36rem) {
  .feature-row--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-band__numbers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .partner-facts div {
    grid-template-columns: 9rem 1fr;
  }
}

@media (min-width: 48rem) {
  .feature-row,
  .feature-row--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-row--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Thin rules between columns, as in the mockups. */
  .feature-row > .feature + .feature {
    padding-left: clamp(1rem, 2vw, 1.75rem);
    border-left: 1px solid var(--line);
  }

  .section--dark .feature-row > .feature + .feature {
    border-left-color: rgba(255, 255, 255, 0.16);
  }

  .stat + .stat {
    padding-left: clamp(1rem, 2vw, 1.5rem);
    border-left: 1px solid var(--line-strong);
  }

  .card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-band {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4rem);
  }

  .media-split {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .photo-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
  }

  .map-panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .map-panel--full {
    grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 0.9fr) minmax(16rem, 1.1fr);
  }

  .news-feature {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .news-feature__media {
    height: 100%;
    aspect-ratio: auto;
    min-height: 20rem;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 16rem;
  }

  .article-aside {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem 2rem;
  }

  .promo-band {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (min-width: 56.25rem) {
  .nav-toggle {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .site-header__actions {
    justify-self: end;
  }

  .site-header__search {
    display: inline-grid;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: center;
  }

  .site-nav.is-open {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .site-nav__list a {
    padding: 0.6rem 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    border: 0;
    box-shadow: inset 0 -2px 0 transparent;
    transition: color var(--transition), box-shadow var(--transition);
  }

  .site-nav__list a:hover {
    color: var(--green-700);
  }

  .site-nav__list a[aria-current="page"] {
    color: var(--green-700);
    box-shadow: inset 0 -2px 0 var(--green-600);
  }

  .site-nav__cta {
    display: none;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split--wide {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .card-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .partner-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

  .partner-hero__media {
    order: 2;
  }

  .filter-bar__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid__wide {
    grid-column: span 2;
  }

  .step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4rem);
  }

  .section-head--row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    max-width: none;
  }

  .section-head--row .eyebrow,
  .section-head--row .lead {
    grid-column: 1 / -1;
  }
}

@media (min-width: 68rem) {
  .card-grid {
    gap: 1.5rem;
  }

  .section-head {
    max-width: 46rem;
  }

  .section-head--wide {
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   23. Reduced motion and print
   -------------------------------------------------------------------------- */

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

@media print {
  .site-header,
  .site-footer,
  .final-cta,
  .photo-band,
  .filter-bar,
  .breadcrumbs,
  .button-row,
  .video-facade {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .partner-card,
  .news-card,
  .faq-item {
    break-inside: avoid;
  }
}
