/* Shared refinements for the existing Manrope / Lora theme. */
html {
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}
.desktop-nav { margin-left: auto; }
.desktop-nav a[aria-current], .mobile-menu a[aria-current] {
  color: #455c47;
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}
.desktop-nav .menu-contact {
  border: 1px solid #b6beaa;
  border-radius: 5px;
  padding: 11px 17px;
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #68795b;
  outline-offset: 5px;
}
.home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-about { padding-block: 64px; scroll-margin-top: 120px; }
.home-about .about-grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.home-about .about-copy { max-width: 610px; }
.home-about .about-copy p:not(.eyebrow) { margin-bottom: 20px; }
.home-about .button-row { margin-top: 28px; }
.hero .button-secondary {
  border: 1px solid #aeb8a3;
  background: #e9ede1;
  color: #344a38;
}
.hero .button-secondary:hover {
  border-color: #87957b;
  background: #dfe5d7;
}
.knowledge-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
/* Compact home knowledge section, with answers revealed on request. */
.home-knowledge {
  padding-block: clamp(32px, 5vh, 56px);
  scroll-margin-top: 0;
  overflow-wrap: anywhere;
}
.home-knowledge .knowledge-intro {
  align-items: center;
  margin-bottom: 30px;
  gap: 24px;
}
.knowledge-intro > div { min-width: 0; max-width: 100%; }
.knowledge-intro h2 { font-size: clamp(2rem, 3.1vw, 2.75rem); }
.knowledge-intro > .text-link { flex-shrink: 0; min-height: 44px; }
.knowledge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.knowledge-layout h3 { margin: 0 0 12px; font-size: 1.375rem; line-height: 1.35; }
.knowledge-guides, .knowledge-faq { min-width: 0; }
.knowledge-article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding-block: 18px;
  border-bottom: 1px solid var(--border);
}
.knowledge-article:last-child { border-bottom: 0; }
.knowledge-article > div { min-width: 0; }
.knowledge-article h4 {
  margin: 0;
  font-family: var(--font-editorial), Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.45;
}
.knowledge-article > svg { flex-shrink: 0; color: #465b47; }
.knowledge-article:hover h4 { color: #465b47; text-decoration: underline; text-underline-offset: 4px; }
.knowledge-faq .faq-trigger {
  min-height: 72px;
  padding: 18px 0 !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 1.6;
}
.knowledge-faq .faq-answer { padding: 0 0 18px !important; font-size: 1rem !important; line-height: 1.7; }
.knowledge-faq .faq-answer p { margin: 0; font-size: inherit; line-height: inherit; }
.knowledge-faq .faq-answer a { font-size: .875rem; }
@media (min-width: 1440px) and (min-height: 800px) {
  .home-knowledge { padding-block: clamp(56px, 7vh, 80px); }
  .home-knowledge .knowledge-intro { margin-bottom: 44px; }
  .knowledge-intro h2 { font-size: 3.25rem; }
  .knowledge-intro > .text-link { font-size: 1rem; }
  .knowledge-layout { gap: 80px; padding-top: 36px; }
  .knowledge-layout h3 { margin-bottom: 16px; font-size: 1.625rem; }
  .knowledge-article { min-height: 96px; padding-block: 24px; }
  .knowledge-article h4 { font-size: 1.5rem; }
  .knowledge-faq .faq-trigger {
    min-height: 96px;
    padding-block: 24px !important;
    font-size: 1.125rem !important;
  }
  .knowledge-faq .faq-answer { font-size: 1.0625rem !important; }
}
@media (max-width: 900px) {
  .knowledge-layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .home-page .home-knowledge { padding-block: 32px; }
  .home-knowledge .knowledge-intro { align-items: flex-start; gap: 8px; margin-bottom: 18px; }
  .knowledge-layout { padding-top: 20px; }
  .knowledge-layout h3 { font-size: 1.25rem; margin-bottom: 8px; }
  .knowledge-article { min-height: 64px; padding-block: 16px; gap: 16px; }
  .knowledge-article h4 { font-size: 1.1875rem; }
  .knowledge-faq .faq-trigger { min-height: 64px; padding-block: 16px !important; }
}
.breadcrumb {
  padding-block: 20px;
}
.knowledge-page-heading {
  padding: 10px 0 38px;
}
.knowledge-page-heading > p {
  margin-top: 18px;
}
.contact-teaser { padding-block: 84px; }
.site-cta {
  border-top: 1px solid var(--border);
}
.site-cta h2 {
  line-height: 1.2;
  text-wrap: balance;
}
.site-cta .button {
  min-width: 172px;
  justify-content: space-between;
}
.contact-teaser .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  align-items: center;
  gap: 56px;
}
.contact-teaser-copy { max-width: 700px; }
.contact-teaser h2 { margin: 0; font-size: clamp(30px, 3.2vw, 40px); }
.contact-teaser-copy p {
  max-width: 660px;
  margin-top: 14px;
  color: #56624f;
  font-size: 17px;
  line-height: 1.75;
}
.contact-teaser .button { flex-shrink: 0; }
.consultation-heading { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.consultation-heading > div > p { max-width: 570px; }
.consultation-heading .price-table-card { align-self: center; }
.price-table-footer .text-link { font-size: 13px; }
.contact-view .footer { padding-block: 24px 20px; }
.contact-page { padding-block: 12px clamp(24px, 4vh, 40px); }
.contact-page .contact-grid {
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid #cbd2c0;
  border-radius: 8px;
  background: #eef0e8;
}
.contact-page h1 {
  color: #fff;
  font-size: clamp(42px, 3.5vw, 54px);
  line-height: 1.08;
}
.contact-intro {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3.5vh, 36px) clamp(28px, 3vw, 44px);
  background: #344a38;
}
.contact-intro > p {
  max-width: 480px;
  margin-top: 14px;
  color: #e8ece3;
  font-size: 17px;
  line-height: 1.65;
}
.contact-page .contact-direct {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}
.contact-page .email-link {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(21px, 2.4vw, 31px);
  overflow-wrap: anywhere;
  margin-bottom: 0;
}
.contact-page .contact-next {
  max-width: 540px;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.75;
}
.contact-social {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #c9d0be;
}
.contact-social > p { margin: 0; color: #344a38; font-size: 16px; font-weight: 600; }
.contact-page .social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
  margin-top: 16px;
}
.contact-page .social-links a {
  min-height: 64px;
  padding: 16px 18px;
  gap: 12px;
  border: 1px solid #344a38;
  border-radius: 5px;
  background: #344a38;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .2s, border-color .2s;
}
.contact-page .social-links a:hover { background: #455c47; border-color: #455c47; }
.contact-page .social-links a > span { flex: 1; }
.contact-page .social-links svg { flex-shrink: 0; }
@media (max-width: 1000px) {
  .mobile-menu { margin-left: auto; }
}
@media (max-width: 800px) {
  .home-about .about-grid { grid-template-columns: 1fr; }
  .home-about .about-photo { max-width: 340px; }
  .contact-page { padding-block: 8px 56px; }
  .contact-page .contact-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .contact-page .contact-direct {
    margin-top: 24px;
    padding: 28px;
    border: 1px solid #d4d8cc;
    border-radius: 6px;
    background: #e9ece2;
  }
}
@media (max-width: 750px) {
  .contact-teaser { padding-block: 56px; }
  .contact-teaser .shell {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }
  .contact-teaser .button {
    min-width: 0;
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 500px) {
  .home-services { grid-template-columns: 1fr; }
  .home-about { padding-block: 48px; }
  .contact-page .contact-direct { margin-top: 20px; padding: 24px; }
}

/* Compact guides retain the existing cards and links. */
.article-meta,
.article-byline,
.article-cover > span:first-child,
.footer-bottom,
.small-label,
.scope-grid > div > span,
.consultation-price-table caption,
.consultation-price-table thead th,
.consultation-price-table tbody th > span,
.price-table-footer > span {
  color: #56634e;
}
.article-card:hover h3 { color: #455c47; }
.compact-articles .article-card {
  border: 1px solid #cbd2c0;
  border-radius: 6px;
  background: #f7f7f1;
  padding: 24px;
  transition: border-color .2s;
}
.compact-articles .article-card:hover { border-color: #68795b; }
.compact-articles .article-meta { margin: 0 0 12px; }
.compact-articles h3 { font-size: 24px; line-height: 1.35; }
.compact-articles .article-card > p { font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.compact-articles .card-link { padding-top: 14px; min-height: 44px; }
.consultation-heading { padding-block: 24px 56px; }
.consultation-heading > div > p.eyebrow { margin: 0 0 20px; }
.consultation-heading > div > p:not(.eyebrow) { margin: 20px 0 0; line-height: 1.7; }
.consult-topics .scope-grid { margin-top: 32px; gap: 28px; }
.consult-topics .scope-grid > div > span { margin-bottom: 12px; }
.consult-topics .scope-grid h3 { margin-bottom: 12px; }
.consult-topics .scope-grid p { line-height: 1.7; }
.pricing-note {
  border-block: 1px solid #d8d1c3;
  background: #eae4d9;
}
@media (max-width: 900px) {
  .consultation-heading { grid-template-columns: 1fr; gap: 24px; }
  .consultation-heading h1 { font-size: clamp(32px, 5vw, 44px); }
  .consultation-heading .price-table-card { width: 100%; }
}
@media (max-width: 600px) {
  .breadcrumb { padding-block: 16px; }
  .knowledge-page-heading { padding: 6px 0 30px; }
  .home-page .section { padding-block: 48px; }
  .home-page .section-intro { margin-bottom: 28px; gap: 16px; }
  .home-page .hero { gap: 24px; padding-block: 24px 36px; }
  .home-page .hero-copy { padding-block: 0; }
  .home-page .hero .eyebrow { margin-bottom: 16px; }
  .home-page .hero h1 { font-size: clamp(34px, 9vw, 40px); margin-bottom: 18px; }
  .home-page .hero-description { line-height: 1.7; }
  .home-page .hero .button-row { margin-top: 20px; gap: 10px 20px; }
  .home-page .hero .button-row .button {
    width: 100%;
    justify-content: space-between;
  }
  .home-page .hero-visual { margin-left: 0; padding-bottom: 0; }
  .home-page .hero-visual > img { height: 210px; border-top-left-radius: 70px; }
  .home-services .service-card { padding: 24px; }
  .home-services .service-card > p { margin-bottom: 20px; }
  .home-about { padding-block: 40px; }
  .home-about .about-grid { gap: 28px; }
  .home-about .about-photo { max-width: 260px; }
  .compact-articles { gap: 16px; }
  .compact-articles .article-card { padding: 20px; }
  .compact-articles h3 { font-size: 23px; }
  .knowledge-tools { gap: 12px 24px; margin-top: 24px; padding-top: 16px; }
  .knowledge-tools .text-link { min-height: 44px; }
  .contact-page h1 { font-size: 36px; }
  .contact-intro > p { font-size: 16px; }
  .contact-page .small-label { margin-bottom: 10px; }
  .contact-page .email-link { font-size: clamp(17px, 5.5vw, 23px); padding-bottom: 12px; }
  .contact-page .contact-direct { padding: 20px; }
  .contact-page .social-links { margin-top: 16px; }
  .consultation-heading { padding-block: 8px 40px; gap: 20px; }
  .consultation-heading > div > p.eyebrow { margin-bottom: 12px; }
  .consultation-heading h1 { font-size: 32px; line-height: 1.25; }
  .consultation-heading > div > p:not(.eyebrow) { margin-top: 14px; }
  .consultation-price-table caption { padding: 16px 18px 12px; }
  .consultation-price-table th, .consultation-price-table td { padding: 14px 18px; }
  .price-table-footer { padding: 16px 18px; gap: 12px; }
  .price-table-footer .button { width: 100%; }
  .consult-topics { padding-block: 48px; }
  .consult-topics .scope-grid { margin-top: 24px; gap: 24px; }
  .consult-topics .scope-grid h3 { font-size: 23px; margin-bottom: 8px; }
  .consult-topics .scope-grid p { font-size: 15px; }
}

/* The portrait anchors the contact panel on wide screens. */
.contact-portrait {
  width: 100%;
  height: clamp(276px, calc(29vh + 56px), 336px);
  margin-top: 24px;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 110px 6px 6px 6px;
}
@media (max-width: 800px) {
  .contact-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    align-items: start;
    padding: 28px;
    border-radius: 6px;
  }
  .contact-intro h1 { grid-column: 1; grid-row: 1; }
  .contact-intro > p { grid-column: 1; grid-row: 2; }
  .contact-portrait {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    height: 190px;
    margin-top: 0;
    object-position: center 18%;
    border-top-left-radius: 48px;
  }
}
@media (max-width: 600px) {
  .contact-page h1 { color: #fff; font-size: clamp(32px, 9vw, 36px); }
  .contact-intro {
    grid-template-columns: minmax(0, 1fr) 80px;
    grid-template-rows: auto auto;
    column-gap: 16px;
    padding: 20px;
  }
  .contact-intro h1 { align-self: center; }
  .contact-intro > p { grid-column: 1 / -1; color: #e8ece3; }
  .contact-portrait { grid-row: 1; height: 104px; border-top-left-radius: 30px; }
}

/* One vertical rhythm for the main sections on every page. */
:root {
  --section-space: 80px;
}

.home-page main > section[class],
main > section[class],
body > section.contact-section,
main.error-page {
  padding-block: var(--section-space);
}

@media (max-width: 1000px), (min-width: 1001px) and (max-height: 900px) {
  :root {
    --section-space: 64px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-space: 48px;
  }
}
