/* Cross-page readability, CTA consistency, and calmer section rhythm. */

/* Keep long-form copy within a comfortable measure. */
.inner-page main .section-heading > p,
.inner-page main .faq-answer,
.inner-page main .message-card > p,
.inner-page main .about-block > p,
.inner-page main .audit-panel > p,
.inner-page main .consultation-guide > p,
.inner-page main .support-card > p,
.inner-page main .process-item > p {
  max-width: 42rem;
}

.inner-page main h1 {
  max-width: 18em;
}

.inner-page main .section-heading {
  margin-bottom: clamp(28px, 4vw, 40px);
}

/* Soften abrupt light/dark flips: keep content panels light, reserve dark for chrome. */
.inner-page main .profile-banner {
  background: #23262b;
}

.inner-page main :is(.service-card, .support-card, .info-item, .summary-card, .assurance-card, .story-card, .philosophy-card) {
  background: #f7f7f5;
  border-top-color: #17191d33;
}

.inner-page main .audit-note,
.inner-page main .consultation-guide,
.inner-page main .audit-panel {
  border-color: #c5c9ce;
}

.inner-page main .audit-note,
.inner-page main .consultation-guide {
  background: #f3f4f2;
}

/* Prefer form-deep links for consult CTAs where present. */
.inner-page .mobile-cta a[href="contact.html"],
.inner-page .mobile-cta a[href="./contact.html"] {
  /* visual only; href fixed in HTML where needed */
}

/* Breadcrumb spacing and contrast */
.inner-page main .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin-bottom: 28px;
  font-size: .875rem;
  color: #5c6067;
}

.inner-page main .breadcrumb a {
  text-decoration-thickness: 1px;
}

/* Services: keep large media readable without dominating the first fold */
.page-services .support-visual {
  margin-top: 16px;
}

.page-services .support-visual img {
  max-height: min(420px, 55vh);
  width: 100%;
  object-fit: cover;
}

.page-services .service-card.support-row {
  padding-block: clamp(24px, 3vw, 36px);
}

/* Contact: lift form priority after language guide without moving markup */
.page-contact .consultation-layout {
  scroll-margin-top: 96px;
}

.page-contact #consultation-form {
  scroll-margin-top: 110px;
}

.page-contact .language-guide details {
  border-color: #c7ccd1;
}

.page-contact .language-guide summary {
  min-height: 52px;
}

/* FAQ: clearer category rhythm */
.page-faq .faq-category-title {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 8px;
  border-top: 1px solid #17191d26;
}

.page-faq .faq-category-title:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.page-faq .faq-question {
  line-height: 1.7;
  text-align: left;
}

/* Process / fees: stronger end-of-page CTA grouping */
.inner-page main .process-cta {
  gap: 12px 16px;
}

.inner-page main .process-cta .btn {
  min-width: min(100%, 220px);
}

/* Mobile fixed CTA clearance for last content */
@media (max-width: 760px) {
  .inner-page main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  body.home-guidance #main > .home-next {
    padding-bottom: calc(48px + 88px + env(safe-area-inset-bottom, 0px));
  }

  .page-services .support-visual img {
    max-height: 280px;
  }

  .inner-page main h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
    line-height: 1.45;
  }

  .inner-page main h2 {
    font-size: 1.3rem;
    line-height: 1.7;
  }
}

/* Focus visibility on light pages */
.inner-page main :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #2f6f8f;
  outline-offset: 3px;
}

/* Desktop nav active state */
.desktop-nav a[aria-current="page"] {
  opacity: 1;
  border-bottom: 1px solid currentColor;
}

/* Guide pages: keep measure calm */
body[data-guide-lang] main p,
body[data-guide-lang] main li {
  max-width: 42rem;
}


/* Navigation: company + consultation without shrinking type below 14px. */
.desktop-nav .nav-company-link { white-space: nowrap; }
.company-related-links,
.about-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 16px 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #9ba4ae55;
}
.company-related-links a,
.about-related-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.about-toc-label,
.about-related-label {
  margin: 0 0 10px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5c6067;
}
.about-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 28px;
}
@media screen and (min-width: 1281px) and (max-width: 1440px) {
  .desktop-nav { gap: 12px; }
  .desktop-nav a { font-size: 14px; white-space: nowrap; }
  .header__inner { gap: 12px; }
  .header__contact { font-size: 13px; white-space: nowrap; }
}
/* Desktop nav visible: hide the fixed hamburger and its spacer. */
@media screen and (min-width: 1281px) {
  .header .menu-toggle { display: none; }
  .header__actions::after { content: none; display: none; width: 0; flex: 0 0 0; }
}
@media screen and (min-width: 901px) and (max-width: 1280px) {
  .desktop-nav { display: none; }
  .header .menu-toggle { display: flex; }
  .header__contact { display: flex; font-size: 13px; white-space: nowrap; }
}
@media screen and (max-width: 900px) {
  .desktop-nav { display: none; }
  .header .menu-toggle { display: flex; }
}
#company,
#consultation-form,
#languages {
  scroll-margin-top: 110px;
}
