/* ============================================
   David J. Reali, CPA
   Main Stylesheet

   TABLE OF CONTENTS:
   1. Variables & Reset
   2. Base Typography
   3. Navigation
   4. Ticker Strip
   5. Hero
   6. Sections & Cards
   7. Service Items
   8. Values Grid
   9. Testimonials
   10. Tax Calendar
   11. Contact Bar
   12. Footer
   13. Services Page
   14. Inner Page Layouts
   15. FAQ Accordion
   16. Awards Grid
   17. Helpful Links
   18. Contact Form
   19. Scroll Reveal
   20. Responsive
   ============================================ */


/* === 1. Variables & Reset === */

:root {
  /* Grid pattern on page background */
  --grid-line: rgba(26, 26, 24, 0.028);
  --grid-size: 32px;
  --grid-bg:   #F8F8F5;

  /* Surfaces */
  --bg:  #F8F8F5;
  --s1:  #EFEFEB;
  --s2:  #FFFFFF;

  /* Borders */
  --rule:  #D8D5CD;
  --rule2: #C8C5BB;

  /* Text */
  --text: #1A1A18;
  --t2:   #47453F;
  --t3:   #888078;

  /* Navy — primary brand accent */
  --navy:      #1E3355;
  --navy2:     #243E6A;
  --navy-lt:   #EBF0F7;
  --navy-dark: #132338;

  /* Gold — decorative secondary accent */
  --gold:    #B8924A;
  --gold-lt: #F3EADB;

  /* Spacing */
  --px:      clamp(20px, 5vw, 80px);
  --section: clamp(56px, 7vw, 96px);
  --max:     1180px;

  /* Type stack */
  --serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;
}

/* Subtle grid texture used on hero and page backgrounds */
.grid-bg {
  background-color: var(--grid-bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--grid-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }


/* === 2. Base Typography === */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.05rem; }

p { color: var(--t2); max-width: 68ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 0.75rem;
}

strong { font-weight: 600; color: var(--text); }


/* === 3. Navigation === */

#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#site-nav.scrolled {
  background: rgba(248, 248, 245, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule2);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.nav-logo-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1;
}
.nav-logo-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav-links { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--t2);
  padding: 0.4rem 0.65rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(26,26,24,0.06);
}

.nav-cta {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: var(--navy) !important;
  padding: 0.4rem 1rem !important;
  border-radius: 3px !important;
  line-height: 1.4 !important;
  transition: background 0.2s !important;
  margin-left: 0.75rem !important;
  white-space: nowrap !important;
}
.nav-cta:hover { background: var(--navy2) !important; }

.nav-pay {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: var(--gold) !important;
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 3px !important;
  margin-left: 0.5rem !important;
  transition: background 0.2s, color 0.2s !important;
  white-space: nowrap !important;
}
.nav-pay:hover {
  background: var(--gold) !important;
  color: #fff !important;
}

#burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--rule2);
  border-radius: 3px;
  cursor: pointer;
  padding: 9px 10px;
  width: 40px;
  height: 36px;
  transition: border-color 0.2s, background 0.2s;
}
#burger:hover {
  border-color: var(--navy);
  background: var(--navy-lt);
}
#burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease;
  transform-origin: center;
}
#burger:hover span { background: var(--navy); }

/* Animated open state */
#burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; width: 0; }
#burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#drawer {
  position: fixed;
  top: 0; right: -300px;
  width: 280px;
  height: 100%;
  background: #1A1A18;
  border-left: 1px solid rgba(255,255,255,0.07);
  z-index: 200;
  transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
#drawer.open { right: 0; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.drawer-brand {
  font-family: var(--serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1;
}

#drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  color: rgba(255,255,255,0.6);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
#drawer-close:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  flex: 1;
}
.drawer-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  padding: 1.25rem 1.25rem;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  letter-spacing: 0.01em;
}
.drawer-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
  border-left-color: var(--gold);
}
.drawer-links a.active {
  color: #fff;
  border-left-color: var(--gold);
}
.drawer-cta {
  margin: 1rem 1.25rem 0.75rem;
  display: block;
  text-align: center;
  background: var(--navy) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.8rem 1rem;
  border-radius: 3px;
  border-left: none !important;
  transition: background 0.2s !important;
}
.drawer-cta:hover { background: var(--navy2) !important; }

.drawer-pay {
  margin: 0 1.25rem 1.5rem;
  display: block;
  text-align: center;
  background: transparent !important;
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1rem;
  border-radius: 3px;
  border: 1px solid rgba(184,146,74,0.4) !important;
  transition: background 0.2s, border-color 0.2s !important;
}
.drawer-pay:hover {
  background: rgba(184,146,74,0.12) !important;
  border-color: var(--gold) !important;
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#overlay.open { opacity: 1; pointer-events: auto; }


/* === 4. Ticker Strip === */

.ticker-wrap {
  background: var(--navy);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.5rem 0;
  border-top: 1px solid var(--navy-dark);
  border-bottom: 1px solid var(--navy-dark);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  animation: ticker 36s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  padding: 0 1.5rem;
}

.ticker-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* === 5. Hero === */

.hero {
  background-color: var(--grid-bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: calc(64px + 5rem) var(--px) 5rem;
  position: relative;
  z-index: 1;
}

.hero-editorial { width: 100%; }

.hero-overline {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}
.hero-overline-line {
  width: 28px;
  height: 2px;
  background: var(--navy);
  flex-shrink: 0;
}
.hero-overline-text {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
}

.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.0;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.25rem 0;
}
.hero-divider-line { flex: 1; height: 1px; background: var(--rule2); }
.hero-divider-accent {
  width: 7px; height: 7px;
  background: var(--navy);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: end;
}

.hero-desc {
  font-size: 1rem;
  color: var(--t2);
  max-width: 42ch;
  line-height: 1.75;
}

.hero-stats { display: flex; gap: 2.5rem; flex-shrink: 0; }
.stat-item { display: flex; flex-direction: column; gap: 0.15rem; }
.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex-shrink: 0;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--navy2); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--s2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--rule2);
  border-radius: 2px;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-lt); }

.arrow-icon {
  width: 13px; height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* === 6. Sections & Cards === */

section { padding: var(--section) var(--px); background: var(--bg); }

.section-white { background: var(--s2); }
.section-cream { background: var(--s1); }
.section-dark {
  background: #1E2B3C;
  background-image: none;
  position: relative;
}
/* Gold left-edge accent on dark sections */
.section-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
}
.section-dark .eyebrow { color: var(--gold); }
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: rgba(255,255,255,0.92); }
.section-dark p { color: rgba(255,255,255,0.52); }
.section-dark strong { color: rgba(255,255,255,0.85); }

.section-inner { max-width: var(--max); margin: 0 auto; }

.section-header { margin-bottom: clamp(2rem, 3.5vw, 3.5rem); }
.section-header h2 { margin-top: 0.5rem; }
.section-header p { margin-top: 0.875rem; font-size: 1rem; }

/* Spreadsheet-style label bar */
.section-label-bar {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  border: 1px solid var(--rule2);
  border-radius: 2px;
  overflow: hidden;
  background: var(--s2);
}
.section-label-bar-tag {
  background: var(--text);
  color: rgba(255,255,255,0.9);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}
.section-label-bar-title {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--t3);
  padding: 0.35rem 1rem;
  letter-spacing: 0.06em;
}

/* Cards */
.card {
  background: var(--s2);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  padding: 1.75rem;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover {
  border-color: rgba(30,51,85,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,26,24,0.08);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 36px; height: 36px;
  background: var(--navy-lt);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg {
  width: 18px; height: 18px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.card p { font-size: 0.9rem; max-width: none; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  transition: gap 0.2s;
}
.card-link:hover { gap: 0.6rem; }
.card-link svg {
  width: 12px; height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1px;
  background: var(--rule2);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  overflow: hidden;
}
.services-grid .card {
  border-radius: 0;
  border: none;
}
.services-grid .card::before { border-radius: 0; }


/* === 7. Service Items === */

.service-items { display: flex; flex-direction: column; }
.service-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  transition: padding-left 0.2s;
}
.service-item:first-child { padding-top: 0; }
.service-item:last-child { border-bottom: none; }
.service-item:hover { padding-left: 0.5rem; }
.service-dot {
  width: 6px; height: 6px;
  background: var(--navy);
  border-radius: 50%;
  margin-top: 0.65rem;
  flex-shrink: 0;
}
.service-item h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.service-item p { font-size: 0.93rem; line-height: 1.7; color: var(--t2); max-width: none; }


/* === 8. Values Grid === */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule2);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  overflow: hidden;
}
.value-cell {
  background: var(--s2);
  padding: 2.25rem 1.75rem;
  position: relative;
}
.value-cell::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), transparent);
  opacity: 0.3;
}
.value-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--t3);
  display: block;
  margin-bottom: 0.75rem;
}
.value-cell h3 { font-size: 1.15rem; margin-bottom: 0.625rem; }
.value-cell p { font-size: 0.88rem; color: var(--t3); max-width: none; }


/* === 9. Testimonials === */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.testimonial {
  background: rgba(255,255,255,0.04);
  padding: 1.75rem;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 0.75rem; right: 1.25rem;
  font-family: var(--serif);
  font-size: 3.5rem;
  color: rgba(184,146,74,0.2);
  line-height: 1;
}
.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
  max-width: none;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 36px; height: 36px;
  background: rgba(184,146,74,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  display: block;
  margin-bottom: 0.1rem;
}
.testimonial-detail { font-family: var(--mono); font-size: 0.65rem; color: rgba(255,255,255,0.38); }


/* === 10. Tax Calendar === */

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--s2);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  overflow: hidden;
  font-size: 0.88rem;
}
.calendar-table thead tr { background: var(--text); }
.calendar-table thead th {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 0.625rem 1rem;
  text-align: left;
  white-space: nowrap;
}
.calendar-table thead th:first-child {
  width: 100px;
  color: rgba(255,255,255,0.4);
  border-right: 1px solid rgba(255,255,255,0.1);
}
.calendar-table tbody tr {
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
}
.calendar-table tbody tr:last-child { border-bottom: none; }
.calendar-table tbody tr:hover { background: var(--navy-lt); }
.calendar-table tbody tr.urgent { border-left: 3px solid var(--navy); }
.calendar-table tbody tr.urgent td:first-child { padding-left: calc(1rem - 3px); }
.calendar-table td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  color: var(--t2);
}
.calendar-table td:first-child {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  border-right: 1px solid var(--rule);
  background: var(--bg);
  min-width: 100px;
}
.urgent td:first-child { color: var(--navy); }
.calendar-table .deadline-title {
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
}
.calendar-table .deadline-desc {
  font-size: 0.8rem;
  color: var(--t3);
}
.cal-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}


/* === 11. Contact Bar === */

.contact-bar {
  background: var(--navy);
  padding: clamp(40px, 5vw, 60px) var(--px);
}
.contact-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-bar h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 2rem); margin-bottom: 0.2rem; }
.contact-bar p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

.btn-primary-inv {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary-inv:hover { background: rgba(255,255,255,0.92); transform: translateY(-1px); }

.btn-outline-inv {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.78rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-inv:hover { border-color: #fff; color: #fff; }


/* === 12. Footer === */

footer {
  background: var(--text);
  border-top: 2px solid var(--gold);
  padding: clamp(40px, 5vw, 60px) var(--px) clamp(20px, 3vw, 32px);
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.75rem;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: rgba(255,255,255,0.88);
  display: block;
  margin-bottom: 0.25rem;
}
.footer-brand-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.25rem;
}
.footer-address { font-size: 0.85rem; line-height: 1.9; color: rgba(255,255,255,0.4); }
.footer-address a { color: inherit; transition: color 0.2s; }
.footer-address a:hover { color: rgba(255,255,255,0.75); }
.footer-col-title {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  display: block;
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.48); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }

.sidebar-links { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-links a {
  font-size: 0.85rem;
  color: var(--t2);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sidebar-links a::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--navy);
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar-links a:hover { color: var(--navy); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.04em;
}

/* Membership badges in footer */
.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.member-badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.member-badge:hover { color: var(--gold); border-color: rgba(184,146,74,0.4); }


/* === 13. Services Overview Page === */

.services-intro {
  background: var(--s2);
  border: 1px solid var(--rule2);
  border-top: 2px solid var(--navy);
  border-radius: 2px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}
.services-intro p { font-size: 1rem; line-height: 1.8; color: var(--t2); max-width: none; }
.services-intro p + p { margin-top: 0.875rem; }

.svc-category {
  background: var(--s2);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.svc-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--text);
  border-bottom: 1px solid var(--rule2);
}
.svc-category-header h3 {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0;
}
.svc-category-header-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svc-category-header-icon svg {
  width: 14px; height: 14px;
  stroke: rgba(255,255,255,0.8);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-category-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-left: auto;
  font-family: var(--mono);
}

.svc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  background: var(--rule);
}
.svc-list-item {
  background: var(--s2);
  padding: 0.75rem 1.25rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  transition: background 0.12s;
  font-size: 0.88rem;
  color: var(--t2);
}
.svc-list-item:hover { background: var(--navy-lt); color: var(--text); }
.svc-list-item-dot {
  width: 5px; height: 5px;
  background: var(--navy);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}


/* === 14. Inner Page Layouts === */

.page-hero {
  background-color: var(--grid-bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  padding: calc(64px + clamp(36px, 5vw, 64px)) var(--px) clamp(36px, 5vw, 64px);
  position: relative;
  border-bottom: 1px solid var(--rule2);
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
.page-hero h1 { color: var(--text); margin-top: 0.75rem; margin-bottom: 0.875rem; }
.page-hero p { color: var(--t2); font-size: 1rem; max-width: 52ch; }

.page-content { padding: var(--section) var(--px); background: var(--bg); }
.page-content-inner { max-width: var(--max); margin: 0 auto; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

.sidebar-panel {
  background: var(--s2);
  border: 1px solid var(--rule2);
  border-top: 2px solid var(--navy);
  border-radius: 2px;
  padding: 1.75rem;
  position: sticky;
  top: 84px;
}
.sidebar-panel h4 {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 1.25rem;
}
.contact-item { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 1.1rem; }
.contact-item-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.contact-item-value { font-size: 0.92rem; color: var(--text); }
.contact-item-value a { color: var(--text); transition: color 0.2s; }
.contact-item-value a:hover { color: var(--navy); }
.sidebar-cta {
  display: block;
  text-align: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border-radius: 2px;
  margin-top: 1.5rem;
  transition: background 0.2s;
}
.sidebar-cta:hover { background: var(--navy2); }

.intro-block {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--t2);
  background: var(--s2);
  border: 1px solid var(--rule2);
  border-top: 2px solid var(--gold);
  border-radius: 2px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.tip-box {
  padding: 1.5rem;
  background: var(--navy-lt);
  border-left: 2px solid var(--navy);
  border-radius: 2px;
  margin-top: 2.25rem;
}
.tip-box h3 { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.tip-box p { font-size: 0.88rem; margin-bottom: 0.875rem; max-width: none; }
.tip-box a {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* IRS Notice alert box */
.alert-box {
  padding: 1.5rem;
  background: #FFF9EB;
  border-left: 2px solid var(--gold);
  border-radius: 2px;
  margin-bottom: 2rem;
}
.alert-box h3 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.alert-box p { font-size: 0.9rem; max-width: none; }


/* === 15. FAQ Accordion === */

.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  background: var(--s2);
  border: 1px solid var(--rule2);
  border-top: none;
}
.faq-item:first-child {
  border-top: 1px solid var(--rule2);
  border-radius: 2px 2px 0 0;
}
.faq-item:last-child { border-radius: 0 0 2px 2px; }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--navy-lt); }

.faq-item[open] summary { color: var(--navy); }

.faq-chevron {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}
.faq-answer p { font-size: 0.92rem; color: var(--t2); max-width: none; }


/* === 16. Awards Grid === */

.awards-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--t2);
  max-width: 70ch;
  margin-bottom: 3rem;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.award-card {
  background: var(--s2);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.award-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(26,26,24,0.1);
}
.award-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--navy-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.award-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.award-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
}
.award-img-placeholder svg {
  width: 32px; height: 32px;
  stroke: var(--navy);
  opacity: 0.4;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.award-img-placeholder span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  text-align: center;
}
.award-caption {
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--rule);
}
.award-caption-title {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}
.award-caption-year {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--navy);
  display: block;
  margin-top: 0.15rem;
}

.award-series {
  background: var(--s2);
  border: 1px solid var(--rule2);
  border-top: 2px solid var(--gold);
  border-radius: 2px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.award-series h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.award-series p { font-size: 0.88rem; color: var(--t2); max-width: none; }
.award-years {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.award-year-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}


/* === 17. Helpful Links === */

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule2);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.link-card {
  background: var(--s2);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.15s;
}
.link-card:hover { background: var(--navy-lt); }
.link-card-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.link-card-tag::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--navy);
  border-radius: 50%;
}
.link-card-title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.link-card-desc {
  font-size: 0.85rem;
  color: var(--t3);
  line-height: 1.6;
  max-width: none;
  flex: 1;
}
.link-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.25rem;
}
.link-card-domain {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--t3);
  letter-spacing: 0.04em;
}
.link-card-arrow {
  width: 14px; height: 14px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.link-card:hover .link-card-arrow { transform: translate(2px, -2px); }

.external-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule2);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  overflow: hidden;
}

.ext-link {
  background: var(--s2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.15s;
  text-decoration: none;
}
.ext-link:hover { background: var(--navy-lt); }
.ext-link-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.ext-link-title {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.ext-link-desc { font-size: 0.82rem; color: var(--t3); max-width: none; flex: 1; }
.ext-link-url {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--t3);
  margin-top: 0.25rem;
}


/* === 18. Contact Form === */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
}
.form-control {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--s2);
}
textarea.form-control {
  min-height: 140px;
  resize: vertical;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--navy2); transform: translateY(-1px); }

.book-cta {
  background: var(--gold-lt);
  border: 1px solid rgba(184,146,74,0.3);
  border-top: 2px solid var(--gold);
  border-radius: 2px;
  padding: 1.75rem;
  text-align: center;
  margin-top: 2rem;
}
.book-cta h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.book-cta p { font-size: 0.9rem; margin-bottom: 1.25rem; }
.book-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  transition: background 0.2s;
}
.book-cta a:hover { background: #A07830; }

/* About page credentials */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule2);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  overflow: hidden;
  margin: 2rem 0;
}
.credential-item {
  background: var(--s2);
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.credential-dot {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

/* Home page about teaser */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.tagline-large {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  color: var(--text);
  font-style: italic;
}
.tagline-large em { color: var(--navy); font-style: normal; }

.affiliation-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.affil-badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  border: 1px solid var(--rule2);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.affil-badge:hover { color: var(--navy); border-color: var(--navy); }


/* === 18b. Missing Utility Classes === */

/* .container mirrors .section-inner */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* .section-light = standard section with explicit bg */
.section-light {
  padding: var(--section) var(--px);
  background: var(--bg);
}
.section-light .container { padding: 0; }

/* Ensure section-dark inner container works */
.section-dark .container { padding: 0; }

/* Award feature plaques (no-photo awards page design) */
.award-plaques {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 3rem 0;
}
.award-plaque {
  background: var(--navy);
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.award-plaque::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.award-plaque::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,0.03);
}
.award-plaque-eyebrow {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.award-plaque-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  font-style: italic;
}
.award-plaque-org {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2rem;
  display: block;
}
.award-plaque-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 42ch;
  margin-bottom: 2.5rem;
}
.award-years-row {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.award-year-tile {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.45rem 1rem;
  border-radius: 2px;
  letter-spacing: 0.08em;
  transition: background 0.2s, border-color 0.2s;
}
.award-year-tile:hover { background: rgba(184,146,74,0.25); border-color: var(--gold); }

.awards-stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--navy-dark, #132338);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2px;
}
.awards-stat-item {
  padding: 2rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.awards-stat-item:last-child { border-right: none; }
.awards-stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.awards-stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* form-control for contact form */
.form-control {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--s2);
}
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 0.45rem;
}
.form-radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.form-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}
.form-radio-label input { accent-color: var(--navy); width: auto; margin: 0; }
.form-help-text {
  font-size: 0.82rem;
  color: var(--t3);
  margin-top: 0.4rem;
}
.form-help-text a { color: var(--navy); }
/* btn-gold */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-gold:hover { background: #A07830; transform: translateY(-1px); }

/* Helpful links resource cards */
.resource-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule2);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0;
}
.resource-card {
  background: var(--s2);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.15s;
}
.resource-card:hover { background: var(--navy-lt); }
.resource-card-freq {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 0.75rem;
}
.resource-card h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.resource-card p {
  font-size: 0.88rem;
  color: var(--t2);
  line-height: 1.65;
  max-width: none;
  flex: 1;
  margin-bottom: 1.25rem;
}
.resource-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  transition: gap 0.2s;
  margin-top: auto;
}
.resource-card-link:hover { gap: 0.65rem; }
.resource-card-link svg {
  width: 11px; height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.resource-card-link:hover svg { transform: translate(2px,-2px); }

/* Gov links for helpful links page */
.gov-resource-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.gov-resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 2rem;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background 0.15s, border-color 0.2s;
}
.gov-resource-item:hover { background: rgba(255,255,255,0.09); border-left-color: var(--gold); }
.gov-resource-main { flex: 1; }
.gov-resource-abbr {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.gov-resource-name {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.35rem;
}
.gov-resource-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.gov-resource-arrow {
  width: 20px; height: 20px;
  stroke: rgba(255,255,255,0.25);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: stroke 0.2s, transform 0.2s;
}
.gov-resource-item:hover .gov-resource-arrow { stroke: var(--gold); transform: translate(3px,-3px); }

/* Contact details list (inside sidebar) */
.contact-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.contact-detail-item svg {
  width: 16px; height: 16px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 0.15rem;
}
.contact-detail-value {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}
.contact-detail-value a { color: var(--text); transition: color 0.2s; }
.contact-detail-value a:hover { color: var(--navy); }

/* map */
.map-wrapper {
  position: relative;
  border-top: 3px solid var(--navy);
}
.map-address-bar {
  background: var(--navy);
  padding: 0.875rem var(--px);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.map-address-bar svg {
  width: 14px; height: 14px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.map-address-bar a, .map-address-bar span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.map-address-bar a:hover { color: #fff; }

/* Responsive additions */
@media (max-width: 960px) {
  .award-plaques { grid-template-columns: 1fr; }
  .awards-stat-bar { grid-template-columns: repeat(3, 1fr); }
  .resource-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .awards-stat-bar { grid-template-columns: 1fr 1fr; }
  .awards-stat-item:last-child { border-right: none; border-top: 1px solid rgba(255,255,255,0.06); }
  .award-plaque { padding: 2.5rem 2rem; }
}
@media (max-width: 480px) {
  .awards-stat-bar { grid-template-columns: 1fr; }
}


/* === 19. Page Hero Extensions === */

.page-hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.page-hero-sub {
  font-size: 1rem;
  color: var(--t2);
  max-width: 52ch;
  line-height: 1.7;
}


/* === 19b. Section Title / Sub === */

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--t2);
  max-width: 60ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.section-dark .section-title { color: rgba(255,255,255,0.92); }
.section-dark .section-sub { color: rgba(255,255,255,0.52); }


/* === 19c. Shared Sidebar Components === */

/* Used on FAQ, Contact, and other two-column pages */
.svc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 84px;
  align-self: flex-start;
}

.sidebar-card {
  background: var(--s2);
  border: 1px solid var(--rule2);
  border-top: 2px solid var(--navy);
  border-radius: 2px;
  padding: 1.75rem;
}
.sidebar-card-title {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 0.875rem;
  display: block;
}
.sidebar-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}
.sidebar-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.sidebar-contact-list svg {
  width: 15px; height: 15px;
  stroke: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}
.sidebar-contact-list a { color: var(--text); font-size: 0.88rem; transition: color 0.2s; }
.sidebar-contact-list a:hover { color: var(--navy); }

.sidebar-tip-box {
  background: var(--navy-lt);
  border-left: 2px solid var(--navy);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
}
.sidebar-tip-title {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
  display: block;
}
.sidebar-tip-box p { font-size: 0.85rem; max-width: none; }


/* === 19d. FAQ Page Layout === */

.faq-section { padding: var(--section) 0; }
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
/* faq-question is an alias for the summary; styling comes from .faq-item summary */
.faq-question { font-size: 0.95rem; }


/* === 19e. Helpful Links Extended === */

/* Icon + body layout for our published content cards */
.link-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--s2);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  transition: box-shadow 0.2s;
}
.link-card:hover { box-shadow: 0 4px 20px rgba(26,26,24,0.08); }
.link-card-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--navy-lt);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-card-icon svg {
  width: 20px; height: 20px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.link-card-body { flex: 1; }
.link-card-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 0.35rem;
}
.link-card h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.link-card p { font-size: 0.88rem; color: var(--t2); max-width: none; margin-bottom: 0.875rem; }

/* Inline external link with arrow */
a.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  transition: gap 0.2s;
}
a.ext-link:hover { gap: 0.6rem; }
a.ext-link svg {
  width: 12px; height: 12px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
a.ext-link:hover svg { transform: translate(2px, -2px); }

/* Government resource cards */
.gov-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}
.gov-link-card {
  background: rgba(255,255,255,0.06);
  padding: 2rem 1.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  transition: background 0.15s;
}
.gov-link-card:hover { background: rgba(255,255,255,0.12); }
.gov-link-content { flex: 1; }
.gov-link-abbr {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.gov-link-name {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}
.gov-link-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: none;
}
.gov-link-arrow {
  width: 16px; height: 16px;
  stroke: rgba(255,255,255,0.4);
  flex-shrink: 0;
  margin-top: 2px;
  transition: stroke 0.2s, transform 0.2s;
}
.gov-link-card:hover .gov-link-arrow { stroke: rgba(255,255,255,0.8); transform: translate(2px,-2px); }

/* Section spacing overrides for links page */
.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 0;
}


/* === 19f. Contact Page === */

.contact-section { padding: var(--section) 0; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.contact-main {}
.contact-form-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.contact-form-sub {
  font-size: 0.9rem;
  color: var(--t2);
  margin-bottom: 2rem;
  max-width: 56ch;
}

/* Style native form elements directly inside .contact-form */
.contact-form label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule2);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--s2);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-preferred label { display: block; margin-bottom: 0.5rem; }
.radio-group {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.radio-label input { width: auto; margin: 0; accent-color: var(--navy); }

.form-note {
  font-size: 0.82rem;
  color: var(--t3);
  margin-top: 0.5rem;
}
.form-note a { color: var(--navy); }

/* Contact sidebar specifics */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 84px;
  align-self: flex-start;
}
.book-appt-card { border-top-color: var(--gold); }
.sidebar-pay { border-top-color: var(--gold); }
.sidebar-pay p { font-size: 0.88rem; color: var(--t2); }

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.btn-gold:hover { background: #A07830; transform: translateY(-1px); }

.contact-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  margin-top: 0.15rem;
}

/* Map section at the bottom of contact page */
.map-section { position: relative; }
.map-label {
  padding: 1rem 0;
  background: var(--navy);
}
.map-label-text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}
.map-label-text svg {
  width: 14px; height: 14px;
  stroke: var(--gold);
  flex-shrink: 0;
}
.map-label-text a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.map-label-text a:hover { color: #fff; }


/* === 19. Scroll Reveal === */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }


/* === 20. Responsive === */

@media (max-width: 1024px) {
  .nav-links a { font-size: 0.72rem; padding: 0.4rem 0.5rem; }
  .awards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .hero-main { padding-top: calc(64px + 4.5rem); }
  .hero-bottom { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar-panel { position: static; }
  .about-teaser { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .external-links-grid { grid-template-columns: 1fr 1fr; }
  .awards-grid { grid-template-columns: repeat(3, 1fr); }
  /* New page layouts */
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .svc-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }
  .gov-links-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  #burger { display: flex; }
}

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .contact-bar-inner { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .external-links-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-table thead th:nth-child(3),
  .calendar-table td:nth-child(3) { display: none; }
}

@media (max-width: 540px) {
  .hero-headline { font-size: clamp(2.5rem, 10vw, 3.8rem); }
  .services-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
}
