/* Principled RE — shared styles
   Brand: Principled-RE-Brand-Guidelines (house logo kit)
   Colors: Navy #1C2B39 · Green #1F7A4D · Meadow #6CC28F · Sage #DCE9DF · Stone #F5F2EC · Slate #6B7078
   Type: Lora SemiBold (headlines) · Lato (body, subheads, tagline) */
:root {
  --navy: #1c2b39;
  --navy-deep: #15212c;
  --green: #1f7a4d;
  --green-dark: #186240;
  --meadow: #6cc28f;
  --sage: #dce9df;
  --stone: #f5f2ec;
  --slate: #6b7078;
  --white: #ffffff;
  --border: #e4e0d8;
  --on-dark: #d5dbe1;
  --radius: 10px;
  --max: 1120px;
  --serif: "Lora", Georgia, serif;
  --sans: "Lato", "Carlito", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  color: var(--navy);
  line-height: 1.65;
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.22; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

/* Signature short green rule under section headings */
.rule::after { content: ""; display: block; width: 56px; height: 3px; background: var(--green); margin-top: .55em; }
.center .rule::after, .rule.center::after { margin-left: auto; margin-right: auto; }
.on-dark .rule::after, .rule.on-dark::after { background: var(--meadow); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green); color: var(--white); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* Header */

.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header .container { max-width: 1240px; display: flex; align-items: center; justify-content: space-between; padding-top: .8rem; padding-bottom: .8rem; }
.logo { display: block; flex-shrink: 0; }
.logo img { width: 280px; height: auto; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: .45rem .8rem; font: inherit; font-weight: 700; cursor: pointer; color: var(--navy); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.7rem; align-items: center; }
.site-nav a { text-decoration: none; color: var(--navy); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--green); padding-bottom: 3px; }
.site-nav .btn, .site-nav .btn:hover { color: var(--white); box-shadow: none; padding-bottom: .8rem; }

/* Buttons */
.btn { display: inline-block; background: var(--green); color: var(--white); text-decoration: none; padding: .8rem 1.5rem; border-radius: var(--radius); font-weight: 700; letter-spacing: .02em; border: 2px solid var(--green); cursor: pointer; font-family: var(--sans); font-size: 1rem; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
/* On navy, Green is too dark: use Meadow */
.on-dark .btn { background: var(--meadow); border-color: var(--meadow); color: var(--navy); }
.on-dark .btn:hover { background: #85cfa3; border-color: #85cfa3; color: var(--navy); }
.on-dark .btn-outline, .btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.on-dark .btn-outline:hover, .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* Eyebrow / subhead: Lato Bold, uppercase, letter-spaced */
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: .9rem; display: block; }
.on-dark .eyebrow { color: var(--meadow); }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 6rem 0 5.5rem; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 520px; height: 520px; border-radius: 96px; background: rgba(108,194,143,.07); }
.hero .container { position: relative; }
.hero h1 { color: var(--white); max-width: 760px; }
.hero p { font-size: 1.2rem; max-width: 640px; color: var(--on-dark); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.9rem; }

.page-hero { background: var(--navy); color: var(--white); padding: 4rem 0 3.5rem; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--on-dark); max-width: 680px; font-size: 1.12rem; margin: 0; }

/* Sections */
section { padding: 4.75rem 0; }
.section-stone { background: var(--stone); }
.section-sage { background: var(--sage); }
.section-head { max-width: 700px; margin-bottom: 2.6rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--slate); }

.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); align-items: center; gap: 3rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; }
.card p { color: var(--slate); }
.card .link { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--green); }
.card .link:hover { text-decoration: underline; }
.section-stone .card { border-color: transparent; }

/* Monogram-style tile icon (echoes the PRE tile) */
.tile { width: 52px; height: 52px; border-radius: 13px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 1.2rem; }
.tile.green { background: var(--green); }
.tile.sage { background: var(--sage); color: var(--green); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { padding-left: 1.9rem; position: relative; margin-bottom: .65rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 4px; background: var(--sage); }
.checklist li::after { content: ""; position: absolute; left: 5px; top: calc(.42em + 3px); width: 5px; height: 8px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 1.7rem 1.5rem 1.5rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--green); color: var(--white); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-bottom: 1rem; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--slate); font-size: .97rem; margin: 0; }

/* Service detail blocks */
.service { padding: 4.75rem 0; scroll-margin-top: 100px; }
.service:nth-of-type(even) { background: var(--stone); }
.panel { background: var(--sage); padding: 2rem; border-radius: var(--radius); }
.panel h3 { font-size: 1.15rem; }
.panel p { color: var(--navy); }
.panel.white { background: var(--white); border: 1px solid var(--border); }

/* Quote / trust */
.quote { font-family: var(--serif); font-size: 1.32rem; line-height: 1.5; color: var(--navy); border-left: 3px solid var(--green); padding-left: 1.4rem; margin: 0 0 1rem; font-style: italic; }
.quote-by { color: var(--slate); font-size: .9rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.divider { border: 0; border-top: 1px solid rgba(28,43,57,.15); margin: 1.6rem 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; }
.stat-num { font-family: var(--serif); font-weight: 600; font-size: 2.3rem; color: var(--green); display: block; line-height: 1.2; }
.stat-label { color: var(--slate); font-size: .9rem; }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--on-dark); max-width: 620px; margin: 0 auto 1.8rem; }

/* FAQ */
.faq-group { margin-bottom: 2.75rem; }
details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); padding: 1.1rem 1.4rem; margin-bottom: .8rem; }
details[open] { border-color: var(--sage); box-shadow: inset 3px 0 0 var(--green); }
summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 2rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -3px; font-size: 1.45rem; color: var(--green); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: .9rem 0 0; color: var(--slate); }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; color: var(--navy); }
input, select, textarea { width: 100%; padding: .75rem .9rem; border: 1px solid #cfd3cf; border-radius: 8px; font: inherit; color: var(--navy); background: var(--white); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .86rem; color: var(--slate); }
.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { margin-bottom: 1.3rem; }
.contact-info strong { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: .15rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #aeb7c0; font-size: .93rem; padding: 3.5rem 0 1.5rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--meadow); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { width: 280px; height: auto; margin-bottom: 1.2rem; }
.brokerage-logo { display: block; width: 170px; height: auto; margin-top: 1.4rem; }
.site-footer h4 { color: var(--meadow); font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-legal { border-top: 1px solid #2a3b4b; padding-top: 1.5rem; font-size: .82rem; color: #8994a0; }
.footer-legal p { margin-bottom: .5rem; }

/* Utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-phone a { font-weight: 400; color: var(--slate); }

/* Gateway hero (homepage) */
.gateway { background: var(--navy); color: var(--white); padding: 5rem 0 5.5rem; }
.gateway-head .eyebrow { color: var(--meadow); }
.gateway-head { text-align: center; max-width: 820px; margin: 0 auto 3rem; }
.gateway-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.15; color: var(--white); }
.gateway-head p { font-size: 1.25rem; max-width: 680px; margin: 1.2rem auto 0; color: var(--white); }
.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; max-width: 960px; margin: 0 auto; }
.path-card { display: flex; flex-direction: column; gap: .9rem; background: var(--white); border: 1px solid rgba(28,43,57,.08); border-radius: 14px; padding: 2.5rem; text-decoration: none; color: var(--navy); box-shadow: 0 2px 10px rgba(28,43,57,.06); transition: transform .15s, box-shadow .15s; }
.path-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(28,43,57,.12); color: var(--navy); }
.path-card .tile, .path-card .eyebrow { margin: 0; }
.path-card h2 { font-size: 1.7rem; line-height: 1.25; margin: 0; }
.path-card p { margin: 0; font-size: 1.06rem; color: var(--slate); }
.path-card .btn { align-self: flex-start; margin-top: .5rem; }
.path-card:hover .btn { background: var(--green-dark); border-color: var(--green-dark); }
.gateway-foot { text-align: center; margin: 1.75rem 0 0; color: var(--white); }
.gateway-foot a { font-weight: 700; color: var(--meadow); }
.gateway-foot a:hover { color: var(--white); }

/* Credentials strip */
.cred-strip { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.cred-grid strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--green); }
.cred-grid span { color: var(--slate); font-size: .95rem; }

.card h3 { margin-bottom: .4rem; }
.card-links { margin: auto 0 0; font-size: .95rem; color: var(--slate); }
.card-links a { font-weight: 700; text-decoration: none; }
.card-links a:hover { text-decoration: underline; }
.tile svg { display: block; }

/* Team */
.team-card { text-align: center; align-items: center; }
.team-card strong { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.team-role { color: var(--slate); font-size: .95rem; margin-top: .25rem; }
.team-card ul { list-style: none; padding: 0; margin: .9rem 0 0; color: var(--navy); font-size: .97rem; }
.team-card li { margin-bottom: .2rem; }
.headshot { width: 180px; height: 180px; max-width: 100%; border-radius: 28px; background: var(--sage); color: var(--green); font-family: var(--serif); font-weight: 600; font-size: 1.6rem; display: grid; place-items: center; margin-bottom: 1.25rem; overflow: hidden; }
.headshot img { width: 100%; height: 100%; object-fit: cover; }
.center-link { text-align: center; margin: 1.75rem 0 0; }
.center-link a { font-weight: 700; text-decoration: none; }

/* Lead magnet */
.lead-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; background: var(--sage); border-radius: 14px; padding: 2.75rem; }
.lead-copy { flex: 1 1 420px; }
.lead-copy h2 { font-size: 1.75rem; margin: 0; }
.lead-copy p { margin: .75rem 0 0; font-size: 1.06rem; }
.lead-form { flex: 1 1 320px; display: flex; gap: .75rem; flex-wrap: wrap; }
.lead-form input { flex: 1 1 200px; min-height: 48px; }
.lead-form .btn { min-height: 48px; }

.center-actions { justify-content: center; margin-top: 1.75rem; }
.cta-band .cta-sub { margin: 1.4rem auto 0; }
.cta-band .cta-sub a { color: var(--white); font-weight: 700; }
.cta-band .cta-sub a:hover { color: var(--meadow); }

/* Families page */
.families-hero { background: var(--navy); color: var(--white); text-align: center; padding: 5.5rem 0 4.75rem; }
.families-hero .container { max-width: 860px; }
.families-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.8vw, 3.25rem); line-height: 1.15; }
.families-hero .lead { font-size: 1.28rem; max-width: 700px; margin: 1.4rem auto 2rem; color: var(--white); }
.btn-lg { font-size: 1.12rem; padding: .95rem 1.8rem; }
.hero-note { color: var(--on-dark); font-size: .95rem; margin: .9rem 0 .35rem; }
.hero-link { color: var(--meadow); font-weight: 700; font-size: .97rem; }
.hero-link:hover { color: var(--white); }

.compare { align-items: stretch; gap: 1.75rem; }
.compare-card { border-radius: 14px; padding: 2.25rem; }
.compare-card h2 { font-size: 1.65rem; margin-bottom: 1rem; }
.compare-card h3 { font-size: 1.45rem; margin-bottom: 1rem; }
.compare-card .eyebrow { margin-bottom: .5rem; }
.compare-card ul { margin: 0; font-size: 1.08rem; }
.compare-card.risk { background: var(--stone); }
.compare-card.risk .eyebrow { color: var(--slate); }
.compare-card.help { background: var(--sage); }
.risk-list { list-style: none; padding: 0; }
.risk-list li { position: relative; padding-left: 1.9rem; margin-bottom: .65rem; }
.risk-list li::before { content: "!"; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; }
.center-cta { text-align: center; margin: 2.5rem 0 0; }

.attorney-band { background: var(--navy); padding: 2.75rem 0; }
.attorney-band .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.attorney-band p { margin: 0; color: var(--white); font-size: 1.2rem; max-width: 680px; }
.attorney-band a { color: var(--meadow); font-weight: 700; text-decoration: none; white-space: nowrap; }
.attorney-band a:hover { color: var(--white); text-decoration: underline; }

/* Responsive */
@media (max-width: 1240px) and (min-width: 1081px) { .nav-phone { display: none; } }
@media (max-width: 960px) {
  .site-nav ul { gap: 1.2rem; }
  .logo img { width: 240px; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .team-grid .card { padding: 1.5rem 1rem; }
  .team-grid .headshot { width: 150px; height: 150px; border-radius: 24px; }
  .grid-3.steps { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav li { width: 100%; padding: .65rem 0; border-bottom: 1px solid var(--border); }
  .site-nav li:last-child { border: 0; padding-top: 1rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .site-header .container { position: relative; }
}
@media (max-width: 600px) {
  section, .service { padding: 3.3rem 0; }
  .hero { padding: 4rem 0; }
  .hero::before { display: none; }
  .logo img { width: 220px; }
  .grid-3, .grid-4, .team-grid, .form-row, .stats, .footer-grid { grid-template-columns: 1fr; }
  .gateway { padding: 3.5rem 0 4rem; }
  .path-card, .lead-box, .compare-card { padding: 1.75rem; }
  .families-hero { padding: 3.75rem 0 3.5rem; }
  .team-grid .headshot { width: 180px; height: 180px; border-radius: 28px; }
}
