/* Inner landing pages. Builds on the tokens and components in site.css. */

.site-banner {
  position: relative;
  z-index: 101;
  margin: 0;
  padding: 10px var(--gutter);
  background: var(--brass-light);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}
.site-banner + .site-header {
  top: 0;
}

/* ---------- Hero ---------- */

.pg-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(80% 90% at 85% 10%, #fffaf0 0%, rgba(255, 250, 240, 0) 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(14, 27, 51, 0.045) 39px 40px), var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.pg-hero::after {
  content: '';
  position: absolute;
  right: clamp(-120px, -6vw, -40px);
  bottom: -60px;
  width: clamp(180px, 26vw, 340px);
  aspect-ratio: 8.5 / 11;
  background: var(--sheet);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(14, 27, 51, 0.06),
    0 30px 60px -30px rgba(14, 27, 51, 0.45);
  transform: rotate(-8deg);
  opacity: 0.7;
  pointer-events: none;
}
.pg-hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  max-width: 1240px;
}
.pg-hero__title {
  max-width: 20ch;
  font: 400 clamp(2.25rem, 5vw, 4rem) / 1.04 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.answer {
  max-width: 62ch;
  padding: 18px 22px;
  background: var(--sheet);
  border-left: 4px solid var(--brass);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 14px 30px -24px rgba(14, 27, 51, 0.6);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
  color: #26324a;
}
.pg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.crumbs li {
  display: flex;
  align-items: center;
}
.crumbs li + li::before {
  content: '/';
  margin: 0 10px;
  color: rgba(14, 27, 51, 0.3);
}
.crumbs a {
  text-decoration-color: rgba(176, 138, 62, 0.6);
  text-underline-offset: 3px;
}
.crumbs [aria-current] {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Body ---------- */

.pg-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(48px, 7vw, 96px);
}
.pg-main {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  min-width: 0;
}
.pg-section {
  display: grid;
  gap: 14px;
  max-width: 70ch;
}
.pg-section h2,
.faq h2,
.facts__title {
  font: 400 clamp(1.625rem, 2.8vw, 2.25rem) / 1.15 var(--serif);
  letter-spacing: -0.015em;
}
.pg-section h3 {
  margin-top: 10px;
  font: 500 1.3125rem/1.25 var(--serif);
}
.pg-section p,
.pg-list li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #2c3852;
}
.pg-section a,
.faq a {
  color: var(--ink);
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.pg-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
}
.pg-list li {
  position: relative;
  padding-left: 30px;
}
.pg-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border: solid var(--ok);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

/* Fact sheet: styled like a ruled worksheet. */
.facts {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  background:
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(14, 27, 51, 0.05) 35px 36px), var(--sheet);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 6px 6px 14px 14px;
  box-shadow: 0 30px 60px -48px rgba(14, 27, 51, 0.7);
}
.facts__table {
  width: 100%;
  border-collapse: collapse;
}
.facts__row th,
.facts__row td {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.facts__row th {
  width: 38%;
  padding-right: 18px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.facts__value {
  display: block;
  font: 500 1.125rem/1.35 var(--serif);
}
.facts__source {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-underline-offset: 3px;
}
.facts__reviewed {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 70ch;
}
.faq h2 {
  margin-bottom: 8px;
}
.faq__item {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.faq__item[open] {
  border-color: rgba(176, 138, 62, 0.6);
  box-shadow: 0 20px 40px -32px rgba(14, 27, 51, 0.55);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  font: 400 1.25rem/1 var(--sans);
  color: var(--brass-ink);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item h3 {
  font: 500 1.125rem/1.35 var(--serif);
}
.faq__item p {
  padding: 0 20px 20px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #2c3852;
}

/* Sticky call card beside the content on wide screens. */
.pg-aside__card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 14px;
  padding: 26px;
  background: var(--ink);
  color: rgba(247, 242, 232, 0.86);
  border-radius: 18px;
  box-shadow: 0 40px 70px -46px rgba(14, 27, 51, 0.9);
}
.pg-aside__title {
  font: 400 1.5rem/1.15 var(--serif);
  color: var(--paper);
}
.pg-aside__card .btn--primary {
  background: var(--brass-light);
  color: var(--ink);
  justify-self: start;
}
.pg-aside__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brass-light);
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .pg-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-aside {
    display: none;
  }
}

/* ---------- Related ---------- */

.related {
  padding: clamp(56px, 8vw, 104px) 0;
  background: var(--sheet);
  border-top: 1px solid var(--line);
}
.related h2 {
  margin-bottom: 28px;
  font: 400 clamp(1.75rem, 3vw, 2.5rem) / 1.1 var(--serif);
}
.related__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.related__item a {
  position: relative;
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 22px 52px 22px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
}
.related__item a:hover {
  transform: translateY(-4px);
  border-color: rgba(176, 138, 62, 0.6);
  box-shadow: 0 24px 40px -28px rgba(14, 27, 51, 0.5);
}
.related__name {
  font: 500 1.25rem/1.2 var(--serif);
}
.related__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.related__arrow {
  position: absolute;
  right: 20px;
  top: 24px;
  color: var(--brass-ink);
  transition: transform 0.3s var(--ease);
}
.related__item a:hover .related__arrow {
  transform: translateX(4px);
}

/* ---------- Lead form ---------- */

.lead {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--ink);
  color: rgba(247, 242, 232, 0.86);
}
.lead__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.lead__intro {
  display: grid;
  gap: 18px;
}
.lead__intro h2 {
  font: 400 clamp(2rem, 4vw, 3.25rem) / 1.05 var(--serif);
  letter-spacing: -0.02em;
  color: var(--paper);
}
.lead__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 1.75rem/1.1 var(--serif);
  color: var(--brass-light);
  text-decoration: none;
}
.lead__address {
  font-size: 0.9375rem;
}
.lead__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding: clamp(22px, 3.5vw, 40px);
  background: var(--sheet);
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.8);
}
.lead__status {
  grid-column: 1 / -1;
}
.lead__status:empty {
  display: none;
}
.lead__alert {
  padding: 12px 16px;
  background: #fbeceb;
  border: 1px solid rgba(178, 58, 46, 0.4);
  border-radius: 10px;
  font-weight: 600;
  color: #8c2a20;
}
.lead__done {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  background: #e8f3ee;
  border: 1px solid rgba(31, 107, 82, 0.35);
  border-radius: 12px;
  color: #154a39;
}
.lead__done strong {
  font: 500 1.25rem/1.25 var(--serif);
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.875rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid rgba(14, 27, 51, 0.22);
  border-radius: 10px;
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  min-height: 112px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 4px rgba(176, 138, 62, 0.22);
}
.field [aria-invalid='true'] {
  border-color: var(--stamp);
}
.field__hint {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.field__error {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #9b2c22;
}
.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 4px 12px;
}
.field--check input {
  width: 22px;
  min-height: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--ink);
}
.field--check label {
  font-weight: 400;
  line-height: 1.45;
}
.field--check .field__error {
  grid-column: 2;
}
.field--hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead__submit {
  grid-column: 1 / -1;
  justify-self: start;
}
.lead__submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}

@media (max-width: 900px) {
  .lead__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .lead__form {
    grid-template-columns: minmax(0, 1fr);
  }
  .lead__submit {
    justify-self: stretch;
  }
}

/* ---------- Blog ---------- */

.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-cats a {
  padding: 8px 16px;
  border: 1.5px solid rgba(14, 27, 51, 0.2);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.blog-cats a[aria-current] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.blog-list {
  padding-block: clamp(40px, 6vw, 80px);
}
.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.blog-card a {
  display: grid;
  gap: 10px;
  height: 100%;
  padding: 26px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s,
    border-color 0.3s;
}
.blog-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(176, 138, 62, 0.6);
  box-shadow: 0 26px 44px -30px rgba(14, 27, 51, 0.55);
}
.blog-card__meta {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.blog-card__meta a {
  color: inherit;
}
.blog-card__title {
  font: 500 1.375rem/1.2 var(--serif);
}
.blog-card__text {
  color: var(--ink-soft);
  line-height: 1.55;
}
.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-weight: 600;
}
.blog-pager {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}
.blog-empty {
  padding: 24px;
  background: var(--sheet);
  border: 1px dashed var(--brass);
  border-radius: 14px;
}
.blog-by {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.blog-toc {
  padding: 18px 22px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.blog-toc p {
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.blog-toc ol {
  display: grid;
  gap: 4px;
  padding-left: 20px;
  list-style: decimal;
}
.blog-body h2 {
  margin-top: 18px;
}

/* ---------- Tax calendar ---------- */

.cal-list {
  display: grid;
  gap: 10px;
}
.cal-item {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 4px 18px;
  padding: 14px 18px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: 0 12px 12px 0;
}
.cal-item time {
  font-weight: 700;
}
.cal-title {
  font: 500 1.0625rem/1.35 var(--serif);
}
.cal-tags,
.cal-note {
  grid-column: 2;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
@media (max-width: 600px) {
  .cal-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .cal-tags,
  .cal-note {
    grid-column: 1;
  }
}

/* ---------- Site map page ---------- */
.sitemap-page__list {
  columns: 3 220px;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sitemap-page__list li {
  break-inside: avoid;
  padding: 4px 0;
}
.sitemap-page__list a {
  color: var(--ink);
}
.sitemap-page__list a:hover,
.sitemap-page__list a:focus-visible {
  color: var(--brass-ink);
}
