/* True Meridian Advisors: navy, blue and gold. Every text color has a light and a dark value. */
:root {
  --navy:      #0F2744;
  --navy-deep: #0A1C33;
  --navy-mid:  #1B3F6B;
  --blue:      #2F5D8C;
  --gold:      #D4A017;
  --gold-hi:   #E8BC3A;
  --bg:        #FFFFFF;
  --band:      #EEF3F9;
  --card:      #F7F9FC;
  --card-alt:  #FFFFFF;
  --rule:      #D5DFEB;
  --fg:        #16233A;
  --heading:   #0F2744;
  --muted:     #4C5B70;
  --accent:    #2F5D8C;
  --gold-text: #8A6508;
  --link:      #1F5A99;
  --section-y: 88px;
  --radius:    10px;
  --shadow:       0 1px 2px rgba(15,39,68,0.06), 0 8px 24px -6px rgba(15,39,68,0.12);
  --shadow-hover: 0 2px 4px rgba(15,39,68,0.08), 0 18px 40px -10px rgba(15,39,68,0.22);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0B1624;
    --band:      #0F1F33;
    --card:      #13253B;
    --card-alt:  #13253B;
    --rule:      #26405E;
    --fg:        #E6ECF3;
    --heading:   #F1F5FA;
    --muted:     #AEBDCE;
    --accent:    #9CC0E8;
    --gold-text: #E8BC3A;
    --link:      #9CC9F5;
    --shadow:       0 1px 2px rgba(0,0,0,0.3), 0 10px 28px -6px rgba(0,0,0,0.5);
    --shadow-hover: 0 2px 4px rgba(0,0,0,0.35), 0 20px 44px -10px rgba(0,0,0,0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:        #0B1624;
  --band:      #0F1F33;
  --card:      #13253B;
  --card-alt:  #13253B;
  --rule:      #26405E;
  --fg:        #E6ECF3;
  --heading:   #F1F5FA;
  --muted:     #AEBDCE;
  --accent:    #9CC0E8;
  --gold-text: #E8BC3A;
  --link:      #9CC9F5;
  --shadow:       0 1px 2px rgba(0,0,0,0.3), 0 10px 28px -6px rgba(0,0,0,0.5);
  --shadow-hover: 0 2px 4px rgba(0,0,0,0.35), 0 20px 44px -10px rgba(0,0,0,0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; line-height: 1.65;
  color: var(--fg); background: var(--bg);
  overflow-x: clip;
}
a { color: var(--link); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--gold); color: var(--navy); padding: 0.5rem 1rem; font-weight: 600; }
.skip:focus { left: 8px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, 4vw); }
.narrow { max-width: 780px; }

/* NAV */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,39,68,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212,160,23,0.25);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.logo { display: flex; flex-direction: column; text-decoration: none; }
.logo-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; font-weight: 700; color: #fff; line-height: 1.1; }
.logo-tag { font-size: 0.66rem; color: var(--gold-hi); letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.86rem; font-weight: 500; color: rgba(255,255,255,0.88); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-hi); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav-links .btn { padding: 0.55rem 1.1rem; font-size: 0.85rem; box-shadow: none; color: var(--navy); }
.nav-links .btn:hover { color: var(--navy); }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,0.35); color: #fff; border-radius: 4px; padding: 0.45rem 0.8rem; font: 500 0.9rem Inter, sans-serif; cursor: pointer; }

/* BUTTONS */
.btn {
  display: inline-block; background: var(--gold); color: var(--navy);
  padding: 0.9rem 1.9rem; font-size: 0.95rem; font-weight: 600;
  border-radius: 4px; text-decoration: none;
  box-shadow: 0 4px 18px rgba(212,160,23,0.3);
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn-ghost { color: rgba(255,255,255,0.9); font-size: 0.92rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.45); padding-bottom: 2px; }
.btn-ghost:hover { color: #fff; border-color: #fff; }

/* HERO (home) */
.hero { position: relative; overflow: hidden; min-height: calc(100vh - 70px); display: flex; align-items: center; padding: 90px 0 80px; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,28,51,0.92) 0%, rgba(10,28,51,0.72) 40%, rgba(10,28,51,0.2) 70%, transparent 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 590px; }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.5rem, 5.5vw, 4.3rem); font-weight: 700; color: #fff; line-height: 1.08; letter-spacing: -0.01em; text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.hero h1 em { font-style: italic; color: var(--gold-hi); display: block; }
.hero-rule { width: 56px; height: 2px; background: var(--gold); margin: 1.5rem 0 1.6rem; }
.hero-sub { font-size: 1.06rem; color: rgba(255,255,255,0.9); line-height: 1.75; max-width: 490px; margin-bottom: 2.4rem; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.actions { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }

/* PAGE HEADER (inner pages) */
.page-head { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: #fff; padding: 64px 0 56px; border-bottom: 3px solid var(--gold); }
.crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.78); margin-bottom: 1rem; }
.crumbs a { color: #fff; }
.page-head h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.15; font-weight: 700; max-width: 820px; text-wrap: balance; }
.page-head .intro { font-size: 1.08rem; color: rgba(255,255,255,0.88); max-width: 680px; margin-top: 1rem; line-height: 1.7; }

/* TRUST BAR */
.trust-bar { background: var(--navy-deep); border-bottom: 1px solid rgba(212,160,23,0.25); padding: 1.6rem 0; }
.trust-bar .wrap { display: flex; justify-content: center; gap: 1.5rem 3.5rem; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-num { font-family: 'Playfair Display', Georgia, serif; font-size: 1.9rem; font-weight: 700; color: var(--gold-hi); line-height: 1.1; }
.trust-label { font-size: 0.86rem; font-weight: 500; color: rgba(255,255,255,0.86); margin-top: 0.2rem; }

/* SECTIONS */
.section { padding: var(--section-y) 0; }
.section.alt { background: var(--band); }
h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.75rem, 3.1vw, 2.5rem); font-weight: 700; color: var(--heading); line-height: 1.2; margin-bottom: 1rem; text-wrap: balance; }
h2 em { font-style: italic; color: var(--accent); }
.lead { font-size: 1.04rem; color: var(--muted); max-width: 600px; line-height: 1.75; }
.section-head { margin-bottom: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
/* Four across on wide screens, two by two on tablets, one column on phones. Never three-and-one. */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 2.4rem 2.2rem; box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.grid-2 > .card:hover, .grid-4 > .card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: rgba(212,160,23,0.55); }
.grid-4 > .card { border-top: 3px solid var(--gold); padding: 2.2rem 1.75rem; }
.section.alt .card { background: var(--card-alt); }
.card h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.24rem; font-weight: 600; color: var(--heading); line-height: 1.3; margin-bottom: 0.7rem; }
.card p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }
.card > p + .list, .card > p + p { margin-top: 1rem; }
.card .more { display: inline-block; margin-top: 1.1rem; font-weight: 600; font-size: 0.92rem; color: var(--link); }
.step-label { font-size: 0.82rem; font-weight: 600; color: var(--gold-text); margin-bottom: 0.45rem; letter-spacing: 0.02em; }
.list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.list li { font-size: 0.93rem; color: var(--fg); padding-left: 1.1rem; position: relative; }
.list li::before { content: ''; position: absolute; left: 0; top: 0.62rem; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* NAVY BANNER */
.banner { background: var(--navy); color: #fff; text-align: center; padding: var(--section-y) 0; }
.banner h2 { color: #fff; }
.banner .lead { color: rgba(255,255,255,0.84); margin: 0 auto 1.75rem; }
.quote-light { font-family: 'Playfair Display', Georgia, serif; font-size: 1.08rem; font-style: italic; color: var(--gold-hi); max-width: 580px; margin: 0 auto 2rem; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.founder-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; font-weight: 700; color: var(--heading); }
.founder-title { font-size: 0.9rem; color: var(--accent); font-weight: 600; margin-bottom: 1.4rem; }
.prose p { font-size: 0.98rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--fg); font-weight: 600; }
.values { margin-top: 1.6rem; }
.h2-sub { font-size: 1.6rem; margin-bottom: 1.2rem; }
.quote-box { margin-top: 1.75rem; padding: 1.6rem 1.9rem; background: var(--card); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.quote-box p { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.08rem; color: var(--heading); line-height: 1.6; margin: 0; }

/* ARTICLE (guide pages) */
.article { padding: 64px 0 var(--section-y); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3.5rem; align-items: start; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2.6rem 0 0.8rem; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; color: var(--heading); margin: 1.8rem 0 0.5rem; }
.article p, .article li { font-size: 1.02rem; color: var(--fg); line-height: 1.8; max-width: 70ch; }
.article p + p { margin-top: 1rem; }
.article ul.bullets, .article ol.bullets { margin: 1rem 0 0 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.article ul.bullets li::marker { color: var(--gold-text); }
.article .note { font-size: 0.88rem; color: var(--muted); margin-top: 1rem; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--band); color: var(--heading); font-weight: 600; }
tr:last-child td { border-bottom: none; }
td { color: var(--fg); }
.callout { background: var(--band); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.7rem; margin: 2rem 0; box-shadow: var(--shadow); }
.callout p { margin: 0; }
.aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.25rem; }
.aside .card { padding: 1.6rem; }
.aside h3 { margin-top: 0; font-size: 1.1rem; }
.aside .btn { margin-top: 1rem; width: 100%; text-align: center; padding: 0.8rem 1rem; }
.aside ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.aside ul a { font-size: 0.93rem; font-weight: 500; }

/* FAQ */
.faq { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card-alt); box-shadow: var(--shadow); overflow: hidden; }
.faq-q:hover span:first-child { color: var(--accent); }
.article .faq { margin-top: 1rem; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; text-align: left; padding: 1.3rem 1.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: inherit; font: inherit; }
.faq-q:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.faq-q span:first-child { font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; font-weight: 600; color: var(--heading); line-height: 1.4; }
.faq-icon { flex-shrink: 0; color: var(--accent); transition: transform 0.25s; display: flex; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 1.75rem 1.4rem; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 0.97rem; color: var(--muted); line-height: 1.8; max-width: 72ch; }
.faq-a p + p { margin-top: 0.8rem; }

/* CONTACT BAND */
.cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); text-align: center; padding: var(--section-y) 0; color: #fff; }
.cta h2 { color: #fff; max-width: 620px; margin: 0 auto 1rem; }
.cta .lead { color: rgba(255,255,255,0.86); max-width: 540px; margin: 0 auto 2.2rem; }
.cta-sub { font-size: 0.9rem; color: rgba(255,255,255,0.78); margin-top: 1rem; }
.contact-row { margin-top: 2.4rem; display: flex; justify-content: center; gap: 0.75rem 2rem; flex-wrap: wrap; font-size: 0.94rem; color: rgba(255,255,255,0.86); }
.contact-row a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); }
.contact-row a:hover { color: var(--gold-hi); border-color: var(--gold-hi); }

/* FOOTER */
.site-footer { background: var(--navy-deep); padding: 3.25rem 0 2.5rem; border-top: 1px solid rgba(212,160,23,0.22); color: rgba(255,255,255,0.8); font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { font: 600 0.9rem Inter, sans-serif; color: #fff; margin-bottom: 0.7rem; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer a { color: rgba(255,255,255,0.88); text-decoration: none; }
.site-footer a:hover { color: var(--gold-hi); }
.footer-base { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; color: rgba(255,255,255,0.76); }

/* RESPONSIVE */
@media (max-width: 1020px) {
  .menu-btn { display: inline-block; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 1px solid rgba(212,160,23,0.25); padding: 0.5rem max(16px, 4vw) 1rem; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 0.75rem 0; font-size: 1rem; }
  .nav-links .btn { margin-top: 0.5rem; text-align: center; padding: 0.8rem 1rem; font-size: 0.95rem; }
  .article-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 768px) {
  :root { --section-y: 60px; }
  .grid-2, .about-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 2.5rem; }
  .card, .grid-4 > .card { padding: 1.75rem 1.5rem; }
  .faq-q { padding: 1.15rem 1.25rem; }
  .faq-a { padding: 0 1.25rem 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 72px 0 64px; }
  .page-head { padding: 48px 0 44px; }
  .article { padding-top: 44px; }
}
@media (max-width: 1100px) { .grid-4 { gap: 1.1rem; } .grid-4 > .card { padding: 1.9rem 1.3rem; } }
@media (max-width: 860px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .logo-tag { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .grid-2 > .card:hover, .grid-4 > .card:hover { transform: none; }
}
@media (max-width: 1020px) { .site-nav nav { order: 1; } .menu-btn { order: 2; } }
