/* Idaho Proper HR: navy, gold and cream, taken from the brand card
   ("IDAHO PROPER" in spaced gold caps over a navy "HR", thin gold border on cream).
   Layout: light sticky header, navy hero, alternating paper / cream / mist bands, navy footer.
   One committed light look, so no dark-mode variant. */
:root {
  --ink: #10243A;
  --night: #18334A;
  --paper: #FCFAF5;
  --cream: #F4EEE3;
  --mist: #ECEFF2;
  --gold: #A77C48;
  --gold-lt: #D4B483;
  --gold-dk: #7A5628;
  --text: #18334A;
  --muted: #4D5A66;
  --on-dark: #FCFAF5;
  --on-dark-muted: #C3CBD3;
  --line: rgba(24, 51, 74, 0.14);
  --line-gold: #E2D3BC;
  --line-dark: rgba(252, 250, 245, 0.18);
  --font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--night); text-decoration-color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: var(--gold-dk); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3, .h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; z-index: 99; background: var(--gold-lt); color: var(--ink); padding: 0.5rem 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; color: var(--gold-dk); }

/* Brand lockup: spaced gold caps over a large navy HR */
.brand { display: inline-grid; justify-items: center; line-height: 1; text-decoration: none; color: var(--night); }
.brand-top { margin-right: -0.34em; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); }
.brand-hr { margin-top: 0.15rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.01em; }
.brand:hover { color: var(--night); }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line-gold);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--night); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-dk); }
.nav .btn-dark, .nav .btn-dark:hover { color: var(--on-dark); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 0.5rem 0.9rem; border: 1px solid var(--line-gold); border-radius: 8px; font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 220px; padding: 0.5rem; background: var(--paper); border: 1px solid var(--line-gold); border-radius: 12px; box-shadow: 0 12px 30px rgba(16, 36, 58, 0.12); }
.menu-panel a { color: var(--night); text-decoration: none; padding: 0.6rem 0.8rem; border-radius: 8px; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--cream); color: var(--gold-dk); }
@media (max-width: 860px) { .nav { display: none; } .menu { display: block; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 1.4rem; border: 2px solid transparent; border-radius: 10px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn-primary { background: var(--gold-lt); color: var(--ink); }
.btn-primary:hover { background: var(--paper); color: var(--ink); }
.btn-ghost { border-color: var(--line-dark); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold-lt); color: var(--gold-lt); }
.btn-dark { justify-self: start; background: var(--night); color: var(--on-dark); }
.btn-dark:hover { background: var(--ink); color: var(--on-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* Hero */
.hero { background: var(--ink); color: var(--on-dark); border-bottom: 3px solid var(--gold); }
.hero .wrap { display: grid; gap: 1.3rem; padding-block: clamp(3rem, 8vw, 6rem); }
.hero .eyebrow { color: var(--gold-lt); }
.hero h1 { max-width: 20ch; }
.hero h1 .hl { display: block; color: var(--gold-lt); }
.lead { max-width: 62ch; font-size: clamp(1.08rem, 1.6vw, 1.25rem); font-weight: 300; color: var(--on-dark-muted); }
.crumbs { font-size: 0.9rem; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; }
.chips li { padding: 0.35rem 0.85rem; border: 1px solid rgba(212, 180, 131, 0.45); border-radius: 999px; font-size: 0.88rem; }

/* Bands */
.band { padding-block: clamp(3rem, 7vw, 5rem); }
.band--cream { background: var(--cream); }
.band--mist { background: var(--mist); }
.band--dark { background: var(--night); color: var(--on-dark); }
.band--dark .eyebrow { color: var(--gold-lt); }
.band--dark .prose p { color: var(--on-dark-muted); }
.section-head { display: grid; gap: 0.7rem; max-width: 66ch; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); }
.after-grid { margin-top: 1.6rem; color: var(--muted); }
.after-grid a { font-weight: 700; }

/* Cards and grids */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .grid--trio { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.card { display: grid; gap: 0.7rem; align-content: start; min-width: 0; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line-gold); border-radius: var(--radius); }
.card--cream { background: var(--cream); }
.card p, .card li { color: var(--muted); }
.card h3 a, .card .h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover, .card .h3 a:hover { color: var(--gold-dk); }
.card .more { font-weight: 700; }
.card--accent { background: var(--night); border-color: transparent; color: var(--on-dark); }
.card--accent p { color: var(--on-dark-muted); }
.card--accent a:not(.btn) { color: var(--gold-lt); }
.card ul { display: grid; gap: 0.35rem; padding-left: 1.1rem; }
.card li::marker { color: var(--gold); }
.price { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.price .per { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }

/* Price list: service name, then price on the same row */
.price-list { display: grid; max-width: 760px; padding: 0; list-style: none; border-top: 1px solid var(--line-gold); }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--line-gold); }
.price-list b { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }

/* The Idaho Proper HR difference */
.diff { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; list-style: none; }
@media (max-width: 900px) { .diff { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .diff { grid-template-columns: minmax(0, 1fr); } }
.diff li { padding: 1rem 0 0; border-top: 2px solid var(--gold); font-weight: 700; }

/* Steps: a real sequence, so numbered */
.steps { display: grid; gap: 1.4rem; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; list-style: none; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { display: grid; gap: 0.5rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--line-gold); counter-increment: step; }
.steps li::before { content: "0" counter(step); font-weight: 800; letter-spacing: 0.04em; color: var(--gold-dk); }
.steps p { color: var(--muted); }

/* Split layouts and prose */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.split--even { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--top { align-items: start; }
@media (max-width: 760px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); } }
.portrait { display: grid; place-items: center; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); background: var(--night); color: var(--gold-lt); font-size: clamp(3rem, 8vw, 5rem); font-weight: 800; letter-spacing: 0.04em; }
.prose { display: grid; gap: 1rem; max-width: 66ch; min-width: 0; }
.prose ul { display: grid; gap: 0.45rem; padding-left: 1.2rem; }
.facts { display: grid; gap: 0.6rem; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-gold); }
.facts b { font-weight: 700; }
@media (max-width: 480px) { .facts li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; } }
.links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; padding: 0; list-style: none; font-weight: 600; }
.note { font-size: 0.92rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0.6rem; max-width: 78ch; margin-bottom: 2.2rem; }
.faq details { padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line-gold); border-radius: 12px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }

/* Contact */
.contact-list { display: grid; gap: 1rem; padding: 0; list-style: none; }
.contact-list li { display: grid; gap: 0.15rem; }
.contact-list .eyebrow { font-size: 0.72rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 0.95rem; border-top: 3px solid var(--gold); }
.site-footer .wrap { padding-block: 3rem 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-grid > div { display: grid; gap: 0.8rem; align-content: start; min-width: 0; }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); }
.site-footer ul { display: grid; gap: 0.45rem; padding: 0; list-style: none; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-lt); }
.site-footer .brand { justify-self: start; }
.site-footer .brand-top { color: var(--gold-lt); }
.site-footer .brand-hr { color: var(--on-dark); }
.legal { border-top: 1px solid var(--line-dark); }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.2rem; font-size: 0.85rem; }

/* Mobile quick-contact bar */
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .site-header .btn { display: none; }
  body { padding-bottom: 4.5rem; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem;
    padding: 0.5rem max(16px, env(safe-area-inset-right, 0px)) calc(0.5rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--ink); border-top: 1px solid var(--line-dark);
  }
  .mobile-bar a { padding: 0.7rem 0.4rem; border: 1px solid var(--line-dark); border-radius: 10px; color: var(--on-dark); font-weight: 700; text-align: center; text-decoration: none; }
  .mobile-bar .book { background: var(--gold-lt); border-color: var(--gold-lt); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
