/* ============================================================
   ERTaxes — Main Stylesheet
   Design: Professional, trust-forward, bilingual tax services
   Fonts: Montserrat (headings) + Open Sans (body)
   ============================================================ */

/* ── Google Fonts are loaded via <link> in HTML ── */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors */
  --color-navy:       #1B3A5C;
  --color-navy-dark:  #122843;
  --color-navy-light: #2a527f;
  --color-white:      #FFFFFF;
  --color-gold:       #C9A84C;
  --color-gold-dark:  #a8862e;
  --color-gold-light: #dfc06e;
  --color-charcoal:   #2D2D2D;
  --color-bg-gray:    #F5F7FA;
  --color-success:    #2E7D32;
  --color-border:     #DDE3EC;
  --color-text-muted: #6B7A8D;
  --color-shadow:     rgba(27, 58, 92, 0.10);
  --color-shadow-md:  rgba(27, 58, 92, 0.18);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  /* Font Sizes — fluid scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  1.875rem;
  --fs-3xl:  2.25rem;
  --fs-4xl:  2.75rem;
  --fs-5xl:  3.5rem;

  /* Font Weights */
  --fw-regular:    400;
  --fw-medium:     500;
  --fw-semibold:   600;
  --fw-bold:       700;
  --fw-extrabold:  800;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-sm:  800px;
  --radius-sm:     4px;
  --radius:        8px;
  --radius-lg:     12px;
  --radius-xl:     16px;
  --radius-full:   9999px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Shadows */
  --shadow-sm:  0 1px 3px var(--color-shadow);
  --shadow-md:  0 4px 12px var(--color-shadow);
  --shadow-lg:  0 8px 28px var(--color-shadow-md);
  --shadow-xl:  0 16px 48px var(--color-shadow-md);
}

/* ============================================================
   CSS RESET / NORMALIZE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: 1.65;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 72px; /* space for mobile sticky bar */
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 10000;
  padding: var(--space-3) var(--space-6);
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  border-radius: var(--radius);
  transition: top var(--transition-fast);
}

.skip-nav:focus {
  top: var(--space-4);
}

*:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--color-charcoal);
}

h1 { font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl)); }
h2 { font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl)); }
h3 { font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl)); }
h4 { font-size: clamp(var(--fs-md), 2vw, var(--fs-xl)); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
  margin-bottom: var(--space-4);
  max-width: 70ch;
}

p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--color-text-muted);
}

small, .text-sm  { font-size: var(--fs-sm); }
.text-xs         { font-size: var(--fs-xs); }
.text-lg         { font-size: var(--fs-lg); }
.text-xl         { font-size: var(--fs-xl); }

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-navy    { color: var(--color-navy); }
.text-gold    { color: var(--color-gold); }
.text-white   { color: var(--color-white); }
.text-muted   { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }

.font-heading { font-family: var(--font-heading); }
.font-bold    { font-weight: var(--fw-bold); }
.font-semibold{ font-weight: var(--fw-semibold); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--sm {
  max-width: var(--container-sm);
}

.section {
  padding-block: var(--space-20);
}

.section--sm {
  padding-block: var(--space-12);
}

.section--lg {
  padding-block: var(--space-24);
}

.section--gray {
  background-color: var(--color-bg-gray);
}

.section--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--color-white);
}

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flex helpers */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-wrap   { flex-wrap: wrap; }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.gap-8       { gap: var(--space-8); }

/* Spacing helpers */
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-3);
}

.section-header p {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-inline: auto;
}

.section--navy .section-header p {
  color: rgba(255,255,255,0.78);
}

/* Divider accent line */
.section-header::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  margin: var(--space-5) auto 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — Gold */
.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  box-shadow: 0 6px 20px rgba(201,168,76,0.40);
  color: var(--color-navy);
}

/* Secondary — Navy */
.btn-secondary {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn-secondary:hover {
  background-color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}

/* Outline white (on dark backgrounds) */
.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.65);
}

.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Outline navy (on light backgrounds) */
.btn-outline-navy {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline-navy:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: var(--fs-base);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: var(--fs-xs);
}

/* Button group */
.btn-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   SE HABLA ESPAÑOL BADGE
   ============================================================ */
.badge-espanol {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: rgba(201,168,76,0.15);
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-full);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section--navy .badge-espanol {
  background-color: rgba(201,168,76,0.20);
  color: var(--color-gold-light);
  border-color: var(--color-gold-light);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(27,58,92,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-8);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo__mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo__mark svg {
  display: block;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-lg);
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.site-logo__tagline {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.main-nav a {
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  border-radius: var(--radius);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-navy);
  background-color: var(--color-bg-gray);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-dropdown > a::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.nav-dropdown:hover > a::after,
.nav-dropdown.open > a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base),
    transform var(--transition-base);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-charcoal);
  border-radius: var(--radius);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu a:hover {
  background-color: var(--color-bg-gray);
  color: var(--color-navy);
}

/* Nav CTA */
.nav-cta {
  margin-left: var(--space-4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius);
  transition: background-color var(--transition-fast);
  flex-shrink: 0;
}

.hamburger:hover {
  background-color: var(--color-bg-gray);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 999;
  overflow-y: auto;
  padding: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--color-navy);
}

.mobile-nav-section {
  margin-bottom: var(--space-6);
}

.mobile-nav-section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-4) var(--space-2);
}

.mobile-nav a.mobile-nav-sub {
  padding-left: var(--space-8);
  font-size: var(--fs-base);
  color: var(--color-text-muted);
}

.mobile-nav-cta {
  padding: var(--space-6) 0;
}

.mobile-nav-cta .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   MOBILE STICKY BOTTOM BAR
   ============================================================ */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--color-navy);
  padding: var(--space-3) var(--space-4);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  box-shadow: 0 -4px 16px rgba(27,58,92,0.25);
}

.mobile-sticky-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  flex: 1;
}

.mobile-sticky-phone svg {
  flex-shrink: 0;
  color: var(--color-gold);
}

.mobile-sticky-bar .btn {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  padding: 0.6rem 1.1rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background-color: var(--color-navy);
  position: relative;
  overflow: hidden;
  padding-block: var(--space-24);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at -10% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Subtle geometric accent */
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  border: 60px solid rgba(201,168,76,0.07);
  border-radius: 50%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(var(--fs-2xl), 5vw, var(--fs-5xl));
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--color-gold);
}

.hero__subtitle {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-lg));
  color: rgba(255,255,255,0.82);
  margin-bottom: var(--space-10);
  max-width: 58ch;
  margin-inline: auto;
  line-height: 1.7;
}

.hero .btn-group {
  justify-content: center;
}

.hero__sub-page {
  padding-block: var(--space-16);
}

.hero__sub-page .hero__inner {
  max-width: 680px;
}

/* ============================================================
   HERO BACKGROUND IMAGE
   ============================================================ */
.hero__bg {
  position: absolute;
  inset: 0;
  display: block;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.18;
  display: block;
}

/* ============================================================
   SECTION PHOTOS
   ============================================================ */
.section-photo {
  display: block;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  margin: var(--space-8) 0;
}
.section-photo__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .section-photo__img { height: 380px; }
}

/* ============================================================
   ABOUT PHOTO
   ============================================================ */
.about-photo {
  display: block;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  margin-bottom: var(--space-8);
}
.about-photo__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--color-white);
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.trust-bar__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  white-space: nowrap;
}

.trust-bar__icon {
  width: 36px;
  height: 36px;
  background: var(--color-bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-navy);
}

.trust-bar__divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.35);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: var(--fs-lg);
  color: var(--color-navy);
  margin: 0;
}

.service-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin-top: auto;
  transition: gap var(--transition-base), color var(--transition-fast);
}

.service-card__link:hover {
  gap: var(--space-3);
  color: var(--color-gold-dark);
}

.service-card__link svg {
  transition: transform var(--transition-base);
}

.service-card__link:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   FEATURE / ALTERNATING SECTIONS
   ============================================================ */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.feature-section--reverse .feature-content {
  order: 2;
}

.feature-section--reverse .feature-visual {
  order: 1;
}

.feature-content h2 {
  margin-bottom: var(--space-4);
}

.feature-content p {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.feature-visual {
  background: var(--color-bg-gray);
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   CHECKLIST / FEATURE LIST
   ============================================================ */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-base);
  color: var(--color-charcoal);
}

.feature-list li::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list--white li {
  color: rgba(255,255,255,0.9);
}

.feature-list--white li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ============================================================
   WHY CHOOSE / BENEFIT CARDS (icon grid)
   ============================================================ */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-6);
}

.benefit-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.benefit-card__icon {
  font-size: 1.8rem;
  line-height: 1;
}

.benefit-card h3 {
  font-size: var(--fs-md);
  color: var(--color-navy);
  margin: 0;
}

.benefit-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================================
   CITY GRID
   ============================================================ */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.city-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-charcoal);
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.city-card:hover {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.city-card__icon {
  width: 40px;
  height: 40px;
  background: var(--color-bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background-color var(--transition-base);
}

.city-card:hover .city-card__icon {
  background: rgba(255,255,255,0.15);
}

.city-card h3 {
  font-size: var(--fs-base);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  margin: 0;
}

.city-card p {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin: 0;
  transition: color var(--transition-base);
}

.city-card:hover p {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.7;
  color: var(--color-gold);
  opacity: 0.4;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
}

.testimonial-card__text {
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--color-charcoal);
  line-height: 1.7;
  padding-top: var(--space-6);
  margin: 0;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: var(--color-gold);
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--color-navy);
  display: block;
}

.testimonial-card__location {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.stars {
  color: var(--color-gold);
  font-size: var(--fs-sm);
  letter-spacing: 2px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
  padding-block: var(--space-16);
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(201,168,76,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-banner p {
  color: rgba(255,255,255,0.78);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-8);
  max-width: 100%;
}

.cta-banner__phone {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
  font-weight: var(--fw-extrabold);
  color: var(--color-gold);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.cta-banner__phone:hover {
  color: var(--color-gold-light);
}

.cta-banner .badge-espanol {
  margin-bottom: var(--space-6);
}

.cta-banner .btn-group {
  justify-content: center;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: rgba(201,168,76,0.40);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-navy);
}

.faq-item.open .faq-question {
  color: var(--color-navy);
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--color-bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.faq-item.open .faq-icon {
  background: var(--color-gold);
  transform: rotate(45deg);
}

.faq-icon svg {
  transition: stroke var(--transition-base);
}

.faq-item.open .faq-icon svg {
  stroke: var(--color-navy);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding var(--transition-base);
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq-answer-inner p {
  max-width: 100%;
  margin: 0;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.contact-info-card__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-info-card h3 {
  font-size: var(--fs-base);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.contact-info-card p,
.contact-info-card a {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.contact-info-card a:hover {
  color: var(--color-navy);
}

/* Form */
.contact-form-wrapper {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-md);
}

.contact-form-wrapper h2 {
  margin-bottom: var(--space-2);
  color: var(--color-navy);
}

.contact-form-wrapper > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: #D32F2F;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-charcoal);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(27,58,92,0.12);
}

.form-control:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #D32F2F;
}

.form-control.error {
  border-color: #D32F2F;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A8D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-success,
.form-error {
  display: none;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-top: var(--space-4);
}

.form-success.show,
.form-error.show {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.form-success {
  background: #E8F5E9;
  color: var(--color-success);
  border: 1px solid #A5D6A7;
}

.form-error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

/* Honeypot */
.honeypot {
  display: none !important;
  visibility: hidden;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: var(--space-6);
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  right: calc(-1 * var(--space-6) / 2);
  width: var(--space-6);
  height: 2px;
  background: var(--color-border);
}

.process-step__number {
  width: 64px;
  height: 64px;
  background: var(--color-navy);
  color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-xl);
  margin: 0 auto var(--space-4);
}

.process-step h3 {
  font-size: var(--fs-base);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.process-step p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
  max-width: 100%;
}

/* ============================================================
   BILINGUAL BOXES
   ============================================================ */
.bilingual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.bilingual-box {
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.bilingual-box--en {
  background: var(--color-navy);
  color: var(--color-white);
}

.bilingual-box--es {
  background: var(--color-bg-gray);
  color: var(--color-charcoal);
  border: 1px solid var(--color-border);
}

.bilingual-box__lang {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.bilingual-box--en .bilingual-box__lang {
  background: rgba(201,168,76,0.25);
  color: var(--color-gold);
}

.bilingual-box--es .bilingual-box__lang {
  background: rgba(27,58,92,0.10);
  color: var(--color-navy);
}

.bilingual-box h3 {
  margin-bottom: var(--space-4);
}

.bilingual-box--en h3 { color: var(--color-white); }
.bilingual-box--es h3 { color: var(--color-navy); }

.bilingual-box p {
  font-size: var(--fs-base);
  line-height: 1.75;
  max-width: 100%;
}

.bilingual-box--en p { color: rgba(255,255,255,0.85); }

/* ============================================================
   ABOUT / CREDENTIALS
   ============================================================ */
.credential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-5);
}

.credential-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.credential-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.credential-card__icon {
  font-size: 2.5rem;
  line-height: 1;
}

.credential-card h3 {
  font-size: var(--fs-base);
  color: var(--color-navy);
  margin: 0;
}

/* ============================================================
   NEARBY CITIES (city page)
   ============================================================ */
.nearby-cities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.nearby-city-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
  text-decoration: none;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.nearby-city-link:hover {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

/* ============================================================
   MOBILE SERVICE SECTION
   ============================================================ */
.mobile-service-section {
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
}

.mobile-service-section::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 500px;
  height: 500px;
  border: 80px solid rgba(201,168,76,0.07);
  border-radius: 50%;
  pointer-events: none;
}

.mobile-service-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.mobile-service-section .spanish-line {
  font-style: italic;
  color: var(--color-gold-light);
  font-size: var(--fs-md);
  margin-bottom: var(--space-8);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-navy-dark);
  color: var(--color-white);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

/* Footer col 1 */
.footer-brand .site-logo__name {
  color: var(--color-white);
}

.footer-brand .site-logo__mark {
  box-shadow: 0 0 0 1px rgba(201,168,76,0.35);
  border-radius: 6px;
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
  max-width: 28ch;
}

.footer-service-area {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-4);
}

/* Footer columns */
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

/* Footer contact col */
.footer-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  text-decoration: none;
  margin-bottom: var(--space-5);
  transition: color var(--transition-fast);
}

.footer-phone:hover {
  color: var(--color-gold);
}

.footer-phone svg {
  color: var(--color-gold);
}

.footer-contact-note {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-5);
}

.footer-bottom {
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.45);
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
}

.footer-legal a {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  background: var(--color-navy);
  padding-block: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,168,76,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-inline: auto;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-hero__subtitle {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.80);
  margin: 0;
  max-width: 100%;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.breadcrumb a,
.breadcrumb span {
  font-size: var(--fs-xs);
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--color-gold);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-gold-light);
}

.breadcrumb__sep {
  color: rgba(255,255,255,0.35);
  font-size: var(--fs-xs);
}

.breadcrumb span:last-child {
  color: rgba(255,255,255,0.60);
}

/* ============================================================
   INTRO / ABOUT TEXT SECTION
   ============================================================ */
.intro-section {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.intro-section p {
  font-size: var(--fs-lg);
  line-height: 1.75;
  color: var(--color-charcoal);
  max-width: 100%;
}

/* ============================================================
   PRIVACY / TEXT CONTENT PAGES
   ============================================================ */
.prose {
  max-width: 760px;
  margin-inline: auto;
}

.prose h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-navy);
  font-size: var(--fs-xl);
}

.prose h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--color-navy);
  font-size: var(--fs-lg);
}

.prose p {
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--color-charcoal);
  margin-bottom: var(--space-5);
  max-width: 100%;
}

.prose ul {
  list-style: disc;
  padding-left: var(--space-8);
  margin-bottom: var(--space-5);
}

.prose ul li {
  font-size: var(--fs-base);
  color: var(--color-charcoal);
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--space-24);
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
  opacity: 0.08;
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.04em;
}

.error-page h1 {
  font-size: var(--fs-3xl);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.error-page p {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet — 768px */
@media (max-width: 768px) {
  /* Layout */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section { padding-block: var(--space-16); }
  .section--lg { padding-block: var(--space-16); }

  /* Header */
  .main-nav,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile sticky bar */
  .mobile-sticky-bar {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-block: var(--space-16);
  }

  .hero::after {
    display: none;
  }

  /* Trust bar */
  .trust-bar__items {
    gap: var(--space-5);
  }

  .trust-bar__divider {
    display: none;
  }

  /* Feature section */
  .feature-section {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .feature-section--reverse .feature-content,
  .feature-section--reverse .feature-visual {
    order: unset;
  }

  /* Contact layout */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .contact-form-wrapper {
    padding: var(--space-6);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: span 2;
  }

  /* Bilingual grid */
  .bilingual-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile — 480px */
@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-4);
  }

  .trust-bar__items {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .hero .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .btn-group .btn {
    text-align: center;
    justify-content: center;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Process steps */
  .process-step:not(:last-child)::after {
    display: none;
  }

  /* City grid */
  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop — 1024px+ */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Benefit grids: force 3 columns so 6 cards = 2×3, never 4+2 */
  .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 4-card service grids: force 2×2 instead of 3+1 orphan */
  .services-grid--2col {
    grid-template-columns: repeat(2, 1fr);
  }

  /* City grids with 9 items: force 3-col → 3×3 */
  .city-grid--3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Language Toggle ─────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(27,58,92,0.08);
  border: 1px solid rgba(27,58,92,0.2);
  border-radius: 20px;
  padding: 2px;
  gap: 0;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(27,58,92,0.55);
  padding: 3px 10px;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  line-height: 1;
}
.lang-btn.active {
  background: var(--color-navy, #1B3A5C);
  color: var(--color-gold, #C9A84C);
}
.lang-btn:hover:not(.active) {
  color: var(--color-navy, #1B3A5C);
}
/* Hide elements for inactive language */
[data-lang-content="es"] { display: none; }

/* ── Form Success/Error ──────────────────────────────────── */
.form-success {
  text-align: center;
  padding: 2rem;
  background: #f0faf0;
  border: 1px solid #2E7D32;
  border-radius: 8px;
}
.form-success h3 { color: #2E7D32; }
.form-error {
  color: #c62828;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ── Layout Utilities ───────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Max-width containers used inline */
.mw-480 { max-width: 480px; }
.mw-560 { max-width: 560px; }
.mw-640 { max-width: 640px; }
.mw-720 { max-width: 720px; }
.mw-760 { max-width: 760px; }
.mw-800 { max-width: 800px; }
.mw-820 { max-width: 820px; }

/* Z-index */
.z-1 { position: relative; z-index: 1; }

/* Flex utilities */
.justify-center { justify-content: center; }

/* Margin utilities */
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

/* Color utilities */
.text-muted-white { color: rgba(255,255,255,0.55); }
.text-muted { color: rgba(0,0,0,0.55); }

/* Component utility classes for recurring inline style patterns */
.tagline-pill {
  font-size: var(--fs-xs);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 4px 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-navy);
}

.prose-lg {
  font-size: var(--fs-lg);
  line-height: 1.75;
  color: var(--color-charcoal);
}

.dark-card {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(255,255,255,0.12);
}

.blockquote-featured {
  font-family: var(--font-heading);
  font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl));
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
  line-height: 1.5;
  margin: var(--space-8) 0;
  padding: var(--space-8);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--color-gold);
  text-align: left;
}

.italic-note {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-4);
}

.credential-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
  text-align: center;
}

.gray-box {
  background: var(--color-bg-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.why-box {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.why-box__heading {
  color: var(--color-navy);
  margin-bottom: var(--space-5);
}

.grid-2col-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.grid-2col-wide--start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.contact-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-row__icon-navy {
  width: 40px;
  height: 40px;
  background: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-sm);
}

.contact-row__icon-gold {
  width: 40px;
  height: 40px;
  background: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-xs);
}

.contact-row__icon-success {
  width: 40px;
  height: 40px;
  background: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row__label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 4px;
}

.contact-row__text-sm {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.contact-row__detail {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.85);
  padding-left: var(--space-4);
}

.contact-row__detail-muted {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.emoji-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-3);
}

.gold-label {
  color: var(--color-gold);
  font-size: var(--fs-base);
  margin-bottom: var(--space-2);
}

.navy-label {
  color: var(--color-navy);
  font-size: var(--fs-base);
  margin-bottom: var(--space-4);
}

.navy-heading {
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.navy-heading--mb3 {
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.plain-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.text-navy-link {
  font-size: var(--fs-sm);
  color: var(--color-navy);
  text-decoration: underline;
}

.footer-tagline-muted {
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   INLINE STYLE REPLACEMENTS
   ============================================================ */

/* about.html — photo fallback card */
.about-photo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--space-4);
  padding: var(--space-8);
}

.about-logo-circle {
  width: 80px;
  height: 80px;
  background: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-initials {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-gold);
}

.about-logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
  margin: 0;
}

/* about.html — community section paragraph */
.community-text {
  color: rgba(255,255,255,0.80);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-8);
  max-width: 100%;
}

/* contact.html — pill wrap */
.pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* contact.html — full-width button */
.btn-full {
  width: 100%;
}

/* privacy-policy.html — navy underline link */
.link-navy-underline {
  color: var(--color-navy);
  text-decoration: underline;
}

/* privacy-policy.html — navy link (no underline) */
.link-navy {
  color: var(--color-navy);
}

/* 404.html — stacked link list */
.link-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* services/amended-tax-returns.html — info box */
.info-box-gray {
  background: var(--color-bg-gray);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.stack-gap-5 {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* services/bookkeeping.html + business-tax-preparation.html — 2-col grid override */
.benefit-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* services/tax-planning.html — planning callout box */
.planning-callout {
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  margin-bottom: var(--space-12);
  position: relative;
  overflow: hidden;
}

.planning-callout__deco {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border: 50px solid rgba(201,168,76,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.planning-callout__heading {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.planning-callout__text {
  color: rgba(255,255,255,0.80);
  font-size: var(--fs-lg);
  line-height: 1.75;
  max-width: 60ch;
  margin: 0 auto var(--space-6);
}

/* tax-planning.html — comparison cards */
.compare-card--prep {
  background: var(--color-bg-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border-left: 4px solid var(--color-border);
}

.compare-card--plan {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border-left: 4px solid var(--color-gold);
}

/* tax-planning.html — start planning box */
.start-planning-box {
  background: var(--color-bg-gray);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.start-planning-box__heading {
  color: var(--color-navy);
  margin-bottom: var(--space-6);
}

.btn-group--column {
  flex-direction: column;
}

/* Language toggle for select elements */
.lang-select--es {
  display: none;
}

/* ── Tax Estimator ─────────────────────────────────────────────────────── */

.hero--sm {
  padding-block: var(--space-16);
}

.hero--sm .hero__sub {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.82);
  max-width: 54ch;
  margin-inline: auto;
}

/* Disclaimer banner */
.estimator-disclaimer {
  background: #FFF8E1;
  padding: var(--space-4) 0;
}

.estimator-disclaimer__inner {
  padding: var(--space-3) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  justify-content: center;
}

.estimator-disclaimer__inner p {
  margin: 0;
  line-height: 1.55;
}

.estimator-disclaimer strong {
  color: var(--color-navy);
}

.estimator-disclaimer a {
  color: var(--color-navy);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Wrapper */
.estimator-wrapper {
  max-width: 720px;
  margin-inline: auto;
}

/* Progress bar */
.estimator-progress-wrap {
  margin-bottom: var(--space-8);
}

.estimator-progress {
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.estimator-progress__fill {
  height: 100%;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.estimator-step-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
}

/* Panels */
.estimator-panel {
  display: none;
}

.estimator-panel.active {
  display: block;
  animation: estimatorFadeIn 0.3s ease;
}

@keyframes estimatorFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card */
.estimator-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.estimator-card h2 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
}

.estimator-card h3 {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
}

.step-subtitle {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-6);
}

/* Fieldset reset */
.estimator-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}

/* Filing status grid */
.filing-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.filing-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
  text-align: center;
  display: block;
  user-select: none;
}

.filing-card:hover {
  border-color: var(--color-navy-light);
  box-shadow: var(--shadow-sm);
}

.filing-card.selected {
  border-color: var(--color-gold);
  background: #FFFDF5;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
}

.filing-card__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
  line-height: 1;
}

.filing-card__label {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--color-navy);
  font-family: var(--font-heading);
  line-height: 1.3;
}

/* SR-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Form fields */
.form-field {
  margin-bottom: var(--space-5);
}

.form-field-label {
  display: block;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
}

.form-field-label--check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-weight: var(--fw-regular);
  font-family: var(--font-body);
  color: var(--color-charcoal);
}

.form-field-label--check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-navy);
  cursor: pointer;
}

.form-field-label input[type="checkbox"] {
  accent-color: var(--color-navy);
  width: 16px;
  height: 16px;
  margin-right: var(--space-2);
  vertical-align: middle;
  cursor: pointer;
}

.field-hint {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  line-height: 1.5;
}

.field-hint-inline {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: var(--fw-regular);
}

.field-badge {
  display: inline-block;
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  padding: 0 5px;
  color: var(--color-text-muted);
  vertical-align: middle;
  font-family: var(--font-heading);
}

.required-mark {
  color: #C62828;
  margin-left: 2px;
}

.field-error {
  font-size: var(--fs-xs);
  color: #C62828;
  margin-top: var(--space-2);
  font-weight: var(--fw-semibold);
  min-height: 1.2em;
}

/* Inputs */
.input-wrap {
  position: relative;
}

.input-wrap::before {
  content: '$';
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-weight: var(--fw-semibold);
  pointer-events: none;
  font-size: var(--fs-base);
  z-index: 1;
}

.input-prefix {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-charcoal);
  background: var(--color-white);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.input-prefix:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(27,58,92,0.1);
}

.input-short {
  width: 120px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-charcoal);
  background: var(--color-white);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.input-short:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(27,58,92,0.1);
}

.form-field--highlighted {
  background: var(--color-bg-gray);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.form-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

/* Deduction toggle */
.deduction-toggle {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.deduction-btn {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  background: var(--color-white);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}

.deduction-btn:hover {
  border-color: var(--color-navy-light);
  color: var(--color-navy);
}

.deduction-btn.active {
  border-color: var(--color-gold);
  background: #FFFDF5;
  color: var(--color-navy);
}

/* Standard deduction display */
.standard-deduction-display {
  background: var(--color-bg-gray);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.standard-deduction-display span:first-child {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.standard-deduction-display span:last-child {
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
  font-size: var(--fs-lg);
  font-family: var(--font-heading);
}

/* Itemize fields */
.itemize-fields {
  display: none;
}

.itemize-fields.visible {
  display: block;
}

/* SE fields */
.se-fields {
  display: none;
}

.se-fields.visible {
  display: block;
}

.se-fields__heading {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.estimator-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

/* Credit info box */
.credit-info-box {
  background: #F0F7FF;
  border: 1px solid #BDD7F0;
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--fs-sm);
}

.credit-info-box strong {
  color: var(--color-navy);
  font-size: var(--fs-md);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.credit-info-box__title {
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
  font-family: var(--font-heading);
  margin-bottom: 2px;
}

.credit-info-box__note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.credit-info-box--eitc {
  background: #F0FFF4;
  border-color: #A8D8B9;
  margin-top: var(--space-3);
}

/* Navigation buttons */
.estimator-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-6);
}

.btn-estimator-back {
  background: none;
  border: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}

.btn-estimator-back:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn-estimator-next {
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  padding: var(--space-3) var(--space-10);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.btn-estimator-next:hover {
  background: var(--color-navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── Results ── */
.results-refund {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.results-refund--positive {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  border: 2px solid #2E7D32;
}

.results-refund--owed {
  background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
  border: 2px solid #C62828;
}

.results-refund__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
}

.results-refund--positive .results-refund__label { color: #2E7D32; }
.results-refund--owed .results-refund__label { color: #C62828; }

.results-refund__amount {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.results-refund--positive .results-refund__amount { color: #2E7D32; }
.results-refund--owed .results-refund__amount { color: #C62828; }

.results-refund__sub {
  font-size: var(--fs-xs);
  opacity: 0.75;
  margin-top: var(--space-1);
}

.results-refund--positive .results-refund__sub { color: #1B5E20; }
.results-refund--owed .results-refund__sub { color: #7F0000; }

/* Rate cards */
.results-rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.rate-card {
  background: var(--color-bg-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  border: 1px solid var(--color-border);
}

.rate-card__value {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.rate-card__label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Breakdown table */
.results-breakdown {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
  font-size: var(--fs-sm);
}

.results-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.results-row:last-child {
  border-bottom: none;
}

.results-row--header {
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.results-row:nth-child(even):not(.results-row--header):not(.results-row--total):not(.results-row--subtotal) {
  background: var(--color-bg-gray);
}

.results-row--subtotal {
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  background: rgba(27,58,92,0.04) !important;
  font-family: var(--font-heading);
  border-top: 2px solid var(--color-border);
}

.results-row--total {
  background: var(--color-navy) !important;
  color: var(--color-white);
  font-weight: var(--fw-bold);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
}

/* Results CTA */
.results-cta {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.results-cta::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border: 40px solid rgba(201,168,76,0.1);
  border-radius: 50%;
  pointer-events: none;
}

.results-cta__heading {
  color: var(--color-white);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
}

.results-cta p {
  color: rgba(255,255,255,0.78);
  margin-bottom: var(--space-5);
  font-size: var(--fs-sm);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.btn-gold {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius);
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.btn-gold:hover {
  background: var(--color-gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-recalculate {
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.75);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  margin-top: var(--space-4);
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.btn-recalculate:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Responsive */
@media (max-width: 640px) {
  .estimator-card {
    padding: var(--space-5) var(--space-4);
  }

  .filing-status-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .filing-card {
    padding: var(--space-3) var(--space-2);
  }

  .filing-card__icon {
    font-size: 1.4rem;
  }

  .filing-card__label {
    font-size: 0.7rem;
  }

  .form-fields-row {
    grid-template-columns: 1fr;
  }

  .results-refund__amount {
    font-size: 2rem;
  }

  .results-rates {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .rate-card__value {
    font-size: 1.5rem;
  }

  .deduction-toggle {
    flex-direction: column;
  }

  .results-row {
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-xs);
  }

  .results-cta {
    padding: var(--space-6) var(--space-4);
  }

  .btn-estimator-next {
    padding: var(--space-3) var(--space-6);
  }
}

@media (max-width: 400px) {
  .filing-status-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Tax Estimator Utilities ──────────────────────────── */
.disclaimer-icon { display: inline; vertical-align: middle; margin-right: 6px; flex-shrink: 0; }
.field-hint--spaced { margin-bottom: 1.5rem; }
.field-hint--compact { margin-bottom: 0; }

/* ── Hero Estimator Hint Link ─────────────────────────── */
.hero__estimator-hint {
  display: inline-block;
  margin-top: 0.875rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.hero__estimator-hint:hover {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}

/* ── Estimator Hook Banner ─────────────────────────────── */
.estimator-hook {
  background: #1e4a6e;
  padding: 2.5rem 0;
}

.estimator-hook__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.estimator-hook__icon {
  color: var(--color-gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.estimator-hook__content {
  flex: 1;
  min-width: 220px;
  color: #fff;
}

.estimator-hook__content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: #fff;
}

.estimator-hook__content p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.9375rem;
}

@media (max-width: 640px) {
  .estimator-hook__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ── Nav Estimator Link ────────────────────────────────── */
.dropdown-menu .nav-estimator {
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 0.25rem;
  padding-top: 0.625rem;
  color: #b5862d;
  font-weight: 600;
}

.dropdown-menu .nav-estimator::before {
  content: '\2605 ';
}

.mobile-nav .nav-estimator {
  color: #b5862d;
  font-weight: 600;
}

/* ── Footer Estimator Link ─────────────────────────────── */
.footer-estimator-link {
  color: var(--color-gold) !important;
  font-weight: 600;
}
