/* ============================================================
   Palisade Rebuild — design tokens
   Premium, calm, coastal. Distinct from the aibuildpros palette
   on purpose: this is a homeowner-facing GC brand, not the SaaS.
   ============================================================ */
:root {
  --ink:    #ECF1F8;   /* light text on navy */
  --ink-2:  #B4C3DA;   /* secondary text */
  --paper:  #1E3255;   /* deep navy ground (matched to Asher's swatch) */
  --sand:   #35507F;   /* borders, dividers */
  --card:   #263E66;
  --clay:   #C0693A;   /* terracotta accent — CTAs (brightened for dark bg) */
  --clay-2: #A9532B;   /* hover */
  --ocean:  #8FB9E8;   /* soft sky blue — kickers, links */
  --deep:   #14223A;   /* darkest sections */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h1 em { font-style: italic; color: var(--clay); }

p { color: var(--ink-2); }
h1 + p, h2 + p { margin-top: .9rem; }

a { color: var(--ocean); text-decoration: none; }

.kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: .8rem;
}
.section-lede { max-width: 620px; }
.fine { font-size: .82rem; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-2); font-size: .85em; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: .95rem;
  padding: .65rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  text-align: center;
}
.btn-solid { background: var(--clay); color: #fff; }
.btn-solid:hover { background: var(--clay-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 50, 85, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: .55rem;
}
.brand-mark {
  width: 14px; height: 14px; border-radius: 3px;
  background: linear-gradient(135deg, var(--clay) 0 50%, var(--ocean) 50% 100%);
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links > a { font-weight: 500; font-size: .95rem; color: var(--ink); }
.nav-links > a:hover { color: var(--clay); }
.nav-phone { font-variant-numeric: tabular-nums; color: var(--ocean) !important; font-weight: 600 !important; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------------- hero ---------------- */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(143, 185, 232, .12), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(192, 105, 58, .12), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--sand);
}
.hero-in {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3.5rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.lede { font-size: 1.1rem; max-width: 560px; }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-points { list-style: none; margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.hero-points li {
  font-size: .85rem; font-weight: 500; color: var(--ink-2);
  padding-left: 1.15rem; position: relative;
}
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; color: var(--clay); font-weight: 700;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.8rem;
}
.hero-card h2 { font-size: 1.35rem; }
.hero-card > p { font-size: .9rem; margin: .5rem 0 1.1rem; }

/* ---------------- forms ---------------- */
.lead-form { display: grid; gap: .85rem; }
.lead-form label { display: grid; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--ink); }
.lead-form input, .lead-form select, .lead-form textarea {
  font: inherit; font-size: .95rem;
  padding: .6rem .75rem;
  border: 1.5px solid var(--sand);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--ocean);
}
.lead-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.form-note { font-size: .78rem; text-align: center; }
.lead-form-flat {
  background: var(--card); border: 1px solid var(--sand);
  border-radius: 14px; padding: 1.8rem; box-shadow: var(--shadow);
}

/* ---------------- trust bar ---------------- */
.trustbar { background: var(--deep); }
.trustbar-in {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding-top: .9rem; padding-bottom: .9rem;
}
.trustbar span {
  color: #C9D4DB; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
}

/* ---------------- sections ---------------- */
.section { padding: 5rem 0; }
.section-alt { background: #192B49; border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }

/* steps */
.steps {
  list-style: none;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.step-n {
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--clay);
  display: block; margin-bottom: .5rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.steps p { font-size: .88rem; }

/* photo band */
.photos { padding: 0 0 5rem; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--sand);
  display: block;
}
.photo-grid-2 { grid-template-columns: 1fr 1fr; margin-top: 2rem; }
.photo-grid-2 img { aspect-ratio: 16 / 9; }

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.7rem;
  border-top: 3px solid var(--clay);
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .92rem; }
.cards-note { margin-top: 1.8rem; font-size: .92rem; max-width: 720px; }

/* split layout */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3.5rem;
  align-items: start;
}

/* checks */
.checks { list-style: none; margin: 1.4rem 0; display: grid; gap: .6rem; }
.checks li { padding-left: 1.5rem; position: relative; font-size: .95rem; color: var(--ink); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--clay); font-weight: 700; }

.sub-h { margin-top: 1.8rem; margin-bottom: .4rem; font-size: 1.15rem; }

/* quote */
.quote-block {
  background: var(--deep);
  color: #E7EDF1;
  border-radius: 14px;
  padding: 2.2rem;
  align-self: center;
}
.quote-block p {
  font-family: var(--font-display);
  font-size: 1.25rem; font-style: italic; line-height: 1.5;
  color: #E7EDF1;
}
.quote-block cite { display: block; margin-top: 1.2rem; font-style: normal; font-size: .85rem; color: #9DB2BF; }

/* faq */
.faq { margin-top: 2rem; display: grid; gap: .8rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.faq summary {
  font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.3rem; color: var(--clay); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .7rem; font-size: .93rem; }

/* contact */
.contact { border-top: 1px solid var(--sand); }
.contact-line { margin-top: .9rem; }
.big-link {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 500; color: var(--ink);
}
.big-link:hover { color: var(--clay); }
.contact .fine { margin-top: 1.4rem; }

/* footer */
.footer { background: var(--deep); padding: 3rem 0; }
.footer-in { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { color: #E7EDF1; font-size: 1.2rem; margin-bottom: .6rem; }
.footer .fine { color: #9DB2BF; }
.footer-links { display: grid; gap: .45rem; text-align: right; }
.footer-links a { color: #C9D4DB; font-size: .9rem; }
.footer-links a:hover { color: #fff; }

/* sticky call bar */
.callbar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(30, 50, 85, .96);
  border-top: 1px solid var(--sand);
  padding: .7rem 1rem;
  gap: .7rem;
}
.callbar .btn { flex: 1; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 920px) {
  .hero-in { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; padding-bottom: 3rem; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { text-align: left; }
}
@media (max-width: 768px) {
  .photo-grid, .photo-grid-2 { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--sand);
    flex-direction: column; align-items: stretch;
    padding: 1rem 24px 1.4rem; gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .callbar { display: flex; }
  body { padding-bottom: 64px; }
  .section { padding: 3.5rem 0; }
  .lead-form .two { grid-template-columns: 1fr; }
}
