/* ==========================================================================
   LOOP site-starter — component stylesheet.

   Rules for anyone editing this file (ported from the source client build):
   1. ONE definition per selector. Need a variant? Add a modifier class, not
      a second block with the same name.
   2. Colour, size and duration come from a TOKEN (tokens.css). No raw hex,
      no raw px-for-colour/size-scale values — check_no_raw_hex() in build.py
      greps this file for a literal #hex and fails the build on one. Grid/
      layout constants (column widths, breakpoints) are exempt; they are
      structural, not design tokens.
   3. This file is loaded SECOND: tokens.css, then this, then panel.css last
      (panel.css is the override layer — see its own header).
   4. Fonts come from --font-display / --font-text (tokens.css). No CDN.
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.eyebrow {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 var(--sp-2);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.15; margin: 0 0 var(--sp-3); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }
p { margin: 0 0 var(--sp-3); }

/* --- Header / nav --------------------------------------------------------- */
.top {
  border-bottom: var(--border);
  padding: var(--sp-3) var(--sp-4);
}
.top-in {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.brand { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-1); text-decoration: none; }
.nav-l { list-style: none; display: flex; gap: var(--sp-4); margin: 0; padding: 0; }
.nav-l a {
  text-decoration: none;
  /* Tap target: WCAG 2.5.8 wants 24x24 CSS px. Bare inline links in the nav
     measured 18px tall on the starter's own first audit — pad the hit box and
     pull the padding back out of the layout so the visual rhythm is unchanged. */
  display: inline-block; padding: 8px 6px; margin: -8px -6px;
}
.nav-l a[aria-current="page"] { text-decoration: underline; }

/* --- Sections / bands ------------------------------------------------------ */
.band { padding: var(--band-pad) var(--sp-4); }
.band--lift { background: var(--paper); }
.band--sunk { background: var(--surface-sunk); }
.in { max-width: 1200px; margin: 0 auto; }

/* --- Hero ------------------------------------------------------------------ */
.hero { padding: var(--band-pad) var(--sp-4); }
.hero-in { max-width: 900px; margin: 0 auto; }
.hero-cta { display: flex; gap: var(--sp-3); align-items: center; margin-top: var(--sp-4); }

/* --- Buttons ---------------------------------------------------------------*/
.btn {
  display: inline-block;
  padding: .75em 1.4em;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-link { text-decoration: underline; }

/* --- Cards ------------------------------------------------------------------*/
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-4); }
.card { border: var(--border); border-radius: var(--radius); padding: var(--sp-4); text-decoration: none; color: inherit; }
.card--flat { opacity: .6; }
.card .ic { margin-bottom: var(--sp-2); }

/* --- Contact dials ---------------------------------------------------------*/
.dials { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-4); }
.dial { border: var(--border); border-radius: var(--radius); padding: var(--sp-3); }
.dial-k { display: block; font-size: .8rem; color: var(--ink-soft); }
.dial-v { display: block; font-size: var(--step-1); text-decoration: none; }

/* --- Form -------------------------------------------------------------------*/
.formwrap { border: var(--border); border-radius: var(--radius); padding: var(--sp-4); margin-top: var(--sp-4); }
.formwrap label { display: block; margin-bottom: var(--sp-3); }
.formwrap input, .formwrap textarea {
  width: 100%; padding: .6em; border: var(--border); border-radius: 6px;
  font: inherit;
}
.notice { margin: 0 0 var(--sp-3); font-size: .9rem; color: var(--ink-soft); }   /* enquiry notice, above the button */
.notice p { margin: 0 0 var(--sp-2); }

/* --- Footer -------------------------------------------------------------- */
.foot { border-top: var(--border); padding: var(--sp-5) var(--sp-4); background: var(--ink); color: var(--paper-soft); }
.foot-in { max-width: 1200px; margin: 0 auto; }
.fnav { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.fnav a { display: inline-block; padding: 8px 6px; margin: -8px -6px; } /* tap target, see .nav-l a */
.fh { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--paper-soft); margin-bottom: var(--sp-2); }
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol a { color: var(--paper); text-decoration: none; }
.foot-end { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-5); font-size: .8rem; flex-wrap: wrap; }
.runs-on-loop svg { display: block; }

/* --- Motion-safe reveal classes (see assets/js/main.js) ------------------
   These are TIME-BASED (transition/animation with no animation-timeline),
   so check_motion_safe() does not need to look at them — that guard only
   polices SCROLL-TIMELINE keyframes starting invisible. Content under these
   classes is visible by default in the CSS below; main.js adds motion on
   top of visible content, never the reverse. */
.rise { opacity: 1; transform: none; }

/* --- Sample banner (BRIEF-245) ------------------------------------------
   First element of <body> on every view of a SAMPLE build (markup and the
   build guard are u4's: build.py). Its colours are --banner-bg / --banner-ink
   from tokens.css and a pack may not set them, so the banner is the one thing
   that looks the same on all three samples. Always in the flow at the top, no
   dismiss control, never hidden. System font on purpose: a pack's font may not
   change it either. */
.sample-banner {
  background: var(--banner-bg);
  color: var(--banner-ink);
  font: 600 .9rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: var(--sp-2) var(--sp-4);
  text-align: center;
}

/* Sample footer lines and property blanks (u4). */
.sample-foot,.sample-disclaimer{color:var(--paper-soft);font-size:.9rem;line-height:1.5;max-width:60rem}
.property-lines p{margin:0 0 var(--sp-2)}
.plistings{list-style:none;padding:0;margin:var(--sp-3) 0 0;display:grid;gap:var(--sp-3);grid-template-columns:repeat(auto-fit,minmax(14rem,1fr))}
.plisting{border:var(--border);border-radius:var(--radius);padding:var(--sp-4);color:var(--ink-soft)}
