/* ==========================================================================
   Stepping Stone Homes — dark theme
   Palette derived from the logo: navy #103848, teal #307880, orange #F07820
   ========================================================================== */

:root {
  /* brand, straight from the logo */
  --navy:      #103848;
  --teal:      #307880;
  --orange:    #F07820;

  /* dark surfaces, deepened from the logo navy */
  --bg:        #0B222D;
  --bg-2:      #0E2A36;
  --surface:   #123444;
  --surface-2: #16404F;
  --line:      #1F4A5C;

  /* accessible text tones */
  --teal-lt:   #5FB0B8;
  --orange-lt: #FF9A4D;
  --txt:       #E8F1F4;
  --muted:     #9DB4BE;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;

  --glow-orange: 0 14px 40px -14px rgba(240,120,32,.45);
  --shadow:      0 18px 46px -22px rgba(0,0,0,.85);

  --wrap: 1180px;
  --gut: 24px;

  --ff-display: 'Nunito', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: #fff;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 900; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p  { margin: 0 0 1.1em; }

/* ---------- a11y ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: var(--bg); font-weight: 700;
  padding: 12px 20px; z-index: 200; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(54px, 7.5vw, 100px) 0; }
.section--alt { background: var(--bg-2); }
.lede { font-size: 1.13rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.eyebrow {
  font-family: var(--ff-display);
  font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-lt);
  margin: 0 0 .8em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-weight: 800; font-size: .96rem;
  padding: 15px 30px; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--bg); box-shadow: var(--glow-orange); }
.btn--primary:hover { background: var(--orange-lt); }
.btn--ghost { border-color: var(--teal-lt); color: var(--teal-lt); }
.btn--ghost:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,34,45,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__txt {
  font-family: var(--ff-display); font-weight: 900; font-size: 1.02rem;
  color: #fff; letter-spacing: -.01em; line-height: 1.15;
}
.logo__txt span {
  display: block; font-size: .58rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--teal-lt);
}

.nav { display: flex; align-items: center; gap: 3px; }
.nav a {
  font-family: var(--ff-display); font-weight: 700; font-size: .92rem;
  text-decoration: none; color: var(--muted);
  padding: 9px 13px; border-radius: 999px; transition: .16s;
}
.nav a:hover { color: #fff; background: var(--surface-2); }
.nav a[aria-current="page"] { color: #fff; background: var(--surface-2); }
.nav .btn { margin-left: 10px; padding: 11px 22px; }
.nav .btn:hover { background: var(--orange-lt); color: var(--bg); }

.nav__tel {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-display); font-weight: 800; font-size: .9rem;
  color: var(--teal-lt) !important; text-decoration: none;
  padding: 9px 13px; border-radius: 999px;
  white-space: nowrap;
}
.nav__tel svg { flex: none; }
.nav__tel:hover { color: #fff !important; background: var(--surface-2); }
@media (max-width: 1160px) and (min-width: 981px) {
  .nav__tel span, .nav__tel { font-size: .84rem; }
}

.burger { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; padding: 0; }
.burger span { display: block; width: 21px; height: 2px; background: var(--txt); margin: 5px auto; border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto; background: var(--bg-2);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 18px var(--gut) 30px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-145%); transition: transform .3s ease;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: 13px 14px; font-size: 1rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(46px, 6.5vw, 84px) 0 clamp(54px, 7vw, 92px); }
.hero::before {
  content: ''; position: absolute; top: -30%; right: -12%;
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle, rgba(48,120,128,.30) 0%, rgba(48,120,128,0) 68%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -46%; left: -18%;
  width: 660px; height: 660px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,120,32,.16) 0%, rgba(240,120,32,0) 68%);
  pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--teal-lt);
  font-family: var(--ff-display); font-weight: 700; font-size: .82rem;
  padding: 8px 17px; border-radius: 999px; margin-bottom: 22px;
}
.hero__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }
.hero p.lede { font-size: 1.18rem; }

/* signature: the stones */
.stones { position: relative; aspect-ratio: 1 / 1; }
.stones svg { width: 100%; height: 100%; overflow: visible; }
.stone { transform-box: fill-box; transform-origin: center; }
.stones__cap {
  position: absolute; inset: auto 0 -4px; text-align: center;
  font-family: var(--ff-display); font-weight: 800; font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .stones { max-width: 380px; margin-inline: auto; }
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: var(--shadow); }
.card__icon { width: 50px; height: 50px; border-radius: var(--r-sm); background: var(--surface-2); display: grid; place-items: center; margin-bottom: 17px; }
.card__icon svg { width: 25px; height: 25px; stroke: var(--orange); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card p:last-child { margin-bottom: 0; color: var(--muted); }
a.card { text-decoration: none; display: block; }
.card__more { font-family: var(--ff-display); font-weight: 800; color: var(--orange-lt); font-size: .89rem; }

/* ---------- numbered value ---------- */
.value { display: flex; gap: 17px; align-items: flex-start; }
.value__n {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-family: var(--ff-display); font-weight: 900; font-size: .92rem;
  display: grid; place-items: center;
}
.value p { color: var(--muted); margin: 0; }

/* ---------- quote ---------- */
.quote { background: var(--surface); border-radius: var(--r-lg); padding: 30px; border-left: 4px solid var(--orange); }
.quote p { font-family: var(--ff-display); font-size: 1.02rem; font-weight: 700; color: #fff; line-height: 1.55; }
.quote footer { font-size: .84rem; color: var(--muted); }
.quote footer b { color: var(--teal-lt); display: block; font-family: var(--ff-display); }

/* ---------- band ---------- */
.band { background: linear-gradient(135deg, var(--navy), var(--surface-2)); border-block: 1px solid var(--line); }

/* ---------- page head ---------- */
.phead { position: relative; background: var(--bg-2); padding: clamp(42px, 5.5vw, 74px) 0 clamp(46px, 6vw, 80px); border-bottom: 1px solid var(--line); overflow: hidden; }
.phead::before {
  content: ''; position: absolute; top: -60%; right: -8%; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(48,120,128,.24) 0%, rgba(48,120,128,0) 70%); pointer-events: none;
}
.phead .wrap { position: relative; z-index: 1; }
.crumb { font-size: .8rem; color: var(--teal-lt); margin-bottom: 13px; font-family: var(--ff-display); font-weight: 700; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- prose ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose ul { padding-left: 20px; color: var(--muted); }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--orange); }

/* ---------- home / spec ---------- */
.home-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.home-card__top { background: linear-gradient(135deg, var(--teal), var(--navy)); padding: 24px 28px; }
.home-card__top h3 { margin: 0; }
.home-card__top span { font-size: .84rem; color: rgba(255,255,255,.78); }
.home-card__body { padding: 24px 28px; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .91rem; }
.spec:last-of-type { border-bottom: 0; }
.spec dt { color: var(--muted); margin: 0; }
.spec dd { margin: 0; font-family: var(--ff-display); font-weight: 800; color: #fff; text-align: right; }

/* ---------- job ---------- */
.job {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 21px 25px; transition: .2s;
}
.job:hover { border-color: var(--orange); }
.job h3 { margin: 0 0 4px; }
.job__meta { font-size: .86rem; color: var(--muted); margin: 0; }
.tag {
  display: inline-block; background: var(--surface-2); color: var(--teal-lt);
  font-family: var(--ff-display); font-weight: 800; font-size: .7rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; margin-right: 6px;
}

/* ---------- forms ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 38px); }
.field { margin-bottom: 19px; }
.field label { display: block; font-family: var(--ff-display); font-weight: 800; font-size: .89rem; color: #fff; margin-bottom: 7px; }
.field .hint { font-weight: 600; color: var(--muted); font-size: .81rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font: inherit; font-size: .96rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--txt); transition: border-color .16s;
}
.field input::placeholder, .field textarea::placeholder { color: #6C8794; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-lt); }
.field textarea { min-height: 128px; resize: vertical; }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .field--2 { grid-template-columns: 1fr; } }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #FF8A73; }
.err { display: none; color: #FF8A73; font-size: .81rem; font-weight: 700; margin-top: 6px; }
.field.is-bad .err { display: block; }
.form__note { font-size: .83rem; color: var(--muted); }
.form__done {
  display: none; background: var(--surface-2); border: 1px solid var(--teal);
  border-radius: var(--r-md); padding: 22px; text-align: center;
  font-family: var(--ff-display); font-weight: 800; color: #fff;
}
.form__done.show { display: block; }
.form__fail {
  display: none; margin-top: 16px;
  background: rgba(255,138,115,.1); border: 1px solid #FF8A73;
  border-radius: var(--r-md); padding: 16px 20px;
  color: var(--txt); font-size: .92rem;
}
.form__fail a { color: var(--orange-lt); font-weight: 700; }
.form__fail.show { display: block; }

.form__fail {
  display: none; margin-top: 18px;
  background: rgba(255,138,115,.10); border: 1px solid #FF8A73;
  border-radius: var(--r-md); padding: 16px 20px;
  font-family: var(--ff-display); font-weight: 700; font-size: .92rem; color: #FFB0A0;
}
.form__fail.show { display: block; }

.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- tiles ---------- */
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.tile h3 { font-size: 1.02rem; margin-bottom: 6px; }
.tile a { color: var(--teal-lt); font-family: var(--ff-display); font-weight: 800; text-decoration: none; }
.tile a:hover { text-decoration: underline; }
.tile p { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }

/* ---------- urgent ---------- */
.urgent {
  background: rgba(240,120,32,.12); border: 1px solid var(--orange);
  border-radius: var(--r-md); padding: 19px 24px;
  display: flex; gap: 15px; align-items: center; flex-wrap: wrap;
  font-family: var(--ff-display); font-weight: 700; color: var(--orange-lt);
}
.urgent svg { flex: none; }
.urgent a { color: #fff; }

/* ---------- footer ---------- */
.ftr { background: #081A23; border-top: 1px solid var(--line); color: var(--muted); padding: 60px 0 26px; font-size: .91rem; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 34px; }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr h4 { color: #fff; font-size: .77rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 15px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: 9px; }
.ftr a { color: var(--muted); text-decoration: none; }
.ftr a:hover { color: var(--orange-lt); }
.ftr__base {
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem;
}

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
}
