/* Homepage SEO/UX — tool-first layout */
.page-home .home-hero {
  /* Keep hero clear of fixed header */
  padding-top: calc(var(--header-h) + clamp(1.25rem, 3vw, 2rem));
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .hero__grid {
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.page-home .hero__calc {
  order: -1;
}

@media (min-width: 900px) {
  .page-home .hero__calc {
    order: unset;
  }
}

.page-home .hero__calc .calc-card {
  box-shadow: 0 12px 40px rgba(11, 61, 145, 0.12);
}

.page-home .hero__calc .btn-calc-submit {
  min-height: 3rem;
  font-size: 1.05rem;
  padding-inline: 1.5rem;
}

.page-home .hero__calc .calc-form input[type="number"] {
  font-size: 1.125rem;
  min-height: 3rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.page-home .hero__calc .input-wrap {
  width: 100%;
  max-width: 100%;
}

/* One full-width result card per row — avoids overflow on large amounts */
.page-home .hero__calc .result-grid {
  grid-template-columns: 1fr;
}

.page-home .hero__calc .result-item {
  min-width: 0;
}

.page-home .hero__calc .result-value {
  font-size: 1rem;
  line-height: 1.25;
}

.page-home .hero__calc .calc-results__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.page-home .hero__calc .calc-results__actions .btn {
  width: 100%;
}

.page-home .hero__content .hero__cta .btn-primary {
  min-height: 3rem;
  font-size: 1.05rem;
}

/* Very narrow phones (< ~400px) */
@media (max-width: 400px) {
  .page-home .container {
    width: min(1200px, calc(100vw - 1rem));
  }

  .page-home .hero__shell,
  .page-home .hero__grid,
  .page-home .hero__content,
  .page-home .hero__calc {
    min-width: 0;
    max-width: 100%;
  }

  .page-home .hero__calc .calc-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-home .hero__calc .calc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .hero__calc .calc-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .page-home .hero__calc .btn-calc-submit {
    padding-inline: 1rem;
    font-size: 1rem;
  }

  .page-home .hero__content h1 {
    font-size: 1.5rem;
    overflow-wrap: anywhere;
  }

  .page-home .hero__lead {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .page-home .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .hero__cta .btn {
    width: 100%;
  }
}

.page-home .hero-coverage__link[href="#international"],
.page-home .hero-coverage__link[href="#states"] {
  border-color: var(--color-primary, #0b3d91);
}

/* International hub — no section chrome border; dropdown keeps its own */
.page-home .home-intl-hub.section--alt {
  border-block: none;
}

.page-home .home-intl-hub .section-header {
  margin-bottom: 2rem;
}

/* International collapse — primary blue dropdown trigger */
.home-intl-hub__panel {
  border: 2px solid #0a3580;
  border-radius: 12px;
  background: var(--surface-elevated, #fff);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(11, 61, 145, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-intl-hub__panel:hover,
.home-intl-hub__panel:focus-within {
  border-color: #164a9e;
  box-shadow: 0 10px 32px rgba(11, 61, 145, 0.24);
}

.home-intl-hub__panel[open] {
  border-color: #092f6e;
  box-shadow: 0 10px 36px rgba(9, 47, 110, 0.28);
}

.home-intl-hub__summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 1.1rem 4rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0b3d91 0%, #1a56b8 50%, #2563eb 100%);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.home-intl-hub__summary::-webkit-details-marker {
  display: none;
}

.home-intl-hub__hint {
  display: block;
  flex: 1;
  width: 100%;
  max-width: 100%;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.home-intl-hub__chevron {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.home-intl-hub__chevron::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -62%) rotate(45deg);
  transition: transform 0.2s ease;
}

.home-intl-hub__panel:hover .home-intl-hub__summary,
.home-intl-hub__panel:focus-within .home-intl-hub__summary {
  background: linear-gradient(135deg, #0d4289 0%, #2068c4 50%, #3b82f6 100%);
}

.home-intl-hub__panel:hover .home-intl-hub__chevron,
.home-intl-hub__panel:focus-within .home-intl-hub__chevron {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
}

.home-intl-hub__panel[open] .home-intl-hub__summary {
  background: linear-gradient(135deg, #092f6e 0%, #164a9e 55%, #1d5bb8 100%);
}

.home-intl-hub__panel[open] .home-intl-hub__chevron::after {
  transform: translate(-50%, -42%) rotate(-135deg);
}

@media (max-width: 640px) {
  .home-intl-hub__summary {
    min-height: 3.25rem;
    padding: 1rem 3.25rem;
  }

  .home-intl-hub__hint {
    font-size: 0.98rem;
  }

  .home-intl-hub__chevron {
    right: 1rem;
    width: 2.15rem;
    height: 2.15rem;
  }
}

.home-intl-hub__body {
  padding: 0 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
}

/* Fix nested section layout inside the international accordion */
.home-intl-hub .home-intl-hub__body .section {
  padding: 1.75rem 0 1.25rem;
  background: transparent;
  border: 0;
}

.home-intl-hub .home-intl-hub__body .section + .section {
  border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
}

.home-intl-hub .home-intl-hub__body .container {
  width: 100%;
  margin-inline: 0;
}

.home-intl-hub .home-intl-hub__body .section-header {
  margin: 0 auto 1.5rem;
}

.home-intl-hub .home-intl-hub__body .states-grid {
  gap: 0.75rem;
}

.home-intl-hub__india {
  margin-top: 1rem;
  text-align: center;
}

/* Tools hub */
.home-tools-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.home-tools-hub__card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--tax-card-border, #d9e2ec);
  background: var(--tax-card, #fff);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.home-tools-hub__card:hover {
  border-color: var(--tax-accent, #0b3d91);
  box-shadow: 0 6px 20px rgba(11, 61, 145, 0.12);
  transform: translateY(-2px);
}

.home-tools-hub__card strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tax-accent, #0b3d91);
  line-height: 1.35;
}

.home-tools-hub__card span {
  font-size: 0.85rem;
  color: var(--text-secondary, #486581);
  line-height: 1.45;
}

/* Methodology */
.home-methodology__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.home-methodology__card {
  padding: 1.25rem;
}

.home-methodology__disclaimer {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  opacity: 0.8;
  text-align: center;
}

/* Homepage contact block polish */
.page-home .contact-section--home {
  border-block: 1px solid var(--border, #d9e2ec);
}

.page-home .contact-section--home .section-header {
  margin-bottom: 2rem;
}

.page-home .contact-section--home .contact-section__inner {
  max-width: 1060px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 1.25rem;
}

.page-home .contact-section--home .mail-form {
  padding: 1.4rem;
  border-radius: 10px;
}

.page-home .contact-section--home .contact-aside {
  padding: 1.25rem;
  border-radius: 10px;
  background: #fff;
}

.page-home .contact-section--home .contact-aside h2 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.page-home .contact-section--home .contact-aside p {
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .page-home .contact-section--home .contact-section__inner {
    grid-template-columns: 1fr;
  }
}

/* FAQ advanced link block */
.home-faq-advanced {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--surface-muted, rgba(11, 61, 145, 0.04));
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
}

.home-faq-advanced__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.home-faq-advanced__list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.home-faq-advanced__list li + li {
  margin-top: 0.35rem;
}

