/* Homepage refinements shared by the English and Spanish pages. */
@media (min-width: 1300px) {
  main .container { width: min(1280px, calc(100% - 88px)); }
}

main .section h2 { font-size: clamp(39px, 4.2vw, 54px); }
.step p { font-size: 14px; }
.benefit p { font-size: 14px; }
.faq details p { font-size: 15px; }
@media (max-width: 1150px) {
  .benefit p { font-size: 13px; }
}

.hero-image-shell img { height: auto; }

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px 22px;
  max-width: 600px;
}
.hero-cta { display: grid; gap: 12px; align-content: start; }
.hero-cta .btn { white-space: normal; text-align: center; }
.hero .quote-next {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  text-wrap: balance;
}
.quote-next strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}
/* Teal + ↗ = goes to the secure tax portal; navy = stays on this site. */
.btn-portal { color: #fff; background: #087f8d; box-shadow: 0 10px 24px rgba(0,101,113,.16); }
.btn-portal:hover { background: #066b77; box-shadow: 0 16px 30px rgba(0,101,113,.2); }
@media (max-width: 600px) {
  .hero-actions { grid-template-columns: 1fr; gap: 22px; }
  .hero .quote-next { max-width: 31ch; justify-self: center; text-align: center; }
}

/* Match the quote page background. */
.pricing { background: #f8fbfc; }
.pricing h2 { color: var(--deep); }
.pricing .eyebrow { color: var(--teal); }
.about-copy p, .pricing p { color: #526980; }
.pricing-panel {
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgb(9 37 72 / 6%);
}
.pricing-panel h3 { margin: 0 0 14px; }
.pricing-panel .starting-fee { margin: 0 0 12px; }
.pricing-panel .included-returns { margin: 0 0 16px; font-weight: 600; }
.starting-fee strong {
  display: block;
  color: var(--navy);
  font-size: clamp(42px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.12;
}

/* Use the existing lettered label style at a readable section-heading size. */
main section:not(.hero) .eyebrow { font-size: clamp(15px, 1.3vw, 17px); }
#main-nav a[aria-current="location"] { color: var(--teal); }

/* Center a selected section inside the space below the sticky header. Long
   sections keep their natural height so all their content can be scrolled. */
main > section[data-selected] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding-block: clamp(24px, 4vh, 56px);
}
main > section[tabindex="-1"]:focus { outline: none; }
@media (max-width: 960px) {
  #about[data-selected] .about-copy { order: -1; }
}

@media (max-width: 600px) {
  header .container.nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto 40px;
    gap: 0 5px;
    width: calc(100% - 24px);
    height: auto;
    min-height: 64px;
    padding-block: 8px;
  }
  header .container.nav > .brand { grid-area: 1 / 1; }
  header .container.nav > .brand img { width: min(145px, 100%); max-width: 100%; }
  header .container.nav > .sra-sign-in {
    grid-area: 1 / 2;
    margin: 0;
    padding-inline: 8px;
    font-size: 12px;
  }
  header .container.nav > .sra-language { grid-area: 1 / 3; margin: 0; }
  header .sra-language .language-option { min-width: 34px; min-height: 44px; }
  header .container.nav > .menu-toggle {
    grid-area: 1 / 4;
    min-height: 44px;
    padding: 0;
  }
  #main-nav {
    top: 100%;
    max-height: calc(100dvh - var(--header-height, 64px));
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 0;
    padding-block: 8px 16px;
  }
  #main-nav > a { display: flex; align-items: center; min-height: 44px; }
  .pricing-grid { gap: 24px; }

  .hero-grid { gap: 32px; }
  .hero-image-shell {
    width: 100%;
    margin: 0;
    transform: none;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgb(9 37 72 / 8%);
  }
  .hero-image-shell::after { content: none; }
  .hero-image-shell img { aspect-ratio: auto; height: auto; border-radius: 0; }
  .hero-chip {
    position: static;
    transform: none;
    gap: 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 14px 16px;
  }
  .hero-chip .chip-icon { width: 32px; height: 32px; flex-shrink: 0; font-size: 17px; }
}

@media (max-width: 374px) {
  header .container.nav { row-gap: 4px; }
  header .container.nav > .brand { grid-area: 1 / 1 / 2 / 4; }
  header .container.nav > .sra-sign-in { grid-area: 2 / 1 / 3 / 3; justify-self: start; }
  header .container.nav > .sra-language { grid-area: 2 / 3 / 3 / 5; justify-self: end; }
}

/* Pricing cards, security, contact (Dec 2026). */
.pricing .section-heading h2 { color: var(--deep); }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; align-items: stretch; }
.price-cards .pricing-panel { display: flex; flex-direction: column; padding: 34px 32px; }
.price-cards .pricing-panel .btn { margin-top: auto; white-space: normal; }
.price-note { text-align: center; margin: 26px 0 0; font-size: 14px; }
.service-link { color: var(--teal); font-weight: 700; white-space: nowrap; }
.security { background: #fff; border-top: 1px solid var(--line); }
.commitments { margin: 34px auto 0; max-width: 900px; background: #edf8f8; border: 1px solid #cae8e9; border-radius: 16px; padding: 30px 34px; }
.commitments h3 { margin: 0 0 14px; font-size: 19px; }
.commitments ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: #3f566b; font-size: 15px; }
.commitments strong { color: var(--navy); }
.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; background: #f8fbfc; border: 1px solid #e1ebee; border-radius: 14px; padding: 24px; color: var(--muted); font-size: 14px; }
a.contact-card:hover { border-color: var(--teal); background: #fff; }
.contact-card strong { color: var(--navy); font-size: 17px; overflow-wrap: anywhere; }
.contact-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.contact .note a { color: var(--teal); font-weight: 700; }
.footer-contact { display: grid; gap: 2px; margin-top: 14px; }
.footer-grid .footer-contact a { margin: 0; color: #d7e6ef; }
@media (max-width: 1100px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .price-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } .commitments { padding: 24px 22px; } }
.pricing .section-heading p, .price-note { max-width: none; }
.pricing .price-note { max-width: none; text-align: center; }
.starting-fee strong.custom-fee { font-size: clamp(30px, 2.6vw, 38px); }

/* Phones (Dec 2026 v3): logo · EN ES · sign-in · menu, evenly spaced. */
@media (max-width: 600px) {
  header .container.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }
  header .container.nav > .brand { order: 1; flex: 0 0 auto; }
  header .container.nav > .brand img { width: 136px; }
  header .container.nav > .sra-language { order: 2; margin: 0; }
  header .container.nav > .sra-sign-in {
    order: 3;
    margin: 0;
    white-space: normal;
    max-width: 7.4em;
    min-height: 40px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    border-radius: 9px;
  }
  header .container.nav > .menu-toggle { order: 4; margin: 0; width: 40px; }
}
@media (max-width: 374px) {
  header .container.nav > .brand img { width: 116px; }
  header .sra-language .language-option { min-width: 30px; padding: 0 3px; }
}
.about-card img { width: 100%; max-width: 340px; margin-inline: auto; }

/* Hero: label above each button, short description below, both in the button's colour. */
.hero-cta .cta-label { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center; }
.hero .hero-cta .quote-next { text-align: center; text-wrap: balance; }
.hero .hero-cta .quote-next { font-size: 14.5px; }
.cta-new .cta-label, .cta-new .quote-next { color: var(--navy); }
.cta-portal .cta-label, .cta-portal .quote-next { color: #087f8d; }
.hero-cta { gap: 10px; }
@media (max-width: 600px) {
  .hero-cta .cta-label { text-align: center; }
}

/* Larger, easier-to-read cards: How it works, Our services, Security & trust. */
.step h3, .service h3 { font-size: 20px; }
.step p, .service p { font-size: 16px; line-height: 1.7; }
.step { padding: 36px 28px 34px; }
.step-icon { font-size: 30px; }
.commitments ul { font-size: 16px; }
.commitments h3 { font-size: 20px; }
@media (max-width: 600px) {
  .step h3, .service h3 { font-size: 19px; }
  .step p, .service p { font-size: 15.5px; }
}

/* About checklist. */
.checks { gap: 16px; }
.checks div { font-size: 16.5px; color: #2f4964; }
.checks span { font-size: 22px; }

/* Pricing: one call to action instead of published prices. */
.quote-cta { max-width: 760px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 48px 44px 40px; box-shadow: 0 12px 32px rgb(9 37 72 / 6%); }
.quote-cta h2 { margin: 11px 0 16px; }
.quote-cta > p { font-size: 17px; margin: 0 auto; max-width: 560px; }
.quote-cta-points { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 15px; font-weight: 600; color: #2f4964; }
.quote-cta-points span { color: var(--teal); font-weight: 800; }
.quote-cta .btn { min-width: 260px; }
.quote-cta .quote-cta-alt { margin: 22px 0 0; font-size: 14px; }
.quote-cta-alt a, .faq details p a { color: var(--teal); font-weight: 700; }
@media (max-width: 600px) {
  .quote-cta { padding: 34px 22px 30px; }
  .quote-cta-points { flex-direction: column; align-items: center; gap: 8px; }
  .quote-cta .btn { min-width: 0; width: 100%; }
}
/* Sentences wrap as a whole when they fit, so lines end at a period where possible. */
.s{display:inline-block;text-wrap:pretty}.nobr{white-space:nowrap}
.step p, .service p, .section-heading p, .about-copy p { text-wrap: pretty; }
main .section h2, .heading h1 { text-wrap: balance; }

/* Services: compact cards so the heading and all six cards fit on one screen. */
.service .symbol { width: 44px; height: 44px; border-radius: 11px; font-size: 21px; margin-bottom: 14px; }
.service { padding: 26px 28px 24px; }
.service h3 { margin: 0 0 8px; }
.service p { line-height: 1.6; }
.services .section-heading { margin-bottom: 34px; }
.services .section-heading h2 { margin: 8px 0 12px; }
.services .service-grid { gap: 20px; }
@media (min-width: 961px) and (max-height: 860px) {
  .services .section-heading h2 { font-size: clamp(34px, 3.4vw, 44px); }
  .services .section-heading { margin-bottom: 26px; }
}
@media (min-width: 961px) and (max-height: 720px) {
  .services .section-heading { margin-bottom: 18px; }
  .services .section-heading h2 { font-size: 32px; margin: 6px 0 8px; }
  .services .section-heading p { font-size: 15px; }
  .services .service-grid { gap: 14px; }
  .services .service { padding: 18px 22px 16px; }
  .services .service .symbol { width: 36px; height: 36px; font-size: 18px; margin-bottom: 10px; }
  .services .service h3 { font-size: 18px; margin-bottom: 6px; }
  .services .service p { font-size: 15px; line-height: 1.5; }
}

/* Home view: the hero fills the first screen below the menu with its content
   centered; the icon strip under it shows only after scrolling. Type and
   spacing scale with screen height so the whole hero fits shorter laptop
   screens (Dec 2026). */
@media (min-width: 961px) {
  main > .hero,
  main > .hero[data-selected] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(calc(100vh - var(--header-height, 90px)), 1100px);
    min-height: min(calc(100svh - var(--header-height, 90px)), 1100px);
    padding-block: clamp(20px, 3.5vh, 44px);
  }
  .hero h1 {
    font-size: clamp(44px, min(5.4vw, 8.4vh), 75px);
    margin: clamp(10px, 1.8vh, 22px) 0 clamp(12px, 2vh, 23px);
  }
  .hero p { margin-bottom: clamp(16px, 2.6vh, 27px); }
  .hero-facts { margin-top: clamp(16px, 3.4vh, 42px); }
  /* Spanish headline sized to stay on three lines, like the English one. */
  html[lang="es"] .hero h1 { font-size: clamp(44px, min(4.4vw, 7.6vh), 60px); }
  html[lang="es"] .hero h1 { text-wrap: balance; }
}
@media (min-width: 961px) and (max-height: 820px) {
  .hero p { line-height: 1.65; }
  .hero-image-shell { max-width: min(100%, calc((100vh - var(--header-height, 90px)) * 0.95)); margin-left: auto; }
}

/* "Tax filing made" / "simple." on computers; phones wrap naturally. */
@media (max-width: 960px) { .hero-br { display: none; } }
