/* ==========================================================
   FREE TAX RESOURCES — Stylesheet
   Fonts: Source Serif 4 (display) + Inter (body/UI)
   ========================================================== */

:root {
  --ink: #12161f;
  --ink-soft: #1b212c;
  --paper: #e9e7e0;
  --card: #faf9f6;
  --rust: #a8461f;
  --rust-hover: #8a3818;
  --slate: #5b5f66;
  --mist: rgba(243, 241, 236, .78);
  --line: rgba(18, 22, 31, .14);
  --line-soft: rgba(18, 22, 31, .09);
  --line-dark: rgba(243, 241, 236, .18);
  --line-dark-soft: rgba(243, 241, 236, .1);
  --shadow-sm: 0 4px 18px rgba(18, 22, 31, .08);
  --radius: 6px;
  --radius-sm: 4px;
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -.01em; color: var(--ink); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { color: var(--slate); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  z-index: 500;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------------- BUTTONS ---------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .92rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  font-family: inherit;
}
.button.primary { background: var(--rust); color: #fbf3ec; }
.button.primary:hover { background: var(--rust-hover); }

.button.ghost {
  background: transparent;
  color: var(--mist);
  border-color: var(--line-dark);
}
.button.ghost:hover { border-color: var(--mist); color: #fff; }

.text-link {
  display: inline-block;
  font-size: .9rem;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .35);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------------- TOPBAR ---------------- */
.topbar {
  position: relative;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(233, 231, 224, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.brand span { color: var(--rust); }
.nav { display: flex; gap: 26px; }
.nav a { font-size: .88rem; font-weight: 600; color: var(--slate); }
.nav a:hover { color: var(--ink); }


/* ==========================================================
   HERO + GUIDED STEPS
   Normal stacked sections. A click on the CTA smoothly scrolls to
   the next section; the visitor can just as easily scroll there
   themselves — scrolling is otherwise completely free.
   ========================================================== */

/* ---- Hero: single photo ---- */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform-origin: 50% 100%;
  will-change: transform;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 13, 19, .1) 0%, rgba(10, 13, 19, .38) 48%, rgba(8, 10, 15, .86) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 0 clamp(24px, 6vw, 72px) clamp(56px, 9vh, 104px);
  color: #f3f1ec;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-kicker {
  font-size: .92rem;
  font-weight: 500;
  color: var(--mist);
  font-style: italic;
  font-family: var(--font-display);
}
.hero-content h1 {
  color: #fbf9f5;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
}
.hero-lead {
  color: rgba(243, 241, 236, .82);
  font-size: 1.05rem;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 6px;
}
.envelope-icon {
  display: inline-flex;
  width: 20px;
  color: currentColor;
}
.env-flap-path { transform-origin: center; transition: d .2s ease; }
#startBtn.opening .env-flap-path { animation: flapOpen .6s ease forwards; }
@keyframes flapOpen {
  0% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
  100% { transform: translateY(-2px); }
}

/* Scroll hint — a simple invitation to keep scrolling, not a slideshow control */
.scroll-hint {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  right: clamp(24px, 6vw, 72px);
  width: 34px;
  height: 54px;
  border: 1.5px solid rgba(243, 241, 236, .5);
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.scroll-hint-line {
  display: block;
  width: 3px;
  height: 9px;
  border-radius: 2px;
  background: #fff;
  margin: 8px auto 0;
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(18px); opacity: 0; }
  71% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint-line { animation: none; }
}

/* ---- First steps + finder: solid sections in normal flow ---- */
.steps-section, .finder-section, .pro-finder-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 140% at 50% 0%, var(--ink-soft) 0%, var(--ink) 60%);
  padding: clamp(48px, 8vh, 88px) 0;
}
.panel-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 40px);
  color: #f3f1ec;
}
.panel-kicker {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--mist);
  font-size: .92rem;
  margin-bottom: 10px;
}
.panel-inner h2 { color: #fbf9f5; margin-bottom: 14px; }
.panel-lead { color: rgba(243, 241, 236, .78); max-width: 520px; margin-bottom: 40px; }

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 44px;
}
.step-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-dark-soft);
}
.step-item:last-child { border-bottom: 0; padding-bottom: 0; }
.step-index {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--rust);
  flex-shrink: 0;
  width: 44px;
  line-height: 1;
  padding-top: 2px;
}
.step-item h3 { color: #fbf9f5; margin-bottom: 6px; font-size: 1.1rem; }
.step-item p { color: rgba(243, 241, 236, .74); font-size: .94rem; }

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.back-link { color: var(--mist); }
.back-link:hover { color: #fff; }

/* ---- Finder inside dark section ---- */
.finder-section .finder-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.finder-section .finder-field label {
  display: block;
  font-weight: 700;
  font-size: .84rem;
  margin-bottom: 8px;
  color: var(--mist);
}
.finder-section .finder-field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line-dark);
  background: rgba(255, 255, 255, .05);
  font: inherit;
  color: #f3f1ec;
}
.finder-section .finder-field select option { color: #111; }
.finder-section .finder-note {
  font-size: .87rem;
  color: rgba(243, 241, 236, .65);
  margin-bottom: 26px;
}
.finder-section .finder-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.finder-section .result {
  display: none;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-dark-soft);
}
.finder-section .result.visible { display: block; }
.finder-section .result h3 { color: #fbf9f5; margin-bottom: 8px; font-size: 1.05rem; }
.finder-section .result p { font-size: .9rem; margin-bottom: 14px; color: rgba(243, 241, 236, .74); }
.finder-placeholder {
  grid-column: 1 / -1;
  font-size: .9rem;
  color: rgba(243, 241, 236, .5);
  font-style: italic;
  padding: 8px 2px;
}
.finder-placeholder.hidden { display: none; }

@media (max-width: 720px) {
  .finder-section .finder-fields,
  .finder-section .finder-results {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   GENERAL SECTIONS
   ========================================================== */
.section {
  padding: clamp(64px, 10vw, 110px) clamp(20px, 6vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
}
.section.alt { background: var(--card); max-width: none; margin: 0; }
.section.alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.section-intro { max-width: 640px; margin-bottom: 40px; }
.section-lead { margin-top: 12px; font-size: 1.02rem; }

/* ---------------- FINDER (shared field styling used inside dark panel above) ---------------- */

/* ---------------- NOTICE TABLE ---------------- */
.notice-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.notice-table .row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  border-bottom: 1px solid var(--line-soft);
}
.notice-table .row:last-child { border-bottom: 0; }
.notice-table [role="cell"], .notice-table [role="columnheader"] {
  padding: 18px 20px;
  font-size: .92rem;
}
.notice-table .head {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
}
.code {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.notice-table a { color: var(--rust); font-weight: 700; text-decoration: underline; }

@media (max-width: 780px) {
  .notice-table .row { grid-template-columns: 1fr; }
  .notice-table .head { display: none; }
  .notice-table [role="cell"] { padding: 6px 20px; }
  .notice-table .row > [role="cell"]:first-child { padding-top: 18px; font-weight: 700; }
  .notice-table .row > [role="cell"]:last-child { padding-bottom: 18px; }
}

/* ---------------- DIRECTORY ---------------- */
.directory-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  font-family: inherit;
}
.pill.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
#dirSearch {
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: transparent;
  font: inherit;
  min-width: 220px;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.dir-card {
  background: var(--card);
  padding: 26px;
}
.dir-tag {
  font-size: .72rem;
  font-weight: 700;
  color: var(--rust);
  letter-spacing: .02em;
}
.dir-card h3 { margin: 8px 0 8px; font-size: 1.08rem; }
.dir-card p { font-size: .9rem; margin-bottom: 12px; }
.dir-card a { font-weight: 700; color: var(--ink); text-decoration: underline; font-size: .88rem; }
.empty-state { text-align: center; color: var(--slate); padding: 40px 0; }

@media (max-width: 900px) {
  .directory-layout { grid-template-columns: 1fr; }
  .directory-grid { grid-template-columns: 1fr; }
}

/* ---------------- AD SLOTS ---------------- */
.ad-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.ad-slot {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--slate);
  gap: 4px;
  background: rgba(250, 249, 246, .5);
}
.ad-slot span { font-weight: 700; font-size: .92rem; }
.ad-slot small { font-size: .76rem; max-width: 240px; }
.ad-rail { position: sticky; top: 90px; }
.ad-slot--rail { height: 520px; }
@media (max-width: 900px) { .ad-rail { display: none; } }

.sponsor-band {
  max-width: 1180px;
  margin: 0 auto clamp(48px, 8vw, 90px);
  padding: 0 clamp(20px, 6vw, 72px);
}
.ad-slot--banner { min-height: 140px; padding: 20px; }

.ad-slot--filled {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 28px clamp(24px, 4vw, 40px);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ad-slot--filled:hover {
  border-color: var(--rust);
  box-shadow: var(--shadow-sm);
}
.ad-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ad-banner-copy strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}
.ad-banner-copy span {
  font-weight: 400;
  font-size: .92rem;
  color: var(--slate);
  max-width: 520px;
}
.ad-banner-btn { flex-shrink: 0; }

@media (max-width: 640px) {
  .ad-slot--filled { flex-direction: column; align-items: flex-start; }
}

/* ---------------- FAQ ---------------- */
.faq-list { display: flex; flex-direction: column; gap: 1px; max-width: 760px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.faq-item {
  background: var(--card);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { font-weight: 400; color: var(--rust); }
.faq-answer { padding-top: 12px; font-size: .93rem; }

#faq .section-intro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;   /* optional: centers the heading text itself too */
}

#faq .faq-list {
  margin-left: auto;
  margin-right: auto;
}

/* ---------------- PAID PROFESSIONAL: TEASER ---------------- */
.paid-cta {
  text-align: center;
  max-width: 700px;
}
.paid-cta-kicker {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rust);
  margin-bottom: 10px;
}
.paid-cta p { margin: 16px 0 26px; }

/* ---------------- PAID PROFESSIONAL: FINDER ---------------- */
.panel-inner--wide { max-width: 900px; }

.pro-fields {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-bottom: 10px;
}
.pro-fields .finder-field label { display: block; font-weight: 700; font-size: .84rem; margin-bottom: 8px; color: var(--mist); }
.pro-fields select,
.pro-fields input[type="text"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line-dark);
  background: rgba(255, 255, 255, .05);
  font: inherit;
  color: #f3f1ec;
}
.pro-fields select option { color: #111; }
.pro-fields input::placeholder { color: rgba(243, 241, 236, .4); }
.pro-form .finder-note {
  font-size: .87rem;
  color: rgba(243, 241, 236, .6);
  margin-bottom: 30px;
}

.pro-results { margin-bottom: 8px; }

/* ---- Assessment verdict card ---- */
.verdict-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-dark-soft);
  border-left: 4px solid var(--mist);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.verdict-card.tier-pro { border-left-color: var(--rust); }
.verdict-card.tier-attorney {
  border-left-color: var(--rust);
  background: rgba(168, 70, 31, .14);
}
.verdict-tag {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--rust);
}
.verdict-card.tier-free .verdict-tag { color: var(--mist); }
.verdict-card h3 { color: #fbf9f5; font-size: 1.2rem; margin: 0; }
.verdict-card p { font-size: .95rem; color: rgba(243, 241, 236, .82); max-width: 560px; }
.verdict-card .button { margin-top: 6px; align-self: flex-start; }

@media (max-width: 900px) {
  .pro-fields { grid-template-columns: 1fr; }
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  text-align: center;
  padding: 40px 20px 60px;
  color: var(--slate);
  font-size: .82rem;
}
.footer-fine { margin-top: 6px; opacity: .7; }

/* ---------------- MOBILE NAV (hamburger) ---------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 18px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    padding: 0 clamp(20px, 4vw, 56px);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .25s ease, opacity .2s ease, padding .25s ease;
  }
  .nav.open {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
    padding: 10px clamp(20px, 4vw, 56px) 18px;
  }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a:last-child { border-bottom: 0; }
}

/* finder panel */

#logo-img{
  height: 2rem;
}

/* finder panel parralax */

/* the SECTION is now the box that gets clipped and sized */
.section-parallax {
  position: relative;
  overflow: hidden;
  /* remove any fixed height here — let content size it, unless you want a fixed banner height */
}

/* the band now fills the WHOLE section, not its own strip */
.section-parallax .parallax-band {
  position: absolute;
  inset: 0;
  height: auto;      /* was clamp(...) before — that's what made it its own block */
  margin: 0;         /* remove the old bleed margins, not needed now */
  z-index: 0;
}

.section-parallax .parallax-photo,
.section-parallax .parallax-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* the actual text content sits ON TOP of the photo */
.section-parallax .panel-inner {
  position: relative;
  z-index: 1;
}

.parallax-scrim {
  background: linear-gradient(
    180deg,
    rgba(8, 10, 15, .55) 0%,
    rgba(8, 10, 15, .82) 60%,
    rgba(8, 10, 15, .92) 100%
  );
}
.section-parallax .panel-inner h2,
.section-parallax .panel-inner p,
.section-parallax .panel-inner li {
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.glass-panel {
  background: rgba(15, 18, 25, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari needs the prefix */
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}