/* ===========================================
   VARIABLES
   =========================================== */
:root {
  --teal: #0B3030;
  --teal-90: rgba(11, 48, 48, 0.9);
  --teal-60: rgba(11, 48, 48, 0.75);
  --teal-30: rgba(11, 48, 48, 0.45);
  --teal-muted: #5c7373; /* muted text: 5:1 on white, --teal-30 is 3.5 */
  --teal-15: rgba(11, 48, 48, 0.15);
  --orange: #CD4A16;
  --orange-hover: #b5410f;
  --white: #FFFFFF;
  --off-white: #FAF9F7;
  --content-width: 1200px;
  --nav-height: 95px;
  --nav-height-scrolled: 70px;
  --hero-min-height: clamp(440px, 45vh, 600px);
  --hero-pad-bottom: 56px;
  --hero-inner-pad-y: 70px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-heading: var(--font-serif);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===========================================
   RESET & BASE
   =========================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: var(--teal);
  background: var(--white);
  overflow-x: hidden;
}
::selection { background: var(--orange); color: var(--white); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* Paragraph copy from a textarea field (roqski_text). The reset above zeroes
   every margin, so a second paragraph would sit flush against the first.
   In em, because these boxes run from 13px eyebrow copy to 22px ledes. */
.rs-text > p + p { margin-top: 1em; }
/* Inline link typed into a textarea box: plain orange like the contact intro
   and form links. Underlines are for blog post bodies only (prose.css). */
.rs-text a {
  color: var(--orange);
  font-weight: 600;
  transition: color 180ms ease;
}
.rs-text a:hover { color: var(--orange-hover); }

/* Neutral line where a collection has no records to show. Without it the page
   is its hero promising content and then nothing at all before the CTA. */
.rs-empty {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 96px 48px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--teal-60);
}
@media (max-width: 768px) {
  .rs-empty { padding: 64px 24px; }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100000;
  padding: 8px 16px;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
}
.skip-link:focus {
  top: 16px;
}

/* Focus indicators */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

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

/* ===========================================
   LAYOUT
   =========================================== */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 48px;
}

/* ===========================================
   SECTION EYEBROW
   Shared orange uppercase label that sits above a section h2.
   Used on tabbed pages so each tab panel matches its tab name.
   =========================================== */
.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

/* ===========================================
   GHOST BUTTON
   The secondary action: same type spec as the filled orange CONTACT button
   (nav.css), but transparent with a hairline border, so a "view all" never
   competes with the site's one primary CTA. Hovers to orange like every
   other link in the theme. --on-dark carries the border value the teal
   grounds already use for their round icon buttons.
   =========================================== */
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--teal);
  background: transparent;
  border: 1px solid var(--teal-15);
  border-radius: 2px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}
.ghost-btn:hover {
  color: var(--orange);
  border-color: var(--orange);
}
.ghost-btn:focus { outline: none; }
.ghost-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
/* Static, unlike the .results-link arrow: a box that changes width on hover
   is a defect, so the motion lives in the colour instead. */
.ghost-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.ghost-btn--on-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}
.ghost-btn--on-dark:hover {
  color: var(--orange);
  border-color: var(--orange);
}
.ghost-btn--on-dark:focus-visible { outline-color: var(--white); }

/* The one filled variant: same box and type spec as the ghost button, but
   solid orange with white text, matching the nav's Contact button, for the
   mega panel's "View all …" where a hairline outline was too quiet to read
   as an action. */
.ghost-btn--solid {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
  transition: background 180ms ease, border-color 180ms ease;
}
.ghost-btn--solid:hover {
  color: var(--white);
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}
.ghost-btn--solid:focus-visible { outline-color: var(--white); }

/* ===========================================
   SCROLL REVEAL
   =========================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 120ms; }
.reveal[data-delay="2"] { transition-delay: 240ms; }
.reveal[data-delay="3"] { transition-delay: 360ms; }
.reveal[data-delay="4"] { transition-delay: 480ms; }
.reveal[data-delay="5"] { transition-delay: 600ms; }
.reveal[data-delay="6"] { transition-delay: 720ms; }
.reveal[data-delay="7"] { transition-delay: 840ms; }

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}
