/* SASHI Medical Reach — shared design system, v1.2.0.
 * Page layouts live in their own stylesheets. No framework or external fonts.
 */
:root {
  --navy-900: #17324b;
  --navy-800: #203b54;
  --navy-700: #34485d;
  --navy-600: #52697d;
  --blue-400: #566d80;
  --rose-600: #934e5c;
  --rose-500: #a35e6a;
  --rose-300: #d7b6bc;
  --greige-300: #ded7d0;
  --greige-200: #ebe6e0;
  --greige-100: #f4f0ec;
  --warm: #faf8f5;
  --white: #fff;
  --ink: #35404a;
  --muted: #5c6a76;
  --line: #dce1e4;
  --shadow: 0 16px 44px rgb(25 47 67 / 7%);
  --shadow-sm: 0 6px 22px rgb(25 47 67 / 5%);
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --container-narrow: 780px;
  --gutter: clamp(16px, 3vw, 40px);
  --section-space: clamp(64px, 7.3vw, 104px);
  --section-gap: clamp(28px, 4vw, 48px);
  --font-body: clamp(15px, .16vw + 14.4px, 17px);
  --font-small: 13px;
  --font-h1: clamp(30px, 3.3vw + 10px, 52px);
  --font-h2: clamp(26px, 2.1vw + 13px, 40px);
  --header-height: 64px;
  --wp-admin-offset: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); font-size: var(--font-body); line-height: 1.9; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
svg { display: block; flex-shrink: 0; }
::selection { background: #eddce0; color: var(--navy-900); }
[hidden] { display: none !important; }
:where(h1, h2, h3, h4, p, li) { word-break: normal; line-break: strict; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }
:where(h1, h2, h3, p) { overflow-wrap: break-word; }
.text-phrase { display: inline-block; max-width: 100%; word-break: normal; overflow-wrap: normal; line-break: strict; }
.text-accent { color: var(--rose-600); }
:where([id]) { scroll-margin-top: calc(var(--header-height) + var(--wp-admin-offset) + 24px); }
:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible { outline: 3px solid var(--navy-600); outline-offset: 4px; }
:where(.svc-final, .ip-final-cta, .final-cta, .mr-about-cta) :focus-visible { outline-color: #fff; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; z-index: 9999; inset: 12px auto auto 12px; width: auto; height: auto; margin: 0; padding: 12px 18px; clip-path: none; color: var(--navy-900); background: #fff; border: 2px solid currentColor; border-radius: var(--radius-sm); }
.container-wide, .container-narrow { width: min(calc(100% - var(--gutter) * 2), var(--container)); margin-inline: auto; }
.container-narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-space); position: relative; }
.section--soft { background: var(--warm); }
.section-heading { max-width: 780px; margin-bottom: var(--section-gap); }
.section-heading--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 40px; }
.section-heading--split > p { max-width: 480px; margin: 0; color: var(--muted); }
.section-heading--compact { margin-bottom: 28px; }
.section-heading h2 { margin: .15em 0 .45em; color: var(--navy-900); font-family: var(--serif); font-size: var(--font-h2); line-height: 1.55; letter-spacing: .015em; }
.section-heading h2 > span:not(.text-phrase) { color: var(--rose-600); }
.section-heading p { margin: 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 14px; color: var(--blue-400); font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: .12em; overflow-wrap: anywhere; }
.eyebrow::before { content: ""; width: 24px; height: 1px; flex: 0 0 auto; background: currentColor; }
.eyebrow--light, .section-heading .eyebrow--light { color: #e3cdd2; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; }
.icon--xs { width: 16px; height: 16px; }
.icon--sm { width: 18px; height: 18px; }
.icon--xl { width: 44px; height: 44px; }

/* One action style across all dedicated templates. */
.button, .header-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; min-height: 48px; padding: 13px 24px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.6; letter-spacing: .015em; text-align: center; cursor: pointer; }
.button--primary, .button--rose, .header-cta { background: var(--rose-600); color: #fff; box-shadow: 0 6px 18px rgb(147 78 92 / 14%); }
.button--outline, .button--ghost { color: var(--navy-900); background: #fff; border-color: #82919f; }
.button--lg { min-height: 52px; padding: 14px 26px; }
.button--xl { min-height: 56px; padding: 16px 28px; font-size: 16px; }
.button svg, .header-cta svg { flex: 0 0 auto; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--rose-600); font-size: 15px; font-weight: 700; text-decoration: underline; }
@media (hover: hover) {
  .button--primary:hover, .button--rose:hover, .header-cta:hover { background: #7f3e4c; box-shadow: 0 8px 22px rgb(147 78 92 / 20%); }
  .button--outline:hover, .button--ghost:hover { background: var(--warm); border-color: var(--navy-900); }
  .text-link:hover { text-decoration-thickness: 2px; }
}

/* Header: roomy desktop navigation; a compact panel when links need more room. */
.site-header { position: sticky; top: var(--wp-admin-offset); z-index: 1000; background: rgb(255 255 255 / 97%); border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; }
.brand__mark { position: relative; display: block; width: 30px; height: 34px; flex: 0 0 30px; transform: rotate(-12deg); }
.brand__mark span { position: absolute; border: 1.5px solid #748c9e; border-radius: 50% 8% 50% 8%; transform: rotate(45deg); background: #edf2f5; }
.brand__mark span:nth-child(1) { width: 10px; height: 24px; left: 1px; top: 7px; }
.brand__mark span:nth-child(2) { width: 9px; height: 29px; left: 10px; top: 1px; }
.brand__mark span:nth-child(3) { width: 7px; height: 21px; left: 20px; top: 9px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.brand__text strong { color: var(--navy-900); font-family: var(--serif); font-size: clamp(16px, 1.4vw, 20px); letter-spacing: 0; white-space: nowrap; }
.brand__text small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; letter-spacing: 0; }
.brand--custom { max-width: min(60vw, 260px); }
.brand--custom .custom-logo-link { display: block; }
.brand--custom img { width: auto; height: auto; max-height: 48px; }
.primary-nav { display: none; min-width: 0; }
.primary-nav__list, .primary-nav__list ul, .mobile-nav__list, .mobile-nav__list ul { margin: 0; padding: 0; list-style: none; }
.primary-nav__list { display: flex; align-items: center; gap: clamp(12px, 1vw, 20px); }
.primary-nav__list li { position: relative; }
.primary-nav__list a { display: flex; align-items: center; min-height: 44px; color: var(--navy-800); font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.primary-nav__list a:hover, .primary-nav__list .current-menu-item > a { color: var(--rose-600); text-decoration: underline; }
.primary-nav__list .sub-menu { position: absolute; z-index: 110; top: 100%; left: 0; width: 240px; max-width: 80vw; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); visibility: hidden; opacity: 0; pointer-events: none; }
.primary-nav__list .sub-menu a { padding: 8px 10px; white-space: normal; }
.primary-nav__list .sub-menu .sub-menu { top: 0; left: 100%; }
.primary-nav__list > li:last-child > .sub-menu { right: 0; left: auto; }
.primary-nav__list li:hover > .sub-menu, .primary-nav__list li:focus-within > .sub-menu { visibility: visible; opacity: 1; pointer-events: auto; }
.header-cta { display: none; flex-shrink: 0; padding: 11px 16px; font-size: 13px; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.menu-toggle__close, .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
.mobile-panel { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-height) - var(--wp-admin-offset)); max-height: calc(100dvh - var(--header-height) - var(--wp-admin-offset)); overflow-y: auto; overscroll-behavior: contain; padding: 20px var(--gutter) max(24px, env(safe-area-inset-bottom)); background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.mobile-panel nav { max-width: var(--container); margin-inline: auto; }
.mobile-nav__list a { display: block; padding: 12px 4px; min-height: 48px; border-bottom: 1px solid var(--line); color: var(--navy-900); font-size: 15px; font-weight: 700; }
.mobile-nav__list ul { padding-left: 18px; }
.mobile-nav__list ul a { font-size: 14px; font-weight: 500; }
.mobile-panel .button { width: 100%; margin-top: 20px; }

/* FAQ markup is shared by the home, service and information templates. */
.faq-list { margin: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item__button { display: grid; grid-template-columns: 22px minmax(0, 1fr) 32px; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 20px 0; border: 0; background: transparent; color: var(--navy-900); font-size: 16px; font-weight: 700; line-height: 1.8; text-align: left; cursor: pointer; list-style: none; }
summary.faq-item__button::-webkit-details-marker { display: none; }
.faq-item__q { color: var(--rose-600); font-family: var(--serif); font-size: 18px; }
.faq-item__plus { display: grid; place-items: center; width: 30px; height: 30px; background: var(--warm); color: var(--navy-700); border-radius: 50%; font-weight: 400; }
.faq-item[open] .faq-item__plus, .faq-item__button[aria-expanded="true"] .faq-item__plus { transform: rotate(45deg); }
.faq-item__panel { padding: 0 0 24px 34px; color: var(--muted); }
.faq-item__panel p { margin: 0; font-size: 15px; line-height: 1.95; }
.faq-item__panel p > span { display: inline-block; margin-right: 10px; color: var(--rose-600); font-weight: 700; }

/* Clear common navigation and a consistent closing action. */
.mr-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 28px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.mr-breadcrumb a { display: inline-flex; align-items: center; min-height: 28px; text-decoration: underline; }
.mr-breadcrumb a:hover { color: var(--rose-600); }
.svc-final, .ip-final-cta, .final-cta { position: relative; padding-block: clamp(48px, 5.5vw, 80px); color: #fff; background: var(--navy-900); }
.svc-final__inner, .ip-final-cta__inner, .final-cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px 56px; }
.svc-final h2, .ip-final-cta h2, .final-cta h2 { margin: .15em 0 .5em; color: #fff; font-family: var(--serif); font-size: var(--font-h2); line-height: 1.55; }
.svc-final p, .ip-final-cta p, .final-cta p { max-width: 700px; margin: 0; color: #e0e7eb; font-size: 15px; line-height: 1.9; }
.svc-final__action, .ip-final-cta__inner > div:last-child, .final-cta__action { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.svc-final small, .ip-final-cta small, .final-cta small { max-width: 36em; color: #e0e7eb; font-size: 12px; line-height: 1.8; text-align: center; }
.svc-final .eyebrow, .ip-final-cta .eyebrow, .final-cta .eyebrow { color: #e3cdd2; font-size: 12px; }
.svc-final :focus-visible, .ip-final-cta :focus-visible, .final-cta :focus-visible { outline-color: #fff; }

/* Footer remains useful at every screen width. */
.site-footer { padding-block: clamp(40px, 5vw, 64px) 24px; background: var(--warm); border-top: 1px solid var(--line); }
.site-footer__inner { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(0, 1.6fr); align-items: start; gap: 36px 56px; }
.brand--footer .brand__text strong { font-size: 20px; }
.brand--footer .brand__text small { font-size: 12px; }
.footer-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { display: flex; align-items: center; min-height: 44px; color: var(--navy-800); font-size: 13px; line-height: 1.7; }
.footer-menu a:hover { color: var(--rose-600); text-decoration: underline; }
.site-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer__legal p { margin: 0; }
.site-footer__legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__legal-links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: underline; }

/* Motion states and interaction timing are centralized in motion.css. */

@media (min-width: 601px) {
  .admin-bar { --wp-admin-offset: 46px; }
}
@media (min-width: 700px) {
  .mobile-only { display: none; }
  :root { --header-height: 76px; }
  .brand__text small { font-size: 11px; }
  .header-cta { display: inline-flex; margin-left: auto; }
  .mobile-nav__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .mobile-panel .button { width: auto; min-width: 280px; }
}
@media (min-width: 783px) { .admin-bar { --wp-admin-offset: 32px; } }
@media (min-width: 1120px) { :root { --header-height: 88px; } }
@media (min-width: 1360px) {
  .primary-nav { display: block; margin-left: auto; }
  .header-cta { margin-left: 0; }
  .menu-toggle, .mobile-panel { display: none; }
}
@media (max-width: 1119px) {
  .section-heading--split { grid-template-columns: 1fr; gap: 16px; }
  .section-heading--split > p { max-width: 720px; }
  .svc-final__inner, .ip-final-cta__inner, .final-cta__inner { grid-template-columns: 1fr; gap: 28px; }
  .svc-final__action, .ip-final-cta__inner > div:last-child, .final-cta__action { align-items: flex-start; }
  .svc-final small, .ip-final-cta small, .final-cta small { text-align: left; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 699px) {
  .desktop-only { display: none; }
  .button { font-size: 14px; }
  .button--xl { width: 100%; font-size: 15px; }
  .section-heading h2 { line-height: 1.6; }
  .faq-item__button { grid-template-columns: 20px minmax(0, 1fr) 28px; gap: 10px; font-size: 15px; }
  .faq-item__panel { padding-left: 30px; }
  .footer-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
  .site-footer__legal { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .site-footer, .svc-final, .ip-final-cta, .final-cta { display: none; }
  .section { padding-block: 24px; }
  details > * { display: block; }
}
