/*
Theme Name: Tax Relief SOS
Theme URI: https://taxreliefsos.com/
Author: Tax Relief SOS
Description: Custom bilingual WordPress theme for Tax Relief SOS, a Phoenix-area IRS tax resolution practice led by Enrolled Agent Tayde Saenz.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: tax-relief-sos
*/

:root {
  --navy: #123b6d;
  --navy-deep: #0a2a50;
  --sage: #4c6636;
  --sage-deep: #304d26;
  --sage-light: #e5eddd;
  --gold: #cd9730;
  --gold-light: #f8edd2;
  --cream: #f8f8f7;
  --white: #ffffff;
  --ink: #111711;
  --muted: #252c25;
  --border: #dedfd8;
  --shadow: 0 18px 50px rgba(18, 59, 109, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Montserrat", "Segoe UI", Arial, sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; background: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.container { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.topbar { background: var(--sage-deep); color: #f4f1e8; font-size: .82rem; border-bottom: 2px solid var(--gold); }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar a { color: white; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,248,247,.97); border-bottom: 3px solid rgba(205,151,48,.55); backdrop-filter: blur(14px); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; flex: 0 0 auto; }
.brand-name { display: block; color: var(--navy); font-family: "Cinzel", Georgia, serif; font-size: 1.24rem; font-weight: 700; letter-spacing: .045em; line-height: 1.1; text-transform: uppercase; }
.brand-sos span:first-child, .brand-sos span:last-child { color: var(--sage-deep); }
.brand-sos span:nth-child(2) { color: var(--gold); }
.brand-tag { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.site-header .brand-tag { color: var(--sage); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 1.35rem; font-size: .9rem; font-weight: 650; }
.nav-links a:hover, .footer-links a:hover { color: var(--sage); }
.nav-links [data-nav-home]:focus-visible { text-decoration: underline 2px; text-underline-offset: 5px; }
.nav-cta { padding: .7rem 1rem; border-radius: 999px; background: var(--gold); color: var(--navy) !important; box-shadow: 0 6px 18px rgba(205,151,48,.2); }
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .42; background: radial-gradient(circle at 15% 25%, rgba(205,151,48,.34), transparent 30%), radial-gradient(circle at 90% 85%, rgba(48,77,38,.72), transparent 30%); }
.hero-grid { position: relative; min-height: 670px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 3rem; padding-block: 5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; color: var(--navy); font-family: "Cinzel", Georgia, serif; line-height: 1.15; }
.hero h1 { max-width: 720px; color: white; font-size: clamp(2.75rem, 5vw, 5.1rem); letter-spacing: -.035em; }
.hero h1 span { color: #e0ad46; }
.hero-copy { max-width: 650px; margin: 1.5rem 0 0; color: #dce6e9; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-actions-conversion { display: grid; width: min(100%, 590px); grid-template-columns: 1fr; justify-items: end; margin-left: auto; }
.hero-actions-conversion .button-secondary { min-width: 245px; justify-self: start; }
.hero-actions-conversion .button-primary { width: 100%; min-height: 64px; padding-inline: 1.75rem; font-size: 1.05rem; box-shadow: 0 14px 34px rgba(205,151,48,.35); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: var(--navy); box-shadow: 0 10px 25px rgba(205,151,48,.22); }
.button-secondary { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: white; }
.button-dark { background: var(--navy); color: white; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 2.25rem; color: #d7e3e3; font-size: .82rem; }
.hero-trust span::before { content: "✓"; margin-right: .45rem; color: var(--gold); font-weight: 900; }
.hero-visual { position: relative; }
.hero-image { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 180px 180px 28px 28px; box-shadow: 0 28px 80px rgba(0,0,0,.35); border: 3px solid rgba(205,151,48,.5); background: var(--navy); }
.credential-card { position: absolute; right: -1rem; bottom: 2rem; width: min(285px, 82%); padding: 1.15rem; border-radius: 18px; background: rgba(251,250,246,.96); color: var(--ink); box-shadow: var(--shadow); }
.credential-card strong { display: block; color: var(--navy); font-family: Georgia, serif; font-size: 1.05rem; }
.credential-card span { display: block; margin-top: .2rem; color: var(--muted); font-size: .78rem; }
.trust-strip { background: linear-gradient(90deg, #edf4e7 0%, #fff8e8 50%, #edf4e7 100%); border-bottom: 1px solid rgba(76,102,54,.25); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-item { padding: 1.35rem; text-align: center; border-right: 1px solid var(--border); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--navy); font-family: Georgia, serif; font-size: 1rem; }
.trust-item span { color: var(--muted); font-size: .78rem; }
.credentials-section { padding-block: 5rem; background: linear-gradient(135deg, #ffffff 0%, #f2f7ed 62%, #fff8e8 100%); }
.credentials-heading { margin-bottom: 2rem; }
.credentials-heading h2 { max-width: 850px; margin-inline: auto; }
.credentials-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.credential-badge { display: flex; min-height: 245px; flex-direction: column; align-items: center; padding: 1.35rem 1rem; border: 1px solid rgba(76,102,54,.28); border-top: 4px solid var(--sage); border-radius: 20px; background: linear-gradient(180deg, #ffffff, #f6f9f2); text-align: center; box-shadow: 0 8px 25px rgba(18,59,109,.06); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.credential-badge:nth-child(even) { border-top-color: var(--gold); background: linear-gradient(180deg, #ffffff, #fff9eb); }
.credential-badge:hover, .credential-badge:focus-visible { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.credential-logo-box { display: grid; width: 100%; height: 120px; place-items: center; padding: .35rem; }
.credential-logo-box img { max-width: 100%; max-height: 110px; object-fit: contain; }
.credential-badge strong { margin-top: .8rem; color: var(--navy); font-family: Georgia,serif; font-size: 1rem; }
.credential-badge > span:last-child { margin-top: .25rem; color: var(--muted); font-size: .76rem; }
.section { padding-block: 6rem; }
.section-sm { padding-block: 4.5rem; }
.section-white { background: white; }
.section-sage { background: radial-gradient(circle at 92% 8%, rgba(205,151,48,.18), transparent 28%), linear-gradient(135deg, var(--sage-light), #f3f7ee); }
.section-navy { background: linear-gradient(135deg,var(--navy-deep),var(--navy)); color: white; border-top: 4px solid var(--gold); }
.section-heading { max-width: 780px; margin-bottom: 2.5rem; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { font-size: clamp(2.05rem, 4vw, 3.45rem); }
.section-heading p { margin: 1rem 0 0; color: var(--muted); }
.section-navy h2, .section-navy h3 { color: white; }
.section-navy .section-heading p { color: #cbdadd; }
.situation-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .85rem; }
.situation-card { padding: 1.25rem; border: 1px solid rgba(76,102,54,.25); border-top: 4px solid var(--sage); border-radius: 18px; background: linear-gradient(180deg, #ffffff, #f7faf4); }
.situation-card:nth-child(even) { border-top-color: var(--gold); background: linear-gradient(180deg, #ffffff, #fff9eb); }
.situation-card:hover { border-color: var(--sage); box-shadow: var(--shadow); }
.situation-card strong { display: block; color: var(--navy); font-family: Georgia,serif; }
.situation-card span { color: var(--muted); font-size: .8rem; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.service-card { --card-accent: var(--sage); --card-tint: rgba(76,102,54,.12); --card-number: var(--sage-deep); position: relative; display: flex; flex-direction: column; min-height: 290px; padding: 1.6rem; overflow: hidden; border: 1px solid rgba(76,102,54,.24); border-radius: 20px; background: linear-gradient(145deg,var(--card-tint),rgba(255,255,255,.98) 60%); box-shadow: 0 10px 32px rgba(16,43,63,.07); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.service-card:nth-child(3n+2) { --card-accent: var(--gold); --card-tint: rgba(205,151,48,.14); --card-number: #805b12; border-color: rgba(205,151,48,.3); }
.service-card:nth-child(3n) { --card-accent: var(--navy); --card-tint: rgba(18,59,109,.10); --card-number: var(--navy); border-color: rgba(18,59,109,.22); }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--card-accent); }
.service-card:hover, .service-card:focus-visible { transform: translateY(-5px); border-color: var(--card-accent); box-shadow: 0 20px 46px rgba(18,59,109,.15); }
.service-number { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--card-accent); border-radius: 50%; background: var(--card-tint); color: var(--card-number); font-family: Georgia, serif; font-size: .82rem; font-weight: 700; }
.service-card h3 { margin-top: .9rem; font-size: 1.35rem; }
.service-card p { color: var(--muted); font-size: .9rem; }
.text-link { margin-top: auto; color: var(--sage); font-size: .84rem; font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split h2 { font-size: clamp(2.05rem,4vw,3.25rem); }
.split p { color: var(--muted); }
.check-list { display: grid; gap: .8rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.75rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 900; }
.feature-panel { position: relative; min-height: 460px; padding: 2rem; overflow: hidden; border-radius: 28px; background: linear-gradient(145deg,var(--sage-deep),#203d1b); color: white; box-shadow: var(--shadow); border-bottom: 5px solid var(--gold); }
.feature-panel::after { content: "SOS"; position: absolute; right: -1rem; bottom: -4rem; color: rgba(255,255,255,.055); font-family: Georgia,serif; font-size: 12rem; font-weight: 900; }
.feature-panel h3 { color: white; font-size: 2rem; }
.feature-panel p { color: #d0dde0; }
.feature-stat { margin-top: 5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); }
.feature-stat strong { display: block; color: var(--gold); font-family: Georgia,serif; font-size: 2.4rem; }
.process-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1rem; }
.process-step { padding: 1.4rem 1rem; border-top: 2px solid var(--gold); }
.process-step span { color: var(--gold); font-family: Georgia,serif; font-size: .85rem; }
.process-step h3 { margin-top: .7rem; color: white; font-size: 1.02rem; }
.process-step p { color: #c8d7da; font-size: .78rem; }
.quote { max-width: 880px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; color: var(--navy); font-family: Georgia,serif; font-size: clamp(1.7rem,3vw,2.8rem); line-height: 1.35; }
.quote p { color: var(--muted); }
.cta-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: 3rem; border-radius: 28px; background: linear-gradient(135deg,var(--sage-deep),var(--sage)); color: white; box-shadow: var(--shadow); border-bottom: 5px solid var(--gold); }
.cta-band h2 { color: white; font-size: clamp(1.9rem,3.5vw,3rem); }
.cta-band p { margin-bottom: 0; color: #eff5ef; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }
.consultation-dialog { width: min(850px, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 26px; background: var(--cream); box-shadow: 0 30px 100px rgba(7,29,54,.45); }
.consultation-dialog[open] { animation: consultation-pop-in .32s ease-out both; }
.consultation-dialog-portrait { width: min(690px, calc(100% - 2rem)); max-height: calc(100dvh - 3rem); margin: clamp(4.75rem,9vh,7rem) clamp(.75rem,1.5vw,1.5rem) auto auto; }
.consultation-dialog::backdrop { background: rgba(7,29,54,.72); backdrop-filter: blur(4px); }
@keyframes consultation-pop-in { from { opacity: 0; transform: translateX(34px) scale(.98); } to { opacity: 1; transform: translateX(0) scale(1); } }
.dialog-inner { position: relative; padding: 2.2rem; }
.dialog-inner h2 { max-width: 700px; font-size: clamp(1.8rem,4vw,2.8rem); }
.dialog-intro { margin: .75rem 0 1.5rem; color: var(--muted); }
.dialog-close { position: absolute; top: 1rem; right: 1rem; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: white; color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.consultation-form label { display: grid; gap: .35rem; color: var(--ink); font-size: .83rem; font-weight: 700; }
.consultation-form input:not([type="checkbox"]), .consultation-form select, .consultation-form textarea { width: 100%; min-height: 50px; padding: .75rem .85rem; border: 1px solid #9aa7ad; border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.consultation-form textarea { min-height: 110px; resize: vertical; }
.consultation-form input:focus, .consultation-form select:focus, .consultation-form textarea:focus { outline: 3px solid rgba(205,151,48,.25); border-color: var(--navy); }
.form-span { grid-column: 1 / -1; }
.radio-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.radio-field legend { margin-bottom: .5rem; color: var(--ink); font-size: .83rem; font-weight: 700; }
.radio-field label { display: inline-flex; grid-template-columns: auto auto; align-items: center; margin-right: 1.25rem; }
.radio-field input { width: 18px; height: 18px; margin: 0 .4rem 0 0; accent-color: var(--sage); }
.optional { color: var(--muted); font-weight: 500; }
.consent { grid-template-columns: 20px 1fr !important; align-items: start; margin-top: 1rem; color: var(--muted) !important; font-weight: 500 !important; }
.consent input { width: 18px; height: 18px; margin: .15rem 0 0; accent-color: var(--sage); }
.privacy-note { padding: .75rem 1rem; border-left: 3px solid var(--gold); background: #f6f0e3; color: var(--muted); font-size: .78rem; }
.form-privacy-link { margin: .45rem 0 0; font-size: .76rem; }
.form-privacy-link a { color: var(--navy); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.bot-protection { display: inline-flex; align-items: center; gap: .7rem; margin-top: .75rem; padding: .65rem .85rem; border: 1px solid var(--border); border-radius: 10px; background: white; }
.bot-protection > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--sage); color: white; font-weight: 900; }
.bot-protection strong, .bot-protection small { display: block; }
.bot-protection strong { color: var(--navy); font-size: .76rem; }
.bot-protection small { color: var(--muted); font-size: .68rem; }
.form-submit { width: 100%; margin-top: 1rem; border: 0; cursor: pointer; }
.form-submit:disabled { cursor: wait; opacity: .7; }
.form-back { border-color: var(--border); background: white; color: var(--navy); cursor: pointer; }
.form-error { margin: 1rem 0 0; color: #9c2f22; font-size: .82rem; font-weight: 700; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.consultation-success { padding: 2rem; border: 1px solid #b7c9ad; border-radius: 18px; background: #f0f5ec; text-align: center; }
.consultation-success > span { display: grid; width: 54px; height: 54px; margin: 0 auto 1rem; place-items: center; border-radius: 50%; background: var(--sage); color: white; font-size: 1.5rem; font-weight: 900; }
.consultation-success h2 { font-size: 1.7rem; }
.consultation-success a { color: var(--navy); font-weight: 800; }
.consultation-page-hero { border-bottom: 4px solid var(--gold); }
.consultation-page-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 2rem; align-items: start; }
.consultation-card > p { margin-top: .35rem; color: var(--muted); }
.consultation-assurance { position: sticky; top: 130px; padding: 2rem; border-radius: 24px; background: var(--sage-light); border-bottom: 5px solid var(--gold); }
.consultation-assurance h2 { font-size: 1.8rem; }
.consultation-assurance ol { display: grid; gap: .8rem; padding-left: 1.3rem; color: var(--muted); }
.consultation-assurance > p:last-of-type { color: var(--muted); font-size: .82rem; }
.admin-hero { padding-block: 3.5rem; }
.admin-hero h1 { font-size: clamp(2.4rem,5vw,4rem); }
.lead-list { display: grid; gap: 1rem; }
.lead-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 20px; background: var(--cream); box-shadow: 0 8px 30px rgba(18,59,109,.06); }
.lead-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.lead-card h2 { margin-top: .45rem; font-size: 1.5rem; }
.lead-card-head p { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; }
.priority { display: inline-flex; padding: .25rem .6rem; border-radius: 999px; background: #e8edf1; color: var(--navy); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.priority-3 { background: #f8dfd9; color: #902d20; }
.priority-2 { background: #f6ecd7; color: #7b5515; }
.lead-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.lead-actions .button { min-height: 42px; padding: .55rem .9rem; font-size: .78rem; }
.lead-details { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; margin: 1.25rem 0 0; }
.lead-details div { padding: .75rem; border-radius: 10px; background: white; }
.lead-details dt { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.lead-details dd { margin: .2rem 0 0; color: var(--navy); font-weight: 700; }
.lead-message { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.lead-message p { margin-bottom: 0; white-space: pre-wrap; color: var(--muted); }
.empty-state { padding: 3rem; border: 1px dashed var(--border); border-radius: 20px; text-align: center; }
.page-hero { padding-block: 5.5rem 4.5rem; background: linear-gradient(135deg,var(--navy-deep),var(--navy)); color: white; }
.page-hero h1 { max-width: 850px; color: white; font-size: clamp(2.5rem,5vw,4.8rem); }
.page-hero p { max-width: 720px; color: #d5e2e5; font-size: 1.08rem; }
.breadcrumbs { margin-bottom: 1rem; color: #aabcc1; font-size: .78rem; }
.breadcrumbs a { color: var(--gold); }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 4rem; }
.prose h2 { margin-top: 2.5rem; font-size: 2rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.35rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; }
.sidebar-card { position: sticky; top: 135px; padding: 1.6rem; border-radius: 20px; background: var(--sage-light); }
.sidebar-card h2 { font-size: 1.45rem; }
.sidebar-card p { color: var(--muted); font-size: .9rem; }
.sidebar-card .button { width: 100%; }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; }
.contact-card { padding: 2rem; border: 1px solid rgba(76,102,54,.28); border-top: 5px solid var(--gold); border-radius: 22px; background: linear-gradient(145deg, #ffffff, #f4f8ef); }
.contact-card h2 { font-size: 1.75rem; }
.contact-line { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-line:last-child { border: 0; }
.contact-line small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.contact-line strong { color: var(--navy); }
.site-footer { padding-top: 4rem; background: var(--sage-deep); color: #e0e6dc; border-top: 6px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.site-footer .brand-logo { padding: 3px; border-radius: 50%; background: var(--cream); }
.site-footer .brand-name, .site-footer h3 { color: white; }
.site-footer .brand-sos span:first-child, .site-footer .brand-sos span:last-child { color: #dfe8d9; }
.site-footer .brand-sos span:nth-child(2) { color: #efb443; }
.site-footer h3 { margin-bottom: .9rem; font-size: 1rem; }
.footer-links { display: grid; gap: .55rem; font-size: .85rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .72rem; }
.disclaimer { max-width: 800px; color: #94a9af; }

@media (max-width: 900px) {
  .nav-links a:not(.nav-cta):not([data-nav-home]) { display: none; }
  .hero-grid, .split, .detail-grid, .contact-grid, .consultation-page-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 4rem; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .services-grid, .situation-grid { grid-template-columns: repeat(2,1fr); }
  .credentials-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .sidebar-card { position: static; }
  .consultation-assurance { position: static; }
  .lead-details { grid-template-columns: repeat(2,1fr); }
  .consultation-dialog-portrait { width: min(690px,calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); margin: auto; }
}
@media (max-width: 620px) {
  .topbar-inner { min-height: 46px; justify-content: center; text-align: center; }
  .topbar-inner span:last-child, .brand-tag { display: none; }
  .nav { min-height: 68px; }
  .nav-links { gap: .45rem; }
  .nav-links [data-nav-home] { font-size: .78rem; }
  .nav-cta { padding: .6rem .8rem; font-size: .78rem; }
  .hero-grid { min-height: auto; }
  .hero h1 { font-size: 2.65rem; }
  .hero-actions .button { width: 100%; }
  .hero-visual { margin-top: 1rem; }
  .credential-card { right: .5rem; }
  .services-grid, .situation-grid, .credentials-grid, .trust-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--border); }
  .section { padding-block: 4rem; }
  .section-sm { padding-block: 3.25rem; }
  .cta-band { grid-template-columns: 1fr; padding: 2rem; }
  .cta-actions { justify-content: stretch; }
  .cta-actions .button { width: 100%; }
  .cta-band .button { width: 100%; }
  .dialog-inner { padding: 1.35rem; padding-top: 3.25rem; }
  .form-grid, .lead-details { grid-template-columns: 1fr; }
  .lead-card-head { display: grid; }
  .lead-actions .button { flex: 1; }
  .footer-bottom { flex-direction: column; }
}

/* WordPress integration */
body.admin-bar .site-header { top: 32px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: .75rem 1rem; clip: auto; background: white; color: var(--navy); }
.current-menu-item > a, .current_page_item > a { color: var(--sage); }
.wp-content { min-height: 45vh; }
.wp-content > *:first-child { margin-top: 0; }
.wp-content img { height: auto; }
.wp-caption { max-width: 100%; }
.alignwide { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.alignfull { width: 100%; }
.trs-notice { margin: 0 0 1.25rem; padding: 1rem 1.15rem; border-left: 4px solid var(--sage); border-radius: 8px; background: #eef6e8; color: var(--ink); }
.trs-notice-error { border-left-color: #9c2f22; background: #fff0ed; }
.consultation-form select { appearance: auto; }
.consultation-form button { font: inherit; }
.site-header .menu { display: flex; align-items: center; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.site-header .menu a { font-size: .9rem; font-weight: 650; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 900px) {
  .site-header .menu li:not(:first-child) { display: none; }
}

/* IRS Help Center, deeper service content and trust pages */
.button-outline { margin-top: .7rem; border-color: var(--navy); background: transparent; color: var(--navy); }
.resource-hero, .article-hero { background: linear-gradient(135deg, var(--navy-deep), #174b80 60%, var(--sage-deep)); }
.author-inline { display: inline-flex; flex-direction: column; gap: .15rem; margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 3px solid var(--gold); background: rgba(255,255,255,.08); }
.author-inline strong { color: white; }
.author-inline span { color: #d5e2e5; font-size: .82rem; }
.resource-feature { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2rem; padding: 2.2rem; border: 1px solid var(--border); border-left: 6px solid var(--gold); border-radius: 22px; background: var(--sage-light); box-shadow: 0 12px 34px rgba(18,59,109,.08); }
.resource-feature h2 { max-width: 820px; font-size: clamp(1.9rem,3vw,3rem); }
.resource-feature p { max-width: 820px; color: var(--muted); }
.resource-category:nth-of-type(even) { background: var(--sage-light); }
.resource-category:nth-of-type(odd) { background: white; }
.resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.resource-card { display: flex; min-height: 330px; flex-direction: column; padding: 1.55rem; border: 1px solid var(--border); border-radius: 20px; background: white; box-shadow: 0 10px 30px rgba(18,59,109,.06); }
.resource-card h3 { margin-top: .7rem; font-size: 1.35rem; }
.resource-card h3 a:hover { color: var(--sage); }
.resource-card p { color: var(--muted); }
.resource-card .text-link { margin-top: auto; padding-top: 1rem; }
.resource-label { color: var(--sage); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.home-resources-section {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(97,126,79,.16);
  background:
    radial-gradient(circle at 92% 10%, rgba(214,164,54,.16), transparent 28%),
    linear-gradient(135deg, #eef4e8 0%, #f8faf4 52%, #fff8e8 100%);
}
.home-resources-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, var(--navy), var(--sage), var(--gold));
}
.home-resources-inner { position: relative; }
.home-resources-section .section-heading {
  max-width: 900px;
  padding-left: 1.4rem;
  border-left: 4px solid var(--gold);
}
.home-resources-section .section-heading h2 { color: var(--navy); }
.home-resources-section .section-heading > p:last-child { color: var(--muted); }
.home-resource-grid { gap: 1.45rem; }
.home-resource-grid .resource-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(18,59,109,.13);
  border-top: 6px solid var(--sage);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdf9 100%);
  box-shadow: 0 16px 34px rgba(18,59,109,.10);
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-resource-grid .resource-card:nth-child(2) {
  border-top-color: var(--gold);
  background: linear-gradient(180deg, #fffdf7 0%, #fff9e9 100%);
}
.home-resource-grid .resource-card:nth-child(3) {
  border-top-color: var(--navy);
  background: linear-gradient(180deg, #f9fbfe 0%, #f1f6fa 100%);
}
.home-resource-grid .resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(18,59,109,.15);
}
.home-resource-grid .resource-label {
  align-self: flex-start;
  padding: .4rem .65rem;
  border-radius: 999px;
  background: rgba(97,126,79,.12);
}
.home-resource-grid .resource-card:nth-child(2) .resource-label {
  color: #785714;
  background: rgba(214,164,54,.18);
}
.home-resource-grid .resource-card:nth-child(3) .resource-label {
  color: var(--navy);
  background: rgba(18,59,109,.10);
}
.home-resource-grid .resource-card h3 a { color: var(--navy); }
.home-resources-section .hero-actions { margin-top: 1.7rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; color: var(--muted); font-size: .76rem; }
.article-meta span + span::before { content: "•"; margin-right: 1rem; color: var(--gold); }
.article-meta-light { margin-top: 1.3rem; color: #d5e2e5; }
.article-header-inner { max-width: 1050px; margin-left: max(1rem,calc((100% - 1160px)/2)); }
.article-layout { grid-template-columns: minmax(0,1fr) 330px; }
.article-prose { max-width: 790px; }
.article-prose > section { scroll-margin-top: 130px; }
.lead-copy { font-size: 1.15rem; color: var(--ink) !important; }
.author-card { display: grid; grid-template-columns: 86px 1fr; gap: 1rem; align-items: center; margin-bottom: 2rem; padding: 1.2rem; border: 1px solid var(--border); border-radius: 18px; background: var(--cream); }
.author-card img { width: 86px; height: 86px; object-fit: cover; object-position: top; border-radius: 50%; border: 2px solid var(--gold); }
.author-card strong { display: block; margin-top: .2rem; color: var(--navy); font-family: Georgia,serif; font-size: 1.1rem; }
.author-card p { margin: .2rem 0 0; font-size: .78rem; }
.article-note { margin: 1.5rem 0 2.5rem; padding: 1rem 1.2rem; border-left: 4px solid var(--gold); background: #fff8e9; color: #59451f; }
.faq-list { display: grid; gap: .75rem; margin-top: 1rem; }
.faq-list details { border: 1px solid var(--border); border-radius: 14px; background: var(--cream); }
.faq-list summary { cursor: pointer; padding: 1rem 1.1rem; color: var(--navy); font-weight: 800; }
.faq-list details[open] summary { border-bottom: 1px solid var(--border); }
.faq-list details p { margin: 0; padding: 1rem 1.1rem; }
.source-box { margin-top: 2.5rem; padding: 1.4rem; border-radius: 18px; background: var(--sage-light); }
.source-box h2 { margin-top: 0; font-size: 1.55rem; }
.source-box a { color: var(--navy); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.article-disclaimer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
.review-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: center; }
.client-review { margin: 0; padding: 2.2rem; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.review-stars { color: var(--gold); letter-spacing: .18em; }
.client-review blockquote { margin: .8rem 0; color: var(--navy); font-family: Georgia,serif; font-size: clamp(1.5rem,2.5vw,2.2rem); line-height: 1.35; }
.client-review figcaption { color: var(--muted); font-size: .78rem; }
.legal-hero { padding-block: 4rem 3rem; }
.legal-prose { max-width: 860px; }
.legal-prose h2 { font-size: 1.7rem; }
.legal-prose a { color: var(--navy); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .76rem; }
.footer-legal a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resource-feature, .review-panel, .article-layout { grid-template-columns: 1fr; }
  .resource-feature .button { justify-self: start; }
  .article-prose { max-width: none; }
}

@media (max-width: 620px) {
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: auto; }
  .resource-feature { padding: 1.5rem; }
  .author-card { grid-template-columns: 66px 1fr; }
  .author-card img { width: 66px; height: 66px; }
  .article-meta span + span::before { display: none; }
  .article-meta { flex-direction: column; gap: .2rem; }
  .client-review { padding: 1.5rem; }
  .footer-bottom { flex-direction: column; }
}

/* Give the CRM form the full content width; supporting copy follows below. */
.consultation-page-grid { grid-template-columns: minmax(0, 1fr); }
.consultation-card { min-width: 0; padding: clamp(.5rem, 2vw, 2rem); }
.consultation-assurance { position: static; }
.thank-you-page { background: #fff; }
.thank-you-content { padding-block: clamp(2rem, 6vw, 4rem); text-align: center; }
.thank-you-content h1 { color: var(--navy); font-size: clamp(2.5rem, 6vw, 4rem); margin: 0 0 1rem; }
.thank-you-content h2 { font-family: "Montserrat", "Segoe UI", Arial, sans-serif; font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; margin: 0 0 2rem; }

/* Wider, single-row header with a non-shrinking phone button. */
.site-header .nav { width: min(1480px, calc(100% - 3rem)); flex-wrap: nowrap; padding-block: .85rem; gap: 1.5rem; }
.site-header .brand { flex: 0 0 auto; }
.site-header .nav-links { display: flex; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; justify-content: flex-end; gap: 1.25rem; margin-left: auto; }
.site-header .nav-cta { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; white-space: nowrap; min-height: 44px; line-height: 1.25; }
.site-header .menu { display: flex; flex-wrap: nowrap; min-width: 0; gap: 1.25rem; }
.site-header .menu li { flex: 0 0 auto; }
.site-header .menu a { white-space: nowrap; }
@media (max-width: 1200px) {
  .site-header .brand-tag { display: none; }
  .site-header .nav, .site-header .nav-links, .site-header .menu { gap: .8rem; }
}
@media (max-width: 1000px) {
  .site-header .nav { width: calc(100% - 2rem); }
  .site-header .brand > span { display: none; }
  .site-header .menu { overflow-x: auto; }
  .site-header .menu li:not(:first-child) { display: list-item; }
  .site-header .nav-links .menu a { display: inline-block; padding-block: .6rem; }
}
@media (max-width: 620px) {
  .site-header .brand-logo { width: 38px; height: 38px; }
  .site-header .nav, .site-header .nav-links { gap: .5rem; }
  .site-header .menu { gap: .85rem; }
  .site-header .menu a { font-size: .8rem; }
}
.schedule-content h1 { font-size: clamp(2rem, 4vw, 3rem); }
.schedule-content .schedule-important { max-width: 960px; margin: 0 auto 2rem; color: var(--ink); font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 600; line-height: 1.6; }
