/* Homepage content layout. Shared identity and controls live in site-shell.css. */
html:has(.home-page) { scroll-behavior: auto; }
.home-page {
  --home-green: #40563f;
  --home-ink: #343b32;
  background: var(--color-ivory);
  accent-color: var(--home-green);
  caret-color: var(--home-green);
}
.home-page ::selection { background: #d3dec9; color: #263a28; }
.home-page :focus-visible { outline: 3px solid var(--home-green); outline-offset: 5px; }
.home-page [hidden] { display: none !important; }
.home-page :is(h1, h2, h3) { text-wrap: balance; }
.home-page h2 { font-size: clamp(1.85rem, 3vw, 2.7rem); line-height: 1.18; }
.home-page p { max-width: 70ch; }
.home-page .home-small, .home-page .home-path-note, .home-page figcaption {
  font-size: .9rem; line-height: 1.6; color: #565e51;
}
.home-page .home-small { margin-block: .75rem 0; }
.home-page a { text-underline-offset: .25em; }
.home-page .home-text-link {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
  padding-block: .4rem; color: var(--home-green); text-decoration: underline; font-weight: 600;
}
.home-page .home-hero { padding-block: clamp(32px, 5vw, 64px); }
.home-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 64px; row-gap: 32px; align-items: start; }
.home-page .home-intro h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.08; letter-spacing: -.025em; max-width: 18ch; margin-bottom: 24px; }
.home-intro > p { font-size: 1.125rem; max-width: 56ch; margin: 0; }
.home-person { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.home-person img { width: 100%; height: 430px; object-fit: cover; object-position: center 38%; border-radius: var(--amparo-radius, 20px); }
.home-person figcaption { display: grid; gap: 2px; padding-top: 16px; }
.home-person strong { color: var(--home-ink); font-size: 1rem; }
.home-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-path { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px; border: 1px solid #d5dacd; border-radius: var(--amparo-radius, 20px); background: var(--color-warm-white); }
.home-page .home-path h2 { font-size: 1.4rem; line-height: 1.25; margin-bottom: 12px; }
.home-path > p:not(.home-path-note) { font-size: .96rem; line-height: 1.6; flex: 1; margin-bottom: 20px; }
.home-path .btn { width: 100%; }
.home-page .home-path-note { margin: 12px 0 0; font-size: .875rem; }
.home-section { padding-block: clamp(44px, 6vw, 80px); }
.home-section-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(32px, 6vw, 80px); }
.home-section-grid > div, .home-contact-layout > * { min-width: 0; }
.home-services { border-top: 1px solid #c5ccbb; }
.home-service { padding: 0; border-color: #c5ccbb; }
.home-service summary { padding: 22px 32px 22px 0; position: relative; list-style: none; }
.home-service summary::-webkit-details-marker { display: none; }
.home-service summary::after { content: ''; position: absolute; right: 4px; top: 27px; width: 9px; height: 9px; border-right: 2px solid var(--home-green); border-bottom: 2px solid var(--home-green); transform: rotate(45deg); transition: transform 180ms var(--amparo-ease, ease); }
.home-service[open] summary::after { transform: rotate(225deg); }
.home-service summary h3 { display: inline; font-family: var(--font-accent); font-size: 1.22rem; font-weight: 500; line-height: 1.4; }
.home-service > p { font-size: 1rem; }
.home-service ul { color: var(--color-taupe); padding-left: 20px; font-size: .94rem; }
.home-service .home-text-link { margin-bottom: 18px; }
.home-membership { background: #e3e8dc; }
.home-membership .btn { margin-top: 12px; }
.home-membership-benefits { list-style: none; margin: 0 0 16px; padding: 0; }
.home-membership-benefits li { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid #bcc8b2; }
.home-membership-benefits li:first-child { padding-top: 0; }
.home-membership-benefits strong { color: var(--home-ink); font-weight: 600; }
.home-membership-benefits span { color: #515d49; }
.home-contact { background: var(--color-warm-white); }
.home-section-intro { max-width: 680px; margin-bottom: 36px; }
.home-contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 7vw, 88px); align-items: start; }
.home-page .contact-form { background: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.home-page .contact-form:focus { outline-offset: 10px; }
.home-page .form-heading h3, .home-contact-info h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; line-height: 1.4; }
.home-page .form-heading p { font-size: .96rem; margin-bottom: 0; }
.home-page .form-field { gap: 8px; }
.home-page .form-field > label { color: #394433; font-weight: 600; }
.home-required { font-size: .85rem; font-weight: 400; color: #63665d; }
.home-page :is(input, select, textarea) { font-size: 1rem; background: #fffdf8; border-color: #7d8b76; border-radius: 8px; scroll-margin-top: calc(var(--nav-height) + 24px); }
.home-page input::placeholder, .home-page textarea::placeholder { color: #646b5f; opacity: 1; }
.home-page :is(input, select) { min-height: 48px; }
.home-page textarea { min-height: 110px; resize: vertical; }
.home-page .checkbox-field { align-items: flex-start; font-size: .9rem; }
.home-page .checkbox-field input { width: 22px; height: 22px; min-height: 22px; flex-shrink: 0; margin-top: 2px; }
.home-page .field-error { color: #a02c27; font-size: .9rem; margin: 0; }
.home-page [aria-invalid="true"] { border-color: #a02c27; }
.home-optional { padding: 0; border: 0; }
.home-optional > summary { min-height: 44px; padding-block: 10px; color: var(--home-green); font-size: .9rem; }
.home-optional .form-row { padding-block: 12px; }
.home-page #contact-status:empty { display: none; }
.home-direct-contact { display: grid; gap: 4px; border-top: 1px solid #c5ccbb; margin-top: 28px; padding-top: 24px; }
.home-direct-contact > a { display: flex; align-items: center; min-height: 44px; text-decoration: underline; overflow-wrap: anywhere; color: var(--home-green); font-size: .93rem; }
.home-background { margin-top: 12px; }
.home-background summary { min-height: 44px; color: var(--home-green); }
.home-background[open] summary { margin-bottom: 18px; }
.home-background p { font-size: 1rem; }
.home-collaboration .collaboration-layout { display: block; }
.home-collaboration .collaboration-highlights { display: none; }
.home-collaboration .certificate-card { max-width: 300px; margin: 20px 0 0; box-shadow: none; }
.home-collaboration .certificate-card img { height: auto; }
.home-office { border-block: 1px solid #d9dace; }
.home-office address { font-style: normal; color: #505b4a; margin-block: 20px 12px; }
.home-office-photo { margin: 0; align-self: center; min-width: 0; }
.home-office-photo figcaption { padding-top: 12px; }
.office-gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: .875rem; color: var(--home-green); }
.office-gallery-play { flex-shrink: 0; min-height: 44px; padding: 8px 14px; border: 1px solid #c5ccbb; border-radius: var(--amparo-control-radius, 12px); background: var(--color-warm-white); color: var(--home-green); font: 600 .875rem var(--font-body, sans-serif); cursor: pointer; }
.office-gallery-play:disabled { opacity: .65; cursor: default; }
.office-photo-track { display: flex; position: relative; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; border: 1px solid #d5dacd; border-radius: var(--amparo-radius, 20px); background: var(--color-warm-white); }
.office-photo-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.office-photo-slide img { display: block; width: 100%; height: clamp(340px, 35vw, 460px); object-fit: contain; }
.home-office-gallery.gallery-ready .office-photo-track { scrollbar-width: none; }
.home-office-gallery.gallery-ready .office-photo-track::-webkit-scrollbar { display: none; }
.office-gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.home-page .office-gallery-toolbar p { margin: 0; font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--home-green); }
.office-gallery-nav { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid #c5ccbb; border-radius: var(--amparo-control-radius, 12px); background: var(--color-warm-white); color: var(--home-green); cursor: pointer; }
.office-gallery-nav:disabled { opacity: .45; cursor: default; }
.office-gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.office-gallery-thumbs button { min-width: 0; min-height: 64px; padding: 3px; border: 2px solid transparent; border-radius: var(--amparo-control-radius, 12px); background: transparent; cursor: pointer; }
.office-gallery-thumbs button[aria-pressed=true] { border-color: var(--home-green); }
.office-gallery-thumbs img { display: block; width: 100%; height: 64px; object-fit: cover; border-radius: 7px; }
.home-page .office-card-large { margin: 0; background: none; box-shadow: none; }
.home-page .office-address { display: none; }
.home-resource-links { border-top: 1px solid #c5ccbb; }
.home-resource-links > a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid #c5ccbb; }
.home-resource-links > a:hover strong { text-decoration: underline; }
.home-resource-links strong { font-family: var(--font-accent); font-size: 1.2rem; color: var(--home-ink); font-weight: 500; }
.home-resource-links span span { display: block; margin-top: 6px; color: var(--color-taupe); font-size: .95rem; }
.home-resource-links i { color: var(--home-green); }
.home-scope { padding: 24px 0 40px; }
.home-page .home-scope h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.home-scope p { font-size: .9rem; max-width: 100ch; }
.home-page .whatsapp-float { background: #286744; color: #fff; border: 0; box-shadow: 0 6px 18px #203b2526; }
.home-page .whatsapp-float:hover { background: #1d5033; }
/* Desktop keeps related content close; phone layouts retain their existing rhythm. */
@media (min-width: 781px) {
  .home-page .home-hero { padding-block: 40px; }
  .home-hero-layout { column-gap: 48px; row-gap: 24px; }
  .home-section-grid, .home-contact-layout { gap: 48px; }
  .home-service summary { padding-block: 18px; }
  .home-service summary::after { top: 23px; }
  .home-background { padding-block: 6px; }
  .home-office .home-section-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .home-office-gallery { display: grid; grid-template-columns: minmax(0, 1fr) 72px; column-gap: 12px; }
  .office-gallery-header { grid-column: 1 / -1; }
  .office-photo-track { grid-column: 1; grid-row: 2; }
  .office-photo-slide img { height: auto; aspect-ratio: 1069 / 1600; }
  .office-gallery-toolbar { grid-column: 1; grid-row: 3; }
  .office-gallery-thumbs { grid-column: 2; grid-row: 2 / 4; grid-template-columns: 1fr; align-content: start; gap: 8px; margin-top: 0; }
  .home-office-photo figcaption { grid-column: 1 / -1; grid-row: 4; }
}
@media (max-width: 1099px) {
  .home-hero-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
  .home-person img { height: 360px; }
  .home-paths { gap: 20px; }
}
@media (max-width: 780px) {
  .home-page .container { width: calc(100% - 40px); }
  .home-hero-layout { grid-template-columns: 1fr; gap: 24px; }
  .home-page .home-intro h1 { font-size: clamp(2.25rem, 7vw, 3.25rem); max-width: 20ch; margin-bottom: 16px; }
  .home-person { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 18px; }
  .home-person img { width: 80px; height: 100px; object-position: center 30%; border-radius: 14px; }
  .home-person figcaption { padding: 0; font-size: .83rem; }
  .home-person strong { font-size: .93rem; }
  .home-section-grid, .home-contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .home-page .home-section h2 { max-width: 25ch; }
  .home-contact-info { border-top: 1px solid #c5ccbb; padding-top: 28px; }
  .home-page .form-row { grid-template-columns: 1fr; }
  .office-photo-slide img { height: min(460px, 105vw); }
}
@media (max-width: 540px) {
  .home-page .home-hero { padding-top: 24px; }
  .home-hero-layout { gap: 20px; }
  .home-person img { width: 72px; height: 90px; }
  .home-intro > p { font-size: 1rem; }
  .home-paths { grid-template-columns: 1fr; gap: 16px; }
  .home-path { padding: 22px; }
  .home-page .home-path h2 { font-size: 1.3rem; line-height: 1.25; }
  .home-path > p:not(.home-path-note) { margin-bottom: 18px; font-size: .95rem; line-height: 1.6; }
  .home-path .btn { width: 100%; min-height: 64px; padding: 10px; font-size: .875rem; gap: 6px; }
  .home-path .btn i { display: none; }
  .home-page .home-path-note { font-size: .875rem; line-height: 1.5; }
  .home-page .whatsapp-float { width: 48px; height: 48px; right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; }
}
