/* =========================================================
   TAH Advisory Group — production stylesheet
   Palette: navy, slate, white, silver, restrained gold
   Type: Source Serif 4 (headlines) + IBM Plex Sans (body/UI)
   ========================================================= */

:root {
  --navy-900: #0B1523;
  --navy-800: #101E30;
  --navy-700: #16283F;
  --slate-700: #333E52;
  --slate-600: #47536A;
  --slate-500: #5C687D;
  --silver-300: #D7DBE1;
  --silver-200: #E5E8EC;
  --silver-100: #F2F3F5;
  --white: #FFFFFF;
  --gold-500: #A9863F;
  --gold-400: #BC9A54;
  /* AA-safe gold for small text on white/light backgrounds only
     (5.6:1 on white, 5.0:1 on the silver-100 alt-section background —
     both comfortably above the 4.5:1 AA minimum). Same hue as --gold-500,
     darkened for contrast. Do not use for borders, icons, decorative
     elements, or gold text already on navy backgrounds — those keep
     --gold-500 / --gold-400 as approved. */
  --gold-700-text: #7F642F;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;

  --content-max: 1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--slate-600);
  font-family: var(--font-sans);
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--font-serif); margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--gold-500); text-decoration: none; }
a:hover { color: var(--navy-800); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}
img, svg { max-width: 100%; display: block; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--navy-900);
  padding: 12px 20px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Shared utilities ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.eyebrow-gold { color: var(--gold-700-text); }
.eyebrow-gold-light { color: var(--gold-400); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-solid {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-solid:hover { background: var(--gold-400); color: var(--navy-900); }
.btn-ghost {
  border-color: var(--gold-500);
  color: var(--gold-400);
  background: transparent;
}
.btn-ghost:hover { color: var(--white); border-color: var(--gold-400); }

.sec {
  padding: 110px 64px;
}
.sec-intro { max-width: 720px; margin: 0 0 56px; }
.sec-intro-wide { max-width: 780px; margin: 0 0 64px; }
.sec-intro h2, .sec-intro-wide h2 { line-height: 1.35; }
.sec-lede { margin-top: 18px; font-size: 16px; line-height: 1.75; color: var(--slate-700); }
.sec-alt { background: var(--silver-100); }
.sec-dark { background: var(--navy-900); color: var(--silver-300); }
.sec-dark h2 { color: var(--white); }

h2 { font-size: clamp(24px, 4vw, 32px); color: var(--navy-900); }

.grid { display: grid; gap: 64px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* =========================================================
   Header / navigation
   ========================================================= */
.site-header {
  background: var(--navy-900);
  border-bottom: 1px solid var(--gold-500);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 64px;
  max-width: 1600px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--white);
}
.logo:hover { color: var(--white); }
.logo-mark { font-family: var(--font-serif); font-size: 20px; font-weight: 600; letter-spacing: 0.02em; }
.logo-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-300); }

.primary-nav { display: block; }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { font-size: 14px; font-weight: 500; letter-spacing: 0.03em; color: var(--silver-300); }
.nav-links a:hover { color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--navy-700);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--silver-300);
  position: relative;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  background: var(--navy-900);
  border-top: 1px solid var(--navy-700);
}
.mobile-menu a {
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--silver-300);
  border-bottom: 1px solid var(--navy-700);
}
.mobile-menu a:last-child { border-bottom: none; margin-top: 10px; }
.mobile-menu[hidden] { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: var(--navy-900);
  color: var(--silver-300);
  padding: 120px 64px 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.hero h1 {
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.3;
  color: var(--white);
  max-width: 780px;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  max-width: 620px;
}
.hero .btn { margin-top: 6px; }

/* =========================================================
   Who We Help
   ========================================================= */
.col-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0 0 18px;
}
.profile-list { display: flex; flex-direction: column; gap: 14px; }
.profile-list li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-700);
  padding: 18px 0;
  border-top: 1px solid var(--silver-200);
}
.profile-list li:last-child { border-bottom: 1px solid var(--silver-200); }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-800);
  background: var(--silver-100);
  border: 1px solid var(--silver-300);
  padding: 9px 16px;
  border-radius: 2px;
}

/* =========================================================
   Services
   ========================================================= */
.service-grid {
  gap: 1px;
  background: var(--silver-300);
  border: 1px solid var(--silver-300);
}
.service-card {
  background: var(--white);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-icon { width: 26px; height: 26px; color: var(--gold-500); }
.service-card h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--navy-900); }
.service-card p { font-size: 15px; line-height: 1.65; color: var(--slate-600); }

/* =========================================================
   Why TAH
   ========================================================= */
.pull-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 4vw, 26px);
  line-height: 1.55;
  color: var(--white);
}
.why-item { border-top: 1px solid var(--gold-500); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.why-item h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--white); }
.why-item p { font-size: 15px; line-height: 1.75; color: var(--silver-300); }

/* =========================================================
   About
   ========================================================= */
.about-grid { grid-template-columns: 200px 1fr; gap: 32px 56px; align-items: start; }
.monogram {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 1px solid var(--gold-500);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.about-copy { display: flex; flex-direction: column; gap: 22px; max-width: 720px; }
.about-copy h2 { font-size: clamp(22px, 4vw, 28px); line-height: 1.4; }
.about-copy p { font-size: 16.5px; line-height: 1.75; color: var(--slate-700); }

/* =========================================================
   Engagement Model
   ========================================================= */
.engagement-grid { gap: 1px; background: var(--silver-300); border: 1px solid var(--silver-300); }
.engagement-card {
  background: var(--white);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-num { font-family: var(--font-serif); font-size: 22px; color: var(--gold-700-text); }
.engagement-card h3 { font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--navy-900); }
.engagement-card p { font-size: 15px; line-height: 1.7; color: var(--slate-600); }

/* =========================================================
   Contact / Let's Talk
   ========================================================= */
#contact { padding: 130px 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
#contact h2 { font-size: clamp(24px, 4vw, 34px); color: var(--white); max-width: 640px; line-height: 1.4; }
.contact-details { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 10px; font-size: 15px; color: var(--silver-300); }
/* Technical fix, not a design change: the site-wide `a`/`a:hover` rule
   (gold-500 / navy-800) is tuned for light backgrounds and would make a
   real link on this navy section unreadable on hover. This reuses the
   gold-400 + white already established elsewhere in this dark section
   (eyebrow, headline) rather than introducing a new color. */
.contact-details a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 3px; }
.contact-details a:hover { color: var(--white); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 28px 64px;
  background: var(--navy-900);
  border-top: 1px solid var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--silver-300);
  font-size: 14px;
}
.footer-tag { letter-spacing: 0.15em; text-transform: uppercase; }

/* =========================================================
   Responsive breakpoints
   Desktop: > 1024px · Tablet: 641–1024px · Mobile: ≤ 640px
   Navigation collapses at ≤ 860px
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .nav-bar { padding: 20px 40px; }
  .sec, .hero, #contact { padding-left: 40px; padding-right: 40px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { gap: 40px; }
}

/* Nav collapse */
@media (max-width: 860px) {
  .primary-nav { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid-2, .grid-3, .about-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-bar { padding: 16px 20px; }
  .sec, .hero, #contact { padding-left: 24px; padding-right: 24px; padding-top: 64px; padding-bottom: 64px; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid { gap: 32px; }
  .about-grid { gap: 24px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; }

  /* Slightly larger supporting/body text for comfortable phone reading */
  .eyebrow { font-size: 13px; }
  .col-label { font-size: 15px; }
  .tag-list li { font-size: 15px; }
  .why-item p { font-size: 16px; line-height: 1.7; }
  .engagement-card h3 { font-size: 16px; }
  .engagement-card p { font-size: 16px; line-height: 1.7; }
  .contact-details { font-size: 16px; }
  .site-footer { font-size: 15px; }

  /* Service cards: more breathing room and real spacing when stacked,
     while keeping the same compact, bordered card treatment */
  .service-grid { gap: 10px; background: transparent; border: none; }
  .service-card { padding: 40px 28px; border: 1px solid var(--silver-200); }
  .service-card p { font-size: 16px; line-height: 1.7; }

  /* Financial Operations Check CTA: label is longer than other buttons'
     and would overflow the viewport under the default .btn nowrap. */
  #financial-check .btn { white-space: normal; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
