.page-hero:not(.home-hero) {
  min-height: 0;
  padding: clamp(2rem, 3.6vw, 3.25rem) max(7vw, 1.25rem);
}

.page-hero:not(.home-hero) h1 {
  margin: .25rem 0 .6rem;
  font-size: clamp(2.35rem, 4.4vw, 4rem);
}

.page-hero:not(.home-hero) > p {
  margin: 0;
}

main > .page-hero + .section {
  padding-top: clamp(2rem, 3vw, 2.75rem);
}

.section {
  padding-top: clamp(2.75rem, 4.5vw, 4.25rem);
  padding-bottom: clamp(2.75rem, 4.5vw, 4.25rem);
}

.section > h2,
.about-split h2,
.two-col h2,
.cta h2 { margin-bottom: 1.5rem; }

.cta { margin-bottom: 3rem; }
.site-footer { padding-top: 3.25rem; }

.affiliate-footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .8rem;
  padding: .55rem .85rem;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: #f4d488 !important;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.affiliate-footer-button:hover,
.affiliate-footer-button:focus-visible {
  background: var(--gold);
  color: var(--green-dark) !important;
}

.affiliate-programs-content { max-width: 1040px; margin: 0 auto; }
.affiliate-intro { max-width: 780px; margin: 0 auto 1.75rem; text-align: center; font-size: 1.08rem; line-height: 1.75; }
.affiliate-program-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.affiliate-program-list a { display: flex; min-height: 128px; padding: 1.35rem; border: 1px solid rgba(10, 74, 57, .14); border-top: 3px solid var(--gold); border-radius: 12px; background: #fff; color: var(--green); text-decoration: none; flex-direction: column; justify-content: space-between; box-shadow: 0 8px 22px rgba(7, 59, 45, .07); transition: transform .2s ease, box-shadow .2s ease; }
.affiliate-program-list a:hover, .affiliate-program-list a:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7, 59, 45, .12); }
.affiliate-program-list strong { font-family: "Playfair Display", serif; font-size: 1.35rem; }
.affiliate-program-list span { color: var(--gold-dark, #a87916); font-size: .9rem; font-weight: 700; }

.social-link {
  display: inline-flex;
  align-items: center;
  padding: .35rem .65rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 20px;
  color: #fff;
  font-size: .85rem;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--green-dark);
}

@media (max-width: 700px) {
  .affiliate-program-list { grid-template-columns: 1fr; }
}

.contact-page-layout {
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-info h2 { margin-top: 0; }

.contact-office-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  margin-top: 1.25rem;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(7, 59, 45, .1);
}

.legal-policy {
  max-width: 1040px;
  margin: 0 auto;
}

.legal-policy .legal-document {
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(7, 59, 45, .07);
}

.legal-policy h2 {
  margin: 2.2rem 0 .75rem;
  color: var(--green-dark);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.legal-policy h2:first-of-type { margin-top: 1.25rem; }
.legal-policy p, .legal-policy li { color: var(--muted); }
.legal-policy ul { padding-left: 1.35rem; }
.legal-policy li + li { margin-top: .55rem; }
.legal-updated { margin-top: 0; color: var(--green) !important; font-weight: 700; }
.legal-attribution { font-size: .88rem; font-style: italic; }

.home-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.home-hero .hero-copy {
  min-width: 0;
  max-width: none;
  align-self: center;
  padding: clamp(1.25rem, 2vw, 1.9rem) clamp(1.75rem, 3vw, 3.25rem) clamp(1.25rem, 2vw, 1.9rem) max(7vw, 1.25rem);
  position: relative;
  z-index: 2;
}
.home-hero h1 { margin-top: .25rem; margin-bottom: .55rem; font-size: clamp(2.4rem, 3.35vw, 3.5rem); }
.home-hero .hero-copy > p { margin: 0; }
.home-hero .hero-actions { margin-top: .65rem; }

.hero-visual {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 48% 0 0 48% / 55% 0 0 55%;
  aspect-ratio: auto;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-services,
.home-feedback { padding-top: clamp(2.5rem, 4vw, 3.75rem); padding-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.home-feedback .review-grid blockquote p { margin: 0; }
.home-feedback .review-grid blockquote footer { display: flex; flex-direction: column; gap: .15rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(12,79,60,.16); font-family: "DM Sans", sans-serif; font-size: .92rem; }
.home-feedback .review-grid blockquote footer strong { color: var(--green); }
.home-feedback .review-grid blockquote footer span { color: var(--muted); }
.review-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.review-text.expanded { display: block; overflow: visible; }
.review-toggle { margin-top: .8rem; padding: .35rem .7rem; border: 1px solid var(--green); border-radius: 999px; background: transparent; color: var(--green); font: inherit; font-family: "DM Sans", sans-serif; font-size: .82rem; font-weight: 700; cursor: pointer; }
.review-toggle:hover,
.review-toggle:focus-visible { background: var(--green); color: #fff; }

.compact-hero { min-height: 0; }
.compact-hero h1 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
.feedback-page { padding-top: clamp(2rem, 3vw, 2.75rem); }
.feedback-page .review-grid blockquote p { margin: 0; }
.feedback-page .review-grid blockquote footer { display: flex; flex-direction: column; gap: .15rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(12,79,60,.16); font-family: "DM Sans", sans-serif; font-size: .92rem; }
.feedback-page .review-grid blockquote footer strong { color: var(--green); }
.feedback-page .review-grid blockquote footer span { color: var(--muted); }
.home-services > h2 { margin-bottom: 1.5rem; }

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  align-items: center;
  padding: 1.35rem 1rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(7,59,45,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: .85rem; border-radius: 50%; background: var(--cream); color: var(--green); }
.service-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 0 0 .65rem; color: var(--green); font-family: "Playfair Display", serif; font-size: 1.25rem; line-height: 1.2; }
.service-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

.home-why {
  padding-top: clamp(2.75rem, 4vw, 4rem);
  padding-bottom: clamp(2.75rem, 4vw, 4rem);
  background: var(--cream);
}

.home-why > h2 { margin-bottom: 1.5rem; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-grid article {
  padding: .5rem clamp(1rem, 2.5vw, 2.25rem);
  text-align: center;
  border-right: 1px solid rgba(12, 79, 60, .18);
}

.why-grid article:last-child { border-right: 0; }
.why-icon { display: grid; place-items: center; width: 64px; height: 64px; min-height: 64px; margin: 0 auto .6rem; border-radius: 50%; background: #fff; color: var(--green); box-shadow: 0 6px 18px rgba(10, 74, 57, .12); }
.why-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-grid h3 { margin: .25rem 0 .5rem; color: var(--green-dark); font-size: 1.12rem; }
.why-grid p { max-width: 230px; margin: 0 auto; color: var(--muted); font-size: .92rem; line-height: 1.5; }

.tax-hero .service-tagline {
  max-width: 900px;
  margin: .25rem 0 .5rem;
  color: var(--green);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
}

.tax-detail-list {
  display: grid;
  gap: 1.25rem;
  max-width: 1160px;
  margin: 0 auto;
}

.tax-detail-list article {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 59, 45, .06);
}

.tax-detail-list h2 {
  margin: 0 0 .5rem;
  color: var(--green-dark);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
  line-height: 1.2;
}

.tax-detail-list .service-tagline {
  margin: 0 0 .8rem;
  color: var(--green);
  font-weight: 700;
}

.tax-detail-list article > p:last-child { margin-bottom: 0; }
.tax-personal { padding-bottom: 0; }
.tax-personal + .tax-detail-list { padding-top: 1.25rem; }

.why-page { max-width: 1180px; margin: 0 auto; }
.why-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 0 clamp(3rem, 6vw, 5rem); padding: 0; list-style: none; }
.why-checklist li { display: flex; align-items: flex-start; gap: .85rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.why-checklist li > span { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; }
.why-checklist p { margin: .15rem 0 0; }
.why-checklist strong { color: var(--green-dark); }
.why-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.why-copy article { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 12px; }
.why-copy article:first-child { border: 1px solid var(--line); }
.why-copy h2 { margin: .5rem 0 1rem; color: var(--green-dark); font-family: "Playfair Display", serif; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.18; }
.growth-panel { background: var(--green); color: #fff; }
.growth-panel h2 { color: #fff; }
.growth-panel .button { margin-top: .5rem; background: var(--gold); color: var(--green-dark) !important; }
.why-signoff { margin: clamp(2.5rem, 5vw, 4rem) 0 0; text-align: center; color: var(--green); font-family: "Playfair Display", serif; font-size: clamp(1.5rem, 3vw, 2.35rem); font-weight: 700; }

.about-page-layout { align-items: start; }
.about-page-layout .logo-panel { position: sticky; top: 120px; }
.about-page-copy h1 { margin: .45rem 0 1rem; color: var(--green-dark); font-family: "Playfair Display", serif; font-size: clamp(2.3rem, 4.5vw, 4.2rem); line-height: 1.08; }
.about-page-copy h2 { margin: 1.75rem 0 .65rem; color: var(--green); font-family: "Playfair Display", serif; font-size: clamp(1.4rem, 2.5vw, 2.05rem); line-height: 1.2; }
.about-page-copy p { color: var(--muted); }
.consultation-steps { padding-top: 0; }

@media (max-width: 760px) {
  .why-checklist,
  .why-copy { grid-template-columns: 1fr; }
  .about-page-layout .logo-panel { position: static; }
}

@media (max-width: 1100px) {
  .home-hero { grid-template-columns: minmax(0, 51%) minmax(0, 49%); }
  .home-hero .hero-copy { padding-right: 1.5rem; }
  .service-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0; }
  .why-grid article:nth-child(2) { border-right: 0; }
}

@media (max-width: 760px) {
  .home-hero { min-height: 0; grid-template-columns: 1fr; }
  .home-hero .hero-copy { padding: 1.6rem max(7vw, 1.25rem) 1.25rem; }
  .home-hero h1 { font-size: clamp(2.25rem, 10vw, 2.55rem); }
  .hero-visual { height: clamp(140px, 38vw, 205px); min-height: 0; aspect-ratio: auto; border-radius: 36% 36% 0 0 / 18% 18% 0 0; }
  .consultation-layout .contact-form { order: -1; }
  .consultation-layout .contact-form input:not(.honeypot),
  .consultation-layout .contact-form select,
  .consultation-layout .contact-form button { min-height: 48px; }
  .consultation-layout .contact-form textarea { min-height: 140px; resize: vertical; }
  .contact-page-layout { grid-template-columns: 1fr; }
  .contact-page-layout .contact-info { order: 0; }
  .contact-page-layout .contact-form { order: 1; }
  .contact-page-layout .contact-office-image { max-height: none; margin-top: 1rem; }
  .service-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr; gap: 0; }
  .why-grid article { padding: 1.4rem 0; border-right: 0; border-bottom: 1px solid rgba(12, 79, 60, .18); }
  .why-grid article:last-child { border-bottom: 0; }
}

@media (max-width: 430px) {
  .service-card-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
}
