/* =========================================================
   Edge Partners and Accountants
   Navy #0D112C + Gold #FEC92F. Playfair Display + Inter.
   Palette and type per the Edge Partners brand guideline.
   ========================================================= */

:root {
  /* core */
  --color-navy: #0D112C;
  --color-gold: #FEC92F;

  /* navy family */
  --color-navy-800: #151A38;
  --color-navy-700: #20294F;
  --color-slate: #4B5266;
  --color-text-subtle: #8A90A2;

  /* gold family */
  --color-gold-hover: #EAB417;
  --color-gold-soft: #FEF4D6;
  --color-gold-border: #F6DE9B;

  /* neutrals */
  --color-white: #FFFFFF;
  --color-page: #F7F8FB;
  --color-surface-alt: #EEF1F7;
  --color-border: #E5E8F0;

  /* semantic */
  --color-success: #2E7D5B;
  --color-error: #C0392B;

  /* roles */
  --text-strong: var(--color-navy);
  --text-body: #3a4160;
  --text-muted: var(--color-slate);

  --radius: 16px;
  --radius-sm: 11px;
  --radius-pill: 999px;
  --maxw: 1140px;
  --shadow: 0 18px 44px rgba(13, 17, 44, 0.12);
  --shadow-sm: 0 6px 18px rgba(13, 17, 44, 0.08);

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--color-white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-strong);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
}
p { margin: 0 0 1rem; }
a { color: var(--color-navy); text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

/* eyebrow: navy text with a small gold lead, never gold text on light */
.eyebrow {
  display: block;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; font-weight: 700; color: var(--color-navy);
  margin: 0 0 1rem;
}

/* inline placeholder for [bracketed] copy the client fills later */
.ph {
  background: var(--color-gold-soft);
  border: 1px dashed var(--color-gold-border);
  color: var(--color-navy);
  border-radius: 6px; padding: 0 .35em; font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-size: .98rem; font-weight: 600; line-height: 1;
  padding: .9em 1.6em; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
/* primary = the one popping CTA: gold fill, navy text */
.btn-primary { background: var(--color-gold); color: var(--color-navy); box-shadow: 0 8px 20px rgba(254, 201, 47, 0.34); }
.btn-primary:hover { background: var(--color-gold-hover); color: var(--color-navy); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(254, 201, 47, 0.42); }
/* secondary on light */
.btn-secondary { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-secondary:hover { background: var(--color-navy); color: #fff; transform: translateY(-2px); }
/* secondary on dark */
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-on-dark:hover { background: #fff; color: var(--color-navy); transform: translateY(-2px); }
.btn-lg { font-size: 1.05rem; padding: 1.05em 2em; }
.btn-block { width: 100%; padding: 1.1em; font-size: 1.05rem; }
.btn:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 3px; }

/* ---------- Header (navy, sticky) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-navy);
  border-bottom: 1px solid var(--color-navy-700);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 52px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: #fff; font-weight: 500; font-size: .98rem; }
.site-nav ul a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--color-gold); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(820px 420px at 88% -10%, var(--color-gold-soft), transparent 70%),
    radial-gradient(680px 420px at -8% 0%, #eef1f7, transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; padding: clamp(48px, 7vw, 88px) 24px; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); line-height: 1.05; margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--text-body); max-width: 42ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.6rem; }
.trust-strip { font-weight: 600; color: var(--color-navy); margin: 0 0 .5rem; font-size: .95rem; }
.trust-strip .dot { color: var(--color-gold); padding: 0 .3em; font-weight: 700; }
.hero-detail { color: var(--text-muted); font-size: .9rem; margin: 0; }

.hero-visual { position: relative; }
.hero-visual .photo { position: relative; z-index: 1; }
.hero-visual .photo img {
  width: 100%; height: auto; display: block; border-radius: 16px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.45) 9%, #000 24%);
          mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.45) 9%, #000 24%);
}

/* ---------- Sections ---------- */
.section { padding: clamp(58px, 8vw, 104px) 0; }
.section-alt { background: var(--color-page); }
.section-head { max-width: 680px; margin: 0 auto clamp(34px, 5vw, 54px); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-intro { color: var(--text-muted); font-size: 1.1rem; margin: 0; }
.section-head .eyebrow { justify-content: center; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--color-gold-border); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: var(--color-navy); margin-bottom: 18px; }
.card-icon svg { width: 27px; height: 27px; fill: var(--color-gold); }
.card h3 { font-size: 1.4rem; margin-bottom: .35em; }
.card p { margin: 0; color: var(--text-body); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); }
.about-copy p { color: var(--text-body); }
.about-points { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow-sm); }
.about-points ul { list-style: none; margin: 0; padding: 0; }
.about-points li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 600; color: var(--color-navy); padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.about-points li:last-child { border-bottom: 0; padding-bottom: 0; }
.about-points li:first-child { padding-top: 0; }
.about-points svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.tick circle { fill: var(--color-gold); }
.tick path { stroke: var(--color-navy); }

/* ---------- Accreditations ---------- */
.accred { background: #fff; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: clamp(34px, 5vw, 56px) 0; }
.accred-head { text-align: center; margin-bottom: 26px; }
.accred-head .eyebrow { justify-content: center; margin-bottom: 0; }
.accred-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.accred-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 18px 24px; min-width: 150px; min-height: 96px;
}
.accred-badge img { height: 38px; width: auto; object-fit: contain; }
.accred-badge .tpb-mark { width: 38px; height: 38px; }
.accred-badge .label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-align: center; }
.accred-note { text-align: center; color: var(--color-text-subtle); font-size: .82rem; margin: 22px 0 0; }

/* ---------- Meet the partners ---------- */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }
.partner-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.partner-photo { aspect-ratio: 1 / 1; background: var(--color-surface-alt); overflow: hidden; }
.partner-photo img { width: 100%; height: 100%; object-fit: cover; }
.partner-body { padding: 26px 28px; }
.partner-body h3 { font-size: 1.5rem; margin-bottom: .15em; }
.partner-title { color: var(--color-navy); font-weight: 600; margin: 0 0 .2rem; }
.partner-creds { color: var(--text-muted); font-size: .92rem; margin: 0 0 .9rem; }
.partner-bio { color: var(--text-body); margin: 0; font-size: .98rem; }

/* ---------- What you can expect (navy feature section) ---------- */
.expect { background: var(--color-navy); color: #e7e9f2; }
.expect h2, .expect h3 { color: #fff; }
.expect .eyebrow { color: var(--color-gold); }
.expect-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: start; }
.promises { list-style: none; margin: 0; padding: 0; }
.promises li { display: flex; align-items: flex-start; gap: .8rem; padding: 13px 0; border-bottom: 1px solid var(--color-navy-700); font-size: 1.05rem; color: #eef0f7; }
.promises li:last-child { border-bottom: 0; }
.promises svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.promises .tick circle { fill: var(--color-gold); }
.promises .tick path { stroke: var(--color-navy); }
.expect-side { background: var(--color-navy-800); border: 1px solid var(--color-navy-700); border-radius: var(--radius); padding: 30px 32px; }
.creds-line { color: #c7ccde; font-size: .96rem; margin: 0 0 24px; }
.creds-line strong { color: #fff; }
.founder-quote { margin: 0; }
.founder-quote blockquote { font-family: var(--font-head); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: #fff; margin: 0 0 14px; position: relative; padding-left: 20px; border-left: 3px solid var(--color-gold); }
.founder-quote figcaption { color: var(--color-gold); font-weight: 600; font-size: .92rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-gold); color: var(--color-navy); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; margin-bottom: 16px; }
.step h3 { font-size: 1.3rem; margin-bottom: .3em; }
.step p { margin: 0; color: var(--text-body); }
.steps-cta { text-align: center; margin-top: 40px; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); }
.contact-copy .section-intro { margin-bottom: 2rem; }
.contact-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-details li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--color-navy); flex: none; }
.contact-ic svg { width: 22px; height: 22px; fill: var(--color-gold); }
.contact-label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--text-muted); margin-bottom: 2px; }
.contact-details a, .contact-text { font-size: 1.06rem; font-weight: 600; color: var(--color-navy); }
.contact-details a:hover { text-decoration: underline; text-decoration-color: var(--color-gold); text-underline-offset: 4px; }
.contact-text { font-weight: 500; color: var(--text-body); }

/* ---------- Form ---------- */
.contact-form-wrap { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--color-navy); margin-bottom: 7px; }
.req { color: var(--color-gold-hover); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--color-navy);
  padding: .8em .95em; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  background: #fcfdff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-navy); box-shadow: 0 0 0 3px rgba(13,17,44,0.12); background: #fff; }
.form-note { font-size: .82rem; color: var(--text-muted); margin: .9rem 0 0; }
.form-status { margin: 1rem 0 0; padding: .85em 1em; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }
.form-status.success { background: #e8f3ee; color: #1f6b4a; border: 1px solid #bfe0cf; }
.form-status.error { background: #fdecec; color: #a32424; border: 1px solid #f6cccc; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: #aab1c8; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: 40px; padding-top: clamp(46px, 6vw, 72px); padding-bottom: 40px; }
.footer-logo { height: 84px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; color: #9aa2bd; }
.footer-col h4 { font-family: var(--font-body); color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.footer-col p { margin: 0 0 .65rem; }
.footer-col a { color: #c2c8db; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--color-gold); text-underline-offset: 4px; }
.footer-compliance .ph { background: rgba(254,201,47,0.14); border-color: rgba(254,201,47,0.5); color: #fff; }
.footer-fineprint { font-size: .82rem; color: #8a90a2; margin-top: .5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,0.1); font-size: .86rem; color: #8088a0; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--color-navy); border-bottom: 1px solid var(--color-navy-700); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0 24px; }
  .site-nav ul li { border-bottom: 1px solid var(--color-navy-700); }
  .site-nav ul a { display: block; padding: 14px 0; }
  .site-nav .btn { margin: 12px 24px 0; }
  .nav-toggle { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 430px; margin: 0 auto; }
  .hero-visual .photo img { -webkit-mask-image: none; mask-image: none; }
  .hero .lead { max-width: 54ch; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner, .expect-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .cards { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
