/* Eaveline design system — Direction 3.
   Register: Montserrat throughout, dark grounds alternating with light bands,
   one accent used sparingly, 5px radii. Tokens are Eaveline's own. */

:root {
  --ink: #101620;
  --ink-deep: #0B0F17;
  --ink-deeper: #080C13;
  --raised: #18202E;
  --slate: #2C3646;
  --slate-2: #4E596A;
  --muted: #6E7A8C;
  --muted-2: #A9B3C2;
  --bone: #F3EFE6;
  --paper: #FAF8F2;
  --white: #FFFFFF;
  --line: #D6CEBE;
  --line-dark: #2C3646;
  --brass: #B78A4C;
  --brass-ink: #7D5A25;   /* text-safe brass; --brass is a ground colour only */
  --glow: #FFE3B0;
  --danger: #C4553F;
  --r: 5px;
  --wrap: 1320px;
  --gut: clamp(20px, 4vw, 60px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--glow); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--brass); color: var(--ink); padding: 12px 18px; border-radius: var(--r); z-index: 99; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* type ramp */
.d1 { font-size: clamp(38px, 5.4vw, 76px); font-weight: 800; line-height: 1.04; letter-spacing: -0.01em; text-transform: uppercase; margin: 0; }
.d2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -0.005em; text-transform: uppercase; margin: 0; }
.d3 { font-size: clamp(19px, 1.6vw, 26px); font-weight: 700; line-height: 1.2; margin: 0; }
.pre { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin: 0; }
.pre.on-light { color: var(--brass-ink); }
.bd { font-size: 16px; font-weight: 400; line-height: 1.62; margin: 0; }
.lede { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }
.mt-sm { margin-top: 10px; } .mt-md { margin-top: 14px; } .mt-lg { margin-top: 34px; }

/* grounds */
.sec { padding: clamp(52px, 6vw, 84px) 0; }
.sec--ink { background: var(--ink); color: var(--bone); }
.sec--deep { background: var(--ink-deep); color: var(--bone); }
.sec--bone { background: var(--bone); color: var(--ink); }
.sec--paper { background: var(--paper); color: var(--ink); }
.on-light .bd, .sec--bone .bd, .sec--paper .bd { color: var(--slate-2); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 16px 34px; border-radius: var(--r);
  font-size: 14px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.btn--primary { background: var(--brass); color: var(--ink); }
.btn--primary:hover { background: var(--glow); color: var(--ink); }
.btn--onink { border-color: rgba(243,239,230,.55); color: var(--bone); }
.btn--onink:hover { background: rgba(243,239,230,.1); color: var(--bone); }
.btn--onlight { border-color: var(--ink); color: var(--ink); }
.btn--onlight:hover { background: var(--ink); color: var(--bone); }
.btn--block { width: 100%; }

/* header */
/* Solid and in flow by default. It only overlays the hero at widths where the
   nav still fits on one row; stacked over a photo it collided with the copy. */
.hdr { position: sticky; top: 0; left: 0; right: 0; z-index: 40; background: var(--ink-deep);
  transition: background .25s ease, box-shadow .25s ease; }
.hdr::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(rgba(8,12,19,.78), rgba(8,12,19,0)); transition: opacity .25s ease; }
.hdr .wrap { position: relative; }
[id] { scroll-margin-top: 96px; }

@media (min-width: 1001px) {
  .hdr { position: fixed; background: transparent; }
  .hdr::before { opacity: 1; }
  .hdr--solid { background: var(--ink-deep); box-shadow: 0 1px 0 rgba(44,54,70,.9); }
  .hdr--solid::before { opacity: 0; }
  .hero { padding-top: 84px; }
  .hero .wrap { padding-top: 44px; }
  .hero--short .wrap { padding-top: 30px; }
}
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); }
.brand b { font-size: 20px; font-weight: 800; letter-spacing: 0.12em; }
.brand small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.nav a { color: var(--muted-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); }
.nav .tel { color: var(--bone); font-weight: 700; }

/* hero */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; background: var(--ink-deep); }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,15,23,.94) 0%, rgba(11,15,23,.74) 38%, rgba(11,15,23,.18) 68%, rgba(11,15,23,.38) 100%); }
.hero__scrim--btm { position: absolute; inset: auto 0 0 0; height: 190px; background: linear-gradient(transparent, rgba(11,15,23,.9)); }
.hero .wrap { position: relative; padding-top: 76px; padding-bottom: 76px; }
.hero__copy { max-width: 46ch; display: flex; flex-direction: column; gap: 20px; }
.hero--short { min-height: 380px; }

.scenes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.scene { padding: 11px 20px; border-radius: var(--r); background: rgba(11,15,23,.55); border: 1px solid rgba(243,239,230,.3);
  color: #E3E7EC; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.scene[aria-pressed="true"] { background: rgba(243,239,230,.95); color: var(--ink); border-color: transparent; }

/* strips and grids */
.props { background: var(--ink-deep); }
.props .wrap { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px; padding-top: 26px; padding-bottom: 26px; }
.prop { display: flex; align-items: center; gap: 13px; }
.prop b { display: block; font-size: 13.5px; font-weight: 700; color: var(--bone); }
.prop span { display: block; font-size: 12px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.82fr); gap: clamp(30px, 4.5vw, 64px); align-items: center; }
.split--flip > *:first-child { order: 2; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.rule-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line-dark); }
.rule-3 > * { background: var(--ink); padding: 32px 28px; }
.spec { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); }
.spec > * { background: var(--paper); padding: 30px 26px; }
.spec .n { font-size: 34px; font-weight: 800; color: var(--brass-ink); line-height: 1; }

.card { background: var(--raised); border-radius: var(--r); overflow: hidden; }
.card img, .card .ph { width: 100%; height: 176px; object-fit: cover; }
.card .body { padding: 22px; }
.card .k { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }

/* photo slot: an honest marker, not a grey box */
.ph { display: grid; place-items: center; text-align: center; gap: 9px;
  background: #EFE9DA; border: 1px solid var(--line); border-radius: var(--r); color: var(--brass-ink);
  min-height: 240px; padding: 26px; }
.ph b { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ph span { font-size: 13.5px; line-height: 1.55; color: #8A8272; max-width: 32ch; }
.ph--dark { background: #151D2C; border-color: var(--line-dark); color: var(--muted-2); }
.ph--dark span { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); font-size: 13.5px; font-weight: 600; color: var(--slate); }

/* feature photo with caption */
.feature { position: relative; border-radius: var(--r); overflow: hidden; margin-top: 36px; }
.feature img { width: 100%; height: clamp(260px, 34vw, 460px); object-fit: cover; }
.feature figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 32px; background: linear-gradient(transparent, rgba(11,15,23,.88)); }
.feature b { display: block; font-size: 20px; font-weight: 700; color: var(--bone); }
.feature span { display: block; font-size: 14px; color: #C3CBD6; margin-top: 5px; }

/* faq */
.faq { margin-top: 34px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary b { font-size: 17px; font-weight: 700; color: var(--ink); }
.faq summary::after { content: "+"; font-size: 20px; font-weight: 700; color: var(--brass-ink); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { font-size: 15px; line-height: 1.62; color: var(--slate-2); margin: 12px 0 0; max-width: 84ch; }

/* cta */
.cta { background: var(--brass); color: var(--ink); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding-top: 56px; padding-bottom: 56px; }
.cta .btn { background: var(--ink); color: var(--bone); }
.cta .btn:hover { background: var(--ink-deeper); color: var(--bone); }

/* form */
.form { background: var(--ink); border: 1px solid var(--line-dark); border-radius: var(--r); padding: 32px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: span 2; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.field input { background: var(--ink-deep); border: 1px solid var(--line-dark); border-radius: var(--r);
  min-height: 50px; padding: 14px; font: inherit; font-size: 15px; color: var(--bone); }
.field input:focus { outline: none; border-color: var(--brass); border-width: 2px; padding: 13px; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--muted-2); }
.note { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.ticks { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.ticks div { display: flex; gap: 11px; align-items: baseline; font-size: 15px; color: #E3E7EC; }
.ticks i { color: var(--brass); font-weight: 700; font-style: normal; }

/* review */
.quote { background: var(--raised); border-radius: var(--r); padding: 34px; }
.stars { color: var(--glow); letter-spacing: 3px; font-size: 17px; }
.quote blockquote { margin: 16px 0 0; font-size: 19px; line-height: 1.55; color: var(--bone); }
.quote figcaption { margin-top: 16px; font-size: 13.5px; color: var(--muted-2); }

/* footer */
.ftr { background: var(--ink-deeper); padding: 54px 0 38px; }
.ftr .cols { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: 40px; }
.ftr h2 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin: 0; }
.ftr ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--muted-2); }
.ftr ul a { color: var(--muted-2); }
.ftr ul a:hover { color: var(--bone); }
.ftr .base { border-top: 1px solid #1A2331; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--slate-2); }

@media (max-width: 1000px) {
  .props .wrap { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .spec, .rule-3, .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ftr .cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
  /* the nav must stay reachable at every width: stack it, never hide it */
  .hdr .wrap { flex-direction: column; align-items: stretch; gap: 12px; }
  .nav { gap: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch;
         padding-bottom: 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; padding: 6px 0; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 720px) {
  .split, .split--flip > *:first-child { grid-template-columns: minmax(0,1fr); order: 0; }
  .grid-4, .spec, .rule-3, .grid-3, .fields, .ftr .cols { grid-template-columns: minmax(0,1fr); }
  .field--wide { grid-column: span 1; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 520px; }
  .props .wrap { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }


/* service-area map — schematic, pins placed from each town's real coordinates */
.map { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 46px); align-items: start; }
.map__frame { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.map svg { width: 100%; height: auto; display: block; }
.map .grid-line { stroke: var(--line); stroke-width: 1; }
.map .pin-dot { fill: var(--brass); }
.map .pin-ring { fill: none; stroke: var(--brass); stroke-width: 2; opacity: .45; }
.map .pin-base { fill: var(--ink); }
.map .pin-label { font-family: Montserrat, sans-serif; font-size: 15px; font-weight: 600; fill: var(--slate); }
.map .pin-label--base { font-weight: 800; fill: var(--ink); }
.map__key { display: flex; flex-direction: column; gap: 14px; }
.map__key .row { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--slate-2); }
.map__key .swatch { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.map__note { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 4px 0 0; }
@media (max-width: 860px) { .map { grid-template-columns: minmax(0,1fr); } }


/* ---------- hero: let the headline breathe ---------- */
.hero__copy { max-width: min(920px, 100%); }
.hero__copy .lede { max-width: 48ch; }
.d1 { font-size: clamp(36px, 4.6vw, 66px); }

/* ---------- trust bar: larger, roomier ---------- */
.props .wrap { gap: 30px; padding-top: 34px; padding-bottom: 34px; }
.prop { gap: 16px; }
.prop b { font-size: 17px; line-height: 1.25; }
.prop span { font-size: 14.5px; line-height: 1.4; margin-top: 3px; }
.prop svg { width: 32px; height: 32px; flex: 0 0 auto; }
@media (max-width: 900px) {
  .props .wrap { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
}
@media (max-width: 560px) {
  .props .wrap { grid-template-columns: minmax(0,1fr); }
}

/* ---------- our work: slider ---------- */
.slider { margin-top: 36px; position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--r); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { position: relative; scroll-snap-align: center; border-radius: var(--r); overflow: hidden;
  background: var(--ink-deep); }
.slide img { width: 100%; height: clamp(260px, 34vw, 460px); object-fit: cover; display: block; }
.slide__ph { width: 100%; height: clamp(260px, 34vw, 460px); display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 24px;
  background: repeating-linear-gradient(45deg, #161E2B, #161E2B 12px, #131A26 12px, #131A26 24px);
  border: 1px dashed var(--slate); }
.slide__ph span { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); }
.slide figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 28px;
  background: linear-gradient(transparent, rgba(11,15,23,.9)); }
.slide b { display: block; font-size: 20px; font-weight: 700; color: var(--bone); }
.slide span.meta { display: block; font-size: 14px; color: #C3CBD6; margin-top: 5px; }

.slider__ui { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }
.slider__dots { display: flex; gap: 8px; flex-wrap: wrap; }
.slider__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--brass-ink); background: transparent; }
.slider__dots button[aria-current="true"] { background: var(--brass-ink); }
.slider__arrows { display: flex; gap: 10px; }
.slider__arrows button { width: 46px; height: 46px; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.slider__arrows button:hover { border-color: var(--brass-ink); color: var(--brass-ink); }
.slider__arrows button:disabled { opacity: .35; cursor: default; }
.slider__count { font-size: 13.5px; font-weight: 600; color: var(--slate-2); }

/* ---------- OpenStreetMap ---------- */
#eaveline-map { width: 100%; height: clamp(340px, 42vw, 520px); border-radius: var(--r); z-index: 0; }
.map__fallback { position: absolute; left: -9999px; }
.map__frame .leaflet-container { font: inherit; background: var(--bone); }
.map__frame .leaflet-control-attribution { font-size: 11px; }
.swatch--base { background: var(--ink); }
.swatch--town { background: var(--brass); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatch--area { background: rgba(183,138,76,.28); border: 1.5px solid var(--ink); }

.map__frame .leaflet-container svg { width: auto; height: auto; display: block; max-width: none; }
.map__frame .leaflet-container img { max-width: none; }

/* the game night scene tile is an SVG illustration, not a photo: fill the same frame */
.card img[src$=".svg"] { object-fit: cover; background: #111A28; }

/* ---------- app section ---------- */
.applist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
/* .applist's margin:0 is declared after .mt-lg, so restate the spacing here */
.applist.mt-lg { margin-top: 30px; }
.applist li { display: flex; align-items: flex-start; gap: 13px; font-size: 16.5px; line-height: 1.45; color: var(--slate); }
.applist__i { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--brass);
  color: #fff; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.applist__i svg { width: 15px; height: 15px; }

.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.storebadge { display: flex; flex-direction: column; justify-content: center; min-width: 186px; min-height: 58px;
  padding: 9px 18px; border: 1px dashed var(--slate-2); border-radius: 8px; background: var(--white); }
.storebadge b { font-size: 14px; font-weight: 700; color: var(--ink); }
.storebadge span { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.ratings { display: flex; flex-wrap: wrap; gap: 22px; }
.rating { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: var(--slate-2); }
.rating svg { width: 17px; height: 17px; fill: var(--brass); }
.rating b { font-size: 16.5px; font-weight: 700; color: var(--ink); }

.appshots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: center; }
.phone { margin: 0; border-radius: 24px; padding: 7px; background: #14161A; border: 1px solid var(--slate);
  box-shadow: 0 18px 40px -22px rgba(11,15,23,.6); }
.phone--lift { transform: translateY(-22px); }
.phone__screen { border-radius: 18px; aspect-ratio: 9 / 19; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 14px;
  background: repeating-linear-gradient(45deg, #1B2028, #1B2028 11px, #171B22 11px, #171B22 22px); }
.phone__screen span { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); line-height: 1.5; }

@media (max-width: 900px) {
  .appshots { max-width: 420px; gap: 12px; }
  .phone--lift { transform: none; }
  .stores { gap: 12px; }
}
