/* ==========================================================================
   Decision Point Counsel — Stylesheet
   Design register: private-bank digital presence, not a law-firm site.
   One serif typeface. Ivory ground, charcoal text, single teal accent.
   No photography, no illustration, no motion beyond quiet fades.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Cormorant:wght@300;400;500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;1,8..60,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --ivory: #FBF8F1;
  --ivory-deep: #F5F0E4;
  --charcoal: #14262B;
  --charcoal-soft: #33454A;
  --teal: #028694;
  --teal-deep: #016670;
  --line: rgba(20, 38, 43, 0.14);
  --line-teal: rgba(2, 134, 148, 0.35);

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --serif-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--serif-body);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--teal-deep);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

::selection {
  background: var(--teal);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- Typographic scale ---------- */

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--teal-deep);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--charcoal-soft);
  max-width: 40ch;
}

.sans {
  font-family: var(--sans);
}

/* ---------- Layout helpers ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.measure { max-width: var(--measure); }

section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.rule-teal {
  border: none;
  border-top: 1px solid var(--line-teal);
  width: 64px;
  margin: 1.6rem 0;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand img {
  height: 54px;
  width: auto;
}

.brand { display: flex; align-items: center; }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  font-family: var(--sans);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}

nav.primary-nav a {
  color: var(--charcoal-soft);
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

nav.primary-nav a:hover {
  color: var(--charcoal);
  border-bottom-color: var(--teal);
  text-decoration: none;
}

nav.primary-nav a.cta {
  color: var(--teal-deep);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--charcoal);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; width: 22px; background: var(--charcoal); }
.nav-toggle span::after { position: absolute; top: 7px; width: 22px; background: var(--charcoal); }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(4.5rem, 10vw, 8rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.hero .eyebrow { margin-bottom: 1.4rem; display: block; }

.hero h1 {
  max-width: none;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  margin-bottom: 1.8rem;
}

.hero-lede {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--charcoal-soft);
}

.hero-mark,
.section-divider {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-mark img,
.section-divider img { width: 46px; height: auto; opacity: 0.92; }

.hero-mark .rule-teal,
.section-divider .rule-teal { margin: 0; flex: 1; max-width: 260px; }

.section-divider {
  margin-top: clamp(3rem, 6vw, 5rem);
}

/* ---------- Pull quote block ---------- */

.pull {
  border-top: 1px solid var(--line-teal);
  padding: 2.6rem 0 0.5rem;
  margin: 0.5rem 0;
}

.pull p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.5;
  color: var(--charcoal);
  max-width: 52ch;
}

/* ---------- Section headers ---------- */

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head .eyebrow { display: block; margin-bottom: 0.9rem; }

.section-head h2 { max-width: 20ch; }

.section-alt {
  background: var(--ivory-deep);
}

/* ---------- Services grid ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--ivory);
  padding: clamp(1.8rem, 3vw, 2.6rem);
}

.service-card .num {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  margin-bottom: 0.9rem;
  display: block;
}

.service-card h3 { margin-bottom: 0.7rem; }

.service-card .who {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--charcoal-soft);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.service-card p {
  color: var(--charcoal-soft);
  font-size: 0.98rem;
}

.service-card .not-included {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--charcoal-soft);
}
.service-card .not-included strong {
  color: var(--charcoal);
  font-weight: 600;
  font-style: italic;
}

/* ---------- Moments list (When Counsel Is Warranted) ---------- */

.moments-list {
  border-top: 1px solid var(--line);
}

.moment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
}

.moment h3 {
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 700;
  color: var(--teal-deep);
}

.moment p {
  color: var(--charcoal-soft);
  margin: 0;
}

/* ---------- Two column ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* ---------- Declined list ---------- */

.declined-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: declined;
}

.declined-list li {
  counter-increment: declined;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.4rem;
}

.declined-list li:first-child { border-top: 1px solid var(--line); }

.declined-list li::before {
  content: counter(declined, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--teal-deep);
  padding-top: 0.3rem;
  flex-shrink: 0;
}

.declined-list strong {
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.declined-list span {
  color: var(--charcoal-soft);
  font-size: 0.96rem;
}

/* ---------- Background / bio ---------- */

.bio-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.3fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.bio-photo img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.bio-facts {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}

.bio-fact {
  padding: 1.1rem 0 1.1rem 1.4rem;
  border-left: 2px solid var(--line-teal);
}

.bio-fact .role {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.3rem;
}

.bio-fact p { color: var(--charcoal-soft); font-size: 0.98rem; margin: 0; }

/* ---------- Form ---------- */

.inquiry-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

form.inquiry {
  display: grid;
  gap: 1.4rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.field .hint {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--charcoal-soft);
  opacity: 0.8;
  text-transform: none;
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
  font-family: var(--serif-body);
  font-size: 1.05rem;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.1rem;
  width: 100%;
  transition: border-color 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(20,38,43,0.35);
  font-style: italic;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--teal);
}

.field textarea { resize: vertical; min-height: 110px; }

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding-top: 0.2rem;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--charcoal);
  cursor: pointer;
}

.radio-row input[type="radio"] {
  accent-color: var(--teal);
  width: auto;
}

.btn {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--charcoal);
  border: 1px solid var(--charcoal);
  padding: 0.95rem 2rem;
  cursor: pointer;
  justify-self: start;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.form-note {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  margin-top: 0.4rem;
}

/* Netlify spam honeypot — hidden from real visitors, left for bots to fill in */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--teal);
  background: var(--ivory-deep);
  display: none;
}
.form-status.visible { display: block; }
.form-status.error { border-left-color: #a3402f; }

/* ---------- Resource library placeholder ---------- */

.library-notice {
  border: 1px solid var(--line-teal);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: left;
}

.library-notice .eyebrow { display: block; margin-bottom: 1rem; }

/* ---------- Footer ---------- */

footer {
  background: var(--charcoal);
  color: rgba(247, 243, 234, 0.82);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}

footer .brand img { height: 54px; filter: brightness(0) invert(1); opacity: 0.92; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
}

footer h4 {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.55);
  margin: 0 0 1rem;
  font-weight: 500;
}

footer p, footer a {
  color: rgba(247, 243, 234, 0.8);
  font-size: 0.95rem;
}

footer a:hover { color: var(--ivory); }

footer nav {
  display: grid;
  gap: 0.6rem;
}

.footer-legal {
  border-top: 1px solid rgba(247, 243, 234, 0.15);
  padding-top: 1.8rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  line-height: 1.7;
  color: rgba(247, 243, 234, 0.5);
}

.footer-legal p { max-width: 78ch; margin-bottom: 0.8rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .bio-layout { grid-template-columns: 1fr; }
  .bio-photo { max-width: 260px; }
  .inquiry-shell { grid-template-columns: 1fr; }
  .moment { grid-template-columns: 1fr; gap: 0.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  nav.primary-nav {
    position: fixed;
    top: calc(var(--header-h, 76px) + 0.6rem);
    right: var(--gutter);
    left: auto;
    bottom: auto;
    width: min(260px, calc(100vw - 2 * var(--gutter)));
    z-index: 60;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(20, 38, 43, 0.2);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    gap: 0;
    font-size: 1rem;
    transform-origin: top right;
    transform: scale(0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  nav.primary-nav.open {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  nav.primary-nav a {
    width: 100%;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--line);
  }
  nav.primary-nav a:last-child { border-bottom: none; }
  nav.primary-nav a.cta { padding-top: 0.85rem; }
  .nav-toggle { display: block; position: relative; z-index: 61; }
  body { font-size: 19px; }
}
