/* Polaris Land Co. — one stylesheet, no framework, no build step.
 *
 * Colours are the firm's logo palette. Two coral values, deliberately:
 * #fe8c45 is the sampled brand coral and is only ~2.3:1 on white, so it is used
 * ONLY on the navy surfaces (8.03:1 there). Anything coral on a light surface
 * uses #c2410c, the same hue darkened to 5.18:1 on white. Every text/background
 * pair in this file clears WCAG AA for normal text.
 */

:root {
  --navy: #06122a;
  --navy-2: #0d1f3d;
  --ink: #101a2b;
  --body: #3d4a5c;
  /* 4.79:1 on --bg-alt, 5.10:1 on white. The obvious slate (#64748b) is 4.76 on
     white but drops to 4.47 on --bg-alt, so muted text inside a callout or an
     alt-background section quietly failed AA. Judge this against the darkest
     light surface, not against white. */
  --muted: #616f85;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --coral: #fe8c45;      /* on navy only */
  --coral-ink: #c2410c;  /* on light surfaces only */
  --ice: #81cdff;
  --on-navy: #cbd5e1;
  --on-navy-dim: #94a3b8;

  --wrap: 1080px;
  --radius: 12px;

  /* Body text uses the system stack: zero bytes over the wire and it renders
     before the webfont has even been requested. Jost (one webfont, headings
     only) matches the geometric sans in the logo wordmark. */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Jost", var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 7vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 1.85rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.005em; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--coral-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

strong { color: var(--ink); font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--coral-ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */

.site-head { background: var(--navy); }

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 9px 0;            /* keeps the logo link itself a 44px target */
}
.brand-star { color: var(--ice); flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.97rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  white-space: nowrap;
}

/* On a phone the links take their own full-width row, deterministically,
   rather than depending on wrap arithmetic that a longer label would break. */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  width: 100%;
  margin-left: -12px;   /* pull the first link's padding back to the grid edge */
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* thumb target — this site is worked from a text link */
  padding: 0 12px;
  border-radius: 8px;
  color: var(--on-navy);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }
.nav-link.is-current { color: #fff; background: rgba(255, 255, 255, 0.14); }

.nav-cta,
.nav-cta.is-current {
  background: var(--coral);
  color: var(--navy);
  font-weight: 600;
  margin-left: auto;   /* pinned to the right of the wordmark row */
}
.nav-cta:hover { background: #ffa163; color: var(--navy); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: 10px;
  background: var(--coral-ink);
  color: #fff;
  font: 600 1.02rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s, transform 0.06s;
}
.btn:hover { background: #a8380b; color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }

/* On navy the sampled brand coral is the right value (8:1) and reads as the
   single most important thing on the screen, which is what the hero CTA is. */
.band .btn { background: var(--coral); color: var(--navy); }
.band .btn:hover { background: #ffa163; color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }
.band .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.band .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-row.spaced { margin-top: 30px; }

.hint {
  font-size: 0.9rem;
  color: var(--muted);
}
.band .hint { color: var(--on-navy-dim); }

/* ---------- sections ---------- */

.band {
  background: var(--navy);
  color: var(--on-navy);
  padding: 56px 0 60px;
}
.band h1, .band h2, .band h3 { color: #fff; }
.band a:not(.btn) { color: var(--ice); }

.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section + .section:not(.section--alt) { padding-top: 0; }

.lede {
  font-size: 1.14rem;
  line-height: 1.6;
  max-width: 62ch;
}
.band .lede { color: var(--on-navy); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-ink);
  margin: 0 0 10px;
}
.band .eyebrow { color: var(--ice); }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; margin-bottom: 0.4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.05em; }
.prose li { margin-bottom: 0.5em; }

/* ---------- hero ---------- */

.hero { padding: 60px 0 64px; }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 4px; }
.hero .btn-row { margin-top: 30px; }
.hero-note {
  margin-top: 18px;
  font-size: 0.94rem;
  color: var(--on-navy-dim);
}

/* ---------- cards, steps, grids ---------- */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.band .card {
  background: var(--navy-2);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--on-navy);
}

.step-n {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-ink);
  display: block;
  margin-bottom: 8px;
}
.band .step-n { color: var(--coral); }

/* Plain "here is what we don't do" list — the objections a landowner is
   actually holding, answered without a sales voice. */
.plainlist { list-style: none; padding: 0; margin: 24px 0 0; }
.plainlist li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-top: 1px solid var(--line);
}
.plainlist li:last-child { border-bottom: 1px solid var(--line); }
.plainlist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral-ink);
}
.band .plainlist li { border-color: rgba(255, 255, 255, 0.14); }
.band .plainlist li::before { background: var(--coral); }

/* ---------- FAQ ---------- */

.faq { margin-top: 26px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--coral-ink);
  transition: transform 0.15s;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--coral-ink); }
.faq .answer { padding: 0 0 20px; max-width: 68ch; }

/* ---------- form ---------- */

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px 26px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 2px;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  /* 16px is the floor: below it iOS Safari zooms the viewport on focus and the
     rest of the form jumps off screen mid-typing. */
  font: 16px/1.5 var(--font-body);
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--coral-ink);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.16);
}
.field input:invalid:not(:placeholder-shown) { border-color: #b91c1c; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-foot {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}
.form-foot a { color: var(--coral-ink); }

/* ---------- callout ---------- */

.callout {
  border-left: 3px solid var(--coral-ink);
  background: var(--bg-alt);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.band .callout {
  background: var(--navy-2);
  border-left-color: var(--coral);
}

.contact-direct {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact-direct p { margin-bottom: 0.5em; }

/* ---------- pricing & phone (consulting) ---------- */

.price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2px 0 4px;
  font-variant-numeric: tabular-nums;
}
.price-per {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.price-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.callline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 0 !important;
}
.callnum {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--coral-ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.callnum:hover { text-decoration: underline; }
.band .callnum { color: var(--coral); }

/* ---------- footer ---------- */

.site-foot {
  background: var(--navy);
  color: var(--on-navy-dim);
  padding: 44px 0 34px;
  margin-top: 64px;
  font-size: 0.95rem;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--coral);
  font-size: 0.95rem;
  margin-bottom: 26px;
}
.foot-brand .brand-star { color: var(--ice); }

.foot-cols {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
.foot-col h2 {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 10px;
  font-weight: 600;
}
.foot-col p { margin: 0; }
/* Footer links are a nav list, not prose, so they get real tap targets rather
   than the inline-link exemption. */
.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-navy);
  text-decoration: none;
}
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-col .foot-dim { padding: 8px 0; }
.foot-dim { color: var(--on-navy-dim); }

.foot-legal {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: var(--on-navy-dim);
  line-height: 1.6;
}

/* ---------- breakpoints ---------- */

/* Narrow phones. 360px (most Android handsets) leaves 320px of content width,
   and the wordmark + CTA landed on exactly 320.0 — close enough that subpixel
   rounding decided the layout. These trims give the row ~18px of slack so it
   stays one line rather than flipping between one and two by a hair. */
@media (max-width: 479px) {
  .brand-name { font-size: 0.9rem; letter-spacing: 0.08em; }
  .brand { gap: 8px; }
  .nav-link { padding: 0 10px; }
  .site-nav { margin-left: -10px; }
}

@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 30px 30px 32px; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

@media (min-width: 880px) {
  .band { padding: 72px 0 76px; }
  .hero { padding: 78px 0 84px; }
  .section { padding: 72px 0; }

  /* One row: wordmark, links, then the CTA last. `order` puts the CTA back on
     the right without moving it in the DOM, where it needs to stay ahead of the
     links for the phone layout. */
  .head-inner { flex-wrap: nowrap; gap: 22px; padding-top: 14px; padding-bottom: 14px; }
  .brand-name { font-size: 1.06rem; letter-spacing: 0.13em; }
  .site-nav { width: auto; margin-left: auto; margin-right: 0; order: 2; }
  .nav-cta { order: 3; margin-left: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
