/* ══════════════════════════════════════════════════════════════════════════
   ATLAS DOCKS, LLC — Camdenton / Lake of the Ozarks, MO
   Demonstration rebuild. Archetype C, split rail. Mobile-first.
   No framework, no build step, no JavaScript anywhere in the document.

   WHY THIS SHAPE. atlasdocks.com prints 573-346-3625 in a yellow bar on
   every page and three more times on the contact page, and carries ZERO
   tel: links anywhere on the site. Archetype C exists for exactly this:
   a rail that holds identity, phone and navigation permanently on screen,
   collapsing on a phone to a sticky bar in the SAME slot their yellow bar
   already occupies — the only difference being that this one dials.

   The other dock demo in this market (sos-dock-barge) ends in a fixed
   BOTTOM call bar, so this one is deliberately a TOP bar.

   PALETTE. Both existing Lake of the Ozarks dock demos are light-ground:
   sos-dock-barge is cool navy/teal/buoy-orange on near-white, and
   rough-water-dock is warm bone with logo red. This one is the only
   dark-ground dock page — graphite with a green cast, galvanised steel
   blue for labels, and brass yellow (a nod to the yellow bar Atlas already
   runs) reserved for one job only: calling. No teal, no orange, no red.

   TYPE. System sans at deliberately LOW scale contrast — h1 tops out at
   2.55rem against rough-water-dock's 3.35rem — with ui-monospace as the
   label face for every index number, key and figure. No serif anywhere,
   so it cannot be mistaken for rough-water-dock's Georgia.
   ══════════════════════════════════════════════════════════════════════════ */

:root{
  --ground:    #141a18;   /* graphite, green cast — page ground             */
  --ground-2:  #1b2320;   /* raised card / band                             */
  --ground-3:  #232c28;   /* placeholder frame fill                         */
  --ink:       #eaeeeb;   /* primary text on ground                         */
  --ink-mute:  #a7b2ac;   /* secondary text — AA on all three grounds       */
  --brass:     #f0c14b;   /* CALL ACTIONS ONLY. never decorative.           */
  --brass-dk:  #d8a92f;
  --steel:     #9fc0d0;   /* galvanised — labels, keys, links               */
  --line:      #2e3a35;
  --line-2:    #3f4d47;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --pad: 20px;
  --rail-w: 322px;
  --col-max: 700px;
}

*,*::before,*::after{ box-sizing:border-box }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto } }

body{
  margin:0;
  background:var(--ground);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img,svg{ max-width:100%; height:auto }

a{ color:var(--steel) }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline:3px solid var(--brass);
  outline-offset:2px;
  border-radius:2px;
}

.skip{
  position:absolute; left:-9999px; top:0;
  background:var(--brass); color:#14100a;
  padding:12px 18px; font-weight:700; z-index:200;
}
.skip:focus{ left:0 }

/* ── Sticky mobile call bar ─────────────────────────────────────────────
   Sits where their yellow bar sits. Tappable, unlike theirs.            */
.callbar{
  position:sticky; top:0; z-index:60;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:9px 14px;
  background:#0e1312;
  border-bottom:2px solid var(--brass);
}
.callbar-id{
  font-family:var(--mono);
  font-size:.72rem; letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink-mute);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.callbar-sub{ display:none }
.callbar-tel{
  display:inline-flex; align-items:center; gap:7px;
  background:var(--brass); color:#14100a;
  text-decoration:none; font-weight:800;
  font-size:1rem; letter-spacing:.01em;
  padding:8px 13px; border-radius:3px;
  white-space:nowrap;
}
.callbar-tel:hover{ background:#ffd469 }

/* ── The rail ──────────────────────────────────────────────────────────── */
.rail{
  background:#0e1312;
  border-bottom:1px solid var(--line);
}
.rail-in{ padding:26px var(--pad) 30px }

.brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none; color:var(--ink);
}
.brand-mark{ width:46px; height:42px; flex:0 0 auto }
.brand-text strong{
  display:block; font-size:1.32rem; font-weight:800; letter-spacing:-.01em;
}
.brand-text span{
  display:block;
  font-family:var(--mono); font-size:.7rem; letter-spacing:.07em;
  text-transform:uppercase; color:var(--steel); margin-top:3px;
}

.rail-line{
  margin:16px 0 18px;
  font-size:.95rem; color:var(--ink-mute); max-width:34em;
}

.rail-tel{
  display:block; text-decoration:none;
  background:var(--brass); color:#14100a;
  padding:12px 16px; border-radius:4px;
  max-width:340px;
}
.rail-tel:hover{ background:#ffd469 }
.rail-tel-k{
  display:block; font-family:var(--mono);
  font-size:.68rem; letter-spacing:.11em; text-transform:uppercase;
  color:#3a2f10; font-weight:700;
}
.rail-tel-n{
  display:block; font-size:1.42rem; font-weight:800; letter-spacing:-.01em;
  line-height:1.25;
}

.rail-facts{ list-style:none; margin:20px 0 0; padding:0; max-width:340px }
.rail-facts li{
  display:grid; grid-template-columns:66px 1fr; gap:10px;
  padding:9px 0; border-top:1px solid var(--line);
  font-size:.88rem;
}
.rail-facts .k{
  font-family:var(--mono); font-size:.66rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--ink-mute); padding-top:3px;
}
.rail-facts a{ color:var(--steel) }

.rail-nav{ margin-top:22px }
.rail-nav ol{ list-style:none; margin:0; padding:0 }
.rail-nav > ol > li > a{
  display:block; text-decoration:none; color:var(--ink);
  font-weight:700; font-size:.98rem;
  padding:8px 0; border-top:1px solid var(--line);
}
.rail-nav > ol > li:first-child > a{ border-top:none }
.rail-nav > ol > li > a:hover{ color:var(--brass) }
.rail-nav .n{
  font-family:var(--mono); font-size:.72rem; color:var(--steel);
  margin-right:9px; font-weight:600;
}
.rail-nav ul{ list-style:none; margin:0 0 8px; padding:0 0 0 33px }
.rail-nav ul a{
  display:block; padding:4px 0; font-size:.86rem;
  color:var(--ink-mute); text-decoration:none;
}
.rail-nav ul a:hover{ color:var(--steel); text-decoration:underline }

.rail-creds{
  list-style:none; margin:22px 0 0; padding:0;
  display:flex; flex-wrap:wrap; gap:7px;
}
.rail-creds li{
  font-family:var(--mono); font-size:.66rem; letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--steel);
  border:1px solid var(--line-2); border-radius:99px;
  padding:4px 10px;
}

/* ── Content column ────────────────────────────────────────────────────── */
.col{ padding:0 var(--pad) }
.col > section{
  max-width:var(--col-max);
  padding:36px 0 40px;
  border-bottom:1px solid var(--line);
}
.col > section:last-of-type{ border-bottom:none }

.sec-n{
  font-family:var(--mono); font-size:.72rem; letter-spacing:.16em;
  color:var(--brass-dk); margin:0 0 6px; font-weight:700;
}
h2{
  font-size:clamp(1.5rem, 5.4vw, 1.95rem);
  line-height:1.18; letter-spacing:-.015em;
  margin:0 0 12px; font-weight:800;
}
h3{
  font-size:1.12rem; font-weight:800; letter-spacing:-.005em;
  margin:0 0 8px;
}
p{ margin:0 0 15px }
.sec-lede{ color:var(--ink-mute); max-width:40em }

/* ── Opening statement ─────────────────────────────────────────────────── */
.open{ padding-top:30px }
.eyebrow{
  font-family:var(--mono); font-size:.7rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--steel); margin:0 0 12px;
}
h1{
  font-size:clamp(1.78rem, 7vw, 2.55rem);
  line-height:1.14; letter-spacing:-.022em;
  margin:0 0 16px; font-weight:800;
  max-width:15em;
}
.lede{ font-size:1.05rem; max-width:38em }

.cta{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--brass); color:#14100a;
  text-decoration:none; font-weight:800; font-size:1.12rem;
  padding:14px 22px; border-radius:4px; margin-top:6px;
}
.cta:hover{ background:#ffd469 }
.cta-sub{ font-size:.9rem; color:var(--ink-mute); margin:12px 0 0 }

.facts{
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:1px; background:var(--line);
  border:1px solid var(--line); margin:26px 0 0;
}
.facts > div{ background:var(--ground-2); padding:12px 14px }
.facts dt{
  font-family:var(--mono); font-size:.65rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--ink-mute);
}
.facts dd{ margin:3px 0 0; font-weight:700; font-size:.98rem }

/* ── The work — categorised chapters ───────────────────────────────────── */
.chapter{
  margin-top:30px; padding-top:24px;
  border-top:2px solid var(--line-2);
}
.chapter > p{ color:var(--ink-mute); max-width:40em }

.plate{ margin:20px 0 0 }
.plate figcaption{
  font-family:var(--mono); font-size:.72rem; letter-spacing:.05em;
  color:var(--steel); margin-top:8px;
}
.plate-row{ display:grid; gap:18px; margin-top:4px }

.frame{
  display:block; position:relative;
  background:var(--ground-3);
  border:2px dashed var(--line-2);
  border-radius:3px;
  padding:16px 15px 18px;
  min-height:190px;
  background-image:repeating-linear-gradient(
    -45deg, rgba(159,192,208,.05) 0 10px, transparent 10px 20px);
}
.plate-lg .frame{ min-height:250px }
.frame-tag{
  display:inline-block;
  font-family:var(--mono); font-size:.63rem; letter-spacing:.11em;
  text-transform:uppercase; font-weight:700;
  color:#14100a; background:var(--brass);
  padding:3px 8px; border-radius:2px; margin-bottom:10px;
}
.frame-tag-have{ background:var(--steel) }
.frame-brief{
  display:block; font-size:.87rem; line-height:1.55;
  color:#d5ddd8; max-width:42em;
}
.frame-brief em{ color:var(--ink); font-style:italic }
.frame-aerial{ min-height:270px }

.addons{
  list-style:none; margin:20px 0 0; padding:0;
  border-top:1px solid var(--line);
}
.addons li{
  padding:10px 0 10px 22px; border-bottom:1px solid var(--line);
  font-size:.94rem; position:relative;
}
.addons li::before{
  content:"—"; position:absolute; left:0; color:var(--steel);
  font-family:var(--mono);
}

/* ── Call bands ────────────────────────────────────────────────────────── */
.callband{
  margin:30px 0 0; padding:16px 18px;
  background:var(--ground-2);
  border-left:4px solid var(--brass);
  font-size:.97rem; color:var(--ink-mute);
}
.callband a{
  display:inline-block; margin-top:8px;
  background:var(--brass); color:#14100a;
  text-decoration:none; font-weight:800; font-size:1.05rem;
  padding:10px 18px; border-radius:4px;
}
.callband a:hover{ background:#ffd469 }
.callband-alt{ border-left-color:var(--steel) }

/* ── Services ──────────────────────────────────────────────────────────── */
.svc{ margin:22px 0 0 }
.svc > div{
  padding:15px 0; border-top:1px solid var(--line);
}
.svc dt{
  font-weight:800; font-size:1.02rem; margin-bottom:5px;
}
.svc dd{ margin:0; color:var(--ink-mute); font-size:.95rem; max-width:40em }
.svc-urgent{
  background:var(--ground-2);
  border-left:4px solid var(--brass);
  padding:15px 16px !important;
  margin-top:8px;
}
.svc-urgent dt{ color:var(--brass) }
.svc-urgent a{ color:var(--brass); font-weight:700 }

/* ── Why ───────────────────────────────────────────────────────────────── */
.why-list{ list-style:none; margin:20px 0 0; padding:0 }
.why-list li{
  padding:15px 0; border-top:1px solid var(--line);
}
.why-k{
  display:block;
  font-family:var(--mono); font-size:.74rem; letter-spacing:.09em;
  text-transform:uppercase; color:var(--brass-dk); font-weight:700;
  margin-bottom:5px;
}
.why-v{ display:block; color:var(--ink); font-size:.97rem; max-width:40em }

/* ── Form ──────────────────────────────────────────────────────────────── */
.form{
  margin:22px 0 0; padding:20px 18px;
  background:var(--ground-2); border:1px solid var(--line-2);
  border-radius:4px; max-width:520px;
}
.field{ margin:0 0 16px }
.field label{
  display:block; font-weight:700; font-size:.9rem; margin-bottom:6px;
}
.field input,
.field textarea{
  display:block; width:100%;
  font-family:inherit; font-size:1rem;
  background:#0e1312; color:var(--ink);
  border:1px solid var(--line-2); border-radius:3px;
  padding:11px 12px;
}
.field textarea{ resize:vertical }
.field input::placeholder,
.field textarea::placeholder{ color:#8d978f }

.submit{
  display:block; width:100%;
  background:var(--brass); color:#14100a;
  border:none; border-radius:4px;
  font-family:inherit; font-size:1.05rem; font-weight:800;
  padding:14px 18px; cursor:pointer;
}
.submit:hover{ background:#ffd469 }
.form-alt{ margin:14px 0 0; font-size:.88rem; color:var(--ink-mute) }

/* ── Find ──────────────────────────────────────────────────────────────── */
.find-grid{
  display:grid; grid-template-columns:1fr; gap:1px;
  background:var(--line); border:1px solid var(--line);
  margin:20px 0 0;
}
.find-b{ background:var(--ground-2); padding:16px 16px 18px }
.find-b h3{
  font-family:var(--mono); font-size:.68rem; letter-spacing:.11em;
  text-transform:uppercase; color:var(--ink-mute); font-weight:700;
  margin:0 0 7px;
}
.find-b p{ margin:0; font-size:.97rem }
.find-sub{ margin-top:6px !important; font-size:.83rem !important; color:var(--ink-mute) }
.find-tel{
  font-size:1.3rem; font-weight:800; color:var(--brass);
  text-decoration:none; letter-spacing:-.01em;
}
.find-tel:hover{ text-decoration:underline }
.area-h{ margin-top:28px }

/* ── Placeholder markers ───────────────────────────────────────────────── */
.ph-inline{
  font-family:var(--mono); font-size:.82rem;
  color:#f6cd66; background:#2b2a1b;
  border:1px dashed var(--brass-dk); border-radius:2px;
  padding:1px 6px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.foot{
  background:#0e1312; border-top:2px solid var(--line-2);
  margin-top:10px;
}
.foot-in{ padding:30px var(--pad) 40px; max-width:var(--col-max) }
.foot-name{ font-weight:800; font-size:1.08rem; margin:0 0 6px }
.foot address{
  font-style:normal; color:var(--ink-mute); font-size:.93rem;
  margin-bottom:14px; line-height:1.75;
}
.foot address a{ color:var(--steel) }
.foot-c{
  font-family:var(--mono); font-size:.76rem; color:var(--ink-mute);
  margin:0 0 16px;
}
.foot-demo{
  font-size:.8rem; line-height:1.6; color:var(--ink-mute);
  border-top:1px solid var(--line); padding-top:14px; margin:0;
  max-width:44em;
}
.foot-demo strong{ color:var(--steel) }

/* ══ Below 1000px — the rail COLLAPSES ═══════════════════════════════════
   Everything the sticky bar or the Find section already carries is dropped
   here, so a phone reaches the headline in one thumb-flick instead of
   scrolling past a full desktop sidebar. Nav becomes a strip that scrolls
   inside itself and never makes the document scroll.                     */
@media (max-width:999px){
  .rail-line{ display:none }
  .rail-facts{ display:none }          /* repeated in full under "Find us" */
  .rail-tel{ margin-top:18px; max-width:none }
  .rail-nav{
    margin-top:16px;
    overflow-x:auto;
    border-top:1px solid var(--line);
  }
  .rail-nav ol{ display:flex; width:max-content; padding-top:4px }
  .rail-nav ul{ display:none }
  .rail-nav > ol > li > a{
    border-top:none; padding:8px 18px 8px 0;
    white-space:nowrap; font-size:.92rem;
  }
  .rail-creds{ margin-top:14px }
  .rail-in{ padding-bottom:22px }
  /* sticky bar must not cover an anchor target */
  section[id], div[id]{ scroll-margin-top:64px }
}

/* ══ 560px — plate pairs go two-up, facts stay 2-col ═════════════════════ */
@media (min-width:560px){
  .callbar-sub{ display:inline }
  .plate-row{ grid-template-columns:1fr 1fr }
  .find-grid{ grid-template-columns:1fr 1fr }
  .facts{ grid-template-columns:repeat(4,1fr) }
  .col{ padding:0 28px }
  .foot-in{ padding-left:28px; padding-right:28px }
}

/* ══ 1000px — the rail becomes fixed; the mobile bar retires ═════════════ */
@media (min-width:1000px){
  .callbar{ display:none }

  .rail{
    position:fixed; top:0; left:0;
    width:var(--rail-w); height:100vh;
    overflow-y:auto;
    border-bottom:none; border-right:1px solid var(--line-2);
    z-index:40;
  }
  .rail-in{ padding:32px 26px 40px }

  .col{
    margin-left:var(--rail-w);
    padding:0 48px;
    max-width:calc(var(--rail-w) + var(--col-max) + 120px);
  }
  .col > section{ padding:54px 0 56px }
  .open{ padding-top:56px }

  .foot{ margin-left:var(--rail-w) }
  .foot-in{ padding:36px 48px 56px }

  h1{ font-size:2.55rem }
  h2{ font-size:1.95rem }
  .frame{ min-height:230px }
  .plate-lg .frame{ min-height:300px }
  .frame-aerial{ min-height:330px }
}

@media (min-width:1360px){
  :root{ --rail-w: 360px }
  .col{ padding:0 72px }
  .foot-in{ padding-left:72px; padding-right:72px }
}

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print{
  .callbar{ display:none }
  body{ background:#fff; color:#000 }
  .rail,.foot{ background:#fff }
  .col{ margin-left:0 }
}

.est-call{margin:1.4rem 0 1rem}
.est-call .submit{display:inline-block;text-decoration:none;width:auto}
