/* ============================================================
   INFO / SAFETY PAGE ONLY.
   Nav / ticker / footer base styling lives in shared.css —
   this page just points --footer-bg at the dark olive green
   and uses mustard logo variants in the HTML.
   ============================================================ */

:root {
  --footer-bg: var(--olive-dark);
}

body { background: var(--olive-dark); }

/* ---------- HERO ---------- */

.safety-hero {
  position: relative;
  width: 100%;
  min-height: 640px;
  background: #46400E;
  line-height: 0; /* avoid a stray inline-element gap under the iframe */
}

.safety-hero-embed {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}

@media (max-width: 700px) {
  .safety-hero { min-height: 300px; }
  .safety-hero-embed { height: 300px; }
}

/* ---------- SAFETY LIST ----------
   Everything (numbered circles, connector line, all 9 icons) is
   one flattened graphic exported directly from Figma, positioned
   as the background of a fixed-aspect-ratio canvas (1355:2264,
   matching the SVG's own bounds). Heading/paragraph text is real
   HTML, positioned at percentages measured directly off Avi's
   reference screenshot and mapped into this same coordinate
   space (confirmed via 9 icon reference points, matched to
   within 3px). Font sizes use cqw (% of the canvas's own render
   width) so the 96pt : 24pt heading-to-body ratio from Figma
   holds at any screen size. */

.safety-list {
  background: var(--cream);
  color: var(--black);
  padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 56px) clamp(64px, 9vw, 140px);
}

.safety-canvas {
  position: relative;
  width: 100%;
  max-width: 1355px;
  margin: 0 auto;
  aspect-ratio: 1355 / 2264;
  container-type: inline-size;
}

.safety-canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.safety-text {
  position: absolute;
  z-index: 1;
  padding-left: calc(18 / 1355 * 100cqw);
  box-sizing: border-box;
}

.safety-heading {
  font-size: calc(48 / 1355 * 100cqw);
  color: var(--mustard);
  line-height: 1.05;
  margin: 0 0 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.safety-text p {
  font-size: calc(18 / 1355 * 100cqw);
  line-height: 1.4;
  margin: 0 0 0.5em;
}

.safety-text p:last-child { margin-bottom: 0; }

.safety-text--about { left: 5.69%; top: 2.50%; width: 44.21%; }
.safety-text--location { left: 54.53%; top: 16.05%; width: 34.49%; }
.safety-text--parking { left: 7.23%; top: 27.19%; width: 34.49%; }
.safety-text--fireglass { left: 50.26%; top: 32.58%; width: 43.03%; }
.safety-text--camping { left: 16.00%; top: 49.40%; width: 42.31%; }
.safety-text--watertoilets { left: 42.67%; top: 60.18%; width: 57.72%; }
.safety-text--whattobring { left: 10.91%; top: 73.16%; width: 51.68%; }
.safety-text--trash { left: 63.18%; top: 81.39%; width: 31.29%; }
.safety-text--cellservice { left: 25.13%; top: 95.01%; width: 44.92%; }

/* ---------- MOBILE SAFETY LIST ----------
   The fixed-aspect canvas above only holds together at wide widths — the
   icon artwork and absolutely-positioned text both get cramped/overlapping
   on a phone. Below 700px we swap it for a plain single-column stack (real
   document flow, no icons, no numbered circles), keeping only the thin
   connector line as a faint decorative background behind the text. */

.safety-list--mobile { display: none; }

@media (max-width: 700px) {
  .safety-list--desktop { display: none; }

  .safety-list--mobile {
    display: block;
  }

  .safety-mobile {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
  }

  .safety-mobile-line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
  }

  .safety-mobile-item {
    position: relative;
    z-index: 1;
    padding: 22px 0;
    border-bottom: 1px solid rgba(62, 57, 6, 0.15);
  }

  .safety-mobile-item:first-child { padding-top: 0; }
  .safety-mobile-item:last-child { border-bottom: none; padding-bottom: 0; }

  .safety-mobile-item .safety-heading {
    font-size: 28px;
    display: block;
  }

  .safety-mobile-item p {
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 0.5em;
  }

  .safety-mobile-item p:last-child { margin-bottom: 0; }
}
