/* =========================================================================
   Expert Home Solutions
   Register: brand (marketing / landing). Voice: warm, steady, protective.
   Direction: warm "estate & hearth" system, deliberately not the
   finance navy+gold reflex. Deep pine on warm cream, clay accent.
   Color in OKLCH, neutrals tinted toward the brand hue.
   ========================================================================= */

:root {
  /* Neutrals (warm cream paper) */
  --cream:     oklch(0.972 0.013 83);
  --cream-2:   oklch(0.949 0.016 82);
  --cream-3:   oklch(0.928 0.018 80);
  --paper:     oklch(0.990 0.007 85);
  --line:      oklch(0.900 0.013 82);
  --line-soft: oklch(0.930 0.010 82);

  /* Brand */
  --pine:      oklch(0.360 0.050 158);
  --pine-2:    oklch(0.300 0.045 160);
  --pine-deep: oklch(0.235 0.036 162);

  /* Accent */
  --clay:      oklch(0.685 0.130 55);
  --clay-2:    oklch(0.600 0.130 50);
  --espresso:  oklch(0.200 0.030 55);   /* text on clay */

  /* Text */
  --ink:       oklch(0.260 0.022 145);
  --muted:     oklch(0.478 0.020 145);
  --cream-ink: oklch(0.955 0.018 88);   /* text on pine */
  --cream-mut: oklch(0.830 0.020 90);   /* muted text on pine */

  --ok:        oklch(0.560 0.090 158);
  --err:       oklch(0.520 0.150 27);

  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px oklch(0.30 0.03 160 / 0.10), 0 2px 6px oklch(0.30 0.03 160 / 0.06);
  --shadow-md: 0 12px 34px oklch(0.28 0.03 160 / 0.14);
  --maxw:      1160px;

  --font-head: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);   /* ease-out-quint */
}

/* ---- Reset / base ---------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.68;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--pine); text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--pine-2); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--pine-2); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); margin: 0 0 .35em; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0 0 .5em; }
h3 { font-size: 1.4rem; margin: 0 0 .4em; }
p  { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.section { padding: clamp(56px, 8vw, 108px) 0; }
.section--cream2 { background: var(--cream-2); }
.section--pine { background: var(--pine-deep); color: var(--cream-ink); }
.section--pine h2, .section--pine h3, .section--pine h4 { color: var(--paper); }

.kicker {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem;
  font-weight: 800; color: var(--clay-2); margin: 0 0 1.1em; display: inline-block;
}
.section--pine .kicker { color: var(--clay); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 62ch; line-height: 1.6; }
.section--pine .lede { color: var(--cream-mut); }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 2px solid transparent;
  border-radius: 999px; font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  padding: 15px 30px; text-decoration: none; line-height: 1;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--clay { background: var(--clay); color: var(--espresso); box-shadow: var(--shadow-sm); }
.btn--clay:hover { background: var(--clay-2); color: var(--paper); transform: translateY(-2px); }
.btn--pine { background: var(--pine); color: var(--cream-ink); }
.btn--pine:hover { background: var(--pine-2); color: var(--cream-ink); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: oklch(1 0 0 / 0.08); color: inherit; }
.btn--lg { padding: 18px 38px; font-size: 1.06rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ---- Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name { font-family: var(--font-head); font-weight: 600; color: var(--pine-2); font-size: 1.2rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand__name small { display: block; font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 2px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.96rem; }
.nav__links a:hover { color: var(--clay-2); }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--pine-2); font-weight: 800; text-decoration: none; white-space: nowrap; }
.nav__phone:hover { color: var(--clay-2); }

/* ---- Hero (drenched pine) -------------------------------------------- */
.hero { position: relative; background: var(--pine-deep); color: var(--cream-ink); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 88% 0%, oklch(0.45 0.07 60 / 0.30), transparent 55%),
    linear-gradient(165deg, var(--pine-2) 0%, var(--pine-deep) 62%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 68px); align-items: center; padding: clamp(52px, 7vw, 92px) 0; }
.hero h1 { color: var(--paper); max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--clay); font-weight: 500; }
.hero__sub { color: var(--cream-mut); font-size: clamp(1.08rem, 1.5vw, 1.24rem); max-width: 48ch; line-height: 1.62; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero__trust { margin-top: 30px; display: flex; gap: 10px 26px; flex-wrap: wrap; color: var(--cream-mut); font-size: 0.95rem; font-weight: 600; }
.hero__trust span { display: inline-flex; align-items: center; gap: 9px; }
.hero__trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }

/* Hero photo, art-directed frame */
.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  position: relative; z-index: 1;
}
.hero__media::after {
  content: ""; position: absolute; right: -18px; bottom: -18px; width: 62%; height: 62%;
  border: 2px solid var(--clay); border-radius: var(--radius-lg); z-index: 0;
}
.hero__badge {
  position: absolute; left: -14px; bottom: 26px; z-index: 2;
  background: var(--paper); color: var(--ink); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow-md); max-width: 210px;
}
.hero__badge b { display: block; font-family: var(--font-head); color: var(--pine-2); font-size: 1.05rem; }
.hero__badge span { font-size: 0.82rem; color: var(--muted); }

/* ---- Split feature (photo + text) ------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 72px); align-items: center; }
.split--flip .split__media { order: -1; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split__media::before {
  content: ""; position: absolute; left: -16px; top: -16px; width: 54%; height: 54%;
  background: var(--cream-3); border-radius: var(--radius-lg); z-index: -1;
}
.split h2 { max-width: 16ch; }
.checklist { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--pine); color: var(--cream-ink); display: grid; place-items: center; font-size: 0.85rem; margin-top: 1px; }

/* ---- Coverage: two editorial panels (not icon-card grid) ------------- */
.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 2.4rem; }
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px); position: relative;
}
.panel__num { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--clay-2); letter-spacing: 0.02em; }
.panel h3 { font-size: 1.7rem; margin: 6px 0 0.5em; }
.panel p { color: var(--muted); margin-bottom: 1.1em; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel ul li { position: relative; padding: 7px 0 7px 26px; color: var(--ink); font-weight: 600; }
.panel ul li::before { content: ""; position: absolute; left: 0; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--clay); }

/* ---- Steps (numbered, inline, varied rhythm) ------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 54px); margin-top: 2.6rem; counter-reset: step; }
.step { position: relative; }
.step__n { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--clay); line-height: 1; }
.section--pine .step__n { color: var(--clay); }
.step h3 { margin: 12px 0 0.3em; color: var(--paper); }
.section--pine .step p { color: var(--cream-mut); }
.step__rule { height: 2px; background: oklch(1 0 0 / 0.14); margin: 18px 0; }

/* ---- Lead form ------------------------------------------------------- */
.form-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(34px, 5vw, 66px); align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-md); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 0.15em; }
.form-card .form-intro { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 17px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 7px; color: var(--pine-2); }
.field .req { color: var(--clay-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--cream-3); border-radius: 11px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease); appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px oklch(0.36 0.05 158 / 0.16); background: var(--paper);
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6b56' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }

/* Consent (full border + tint, no side-stripe) */
.consent {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--cream-2); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin: 4px 0 18px;
}
.consent input[type="checkbox"] { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--pine); cursor: pointer; }
.consent label { font-size: 0.855rem; color: var(--ink); line-height: 1.58; cursor: pointer; }
.consent a { font-weight: 700; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 15px; text-align: center; }
.form-error { display: none; background: oklch(0.95 0.04 27); color: var(--err); border: 1.5px solid oklch(0.85 0.09 27); padding: 11px 15px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.form-error.show { display: block; }

/* aside beside the form */
.form-aside h2 { margin-bottom: 0.3em; }
.form-aside .lede { margin-bottom: 1.8rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--pine); color: var(--clay); display: grid; place-items: center; flex: none; }
.contact-list b { display: block; color: var(--pine-2); font-family: var(--font-head); font-size: 1.05rem; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--clay-2); text-decoration: underline; }
.contact-list span { color: var(--muted); }

/* ---- Legal / article pages ------------------------------------------ */
.page-head { background: var(--pine-deep); color: var(--cream-ink); padding: clamp(48px, 7vw, 84px) 0; position: relative; }
.page-head h1 { color: var(--paper); font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 0.2em; }
.page-head p { color: var(--cream-mut); margin: 0; max-width: 60ch; }
.legal { max-width: 780px; margin: 0 auto; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; color: var(--pine-2); }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: oklch(0.34 0.02 145); }
.legal ul { padding-left: 1.25em; }
.legal li { margin-bottom: 0.5em; }
.legal .callout { background: var(--cream-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 26px 0; }
.legal .callout p { margin: 0; font-weight: 600; color: var(--ink); }
.updated { color: var(--muted); font-size: 0.92rem; }
.legal a { font-weight: 600; }

/* ---- Thank you ------------------------------------------------------- */
.thankyou { min-height: 66vh; display: grid; place-items: center; text-align: center; padding: 72px 24px; }
.thankyou__inner { max-width: 560px; }
.thankyou .badge { width: 92px; height: 92px; border-radius: 50%; background: var(--pine); color: var(--clay); display: grid; place-items: center; margin: 0 auto 26px; box-shadow: var(--shadow-md); }
.thankyou h1 { font-size: clamp(2.1rem, 4vw, 3rem); }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: var(--pine-deep); color: var(--cream-mut); padding: clamp(48px, 6vw, 72px) 0 28px; }
.site-footer a { color: var(--cream-ink); text-decoration: none; }
.site-footer a:hover { color: var(--clay); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand__name { color: var(--paper); }
.footer-brand .brand__name small { color: var(--cream-mut); }
.site-footer p { color: var(--cream-mut); }
.site-footer h4 { color: var(--paper); font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 16px; font-weight: 800; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }
.footer-legal { border-top: 1px solid oklch(1 0 0 / 0.13); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; }
.footer-legal nav { display: flex; gap: 22px; flex-wrap: wrap; }
.disclaimer { font-size: 0.82rem; color: var(--cream-mut); line-height: 1.6; margin-top: 14px; max-width: 62ch; opacity: 0.9; }

/* ---- Utilities ------------------------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--clay); color: var(--espresso); padding: 12px 18px; z-index: 100; border-radius: 0 0 10px 0; font-weight: 800; text-decoration: none; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 4px; }

/* ---- Motion ---------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.8s var(--ease) both; }
.rise-2 { animation-delay: 0.09s; }
.rise-3 { animation-delay: 0.18s; }
.rise-4 { animation-delay: 0.27s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; margin: 0 auto; }
  .split, .form-wrap { grid-template-columns: 1fr; gap: 34px; }
  .split--flip .split__media { order: 0; }
  .coverage { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step__rule { margin: 14px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__phone { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__badge { position: static; margin-top: 16px; max-width: none; }
  .hero__media::after { display: none; }
  .btn--block-sm { display: flex; width: 100%; justify-content: center; }
}
