/* ==========================================================================
   TOA Advisors — shared stylesheet
   Modern-classic boutique advisory aesthetic
   ========================================================================== */

:root {
  --navy-900: #0b1f33;
  --navy-800: #0f2740;
  --navy-700: #16324f;
  --navy-600: #1f4062;
  --ink: #14202b;
  --slate: #4b5b6b;
  --muted: #6b7a89;
  --line: #e4e8ec;
  --paper: #ffffff;
  --paper-2: #f6f8fa;
  --paper-3: #eef2f5;
  --bronze: #b08d57;
  --bronze-dark: #8f6f3e;
  --bronze-tint: #f3ece0;
  --max: 1160px;
  --gap: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 31, 51, 0.10);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }

a { color: var(--navy-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--bronze-dark); }

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

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1.1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-dark);
  margin: 0 0 1rem;
  display: inline-block;
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--slate); line-height: 1.6; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--paper-2); }
.section--navy { background: var(--navy-800); color: #dfe7ee; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead { color: #b9c6d3; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand .mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand .name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: 0.02em;
}
.brand .name span { color: var(--bronze-dark); }

/* Wordmark logo (recreates the TOA / ADVISORS lockup) */
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; align-items: stretch; }
.wordmark .wm-toa {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  color: var(--navy-900);
  text-align: center;
}
.wordmark .wm-adv {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .58rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-top: 4px;
  padding-left: .34em; /* optically center against the trailing letter-space */
  text-align: center;
}
.wordmark--light .wm-toa { color: #fff; }
.wordmark--light .wm-adv { color: #b8c6d4; }
.brand:hover .wm-toa, .brand:hover .wm-adv { color: inherit; }
.site-footer .brand:hover .wm-toa { color: #fff; }
.site-footer .brand:hover .wm-adv { color: #b8c6d4; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.02em;
  padding: .4rem 0;
  position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy-900); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--bronze);
}
.nav-cta {
  display: inline-block;
  padding: .6rem 1.15rem;
  background: var(--navy-800);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--navy-600); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .45rem .6rem;
  cursor: pointer;
  color: var(--navy-800);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.btn-primary { background: var(--bronze); color: #1c1206 !important; }
.btn-primary:hover { background: var(--bronze-dark); color: #fff !important; }
.btn-outline { border-color: rgba(255,255,255,.4); color: #fff !important; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--navy-800); color: #fff !important; }
.btn-dark:hover { background: var(--navy-600); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(176,141,87,0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: #eaf0f6;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 100% 46px;
  opacity: .5;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.hero-art {
  position: absolute; right: clamp(-40px, -2vw, 10px); top: 50%; transform: translateY(-50%);
  width: min(42vw, 460px); height: auto; opacity: .16; z-index: 0; pointer-events: none;
}
@media (max-width: 860px) { .hero-art { display: none; } }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: var(--bronze); }
.hero .lead { color: #c4d1de; max-width: 54ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.2rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d4dbe1; }
.card .num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--bronze-dark);
  font-weight: 600;
  letter-spacing: .1em;
  display: block;
  margin-bottom: .6rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--slate); font-size: .98rem; margin: 0; }

/* section heading block */
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .media {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(176,141,87,0.25), transparent 60%),
    linear-gradient(150deg, var(--navy-800), var(--navy-600));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split .media svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1rem; }
.stat .big { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem); color: #fff; line-height: 1; }
.stat .label { font-size: .82rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9db0c2; margin-top: .6rem; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list .tick {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: .2rem;
  border-radius: 50%; background: var(--bronze-tint);
  display: grid; place-items: center; color: var(--bronze-dark);
}
.feature-list strong { display: block; color: var(--navy-900); font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.feature-list span { color: var(--slate); font-size: .97rem; }
.section--navy .feature-list strong { color: #fff; }
.section--navy .feature-list span { color: #b9c6d3; }
.section--navy .feature-list .tick { background: rgba(176,141,87,0.22); color: #e6d3b3; }

/* ---------- Service detail blocks ---------- */
.service {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.6rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service .icon {
  width: 64px; height: 64px; border-radius: var(--radius);
  background: var(--navy-800); color: var(--bronze);
  display: grid; place-items: center;
}
.service h3 { margin-bottom: .4rem; }
.service p { color: var(--slate); margin-bottom: .6rem; }
.service ul { margin: .3rem 0 0; padding-left: 1.1rem; color: var(--slate); font-size: .96rem; }
.service ul li { margin-bottom: .3rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--navy-900); max-width: 22ch; margin-inline: auto; }
.section--navy .cta-band h2 { color: #fff; }
.cta-band .lead { margin-inline: auto; max-width: 46ch; margin-bottom: 2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--navy-800); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: .96rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(176,141,87,0.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.contact-detail { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.6rem; }
.contact-detail .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--radius); background: var(--bronze-tint); color: var(--bronze-dark); display: grid; place-items: center; }
.contact-detail .t { font-size: .8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem; }
.contact-detail .v { font-size: 1.05rem; color: var(--navy-900); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a8b8c8; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.10); }
.site-footer .brand .name { color: #fff; }
.site-footer .fdesc { color: #90a2b4; max-width: 34ch; font-size: .95rem; margin-top: 1rem; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7f93a6; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: #b8c6d4; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.8rem; font-size: .85rem; color: #7f93a6; }
.footer-bottom .disclaimer { max-width: 62ch; }

/* ---------- Sector coverage ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sector {
  background: var(--paper); padding: 1.6rem 1.5rem; transition: background .2s ease;
  display: flex; flex-direction: column; gap: .5rem;
}
.sector:hover { background: var(--paper-2); }
.sector .ic { color: var(--bronze-dark); }
.sector h4 { font-family: var(--serif); font-size: 1.2rem; margin: 0; color: var(--navy-900); }
.sector p { margin: 0; font-size: .9rem; color: var(--slate); }

/* ---------- Tombstones / selected transactions ---------- */
.tombstones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.tombstone {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); position: relative;
  display: flex; flex-direction: column; gap: .7rem; min-height: 210px;
}
.tombstone::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--bronze); border-radius: var(--radius) var(--radius) 0 0; }
.tombstone .client { font-family: var(--serif); font-size: 1.3rem; color: var(--navy-900); font-weight: 600; line-height: 1.15; }
.tombstone .deal { color: var(--slate); font-size: .95rem; flex: 1; }
.tombstone .role { font-size: .78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-dark); font-weight: 600; }
.tombstone .sector-tag { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .7rem; }

/* ---------- Prior-firm marks strip ---------- */
.firm-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin: 0 0 2rem;
}
.firm-strip .firm {
  background: #fff; padding: 1.7rem 1rem; min-height: 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transition: background .2s ease;
}
.firm-strip .firm:hover { background: var(--paper-2); }
.firm-strip .fname {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--navy-900); letter-spacing: .01em; line-height: 1.1;
}
.firm-strip .fsub {
  font-family: var(--sans); font-size: .64rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .5rem;
}
@media (max-width: 700px) { .firm-strip { grid-template-columns: 1fr; } }

/* ---------- Tombstone wall (deck grids) ---------- */
.tombstone-wall { margin: 0 0 1.6rem; }
.tombstone-wall img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); background: #fff;
}

/* ---------- Team / professionals ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.2rem); }
.member { text-align: left; }
.member .avatar {
  aspect-ratio: 1/1; border-radius: var(--radius); margin-bottom: 1rem;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  display: grid; place-items: center; color: rgba(255,255,255,.85);
  font-family: var(--serif); font-size: 2.4rem; letter-spacing: .05em;
}
.member .avatar-photo {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center 22%;
  border-radius: var(--radius); margin-bottom: 1rem; box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.member h3 { margin: 0 0 .15rem; font-size: 1.35rem; }
.member .title { color: var(--bronze-dark); font-size: .9rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: .6rem; }
.member p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ---------- Note / placeholder callout ---------- */
.note {
  background: var(--bronze-tint); border-left: 3px solid var(--bronze);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem; color: var(--bronze-dark); margin: 1.5rem 0 0;
}

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { }
.step .n {
  font-family: var(--serif); font-size: 2.2rem; color: var(--bronze); line-height: 1;
  border-bottom: 2px solid var(--line); padding-bottom: .8rem; margin-bottom: 1rem;
}
.step h4 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 .4rem; color: var(--navy-900); }
.step p { color: var(--slate); font-size: .93rem; margin: 0; }

@media (max-width: 900px) {
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .tombstones { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sectors { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .media { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .site-footer .brand { grid-column: 1 / -1; }

  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gap) 1.2rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: .8rem 0; border-bottom: 1px solid var(--paper-3); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links .nav-cta { margin-top: .8rem; text-align: center; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .service { grid-template-columns: 1fr; }
  .service .icon { width: 52px; height: 52px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
