/* =========================================================
   Handson Advisory — site styles
   Brand: navy + gold (from logo), warm off-white ground
   Breakpoints: phone < 640px, tablet 640–1023px, laptop 1024px+
   ========================================================= */

/* Fonts are self-hosted (SIL Open Font License), latin + latin-ext subsets as served by Google Fonts. */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Mulish is a variable font: one file covers weights 400–800. */
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/mulish-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/mulish-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0b1d4d;
  --navy-2: #142a66;
  --navy-ink: #08163b;
  --gold: #c9a23f;
  --gold-deep: #a9852a;
  --gold-soft: #f1e6c6;
  --gold-text: #86671b;   /* gold for text on light backgrounds (passes 4.5:1 on cream and white) */
  --control-border: #948c7a; /* form control outlines (passes 3:1) */
  --cream: #f7f4ee;
  --paper: #ffffff;
  --ink: #1a2238;
  --muted: #586079;
  --line: #e6e0d4;

  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 29, 77, .06), 0 8px 24px rgba(11, 29, 77, .08);
  --shadow-lg: 0 2px 4px rgba(11, 29, 77, .06), 0 18px 48px rgba(11, 29, 77, .14);

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 112px);
  --header-h: 76px;
  --container: 1320px;
  --dots: radial-gradient(rgba(11, 29, 77, .07) 1px, transparent 1.3px);
}
/* Large screens: use more of the width and scale type up a little so the sides don't feel empty. */
@media (min-width: 1600px) {
  :root { --container: 1480px; }
  html { font-size: 106.25%; }
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 0.95rem + 0.15vw, 18px);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 3px; border-radius: 4px; }
.page-hero :focus-visible, .section--navy :focus-visible, .process :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
/* Cream sections get a faint dot texture; white sections a soft gold glow — adds depth without noise. */
.section:not(.section--paper):not(.section--navy) { background: var(--dots) 0 0 / 24px 24px, var(--cream); }
.section--paper { background: radial-gradient(800px 380px at 100% 0%, rgba(201, 162, 63, .09), transparent 70%), radial-gradient(700px 360px at 0% 100%, rgba(11, 29, 77, .04), transparent 70%), var(--paper); }
.section--navy { background: var(--navy); color: #dfe5f5; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section--navy .eyebrow { color: var(--gold); }

.lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold); }

.quote-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  color: var(--navy-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { background: var(--gold); color: var(--navy-ink); }
.btn--gold:hover { background: #d8b356; box-shadow: 0 8px 22px rgba(201, 162, 63, .35); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); box-shadow: 0 8px 22px rgba(11, 29, 77, .25); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11, 29, 77, .06); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: clamp(30px, 3.4vw, 40px); width: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.site-nav a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--navy); position: relative; padding-block: 6px; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .btn { min-height: 42px; padding: 8px 22px; color: var(--navy-ink); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span:not(.sr-only) {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.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: 900px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 30px rgba(11, 29, 77, .1);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--gold-text); }
  .site-nav .btn { margin-top: 16px; min-height: 50px; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px);
  background:
    radial-gradient(1200px 500px at 110% -10%, rgba(201, 162, 63, .14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(11, 29, 77, .07), transparent 60%),
    var(--dots) 0 0 / 24px 24px,
    var(--cream);
}
/* Decorative gold rings behind the hero image */
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { right: -160px; top: -120px; width: 560px; height: 560px; border: 2px solid rgba(201, 162, 63, .3); }
.hero::after { right: 18%; bottom: -220px; width: 380px; height: 380px; border: 2px solid rgba(11, 29, 77, .08); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero .lead { max-width: 520px; margin-bottom: 32px; }
.hero-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #f3f0ea;
  aspect-ratio: 4 / 5;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(11, 29, 77, .06);
}
.hero-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .95); border-radius: 14px; padding: 12px 18px 12px 14px;
  box-shadow: var(--shadow-lg);
}
.hero-badge-num {
  font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--navy);
  background: var(--gold-soft); border-radius: 10px; padding: 8px 10px;
}
.hero-badge-text { font-weight: 800; color: var(--navy); line-height: 1.25; font-size: .92rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-media { aspect-ratio: 4 / 3; max-width: 560px; margin-inline: auto; width: 100%; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-head { position: sticky; top: calc(var(--header-h) + 32px); }
.mission {
  margin-top: 28px; padding: 22px 26px; border-left: 4px solid var(--gold);
  background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.5; color: var(--navy);
}
.about-links { display: grid; gap: 12px; margin-top: 28px; }
.about-link {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.about-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.about-link-icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
}
.about-link-icon svg { width: 24px; height: 24px; }
.about-link-text { flex: 1; line-height: 1.4; }
.about-link-text strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--navy); }
.about-link-text span { color: var(--muted); font-size: .9rem; }
.about-link-arrow { flex: none; width: 18px; height: 18px; color: var(--gold-deep); transition: transform .2s; }
.about-link:hover .about-link-arrow { transform: translateX(4px); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-head { position: static; }
}

/* ---------- Service cards (home) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px 26px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
/* Gold bar that slides in along the top on hover */
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 76px; height: 76px; border-radius: 18px; background: var(--gold-soft);
  display: grid; place-items: center; margin-bottom: 22px;
  transition: background-color .25s;
}
.card:hover .card-icon { background: #ead9a6; }
.card-icon img { width: 50px; height: 50px; object-fit: contain; }
.card h3 { font-size: 1.28rem; margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-link {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .9rem; color: var(--navy); text-decoration: none;
}
.card-link svg { width: 16px; height: 16px; color: var(--gold-deep); transition: transform .2s; }
.card-link:hover svg { transform: translateX(4px); }
.card-link:hover { color: var(--gold-text); }

/* ---------- Process band ---------- */
.process {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #dfe5f5; border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.process::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border: 2px solid rgba(201, 162, 63, .35); border-radius: 50%;
}
.process::after {
  content: ""; position: absolute; right: 40px; bottom: -120px; width: 220px; height: 220px;
  border: 2px solid rgba(201, 162, 63, .2); border-radius: 50%;
}
.process h2 { color: #fff; }
.process-text { position: relative; z-index: 1; }
.process .eyebrow { color: var(--gold); }
.process-cta { position: relative; z-index: 1; justify-self: end; }
@media (max-width: 820px) {
  .process { grid-template-columns: 1fr; }
  .process-cta { justify-self: start; }
}

/* ---------- Excellence ---------- */
.excellence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.pillars { display: grid; gap: 16px; }
.pillar {
  display: flex; align-items: center; gap: 18px;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.pillar-num {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-display); font-size: 1.25rem;
}
.pillar h3 { margin: 0; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
@media (max-width: 860px) { .excellence-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonials { columns: 3 300px; column-gap: clamp(16px, 2vw, 24px); }
.testimonial {
  break-inside: avoid; margin: 0 0 clamp(16px, 2vw, 24px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: 6px; right: 22px;
  font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--gold-soft);
}
.stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 14px; }
.testimonial blockquote { margin: 0 0 22px; color: var(--ink); font-size: .97rem; position: relative; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.t-logo {
  flex: none; width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; overflow: hidden; padding: 6px;
}
.t-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.t-name { font-weight: 800; color: var(--navy); line-height: 1.3; }
.t-org { color: var(--muted); font-size: .88rem; line-height: 1.35; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #dfe5f5; position: relative; overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px);
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border: 2px solid rgba(201, 162, 63, .3); border-radius: 50%; pointer-events: none;
}
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.page-hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); aspect-ratio: 4 / 3; background: #1b2f6b; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-quote { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3rem); line-height: 1.2; color: #fff; margin: 0 0 14px; }
.hero-quote-by { color: var(--gold); font-weight: 800; letter-spacing: .06em; margin-bottom: 26px; }
.hero-sub { font-family: var(--font-display); font-style: italic; color: #cdd6ef; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 560px; }
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { max-width: 560px; }
}

/* ---------- Feature rows (service detail) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 112px); }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; background: #ece7dc; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media--square { aspect-ratio: 1 / 1; max-width: 460px; justify-self: end; width: 100%; }
.page-hero-media--contain { background: #fff; }
.page-hero-media--contain img { object-fit: contain; padding: clamp(16px, 3vw, 32px); }
@media (max-width: 860px) { .page-hero-media--square { justify-self: start; aspect-ratio: 4 / 3; } }
.feature-num { font-family: var(--font-display); color: var(--gold-text); font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9852a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media { aspect-ratio: 16 / 10; }
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-weight: 700; font-size: .9rem; color: var(--navy);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Reasons + stats ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.reasons--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .reasons { grid-template-columns: repeat(2, 1fr); } .reasons--3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .reasons { grid-template-columns: 1fr; } }
.reason {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
  padding: 26px 24px;
}
.reason-icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 16px; }
.reason h3 { color: #fff; font-size: 1.25rem; margin-bottom: .35em; }
.reason p { color: #c3cce6; font-size: .95rem; }

.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 3vw, 32px); margin-top: clamp(36px, 5vw, 56px); }
.stat {
  flex: 1 1 220px; max-width: 320px; text-align: center;
  padding: 26px 20px; border-radius: var(--radius); background: rgba(201, 162, 63, .1); border: 1px solid rgba(201, 162, 63, .35);
}
.stat-num { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat-icon { width: 54px; height: 54px; color: var(--gold); margin: 0 auto; display: block; }
.stat-label { margin-top: 10px; font-weight: 800; letter-spacing: .04em; color: #fff; }

/* ---------- CTA band ---------- */
.cta {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
}
.cta h2 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.3rem); }
.cta-info { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cta-info li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-weight: 600; line-height: 1.5; }
.cta-info svg { flex: none; width: 22px; height: 22px; color: var(--gold-deep); margin-top: 1px; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-aside .feature-media { aspect-ratio: 4 / 3; margin-bottom: 28px; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; line-height: 1.5; }
.info-list svg { flex: none; width: 22px; height: 22px; color: var(--gold-deep); margin-top: 2px; }
.info-list a { color: var(--navy); font-weight: 700; text-decoration: none; word-break: break-word; }
.info-list a:hover { color: var(--gold-text); text-decoration: underline; }
.info-label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 800; font-size: .9rem; color: var(--navy); }
.req { color: #b3261e; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--control-border); border-radius: 10px; background: #fcfbf8;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201, 162, 63, .2); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span {
  display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--control-border);
  font-weight: 700; font-size: .9rem; color: var(--navy); background: #fcfbf8; transition: all .2s;
}
.radio input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.radio input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-weight: 700; color: var(--navy); }
.form-status.is-success { color: #1e6b3a; }
.form-status.is-error { color: #b3261e; }
.form-actions .btn:disabled { opacity: .6; cursor: progress; }
.hp-field { display: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-aside { order: 2; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 780px; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 56px); }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3a4259; }
.prose ul { padding-left: 1.2em; }
.prose .policy-meta { color: var(--muted); font-size: .9rem; font-weight: 700; margin-bottom: 1.6em; }
.prose a { color: var(--navy); font-weight: 700; }

/* ---------- App landing (Handson Wealth) ---------- */
.app-hero { padding-bottom: clamp(56px, 8vw, 112px); }
.app-hero h1 em { font-style: italic; color: var(--gold); }
.app-hero .lead { color: #cdd6ef; max-width: 520px; margin-bottom: 30px; }

.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.store-badges a { display: block; border-radius: 10px; transition: transform .2s, box-shadow .2s; }
.store-badges a:hover { transform: translateY(-2px); }
.store-badges img { height: 52px; width: auto; }
/* The Google badge ships with built-in padding; scale it so the black pill matches Apple's height. */
.store-badges .badge-play { height: 78px; max-width: none; margin: -13px; }
.page-hero .store-badges a { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }
.store-badges a:has(.badge-play) { box-shadow: none; }

.phones { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 1 / 1.24; }
.phone {
  position: absolute; width: 50%; aspect-ratio: 9 / 20;
  border-radius: 34px; border: 9px solid #050a1a; background: #050a1a; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.phone--back { right: 0; top: 0; transform: rotate(5deg); opacity: .96; }
.phone--front { left: 0; bottom: 0; transform: rotate(-4deg); z-index: 1; }
@media (max-width: 860px) {
  .phones { margin-top: 24px; width: min(100%, 360px); }
  .app-steps-media { width: min(100%, 260px); }
}

.app-steps .pillar { align-items: flex-start; }
.app-steps .pillar h3 { margin-bottom: .25em; }
.app-steps .pillar p { color: var(--muted); font-size: .95rem; }
.app-steps-media { justify-self: center; width: min(100%, 300px); }
.app-steps-media .phone { position: static; width: 100%; transform: none; box-shadow: var(--shadow-lg); }

.app-cta { text-align: center; grid-template-columns: 1fr; justify-items: center; }
.app-cta .lead { color: #cdd6ef; margin-bottom: 28px; }
.app-cta .store-badges { justify-content: center; position: relative; z-index: 1; }
.legal-note { max-width: 780px; margin: 22px auto 0; text-align: center; font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: #b9c3de; padding-top: clamp(48px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: clamp(28px, 5vw, 64px); }
.footer-logo { background: #fff; border-radius: 12px; padding: 14px 18px; display: inline-block; margin-bottom: 22px; }
.footer-logo img { width: 220px; }
.footer-title { font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.footer-contact svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.site-footer a { color: #e3e8f5; text-decoration: none; word-break: break-word; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .2); transition: background-color .2s, border-color .2s, color .2s;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-ink); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; font-size: .88rem; text-align: center; }
.footer-bottom p { margin: 0; }
.footer-bottom .footer-disclosure { max-width: 820px; margin: 10px auto 0; font-size: .78rem; line-height: 1.6; }
.feature-note { margin-top: 18px; font-size: .85rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
/* Hidden state only applies before reveal, so hover transforms on cards keep working afterwards. */
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }
.js .reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { transition: opacity .7s ease, transform .3s ease, box-shadow .25s, border-color .25s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal:not(.is-visible) { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---------- 404 page ---------- */
.notfound-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.btn--ghost-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost-navy:hover { background: var(--navy); color: #fff; }
