/* ==========================================================================
   Closter Wealth
   ========================================================================== */

:root {
  --navy:       #0b2545;
  --navy-700:   #13315c;
  --navy-500:   #1d4e89;
  --gold:       #c8a863;
  --gold-soft:  #f3ead8;
  --ink:        #16202e;
  --muted:      #5b6b80;
  --line:       #e3e8ef;
  --bg:         #ffffff;
  --bg-alt:     #f6f8fb;

  --wrap:       1160px;
  --radius:     14px;
  --shadow-sm:  0 1px 2px rgba(11, 37, 69, .06), 0 4px 14px rgba(11, 37, 69, .05);
  --shadow-md:  0 10px 30px rgba(11, 37, 69, .10);
  --ease:       cubic-bezier(.2, .7, .3, 1);

  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--navy-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--navy);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.section { padding: clamp(72px, 9vw, 118px) 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.4em; height: 1.4em;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .9em;
}
.eyebrow.light { color: var(--gold); }

.lede { font-size: 1.09rem; color: var(--muted); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }

.grid-2 {
  display: grid; gap: clamp(40px, 6vw, 80px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1.05fr 1fr; } }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; font-size: .97rem;
  padding: 14px 26px; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #d9bd7d; box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; color: var(--navy-500); text-decoration: none;
}
.link-arrow span { transition: transform .18s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

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

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(11, 37, 69, .06);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }

.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy); flex: none;
}
.brand-mark svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 3.2; stroke-linecap: round; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-serif); font-size: 1.12rem; font-weight: 600;
  color: var(--navy); letter-spacing: -.01em;
}
.brand-text em {
  font-style: normal; font-size: .66rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase; color: var(--muted);
}

.site-header:not(.scrolled) .brand-mark { background: rgba(255, 255, 255, .12); }
.site-header:not(.scrolled) .brand-text strong { color: #fff; }
.site-header:not(.scrolled) .brand-text em { color: rgba(255, 255, 255, .7); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .95rem; font-weight: 500; color: var(--navy); text-decoration: none;
  transition: color .18s var(--ease);
}
.nav a:not(.btn):hover { color: var(--navy-500); }
.nav a.active:not(.btn) { color: var(--navy-500); }

.site-header:not(.scrolled) .nav a:not(.btn) { color: rgba(255, 255, 255, .88); }
.site-header:not(.scrolled) .nav a:not(.btn):hover,
.site-header:not(.scrolled) .nav a.active:not(.btn) { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 24px 22px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--navy) !important; }
  .nav .btn { margin-top: 18px; }
  .site-header:not(.scrolled) .nav { background: #fff; }
}

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

.hero { position: relative; color: #fff; padding: 190px 0 clamp(90px, 11vw, 140px); overflow: hidden; }

/* Photo layer. The navy background-color sits underneath, so if the image is
   missing or still loading the hero looks exactly as it did before. */
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-color: #0b2545;
  background-image: url("images/hero-family.jpg");
  background-size: cover;
  background-position: 50% 45%;
}

/* Navy scrim above the photo. Text contrast must not depend on which photo is
   used, so this stays opaque enough to carry white type on its own. */
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90rem 42rem at 78% -8%, rgba(200, 168, 99, .30), transparent 58%),
    radial-gradient(60rem 40rem at 8% 108%, rgba(29, 78, 137, .55), transparent 62%),
    linear-gradient(155deg, rgba(11, 37, 69, .92) 0%, rgba(19, 49, 92, .86) 52%, rgba(14, 42, 80, .92) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 78%);
}

.hero-inner { max-width: 850px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lede { color: rgba(255, 255, 255, .82); font-size: 1.16rem; max-width: 660px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0; }

.hero-points {
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  list-style: none; margin: 44px 0 0; padding: 0;
}
.hero-points li {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .93rem; font-weight: 500; color: rgba(255, 255, 255, .8);
}
.hero-points .ico { color: var(--gold); width: 1.15em; height: 1.15em; stroke-width: 2.4; }

/* --- Purpose / stats ------------------------------------------------------ */

.purpose { background: var(--bg); }

.stats { display: grid; gap: 16px; }
.stat {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px;
  padding: 26px 28px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
}
.stat strong {
  font-family: var(--font-serif); font-size: 2.1rem; font-weight: 600;
  color: var(--navy); line-height: 1; min-width: 2.6ch;
}
.stat span { font-size: .95rem; color: var(--muted); line-height: 1.5; }

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

.services { background: var(--bg-alt); border-block: 1px solid var(--line); }

.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfd8e4; }

.card-ico {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 20px;
  border-radius: 12px; background: var(--gold-soft); color: var(--navy);
}
.card h3 { margin-bottom: .45em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* --- Process -------------------------------------------------------------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 46px; height: 2px; background: var(--gold);
}
.step-num {
  display: block; font-family: var(--font-serif); font-size: .95rem; font-weight: 600;
  letter-spacing: .1em; color: var(--gold); margin-bottom: .7em;
}
.step h3 { margin-bottom: .5em; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }

/* --- Why ------------------------------------------------------------------ */

.why { background: var(--bg-alt); border-block: 1px solid var(--line); }

.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.why-list li { padding-left: 22px; border-left: 2px solid var(--gold); }
.why-list h3 { font-size: 1.1rem; margin-bottom: .35em; }
.why-list p { margin: 0; color: var(--muted); font-size: .97rem; }

@media (min-width: 620px) { .why-list { grid-template-columns: 1fr 1fr; } }

/* --- Contact -------------------------------------------------------------- */

.contact {
  position: relative;
  background-color: #0b2545;
  background-image: url("images/contact-family.jpg");
  background-size: cover;
  background-position: 50% 40%;
  color: #fff;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60rem 34rem at 88% 4%, rgba(200, 168, 99, .22), transparent 60%),
    linear-gradient(160deg, rgba(11, 37, 69, .93), rgba(19, 49, 92, .90));
}
.contact > .wrap { position: relative; z-index: 1; }
.contact h2 { color: #fff; }
.contact .lede { color: rgba(255, 255, 255, .8); }

.contact-grid { align-items: start; }

.contact-details { margin: 36px 0 0; display: grid; gap: 20px; }
.contact-details dt {
  font-size: .74rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .35em;
}
.contact-details dd { margin: 0; color: rgba(255, 255, 255, .9); font-size: 1rem; }
.contact-details a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.contact-details a:hover { text-decoration-color: var(--gold); }

.form {
  background: #fff; border-radius: var(--radius); padding: clamp(26px, 3.5vw, 38px);
  box-shadow: var(--shadow-md); display: grid; gap: 18px;
}
.field { display: grid; gap: 7px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink);
  padding: 12px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 9px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(29, 78, 137, .14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}

/* Honeypot — hidden from people, visible to bots. Not display:none, which
   some bots detect and skip. */
.honeypot {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.form-note { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.form-note.error { color: #c0392b; font-weight: 500; }
.form-note.success { color: #1a7f4b; font-weight: 500; }

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

.site-footer { background: #071a33; color: rgba(255, 255, 255, .68); padding: 72px 0 0; font-size: .93rem; }

.footer-inner {
  display: grid; gap: 44px; padding-bottom: 52px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1.2fr 1.6fr; } }

.footer-brand p { max-width: 380px; margin: 20px 0 0; line-height: 1.6; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, .1); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text em { color: rgba(255, 255, 255, .6); }

.footer-nav { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.footer-nav h4 {
  font-family: var(--font-sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: #fff; margin: 0 0 16px;
}
.footer-nav a {
  display: block; padding: 5px 0; color: rgba(255, 255, 255, .68); text-decoration: none;
  transition: color .18s var(--ease);
}
.footer-nav a:hover { color: var(--gold); }

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 26px 34px;
  display: grid; gap: 10px;
}
.footer-base p { margin: 0; }
.disclaimer { font-size: .8rem; color: rgba(255, 255, 255, .45); line-height: 1.6; max-width: 90ch; }

/* --- Reveal on scroll ----------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
