/* EZER Tax Solutions — v3 brand: Navy + metallic gold (Logo A, shield + laurel)
   Contrast (WCAG 2.1): navy on gold 7.3:1 · navy on white 15.9:1 · gold-light on navy 9.7:1
   · muted #4A5568 on white 7.5:1 · gold-text #8A6516 on white 5.3:1.
   Decorative gold (#B8892B–#E8C766) is never used for body text on light backgrounds. */
:root {
  --navy: #0B1F4D;
  --navy-deep: #071530;
  --navy-mid: #16306B;
  --gold-dark: #B8892B;
  --gold: #D4A94A;
  --gold-light: #E8C766;
  --gold-text: #8A6516;          /* gold hue that passes AA as text on white/cream */
  --gold-grad: linear-gradient(135deg, #E8C766 0%, #D4A94A 48%, #B8892B 100%);
  --cream: #F5EDDA;
  --cream-bg: #FBF7EE;
  --white: #FFFFFF;
  --ink: #1A2332;
  --muted: #4A5568;
  --border: #E6DCC6;
  --on-navy: #D9E1EE;
  --on-navy-muted: #A9B6CB;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(11, 31, 77, 0.08);
  --font-sans: "Libre Franklin", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--ink);
  background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(184,137,43,0.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.6rem 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.8rem; color: var(--navy);
  text-decoration: none;
}
.brand img { width: 60px; height: 60px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .wordmark {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem;
  color: var(--navy); letter-spacing: 0.005em;
}
.brand-text .slogan {
  font-size: 0.68rem; font-weight: 700; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.3rem;
}
.brand-text .slogan .dot { color: var(--gold-dark); padding: 0 0.15em; }

.nav-wrap { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--navy); border-radius: 999px;
  overflow: hidden; font-size: 0.78rem; font-weight: 600;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 0.35rem 0.7rem;
  cursor: pointer; color: var(--navy); font: inherit;
}
.lang-toggle button.active { background: var(--navy); color: var(--white); }

/* Buttons: primary = gold / navy text (7.3:1); secondary = navy outline */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.7rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: 0.92rem; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: 0.15s ease; font-family: inherit;
}
.btn-primary {
  background: var(--gold-grad); color: var(--navy); border-color: var(--gold-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 2px 6px rgba(11,31,77,0.15);
}
.btn-primary:hover { background: var(--gold-light); color: var(--navy); border-color: var(--gold); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
/* Secondary on the navy hero: same outline style, inverted so it stays visible */
.hero .btn-secondary { color: var(--cream); border-color: var(--gold-light); }
.hero .btn-secondary:hover { background: rgba(232,199,102,0.14); color: var(--white); }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 85% 15%, rgba(232,199,102,0.10), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--on-navy); padding: 4.5rem 0 4rem; position: relative; overflow: hidden;
  border-bottom: 3px solid var(--gold-dark);
}
/* Faint seal watermark */
.hero::before {
  content: ""; position: absolute; width: 640px; height: 640px;
  right: -140px; top: 50%; transform: translateY(-50%);
  background: url("assets/ezer-seal.svg?v=6i") center / contain no-repeat;
  opacity: 0.07; pointer-events: none; filter: grayscale(0.2);
}
.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: 1.3fr 0.9fr; position: relative; z-index: 1;
}
.eyebrow {
  display: inline-block; color: var(--gold-light); font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.85rem;
}
.hero-tagline {
  display: none; color: var(--cream); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 1rem;
}
.hero-tagline .dot { color: var(--gold-light); }
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2; margin: 0 0 1rem; color: var(--white); font-weight: 700;
}
.hero-sub { font-size: 1.08rem; color: var(--on-navy); max-width: 38rem; margin: 0 0 0.75rem; }
.hero-es { font-size: 0.98rem; color: var(--gold-light); font-style: italic; margin: 0 0 1.6rem; max-width: 36rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-card {
  background: rgba(7,21,48,0.55); border: 1px solid rgba(232,199,102,0.45);
  border-radius: var(--radius); padding: 1.5rem; backdrop-filter: blur(6px);
}
.hero-card h2 {
  margin: 0 0 0.75rem; font-size: 1rem; color: var(--gold-light);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-card ul { margin: 0; padding: 0; list-style: none; }
.hero-card li {
  padding: 0.55rem 0; border-bottom: 1px solid rgba(232,199,102,0.18);
  font-size: 0.95rem; color: var(--on-navy);
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card strong { color: var(--white); }

/* Sections */
section { padding: 4rem 0; }
section.alt { background: var(--cream-bg); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head h2 {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy); margin: 0 0 0.6rem;
}
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: 0.6rem;
  background: var(--gold-grad); border-radius: 2px;
}
.section-head p { margin: 0; color: var(--muted); }

.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
/* 6f: 4-card grid (home 'How we can help'): 4 across on desktop, 2x2 on tablet, stacked on mobile */
.grid-4 { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
/* 6f: services grid (7 cards on /irs-tax-resolution/): centered flex rows -> 4+3 on desktop, 2+2+2+1 (last centered) on tablet, 1 column on mobile */
.grid-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.grid-services > .card { flex: 0 1 calc((100% - 3 * 1.25rem) / 4); min-width: 0; }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem 1.4rem; box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.card h3 { margin: 0 0 0.45rem; color: var(--navy); font-size: 1.05rem; }
.grid-4 .card h3, .grid-services .card h3 { text-wrap: balance; overflow-wrap: break-word; hyphens: manual; } /* 6f: long audit titles wrap evenly */
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.service-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--navy);
  color: var(--gold-light); display: grid; place-items: center;
  font-weight: 700; margin-bottom: 0.85rem; font-size: 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(232,199,102,0.5);
}

/* Steps */
.step-num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--gold-grad);
  color: var(--navy); display: grid; place-items: center; font-weight: 800;
  margin-bottom: 0.8rem; border: 1px solid var(--gold-dark);
}
.step .note { font-size: 0.85rem; color: var(--muted); margin-top: 0.55rem; }

/* Notes */
.section-tagline {
  margin: 2rem auto 0; max-width: 46rem; text-align: center;
  font-family: var(--font-serif); font-size: 1.12rem; font-weight: 700; line-height: 1.5; color: var(--navy);
}
.section-tagline::before {
  content: ""; display: block; width: 48px; height: 3px; margin: 0 auto 0.85rem;
  background: var(--gold-grad); border-radius: 2px;
}
@media (max-width: 600px) { .section-tagline { font-size: 1rem; margin-top: 1.6rem; } }
.disclaimer {
  margin-top: 1.5rem; padding: 1rem 1.15rem; background: var(--cream-bg);
  border-left: 4px solid var(--gold-dark); border-radius: 0 8px 8px 0;
  font-size: 0.9rem; color: var(--ink);
}

/* About */
.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
/* Owner portrait (assets/aracely.jpg) */
.portrait {
  position: relative; margin: 0; width: 220px; aspect-ratio: 1; border-radius: 50%;
  padding: 6px; background: var(--gold-grad);
  box-shadow: 0 10px 28px rgba(11,31,77,0.18), inset 0 1px 0 rgba(255,255,255,0.5);
}
.portrait img, .portrait-ph {
  position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px);
  border-radius: 50%; object-fit: cover; border: 3px solid var(--white);
}
.portrait img { z-index: 1; background: #EFE7D6; }
.portrait-ph {
  display: grid; place-content: center; text-align: center; gap: 0.35rem;
  background: repeating-linear-gradient(-45deg, #EFE7D6, #EFE7D6 10px, #F8F3E8 10px, #F8F3E8 20px);
  color: var(--muted); font-size: 0.85rem; font-weight: 700;
}
.portrait-ph small { font-size: 0.7rem; font-weight: 600; font-family: ui-monospace, monospace; color: #6B4E00; }
.partner-label {
  display: inline-block; margin-left: 0.4rem; vertical-align: middle;
  background: var(--navy); color: var(--gold-light); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px;
}
.nowrap { white-space: nowrap; }
.ph-small { font-size: 0.7em; vertical-align: middle; }
.photo-ph {
  aspect-ratio: 1; border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, #EFE7D6, #EFE7D6 10px, #F8F3E8 10px, #F8F3E8 20px);
  border: 2px dashed #A08A5A; display: grid; place-items: center; text-align: center;
  padding: 1rem; color: var(--muted); font-size: 0.85rem; font-weight: 600;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.badge {
  background: var(--navy); color: var(--gold-light); padding: 0.3rem 0.7rem;
  border-radius: 999px; font-size: 0.78rem; font-weight: 700;
}
.badge-gold { background: var(--gold-grad); color: var(--navy); }

/* Partner */
.partner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.partner-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.partner-box h3 { margin: 0 0 0.5rem; color: var(--navy); }
.partner-meta { font-size: 0.92rem; color: var(--muted); margin: 0.35rem 0; }
.partner-meta a { color: var(--navy); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.75rem; }
.contact-info dt { font-weight: 700; color: var(--navy); margin-top: 0.9rem; }
.contact-info dd { margin: 0.2rem 0 0; color: var(--muted); }
.contact-info dd a { font-weight: 700; }
form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 0.85rem; grid-template-columns: 1fr 1fr; margin-bottom: 0.85rem; }
.form-row.full { grid-template-columns: 1fr; }
label { display: block; font-size: 0.82rem; font-weight: 650; color: var(--navy); margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #CFC3A8;
  border-radius: 8px; font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold-dark); outline: 2px solid rgba(184,137,43,0.35); }
textarea { min-height: 110px; resize: vertical; }
form .btn { width: 100%; margin-top: 0.4rem; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }

/* Footer */
.site-footer {
  background: var(--navy-deep); color: var(--on-navy-muted); padding: 2.5rem 0 2rem;
  font-size: 0.88rem; border-top: 3px solid var(--gold-dark);
}
.site-footer .brand { margin-bottom: 0.75rem; }
.site-footer .brand img { width: 56px; height: 56px; }
.site-footer .brand-text .wordmark { color: var(--cream); font-size: 1.15rem; }
.site-footer .brand-text .slogan { color: var(--on-navy-muted); }
.site-footer .brand-text .slogan .dot { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; /* 6k: 3 columns (partner column removed) */ gap: 1.5rem; margin-bottom: 1.75rem; }
.site-footer h4 { color: var(--gold-light); margin: 0 0 0.6rem; font-size: 0.95rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.circular230 {
  border-top: 1px solid rgba(232,199,102,0.25); padding-top: 1.2rem;
  font-size: 0.78rem; line-height: 1.55; color: var(--on-navy-muted);
}
.circular230 strong { color: var(--on-navy); }
.footer-bottom {
  margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: space-between; color: #9AA8BE; font-size: 0.8rem;
}

@media (max-width: 960px) {
  .hero-grid, .about-grid, .partner, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-services > .card { flex-basis: calc((100% - 1.25rem) / 2); }
}
@media (max-width: 640px) {
  .portrait { width: 200px; margin-inline: auto; }
  .grid-3, .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
  .grid-services > .card { flex-basis: 100%; }
  .hero { padding: 3rem 0 2.75rem; }
  .hero::before { width: 420px; height: 420px; right: -170px; top: 38%; }
  section { padding: 3rem 0; }
  .brand img { width: 56px; height: 56px; }
  .brand-text .wordmark { font-size: 1.12rem; }
  .site-header .brand-text .slogan { display: none; }
  .hero-tagline { display: block; }
  .nav-wrap { width: 100%; justify-content: space-between; gap: 0.6rem; }
  .nav-wrap .btn { padding: 0.55rem 0.95rem; font-size: 0.85rem; }
  /* Client Portal stays visible on phones: its own centered row under the toggle + CTA */
  .nav-wrap .portal-link {
    order: 3; flex-basis: 100%; justify-content: center;
    padding: 0.45rem 0; border-top: 1px solid var(--border); font-size: 0.88rem;
  }
}

/* Deploy additions: honeypot + simple standalone pages (thanks / 404) */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.simple-page { padding: 5rem 0 4.5rem; background: var(--cream-bg); }
.simple-card {
  max-width: 44rem; margin-inline: auto; text-align: center;
  background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 2.5rem 2rem; box-shadow: var(--shadow);
}
.simple-card .seal { width: 96px; height: 96px; margin: 0 auto 1.25rem; }
.simple-card h1 {
  font-family: var(--font-serif); color: var(--navy); font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.25; margin: 0 0 0.6rem;
}
.simple-card .es-line {
  font-family: var(--font-serif); color: var(--gold-text); font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-style: italic; line-height: 1.35; margin: 0 0 1.25rem;
}
.simple-card p { color: var(--muted); margin: 0 0 0.75rem; }
.simple-card .big-phone { font-size: 1.5rem; font-weight: 800; }
.simple-card .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
.simple-card .divider { width: 56px; height: 3px; background: var(--gold-grad); border-radius: 2px; margin: 1.25rem auto; }
.simple-header .nav-wrap { width: auto; }
.simple-header .header-inner { flex-wrap: nowrap; }
.simple-footer .circular230 { border-top: 0; padding-top: 0; }
@media (max-width: 640px) {
  .simple-header .brand-text .wordmark { font-size: 1rem; }
  .simple-header .btn { padding: 0.5rem 0.8rem; font-size: 0.8rem; white-space: nowrap; }
  .simple-page { padding: 2.5rem 0; }
  .simple-card { padding: 2rem 1.25rem; }
}

/* "What is an Enrolled Agent?" callout (About section) */
.ea-callout {
  margin: 1.25rem 0; max-width: 40rem; padding: 1.1rem 1.25rem 1.2rem;
  background: var(--cream-bg); border: 1px solid var(--border);
  border-left: 4px solid var(--gold-dark); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ea-callout h3, .ea-callout h4 {
  margin: 0 0 0.5rem; color: var(--navy); font-family: var(--font-serif);
  font-size: 1.08rem; line-height: 1.35;
}
.ea-callout p { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.65; }
@media (max-width: 600px) {
  .ea-callout { padding: 1rem 1rem 1.05rem; }
  .ea-callout h3, .ea-callout h4 { font-size: 1.02rem; }
}

/* Client Portal (Verifyle) link: header, footer, contact note */
.portal-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--navy); font-size: 0.92rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.portal-link:hover { color: var(--gold-text); text-decoration: underline; text-decoration-color: var(--gold); }
.portal-link .lock-icon, .footer-portal .lock-icon { flex: none; color: var(--gold-dark); }
.footer-portal { display: inline-flex; align-items: center; gap: 0.35rem; }
.site-footer .footer-portal .lock-icon { color: var(--gold-light); }
.portal-note { margin-top: 0.4rem; }
.portal-note a { font-weight: 600; }

/* ===== v6 multi-page additions ===== */
html.i18n-pending body { visibility: hidden; }
section[id], main { scroll-margin-top: 140px; }
main:focus { outline: none; }
/* Hidden above the viewport (regardless of its height/wrapping) until focused by keyboard */
.skip-link {
  position: absolute; left: 0.75rem; top: 0; z-index: 100; background: var(--navy); color: var(--white);
  padding: 0.55rem 0.9rem; border-radius: 8px; font-weight: 700; text-decoration: none;
  transform: translateY(-120%); transition: transform 0.15s;
}
.skip-link:not(:focus) { clip-path: inset(50%); }
.skip-link:focus { transform: translateY(0.6rem); color: var(--white); }

/* Primary nav: its own row under the brand row on desktop */
.nav-row { border-top: 1px solid var(--border); background: rgba(251,247,238,0.6); }
.nav { display: flex; gap: 0.25rem 1.75rem; flex-wrap: wrap; align-items: center; }
.nav a {
  position: relative; color: var(--navy); font-size: 0.92rem; font-weight: 600; text-decoration: none;
  padding: 0.6rem 0; display: inline-block;
}
.nav a:hover { color: var(--gold-text); }
.nav a.active::after, .nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.3rem; height: 2px; border-radius: 2px; background: var(--gold-grad);
}
.nav a.active { color: var(--navy); font-weight: 700; }
.nav a.active::after { height: 3px; }
.menu-toggle {
  display: none; align-items: center; gap: 0.4rem; margin-left: auto; order: 2;
  background: transparent; border: 1px solid var(--navy); color: var(--navy); border-radius: 999px;
  padding: 0.4rem 0.8rem; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.menu-toggle svg path { transition: transform 0.15s, opacity 0.15s; transform-box: view-box; transform-origin: 12px 12px; }
.nav-open .menu-toggle svg .l1 { transform: rotate(45deg) translateY(5px); }
.nav-open .menu-toggle svg .l2 { opacity: 0; }
.nav-open .menu-toggle svg .l3 { transform: rotate(-45deg) translateY(-5px); }
.header-inner .nav-wrap { order: 3; }

/* Inner-page hero */
.page-hero { padding: 3.25rem 0 3rem; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-inner > * { max-width: 50rem; }
.page-hero .hero-sub { margin-bottom: 1.4rem; }

/* Teaser cards / links */
.card-teaser { display: flex; flex-direction: column; }
.card-teaser p { flex: 1; }
.card-link { margin-top: 0.9rem; font-weight: 700; font-size: 0.92rem; }
.more-line { margin: 1.5rem 0 0; color: var(--muted); }
.more-line a { font-weight: 700; }
.teaser-h { margin: 0 0 0.5rem; color: var(--navy); font-family: var(--font-serif); font-size: 1.6rem; }
#about .btn-secondary { margin-top: 0.5rem; }

/* CTA band */
.cta-band { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: var(--on-navy); padding: 3rem 0; border-top: 3px solid var(--gold-dark); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 0.4rem; color: var(--white); font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.cta-band p { margin: 0; color: var(--on-navy); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-light { background: transparent; color: var(--cream); border-color: var(--gold-light); }
.btn-light:hover { background: rgba(232,199,102,0.14); color: var(--white); }

/* About: credentials panel */
.cred-panel { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 0.5rem 1.4rem; box-shadow: var(--shadow); max-width: 48rem; }
.cred-panel ul { margin: 0; padding: 0; list-style: none; }
.cred-panel li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.cred-panel li:last-child { border-bottom: 0; }
.cred-panel strong { color: var(--navy); }

/* FAQ */
.faq-list { max-width: 50rem; display: grid; gap: 0.85rem; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.25rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 700; color: var(--gold-text); line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-q { margin: 0; font-size: 1.05rem; color: var(--navy); font-family: var(--font-sans); font-weight: 700; line-height: 1.4; }
.faq-a { padding: 0 1.25rem 1.15rem; }
.faq-a p { margin: 0; color: var(--ink); line-height: 1.65; }

/* Contact extras */
.ssn-warning { margin-top: 1.5rem; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  html.js .nav-row { display: none; }
  html.js .nav-open .nav-row { display: block; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; padding: 0.25rem 0 0.5rem; }
  .nav a { padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a.active::after, .nav a:hover::after { left: -0.75rem; right: auto; top: 0.6rem; bottom: 0.6rem; width: 3px; height: auto; }
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; } /* 6k: brand block full width, Explore + Contact side by side */
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 2.25rem 0 2.25rem; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .hero-ctas .btn { width: 100%; }
  section[id], main { scroll-margin-top: 200px; }
}

/* ===== v6c: more prominent logo (header seal, hero seal, footer seal) ===== */
/* Header seal: larger, with a thin gold ring + soft shadow so it pops on the white header */
.site-header .header-inner { padding: 0.7rem 0; }
.site-header .brand { gap: 0.95rem; }
.site-header .brand img {
  width: 64px; height: 64px; padding: 2px; border-radius: 50%; background: var(--white);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px rgba(232,199,102,0.28), 0 4px 12px rgba(11,31,77,0.22);
}
.site-header .brand-text .wordmark { font-size: 1.6rem; letter-spacing: 0.01em; }
.site-header .brand-text .slogan { font-size: 0.7rem; margin-top: 0.35rem; }
@media (max-width: 1100px) {
  .site-header .brand img { width: 60px; height: 60px; }
  .site-header .brand-text .wordmark { font-size: 1.42rem; }
  .site-header .brand-text .slogan { font-size: 0.64rem; letter-spacing: 0.1em; }
}
@media (max-width: 640px) {
  .site-header .header-inner { padding: 0.6rem 0; }
  .site-header .brand { gap: 0.7rem; }
  .site-header .brand img { width: 48px; height: 48px; padding: 1.5px; }
  .site-header .brand-text .wordmark { font-size: 1.12rem; white-space: nowrap; }
  .site-header .header-inner { column-gap: 0.6rem; }
  .menu-toggle { padding: 0.4rem 0.7rem; }
}
@media (max-width: 360px) {
  .site-header .brand { gap: 0.55rem; }
  .site-header .brand img { width: 44px; height: 44px; }
  .site-header .brand-text .wordmark { font-size: 0.9rem; }
  .site-header .header-inner { column-gap: 0.5rem; }
  .menu-toggle { padding: 0.35rem 0.55rem; gap: 0.25rem; }
}

/* Home hero: full-colour seal above the Credentials & Focus card, soft gold glow on navy */
.hero::before { opacity: 0.035; right: -220px; }
.hero-grid {
  grid-template-areas: "text seal" "text card";
  grid-template-rows: auto auto; row-gap: 1.5rem;
}
.hero-grid > .hero-text { grid-area: text; }
.hero-grid > .hero-card { grid-area: card; align-self: start; }
.hero-seal { grid-area: seal; justify-self: center; align-self: end; position: relative; width: 220px; }
.hero-seal::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(232,199,102,0.34) 0%, rgba(232,199,102,0.12) 42%, transparent 70%);
}
.hero-seal img {
  position: relative; width: 100%; height: auto; border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(232,199,102,0.38)) drop-shadow(0 10px 24px rgba(0,0,0,0.35));
}
@media (max-width: 960px) {
  .hero-grid { grid-template-areas: "seal" "text" "card"; row-gap: 2rem; }
  .hero-seal { width: 170px; }
}
@media (max-width: 640px) {
  .hero-grid { row-gap: 1.5rem; }
  .hero-seal { width: 124px; }
  .hero-seal img { filter: drop-shadow(0 0 12px rgba(232,199,102,0.4)) drop-shadow(0 6px 14px rgba(0,0,0,0.35)); }
  .hero-text { text-align: left; }
}

/* Footer seal: a bit larger with the same gold ring */
.site-footer .brand { gap: 0.9rem; }
.site-footer .brand img {
  width: 60px; height: 60px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(232,199,102,0.75), 0 0 16px rgba(232,199,102,0.25);
}
.site-footer .brand-text .wordmark { font-size: 1.25rem; }
/* v6c: standalone pages (thanks / 404) keep a compact one-row header on phones */
@media (max-width: 640px) {
  .site-header.simple-header .brand-text .wordmark { font-size: 1rem; white-space: normal; }
  .site-header.simple-header .brand img { width: 48px; height: 48px; }
}
@media (max-width: 360px) {
  .site-header.simple-header .brand { gap: 0.5rem; }
  .site-header.simple-header .brand img { width: 40px; height: 40px; }
  .site-header.simple-header .brand-text .wordmark { font-size: 0.92rem; }
}

/* 6d/6e: Memberships & Certifications (home + about). Centered flex row of 3 badges (ASTPS, TRN, CTRC), wraps on mobile.
   All badge PNGs have transparent backgrounds, so they sit directly on white or cream sections. */
.memberships-section { padding: 3rem 0; text-align: center; }
.memberships-section.memberships-joined { padding-top: 0.5rem; }
.memberships-h {
  font-family: var(--font-serif); color: var(--navy); font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  margin: 0 0 1.5rem; line-height: 1.3;
}
.memberships-h::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 0.6rem auto 0;
  background: var(--gold-grad); border-radius: 2px;
}
.memberships-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 2rem 3rem; }
.membership { margin: 0; flex: 0 1 14rem; display: flex; flex-direction: column; align-items: center; }
.membership img { display: block; width: 128px; height: 128px; object-fit: contain; }
/* TRN pennant fills its square edge-to-edge: slightly smaller so it reads at the same visual weight as the round seals */
.membership-trn img { width: 120px; height: 120px; margin: 4px 0; }
/* CTRC seal is only 200px wide: keep <= 118 CSS px (sharp at 1x, slightly soft at 2x) */
.membership-ctrc img { width: 118px; height: 128px; }
/* IRS EA logo is wide (653x256): same visual height band, wider box */
.membership-ea { flex-basis: 17rem; }
.membership-ea img { width: 270px; height: 106px; margin: 11px 0; }
.membership figcaption { margin-top: 0.75rem; font-size: 0.9rem; font-weight: 600; color: var(--navy); line-height: 1.4; max-width: 14rem; }
@media (max-width: 640px) {
  .memberships-section { padding: 2.5rem 0; }
  .memberships-row { gap: 1.75rem 1rem; }
  .membership { flex: 0 1 calc(50% - 0.5rem); }
  .membership img { width: 108px; height: 108px; }
  .membership-trn img { width: 100px; height: 100px; margin: 4px 0; }
  .membership-ctrc img { width: 100px; height: 108px; }
  .membership-ea { flex-basis: 100%; }
  .membership-ea img { width: 240px; height: 94px; margin: 7px 0; }
  .membership figcaption { font-size: 0.85rem; }
}
/* Footer: ASTPS horizontal wordmark (white), displayed at/below native 300px width */
.footer-membership { margin: 1rem 0 0; }
.footer-membership img { display: block; width: 180px; height: auto; max-width: 100%; opacity: 0.92; }

/* 6e: Meet Aracely full bio (About) — paragraphs + short expertise list */
.bio { max-width: 40rem; color: var(--muted); }
.bio p { margin: 0 0 1rem; }
.bio .bio-lead { margin: 0 0 0.4rem; color: var(--navy); font-weight: 700; }
.bio-list { margin: 0 0 1.1rem; padding: 0; list-style: none; }
.bio-list li { position: relative; padding-left: 1.35rem; margin: 0 0 0.45rem; line-height: 1.55; }
.bio-list li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.6em; width: 0.5rem; height: 0.5rem;
  border-radius: 50%; background: var(--gold-dark);
}

/* 6e: official IRS Enrolled Agent logo (file served unaltered). The PNG has no alpha and carries black background
   pixels in its four corners, outside the logo's own rounded frame; border-radius matching that frame (24px of
   653x256) hides only those background pixels at render time. No artwork is clipped, recolored or resized non-proportionally. */
.irs-ea-logo { border-radius: 3.7% / 9.4%; }
.ea-logo { margin: 0 0 1.25rem; max-width: 40rem; }
.ea-logo img { display: block; width: 340px; max-width: 100%; height: auto; }

/* ===== 6l: 'Get Relief Now' modal (Netlify form "get-relief"). Royal-blue seal palette: #2A5DB0 / #1F4E9A + navy.
   White on #2A5DB0 = 6.4:1, navy on white = 15.9:1. Inputs use 16px text so iOS doesn't zoom on focus. ===== */
html.relief-open, html.relief-open body { overflow: hidden; }
.relief-modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.relief-modal[hidden] { display: none; }
.relief-backdrop {
  position: fixed; inset: 0; background: rgba(7, 21, 48, 0.72); opacity: 0; transition: opacity 0.2s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.relief-dialog {
  position: relative; width: min(100%, 30rem); margin: auto; background: var(--white);
  border-radius: 16px; border-top: 5px solid #2A5DB0; padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 24px 64px rgba(7, 21, 48, 0.45); opacity: 0; transform: translateY(14px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.relief-dialog:focus { outline: none; }
.relief-modal.is-open .relief-backdrop { opacity: 1; }
.relief-modal.is-open .relief-dialog { opacity: 1; transform: none; }
.relief-close {
  position: absolute; top: 0.5rem; right: 0.5rem; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.relief-close:hover { background: #EAF0FA; color: #1F4E9A; }
.relief-seal { width: 64px; height: 64px; margin: 0 auto 0.85rem; border-radius: 50%; box-shadow: 0 0 0 2px #2A5DB0, 0 4px 12px rgba(11,31,77,0.2); }
.relief-dialog h2 {
  margin: 0 0 1.25rem; padding: 0 0.5rem; text-align: center; color: var(--navy);
  font-family: var(--font-serif); font-size: clamp(1.08rem, 3.4vw, 1.3rem); line-height: 1.45; text-wrap: balance;
}
.relief-dialog h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 0.8rem auto 0; border-radius: 2px;
  background: linear-gradient(90deg, #2A5DB0, #1F4E9A);
}
.relief-form { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.relief-field { margin-bottom: 0.85rem; }
.relief-field label { margin-bottom: 0.3rem; }
.relief-input { position: relative; }
.relief-input .relief-ico { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: #2A5DB0; pointer-events: none; }
.relief-input input {
  min-height: 48px; padding: 0.7rem 0.85rem 0.7rem 2.65rem; font-size: 1rem;
  border: 1px solid #C5D0E4; border-radius: 10px; background: #FAFCFF;
}
.relief-input input:focus { border-color: #2A5DB0; outline: 2px solid rgba(42, 93, 176, 0.3); background: var(--white); }
.relief-form .relief-submit {
  width: 100%; margin-top: 0.5rem; padding: 0.85rem 1.2rem; font-size: 1.02rem; letter-spacing: 0.01em;
  background: #2A5DB0; color: var(--white); border-color: #1F4E9A; box-shadow: 0 4px 14px rgba(31, 78, 154, 0.35);
}
.relief-form .relief-submit:hover { background: #1F4E9A; color: var(--white); }
.relief-privacy { margin: 0.9rem 0 0; text-align: center; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 480px) {
  .relief-modal { padding: 0.75rem; }
  .relief-dialog { padding: 1.6rem 1.15rem 1.25rem; border-radius: 14px; }
  .relief-seal { width: 52px; height: 52px; margin-bottom: 0.7rem; }
  .relief-dialog h2 { padding: 0; margin-bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .relief-backdrop, .relief-dialog { transition: none; }
}

/* 6l: footer social icons (rendered only for SOCIAL_LINKS entries with a URL). 40px circles, light on navy. */
.footer-social { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.1rem 0 0; }
.site-footer .social-link {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--on-navy); border: 1px solid rgba(232,199,102,0.45); background: rgba(255,255,255,0.04);
  text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.site-footer .social-link:hover, .site-footer .social-link:focus-visible {
  color: var(--navy); background: var(--gold-light); border-color: var(--gold-light); text-decoration: none; transform: translateY(-1px);
}
.site-footer .social-link:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .site-footer .social-link { transition: none; } .site-footer .social-link:hover { transform: none; } }
