/* Ariel's RV Park design layer: tokens + shared components.
 * Plain CSS, every class `ar-`-prefixed. NEVER rely on Tailwind utilities (deploy.sh does not
 * compile Tailwind). Section-specific CSS lives in shell.css / hero.css / living.css / contact.css.
 * Source: Figma Jg6Wn7mY1mwfOrCFRfYO4s, "Homepage-Desktop" 115:593 (1439px wide, desktop only). */

/* ── Fonts (self-hosted, latin subset, variable; both SIL OFL 1.1) ───────────────── */
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url("/fonts/readex-pro-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}

/* ── Tokens ──────────────────────────────────────────────────────────────────────── */
:root {
  /* color */
  --ar-navy: #070d3e;          /* text, headings, outlines */
  --ar-navy-deep: #060d54;     /* navy buttons, split panel, footer */
  --ar-red: #b32813;           /* accents, red band, announcement bar, arrow box */
  --ar-red-hover: #961f0e;     /* hover on red buttons / the highlights CTA */
  --ar-gray: #edf0f1;          /* contact section background */
  --ar-white: #ffffff;
  --ar-overlay: 3, 8, 37;      /* rgb triplet of the photo gradients */
  --ar-ink-72: rgba(6, 13, 84, 0.72);   /* body copy on light */
  --ar-ink-58: rgba(6, 13, 84, 0.58);   /* small caps captions (highlights bar) */
  --ar-ink-70: rgba(6, 13, 84, 0.7);    /* form labels */
  --ar-ink-45: rgba(6, 13, 84, 0.45);   /* placeholders */
  --ar-line: rgba(6, 13, 84, 0.2);      /* hairlines on light */
  --ar-line-light: rgba(255, 255, 255, 0.4); /* hairlines on red / navy */
  --ar-white-76: rgba(255, 255, 255, 0.76);  /* body copy on navy */
  --ar-footer-text: #d9d9d9;
  --ar-shadow-raised: 0 18px 22.5px rgba(6, 13, 84, 0.14);

  /* Reveal (scroll motion; see the "Reveal" block below). Figma's Default -> Variant2 travel is off-canvas, too far for the web. */
  --ar-reveal-x: 96px;
  --ar-reveal-y: 48px;
  --ar-reveal-dur: 0.9s;
  --ar-reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* type */
  --ar-font-display: "Readex Pro", ui-sans-serif, system-ui, sans-serif;
  --ar-font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

  /* spacing / layout */
  --ar-max: 1440px;
  /* Interior-page frame (pricing, media-text): the frame is min(1320px, 100% - 2 gutters); its inner inset grows from 0 at a 1205px
     frame (1280 viewport) to Figma's 75.6px at 1320 (1440 viewport). Percentages resolve against the containing block, so apply the
     inset as padding-inline on an element whose parent is full width: .ar-pricing__grid (child of the section) and .ar-media-text
     itself (its parent .zk-section-wrap is full width). */
  --ar-frame: min(1320px, 100% - 2 * var(--ar-gutter));
  --ar-frame-inset: clamp(0px, calc((var(--ar-frame) - 1205px) * 0.6574), 75.6px);
  --ar-gutter: 37.5px;         /* 20px at <= 960px (see the media query below) */
  --ar-section-y: 96px;
  --ar-anchor-offset: 0px;     /* scroll-margin for anchors; shell.css raises it if the header is sticky */
}

@media (max-width: 960px) { :root { --ar-gutter: 20px; } }

/* ── Page ────────────────────────────────────────────────────────────────────────── */
.ar-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ar-white);
  color: var(--ar-navy);
  font-family: var(--ar-font-body);
  font-size: 16px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}
.ar-body #app { flex: 1 1 auto; }
.ar-body .zk-section-wrap { scroll-margin-top: var(--ar-anchor-offset); }
.ar-container { max-width: var(--ar-max); margin: 0 auto; padding-left: var(--ar-gutter); padding-right: var(--ar-gutter); }
.ar-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ar-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ar-navy-deep); color: #fff; padding: 10px 16px; font-weight: 700; }
.ar-skip:focus { top: 8px; }
/* Editors: always visible, in flow above the announcement bar (so it never overlaps it), so the label can be edited. */
body.zk-editing .ar-skip { position: static; display: block; top: auto; left: auto; padding: 6px var(--ar-gutter); font-size: 13px; line-height: 20px; }
.ar-body a:focus-visible, .ar-body button:focus-visible { outline: 2px solid var(--ar-red); outline-offset: 3px; }
/* Dark / red backgrounds: a red ring is invisible there. Put .ar-on-dark on the section (or any wrapper)
   that sits on navy, red or a photo; links and buttons inside get a white ring. */
.ar-body .ar-on-dark a:focus-visible, .ar-body .ar-on-dark button:focus-visible, .ar-body .ar-on-dark summary:focus-visible { outline-color: #fff; }

/* ── Body copy ───────────────────────────────────────────────────────────────────── */
.ar-text { margin: 0; font: 400 16px/28px var(--ar-font-body); color: var(--ar-navy); }
.ar-text--muted { color: var(--ar-ink-72); line-height: 25.6px; }
.ar-text--light { color: var(--ar-white-76); }
.ar-text--white { color: #fff; }
.ar-text p { margin: 0; }
.ar-text p + p { margin-top: 1em; }

/* ── SectionLabel: short rule + small-caps label ─────────────────────────────────── */
.ar-label {
  display: flex;
  align-items: center;
  gap: 13.6px;
  margin: 0;
  font: 700 11.2px/16.8px var(--ar-font-body);
  letter-spacing: 1.792px;
  text-transform: uppercase;
  color: var(--ar-navy);
}
.ar-label__rule { flex: none; width: 42px; height: 1px; background: currentColor; opacity: 0.65; }
.ar-label--light { color: #fff; }

/* ── Big uppercase H2 (second line in red via .ar-accent) ────────────────────────── */
.ar-h2 {
  margin: 0;
  font: 700 clamp(2rem, 1.1rem + 2.9vw, 3rem)/1.146 var(--ar-font-display);   /* 48px / 55px at desktop */
  letter-spacing: -0.023em;                                                     /* -1.1px at 48px */
  text-transform: uppercase;
  color: var(--ar-navy);
  text-wrap: balance;
}
.ar-h2 .ar-accent { color: var(--ar-red); }
.ar-h2--light { color: #fff; }
/* Interior-page H2 (pricing, media-text, FAQ; Figma 267:1133/1134/1032): no tracking, navy-deep, 57.12 leading on desktop. */
.ar-h2--page { letter-spacing: 0; color: var(--ar-navy-deep); text-wrap: wrap; }
@media (min-width: 1101px) { .ar-h2--page { line-height: 57.12px; } }
.ar-h2--page.ar-h2--light { color: #fff; }
.ar-label + .ar-h2 { margin-top: 28px; }
/* H3 row title (rules, commute links): 36px / 37.5px */
.ar-h3 { margin: 0; font: 700 36px/37.5px var(--ar-font-display); text-transform: uppercase; color: var(--ar-navy); }
.ar-h3--light { color: #fff; }

/* ── 01 / 02 / 03 numbers ────────────────────────────────────────────────────────── */
.ar-num { display: block; font: 700 10.88px/16.32px var(--ar-font-body); letter-spacing: 1.3056px; color: var(--ar-red); }
.ar-num--light { font-size: 11.2px; line-height: 16.8px; letter-spacing: 1.344px; color: #fff; opacity: 0.82; } /* on the red band: 4.82:1 (0.7 was 3.9:1) */

/* ── Buttons: ".ar-btn" + a colour modifier ──────────────────────────────────────── */
.ar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  min-width: 262px;
  padding: 22.4px 25.6px;
  border: 0;
  border-radius: 0;
  font: 700 12px/16.8px var(--ar-font-body);
  letter-spacing: 1.456px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.ar-btn--navy { background: var(--ar-navy-deep); }   /* Figma "Button 1" */
.ar-btn--red { background: var(--ar-red); }          /* red variant used on photo bands */
.ar-btn--navy:hover { background: #0a1470; }
.ar-btn--red:hover { background: var(--ar-red-hover); }
/* Outline (a secondary action beside a navy button, e.g. "Leave a review" next to Get Directions): an inset ring, so it is exactly
   the navy button's size. Fills navy on hover. */
.ar-btn--outline { background: transparent; color: var(--ar-navy-deep); box-shadow: inset 0 0 0 1.5px var(--ar-navy-deep); transition: background-color 0.18s ease, color 0.18s ease; }
.ar-btn--outline:hover { background: var(--ar-navy-deep); color: #fff; }
.ar-btn--block { display: flex; width: 100%; }
.ar-btn--sm { font-size: 11.2px; }                   /* form submit */
.ar-btn__arrow { flex: none; font: 700 19.2px/28.8px var(--ar-font-body); letter-spacing: 1.456px; transition: transform 0.18s ease; }
.ar-btn:hover .ar-btn__arrow { transform: translate(5px, -5px); }   /* Figma "Button 1" Variant2 */
@media (prefers-reduced-motion: reduce) { .ar-btn, .ar-btn__arrow { transition: none; } .ar-btn:hover .ar-btn__arrow { transform: none; } }

/* Mobile (Figma 147:279 Button 1 / Button 3): section CTAs are 262px wide and centred, not full width. The form submit carries
   .ar-btn--block and stays full width. Declared here once; sections must not force .ar-btn to width: 100%. */
@media (max-width: 560px) {
  .ar-btn:not(.ar-btn--block) { display: flex; width: 262px; max-width: 100%; min-width: 0; margin-inline: auto; gap: 16px; }   /* 16 (not 24): "Why this spot works" stays on one line at 262 */
}

/* Small red square with an arrow (header "Contact" link) */
.ar-arrowbox {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  background: var(--ar-red); color: #fff;
  font: 700 11.52px/17.28px var(--ar-font-body); letter-spacing: 1.152px;
}
/* Outlined circle with an arrow (hero "Explore the park") */
.ar-arrowcircle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65); color: #fff;
  font: 700 11.2px/16.8px var(--ar-font-body); letter-spacing: 1.568px;
}

/* ── Photos ──────────────────────────────────────────────────────────────────────── */
.ar-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Edit mode: the kit's dashed outline is the primary red, invisible on red and navy. */
.zk-editing .ar-on-dark [data-editable] { outline-color: rgba(255, 255, 255, 0.7); }
.zk-editing .ar-on-dark [data-editable]:hover, .zk-editing .ar-on-dark [data-editable]:focus, .zk-editing .ar-on-dark [data-editable].zk-active { outline-color: #fff; }

/* Editable buttons carry data-editable-btn (kit site.css:1068, a faint red dashed ring): white on dark/red,
   whether the button sits inside .ar-on-dark or is the .ar-on-dark element itself. */
.zk-editing .ar-on-dark [data-editable-btn],
.zk-editing [data-editable-btn].ar-on-dark { outline-color: rgba(255, 255, 255, 0.7); }
.zk-editing .ar-on-dark [data-editable-btn]:hover,
.zk-editing [data-editable-btn].ar-on-dark:hover { outline-color: #fff; }

/* ── Editor ghosts (blank optional fields) ───────────────────────────────────────── */
/* A blank heading accent ghost takes NO layout space in edit mode (absolutely positioned: no line box). */
.ar-h2 { position: relative; }
/* :empty so text typed into the ghost takes the normal accent style at once. Light on dark sections. */
body.zk-editing .ar-h2 .ar-accent.ar-ed-empty:empty { position: absolute; display: block; white-space: nowrap; padding: 8px 12px; margin: -8px -12px; font: italic 400 12px/1 var(--ar-font-body); letter-spacing: 0; text-transform: none; color: var(--ar-ink-58); }
body.zk-editing .ar-h2--light .ar-accent.ar-ed-empty:empty { color: rgba(255, 255, 255, 0.8); }
.ar-unknown { margin: 0; padding: 12px var(--ar-gutter); background: #fff3cd; color: #5c4400; font: 400 13px/1.4 var(--ar-font-body); }
body:not(.zk-editing) .ar-ed-empty { display: none !important; }
.ar-ed-empty:empty::before { content: attr(data-placeholder); opacity: 0.55; font-style: italic; cursor: text; }
/* A "Leave a review" link whose stored href is not usable (H.reviewLink): editors only, and only in edit mode, with a hint, so the
   pencil can fix it. Its footer row / Contact row goes with it outside edit mode. */
.ar-review-hint { display: block; margin-top: 6px; font: italic 400 12px/18px var(--ar-font-body); letter-spacing: 0; text-transform: none; opacity: 0.85; }
body:not(.zk-editing) .ar-review-fix, body:not(.zk-editing) .ar-review-hint { display: none !important; }
/* Separate rule: a browser without :has() drops a whole rule it can't parse, so this must not share one with the line above. */
body:not(.zk-editing) .ar-footer__row:has(.ar-review-fix), body:not(.zk-editing) .ar-contact-info__actions:has(.ar-review-fix) { display: none !important; }

/* ── Reveal: copy blocks move into place once when scrolled into view ───────────────── */
/* data-ar-reveal="left|right|up" is set server-side on each section's copy wrapper. The hidden start state exists only while <html>
   has .ar-motion (an inline script in <head> sets it before first paint and drops it after 3s if js/ar-reveal.js never ran), so with
   no JS, reduced motion, in print, or in edit mode (body.zk-editing) everything is simply visible. js/ar-reveal.js adds .ar-in. */
@media (max-width: 560px) { :root { --ar-reveal-x: 40px; } }
@media screen and (prefers-reduced-motion: no-preference) {
  /* Scroll-triggered blocks (JS adds .ar-in). [data-ar-reveal-load] blocks (the hero copy) are above the fold: they do not wait for JS,
     they animate with a CSS keyframe from first paint (below). */
  html.ar-motion body:not(.zk-editing) [data-ar-reveal]:not([data-ar-reveal-load]) {
    transition: opacity var(--ar-reveal-dur) var(--ar-reveal-ease), transform var(--ar-reveal-dur) var(--ar-reveal-ease);
  }
  html.ar-motion body:not(.zk-editing) [data-ar-reveal]:not([data-ar-reveal-load]):not(.ar-in) { opacity: 0; }
  html.ar-motion body:not(.zk-editing) [data-ar-reveal="left"]:not([data-ar-reveal-load]):not(.ar-in) { transform: translate3d(calc(-1 * var(--ar-reveal-x)), 0, 0); }
  html.ar-motion body:not(.zk-editing) [data-ar-reveal="right"]:not([data-ar-reveal-load]):not(.ar-in) { transform: translate3d(var(--ar-reveal-x), 0, 0); }
  html.ar-motion body:not(.zk-editing) [data-ar-reveal="up"]:not([data-ar-reveal-load]):not(.ar-in) { transform: translate3d(0, var(--ar-reveal-y), 0); }
  html.ar-motion body:not(.zk-editing) [data-ar-reveal-load]:not(.ar-in) { animation: ar-reveal-load-left var(--ar-reveal-dur) var(--ar-reveal-ease); }
  html.ar-motion body:not(.zk-editing) [data-ar-reveal="right"][data-ar-reveal-load]:not(.ar-in) { animation-name: ar-reveal-load-right; }
  html.ar-motion body:not(.zk-editing) [data-ar-reveal="up"][data-ar-reveal-load]:not(.ar-in) { animation-name: ar-reveal-load-up; }
  @keyframes ar-reveal-load-left { from { opacity: 0; transform: translate3d(calc(-1 * var(--ar-reveal-x)), 0, 0); } }
  @keyframes ar-reveal-load-right { from { opacity: 0; transform: translate3d(var(--ar-reveal-x), 0, 0); } }
  @keyframes ar-reveal-load-up { from { opacity: 0; transform: translate3d(0, var(--ar-reveal-y), 0); } }
  /* Sideways travel must never make the page scroll sideways. clip (unlike hidden) makes no scroll container, so sticky and
     focus rings keep working; edit mode never moves anything, so it is excluded and the editor's controls are untouched. */
  html.ar-motion body:not(.zk-editing) #app { overflow-x: clip; }
}
/* Edit mode: nothing moves, and a reveal already running when edit mode starts is cancelled (a transition whose end value is unchanged
   would otherwise keep running). html.ar-still: an in-place #app re-render (exit edit mode, realtime sync, AI apply) shows the copy
   already on screen instantly; ar-reveal.js sets it for the swap only. */
body.zk-editing [data-ar-reveal], html.ar-still [data-ar-reveal] { transition: none !important; animation: none !important; }

/* ── Foundation stub (pb_hooks/ar/sections/_stub.js); goes unused once the real sections land ── */
.ar-stub { padding: 48px 0; border-bottom: 1px dashed var(--ar-line); }
.ar-stub__note { margin: 16px 0 0; color: var(--ar-ink-58); font-size: 12px; }

/* ── /contact/thank-you (rendered outside the homepage sections) ──────────────────── */
.ar-thanks { padding: 96px var(--ar-gutter); }
.ar-thanks__inner { max-width: 560px; margin: 0 auto; }
.ar-thanks .ar-contact__thanks { padding-top: 0; }
.ar-thanks .ar-contact__thanks-title { font: 700 clamp(2rem, 1.1rem + 2.9vw, 3rem)/1.146 var(--ar-font-display); letter-spacing: -0.023em; margin-bottom: 20px; }
.ar-thanks__back { margin: 40px 0 0; }
/* The thank-you copy is left-aligned in its column, so its button keeps the pre-mobile look (not centred at 262). */
@media (max-width: 560px) { .ar-thanks__back .ar-btn { display: inline-flex; width: auto; max-width: none; min-width: 262px; margin-inline: 0; gap: 24px; } }
