/*
Theme Name: IRS Tax Relief Help
Theme URI: https://irstaxreliefhelp.com/
Author: IRS Tax Relief Help
Description: A focused landing-page theme for an independent tax relief intake website.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: irs-tax-relief-help
*/

:root {
  --blue-950: #061b33;
  --blue-900: #082747;
  --blue-800: #003d68;
  --blue-700: #095c91;
  --blue-100: #eaf5fb;
  --ink: #162230;
  --muted: #607083;
  --line: #d8e4ec;
  --paper: #f5f9fc;
  --white: #ffffff;
  --accent: #1c78c0;
  --accent-dark: #075c96;
  --gold: #f3b33f;
  --shadow: 0 22px 60px rgba(6, 27, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.irth-page {
  min-height: 100vh;
  background: var(--white);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(216, 228, 236, 0.92);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-900);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-800);
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(0, 61, 104, 0.22);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text span {
  font-size: 18px;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button--primary,
.button--header {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 14px 26px rgba(28, 120, 192, 0.22);
}

.button--primary:hover,
.button--primary:focus,
.button--header:hover,
.button--header:focus {
  color: var(--white);
  background: var(--accent-dark);
}

.button--secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.button--light {
  color: var(--blue-900);
  background: var(--white);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.button--header {
  min-height: 42px;
  padding: 10px 17px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 15%, rgba(28, 120, 192, 0.32), transparent 30%),
    linear-gradient(145deg, var(--blue-950) 0%, var(--blue-900) 48%, var(--blue-800) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(6, 27, 51, 0.28));
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  gap: 58px;
  align-items: center;
  min-height: 680px;
  padding: 74px 0 86px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #aee0fb;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: 66px;
  line-height: 0.96;
}

.hero__lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: #e7f1f7;
  font-size: 21px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #d9edf8;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 800;
}

.hero__fineprint {
  max-width: 650px;
  margin: 24px 0 0;
  color: #b9cedb;
  font-size: 13px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.28);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-panel__content {
  position: relative;
  margin: -92px 18px 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(6, 27, 51, 0.9);
  backdrop-filter: blur(10px);
}

.panel-kicker {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
}

.hero-panel ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  position: relative;
  padding-left: 24px;
  color: #dbe8ef;
  font-weight: 700;
}

.hero-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.proof-strip {
  position: relative;
  z-index: 4;
  margin-top: -32px;
}

.proof-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.proof-strip__grid div {
  min-height: 104px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.proof-strip__grid div:last-child {
  border-right: 0;
}

.proof-strip strong {
  display: block;
  color: var(--blue-900);
  font-size: 18px;
}

.proof-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 86px 0;
}

.section--soft {
  background: var(--paper);
}

.section--intro {
  padding-top: 96px;
  padding-bottom: 72px;
}

.intro-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 56px;
  align-items: start;
}

.intro-grid h2,
.section__head h2,
.contact-copy h2,
.final-cta h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 40px;
  line-height: 1.12;
}

.intro-grid p:last-child,
.section__head p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section__head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 36px;
}

.section__head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.phase-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(6, 27, 51, 0.08);
}

.phase-number {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-800);
  font-size: 22px;
  font-weight: 900;
}

.phase-card h3,
.service-card h3,
.service-feature h3,
.faq-list summary {
  margin: 0;
  color: var(--blue-900);
  font-size: 22px;
  line-height: 1.22;
}

.phase-card p,
.service-card p,
.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.service-feature {
  padding: 30px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue-900), var(--blue-800));
  box-shadow: var(--shadow);
}

.service-feature h3 {
  color: var(--white);
  font-size: 28px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #eaf5fb;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 190px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.program-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.program-card strong {
  display: block;
  color: var(--blue-900);
  font-size: 20px;
  line-height: 1.25;
}

.program-card p {
  margin: 11px 0 0;
  color: var(--muted);
}

.content-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hub-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
}

.hub-card:hover,
.hub-card:focus {
  border-color: var(--accent);
  box-shadow: 0 18px 38px rgba(6, 27, 51, 0.1);
}

.hub-card strong {
  color: var(--blue-900);
  font-size: 19px;
  line-height: 1.25;
}

.hub-card span {
  color: var(--muted);
  font-size: 14px;
}

.content-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 10%, rgba(28, 120, 192, 0.3), transparent 28%),
    linear-gradient(145deg, var(--blue-950), var(--blue-800));
}

.content-hero__inner {
  max-width: 850px;
  padding: 76px 0;
}

.content-hero h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.02;
}

.content-hero p:last-child {
  max-width: 760px;
  margin: 20px 0 0;
  color: #d8e8f1;
  font-size: 20px;
}

.content-page {
  background: var(--white);
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 46px;
  align-items: start;
  padding: 62px 0 82px;
}

.article-card {
  min-width: 0;
}

.article-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 14px;
}

.sidebar-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.sidebar-panel h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 22px;
  line-height: 1.2;
}

.sidebar-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.sidebar-panel a {
  display: inline-flex;
  margin-top: 14px;
}

.aio-content {
  display: grid;
  gap: 28px;
}

.answer-box,
.key-insights,
.article-section,
.source-box,
.related-links,
.article-faq,
.article-cta {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.answer-box {
  border-color: #b7ddef;
  background: #edf8fd;
}

.answer-box h2,
.key-insights h2,
.article-section h2,
.source-box h2,
.related-links h2,
.article-faq h2,
.article-cta h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 30px;
  line-height: 1.18;
}

.answer-box p,
.article-section p,
.source-box p,
.article-cta p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.key-insights ul,
.article-section ul,
.source-box ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.article-section li,
.key-insights li,
.source-box li {
  padding-left: 4px;
}

.source-box {
  background: var(--paper);
}

.source-box a {
  color: var(--accent-dark);
  font-weight: 800;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.related-grid a {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-900);
  background: var(--paper);
  font-weight: 800;
  text-decoration: none;
}

.article-faq {
  display: grid;
  gap: 12px;
}

.article-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.article-faq summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--blue-900);
  font-weight: 900;
}

.article-faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.article-cta {
  color: var(--white);
  background: linear-gradient(145deg, var(--blue-900), var(--blue-800));
}

.article-cta h2,
.article-cta p {
  color: var(--white);
}

.article-cta .button {
  margin-top: 18px;
}

.guide-list {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.guide-list h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 30px;
  line-height: 1.18;
}

.guide-list p {
  color: var(--muted);
}

.guide-list__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.guide-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
}

.guide-card strong {
  color: var(--blue-900);
  font-size: 18px;
  line-height: 1.25;
}

.guide-card span {
  color: var(--muted);
  font-size: 14px;
}

.section--contact {
  color: var(--white);
  background:
    radial-gradient(circle at 18% 24%, rgba(28, 120, 192, 0.28), transparent 30%),
    linear-gradient(145deg, var(--blue-950), var(--blue-800));
}

.contact-copy {
  padding-top: 16px;
}

.contact-copy h2 {
  color: var(--white);
}

.contact-copy p {
  color: #d8e8f1;
}

.contact-note {
  display: grid;
  gap: 6px;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-note strong {
  color: var(--white);
}

.contact-note span {
  color: #d8e8f1;
}

.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.24);
}

.contact-panel__head {
  padding: 28px 30px 0;
}

.contact-panel__head h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 30px;
  line-height: 1.16;
}

.contact-panel__head p {
  margin: 9px 0 0;
  color: var(--muted);
}

.notice {
  margin: 20px 30px 0;
  padding: 12px 14px;
  border: 1px solid #b7ddef;
  border-radius: 8px;
  color: var(--accent-dark);
  background: #edf8fd;
  font-weight: 800;
}

.notice--error {
  border-color: #f1c7bb;
  color: #8a321d;
  background: #fff0eb;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 26px 30px 30px;
}

.field {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(28, 120, 192, 0.18);
  border-color: var(--accent);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 46px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-list summary {
  cursor: pointer;
  padding: 22px 24px;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 900;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  padding: 0 24px 24px;
}

.final-cta {
  padding: 62px 0;
  color: var(--white);
  background: var(--blue-800);
}

.final-cta .eyebrow,
.section--contact .eyebrow {
  color: #aee0fb;
}

.final-cta h2 {
  color: var(--white);
}

.final-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer {
  padding: 40px 0;
  color: #dce9f1;
  background: var(--blue-950);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer a {
  color: var(--white);
  font-weight: 900;
}

.footer p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #b7c8d4;
  font-size: 13px;
}

.footer__disclaimer {
  color: #9fb3c1;
}

@media (max-width: 980px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero__grid,
  .intro-grid,
  .service-layout,
  .contact-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    min-height: auto;
    padding: 58px 0 78px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .proof-strip__grid,
  .phase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-hub-grid,
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-shell {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 660px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand-text span {
    font-size: 16px;
  }

  .nav-links {
    font-size: 13px;
  }

  .button--header {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .hero-panel__content {
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .proof-strip {
    margin-top: 0;
  }

  .proof-strip__grid,
  .phase-grid,
  .service-grid,
  .program-grid,
  .content-hub-grid,
  .guide-list__grid,
  .related-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .proof-strip__grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip__grid div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 62px 0;
  }

  .intro-grid h2,
  .section__head h2,
  .contact-copy h2,
  .final-cta h2,
  .content-hero h1 {
    font-size: 32px;
  }

  .phase-card {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 22px;
  }

  .contact-panel__head {
    padding: 22px 22px 0;
  }

  .notice {
    margin: 18px 22px 0;
  }

  .final-cta__inner,
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
