/* Smart Planning Consultants — palette kept from the original site */
:root {
  --navy: #050b23;
  --navy-2: #0d1636;
  --slate: #404659;
  --mist: #f1f7fa;
  --line: #dbe4ea;
  --gold: #c8a96a;
  --ink: #0f1424;
  --muted: #4f566b;
  --white: #fff;
  --serif: "Marcellus", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--mist); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.2rem; line-height: 1.6; }
.center { text-align: center; }
.narrow-p { max-width: 720px; margin: 2.5rem auto 0; color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }
.prose { max-width: 64ch; min-width: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--navy); padding: .6em 1em; z-index: 100; }
.skip-link:focus { left: 1rem; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.eyebrow-dark { color: var(--slate); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .75em 1.6em; border: 1px solid transparent; border-radius: var(--radius); font: 600 .85rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn::after { content: "→"; letter-spacing: 0; transition: transform .2s; }
.btn:hover::after { transform: translateX(3px); }
.btn-light { border-color: rgba(255,255,255,.75); color: var(--white); background: transparent; }
.btn-light:hover { background: var(--white); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--slate); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--navy); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--white); font-family: var(--serif); font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.1; }
.brand small { display: block; font-size: .68em; letter-spacing: .22em; opacity: .8; }
.brand img { width: 40px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.menu { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.82); padding-block: .4rem; border-bottom: 1px solid transparent; }
.menu a:hover, .menu a[aria-current="page"], .menu .is-active > a { color: var(--white); border-bottom-color: var(--gold); }
.header-cta { min-height: 42px; padding: .6em 1.2em; font-size: .75rem; }
.has-sub { position: relative; display: flex; align-items: center; gap: .3rem; }
.sub-toggle { background: none; border: 0; color: inherit; width: 24px; height: 24px; padding: 0; cursor: pointer; display: grid; place-items: center; }
.sub-toggle span { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub { list-style: none; margin: 0; padding: .6rem 0; position: absolute; top: 100%; left: -1rem; min-width: 280px; background: var(--navy-2); border-top: 2px solid var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.sub a { display: block; padding: .65rem 1.2rem; border: 0; text-transform: none; letter-spacing: .02em; font-size: .95rem; }
.sub a:hover, .sub a[aria-current="page"] { background: rgba(255,255,255,.06); }
@media (hover: hover) and (min-width: 961px) { .has-sub:hover .sub { opacity: 1; visibility: visible; transform: none; } }
.has-sub.open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: .5em 1.1em; border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius); background: none; color: var(--white); font: 600 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; gap: 1.2rem; padding: .5rem 20px 1.6rem; border-bottom: 2px solid var(--gold); max-height: calc(100vh - 76px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .menu { flex-direction: column; gap: 0; }
  .menu > li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .menu a { display: block; padding: .9rem 0; border: 0; }
  .has-sub { flex-wrap: wrap; justify-content: space-between; }
  .sub-toggle { width: 44px; height: 44px; }
  .sub { position: static; flex-basis: 100%; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; background: transparent; padding: 0 0 .6rem 1rem; }
  .has-sub.open .sub { display: block; }
  .has-sub.open .sub-toggle span { transform: rotate(-135deg) translateY(-2px); }
  .sub a { padding: .55rem 0; }
  .header-cta { align-self: flex-start; }
}

/* Hero */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--navy); min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero-sm { min-height: 420px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,11,35,.88) 0%, rgba(5,11,35,.6) 55%, rgba(5,11,35,.35) 100%); }
.hero-content { padding-block: 5rem; width: 100%; }
.hero-content > * { max-width: 760px; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 560px; }
.hero h1 { margin-bottom: .45em; }
.hero p:last-child { margin-bottom: 0; }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.88); }
.section-dark h2 { color: var(--white); }
.section-tint { background: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr; gap: 2rem 4rem; }
@media (min-width: 860px) { .split { grid-template-columns: 5fr 7fr; align-items: start; } }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding: .7rem 0 .7rem 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 10px; height: 10px; border: 1px solid var(--gold); transform: rotate(45deg); }
.ticks-dark li { border-bottom-color: var(--line); }

/* Overlap block (home: who we are) */
.overlap { display: grid; }
.overlap-img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.overlap-panel { background: var(--navy); color: rgba(255,255,255,.85); padding: clamp(2rem, 5vw, 3.5rem); }
.overlap-panel h2 { color: var(--white); }
.overlap-panel p:last-child { margin: 0; }
@media (min-width: 900px) {
  .overlap { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .overlap-img { grid-column: 1 / 8; grid-row: 1; }
  .overlap-panel { grid-column: 6 / 13; grid-row: 1; margin-top: 5rem; }
}

/* Media + text */
.media-split { display: grid; gap: 2.5rem; align-items: center; }
.media-split > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-split > img.media-portrait { aspect-ratio: 4/5; }
@media (min-width: 860px) { .media-split { grid-template-columns: 5fr 6fr; gap: 4.5rem; } .media-split > img.media-portrait { max-height: 640px; } }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; grid-template-columns: 1fr; background: rgba(255,255,255,.12); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; background: var(--navy); color: rgba(255,255,255,.82); padding: 2.4rem 2rem; text-align: center; }
.card .icon { width: 40px; height: 40px; color: var(--gold); margin: 0 auto 1.2rem; }
.card h3 { color: var(--white); margin-bottom: .6rem; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { text-decoration: underline; text-decoration-color: var(--gold); }
.card p { font-size: .98rem; margin: 0; }
.cards-photo { background: linear-gradient(rgba(5,11,35,.86), rgba(5,11,35,.86)), url("/images/services-bg.jpg") center/cover; gap: 0; }
.cards-photo .card { background: transparent; }
@media (min-width: 1000px) { .cards-photo .card + .card { border-left: 1px solid rgba(255,255,255,.12); } }
.cards + .center { margin-top: 2.5rem; }
.cards-3 { background: var(--line); gap: 1px; }
.card-light { background: var(--mist); color: var(--muted); text-align: left; }
.card-light .icon { margin-left: 0; color: var(--navy); }
.card-light h3 { color: var(--navy); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--mist); }
.step img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.step div { padding: 1.5rem 1.4rem 1.8rem; }
.step-n { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--gold); margin-bottom: .6rem; }
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

.stat { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; color: var(--slate); max-width: 14ch; }
.stat span { display: block; font-size: clamp(4rem, 10vw, 6.5rem); line-height: 1; color: var(--navy); margin-bottom: .2rem; }

/* CTA */
.cta { position: relative; isolation: isolate; color: var(--white); text-align: center; overflow: hidden; }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5,11,35,.78); }
.cta-inner { padding-block: clamp(4.5rem, 10vw, 7.5rem); max-width: 760px; }
.cta p { color: rgba(255,255,255,.85); }
.cta p:last-child { margin: 1.8rem 0 0; }

/* Contact form */
.contact { align-items: start; }
.form { background: var(--white); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; min-width: 0; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .92rem; }
.opt { font-weight: 400; color: var(--muted); }
input, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .75rem .9rem; border: 1px solid #b9c4cf; border-radius: var(--radius); background: var(--white); }
input:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 1rem 0 0; min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: #1c6b3a; }
.form-status.error { color: #a32626; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); font-size: .95rem; padding-top: 4rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr; } }
.footer-tag { margin: 1rem 0 0; max-width: 34ch; }
.footer-h { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--white); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-base p { margin: 0; }
.h-dark { color: var(--navy); }
