/* Photography layouts and motion for the editorial sections. */
.heading-layout:has(.heading-photo), .editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .87fr);
  align-items: center;
  gap: clamp(22px, 6vw, 86px);
}
.heading-layout h1 { font-size: clamp(3.25rem, 6.2vw, 6.3rem); }
.photo-panel {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #dce4d7;
  aspect-ratio: 4 / 3;
}
.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale .85s cubic-bezier(.2,.64,.22,1);
}
.heading-photo { aspect-ratio: 16 / 11; }
.editorial .photo-panel { aspect-ratio: 15 / 11; }
.editorial .button, .closing .button { margin-top: 22px; }
.editorial .checks { margin-top: 22px; }
.closing .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(24px, 6vw, 86px);
}
.closing-photo { aspect-ratio: 16 / 9; border: 1px solid #dbe6cb76; }
.shop-photo { aspect-ratio: 16 / 13; border: 1px solid #dbe6cb89; background: #254e46; }
.plans-hero .shop-photo { border-radius: 43% 43% 18px 18px / 24% 24% 18px 18px; box-shadow: 18px 18px 0 #bedcbd16; }
.plan-card:has(.plan-photo) { grid-template-rows: auto auto 1fr; }
.plan-photo, .card-photo { aspect-ratio: 16 / 9; border-radius: 0; }
.plan-photo img { object-position: 50% 45%; }
.plan-card .plan-cover { min-height: 140px; overflow: hidden; }
.service-card:has(.card-photo), .article-grid article:has(.card-photo) { overflow: hidden; padding: 0; gap: 0; }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 13px; padding: clamp(18px, 2.45vw, 30px); }
.service-card .card-body > a { margin-top: auto; }
.process-steps, .referral-steps { display: grid; gap: 12px; margin-top: 28px; }
.process-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.referral-steps { grid-template-columns: repeat(3, 1fr); }
.referral-steps article { background: var(--white); border-radius: 16px; padding: 22px; border: 1px solid var(--line); }
.referral-steps p { margin-top: 8px; color: var(--muted); }
.process-step { padding: 15px; border: 1px solid #c4dccc65; border-radius: 12px; background-color: #f1ffef08; }
.process-step[open] { background-color: #d7ead821; border-color: #c4dcccac; }
.process-step summary { cursor: pointer; font-weight: 720; }
.process-step p { margin: 10px 0 14px; color: #e1e9e4; font-size: .94rem; }
.step-photo { aspect-ratio: 4 / 3; border-radius: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .hero { --glow-x: 66%; --glow-y: 36%; }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(ellipse at var(--glow-x) var(--glow-y), #b8e5bc29, transparent 53%);
  }
  .hero-copy h1 { animation: heading-rise .9s .06s cubic-bezier(.2,.65,.24,1) both; }
  .hero-copy .actions { animation: heading-rise .85s .18s cubic-bezier(.2,.65,.24,1) both; }
  .heading-photo, .shop-photo { animation: polished-photo .96s cubic-bezier(.2,.65,.24,1) both; }
  .reveal { animation: editorial-enter .68s var(--reveal-delay, 0ms) cubic-bezier(.2,.65,.24,1) both; }
  .card-photo img:hover, .plan-card:hover .plan-photo img, .service-card:hover .card-photo img { scale: 1.055; }
  .process-step { transition: border-color .24s ease, background-color .26s ease; }
  .process-step[open] > :not(summary) { animation: editorial-enter .38s cubic-bezier(.2,.65,.24,1) both; }
  .faq-list details[open] > p { animation: editorial-enter .3s ease both; }
}
@keyframes polished-photo {
  from { opacity: .72; clip-path: inset(4% 3% 5% round 20px); translate: 0 12px; }
  to { opacity: 1; clip-path: inset(0 round 20px); translate: 0 0; }
}
@keyframes heading-rise {
  from { opacity: .84; translate: 0 15px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes editorial-enter {
  from { opacity: .7; translate: 0 19px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 810px) {
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  .heading-layout:has(.heading-photo), .editorial, .closing .wrap, .referral-steps { grid-template-columns: 1fr; }
  .heading-photo, .editorial .photo-panel, .shop-photo { aspect-ratio: 16 / 10; }
  .plans-hero .shop-photo { box-shadow: 8px 9px 0 #bedcbd16; }
  .plan-detail-hero { padding-block: 35px 42px; }
}
@media (max-width: 380px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* Services disclosure stays usable with pointer, keyboard, and touch. */
.service-nav {
  display: flex;
  align-items: center;
  position: relative;
  gap: 2px;
}

.service-menu summary {
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 42px;
  cursor: pointer;
  list-style: none;
}

.service-menu summary::-webkit-details-marker { display: none; }
.service-menu summary span {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  margin-top: -4px;
}

.service-menu[open] summary span { rotate: 225deg; margin-top: 3px; }
.service-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 4;
  min-width: 235px;
  padding: 9px;
  background: #142e36;
  border: 1px solid #e5e7dd45;
  border-radius: 14px;
  box-shadow: 0 12px 26px #071f2270;
}

.service-menu-panel a {
  display: block;
  padding: 6px 9px;
  border-radius: 5px;
}

.service-menu-panel a:hover { background: #ffffff12; }

#main:focus { outline: none; }

@media (prefers-reduced-motion: no-preference) {
  .service-menu[open] .service-menu-panel { animation: heading-rise .26s ease-out both; }
}

@media (max-width: 1250px) {
  .nav #navigation { display: none; }
  .nav .menu-button { display: inline-flex; }
  .nav:has(.menu-button[aria-expanded="true"]) #navigation {
    display: grid;
    align-items: start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #142e36;
    padding: 13px 27px 22px;
    gap: 0;
    max-height: calc(100vh - 75px);
    max-height: calc(100dvh - 75px);
    overflow: auto;
    box-shadow: 0 15px 18px #03172446;
  }
  .nav #navigation > a, .service-nav > a {
    padding: 10px 0;
    border-bottom: 1px solid #ffffff39;
  }
  .service-nav { display: block; }
  .service-nav > a { display: block; padding-right: 44px; }
  .service-menu summary { position: absolute; top: 0; right: 0; width: 44px; }
  .service-menu-panel {
    position: static;
    min-width: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    padding: 5px 0 6px 14px;
  }
}


.story-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.story-controls button:disabled { opacity: .5; cursor: default; }
.scrolling-stories {
  position: relative;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: calc((100% - 28px) / 3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  margin-top: 0;
}
.scrolling-stories figure { scroll-snap-align: start; }

@media (max-width: 870px) {
  .scrolling-stories { grid-auto-columns: calc((100% - 14px) / 2); }
}
@media (max-width: 580px) {
  .scrolling-stories { grid-auto-columns: 100%; }
}

.article-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: .79rem;
  color: var(--muted);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 750px);
  justify-content: center;
  gap: clamp(25px, 5vw, 70px);
}
.article-sidebar { align-self: start; position: sticky; top: 104px; }
.article-sidebar h2 { font: 740 1rem/1.35 var(--sans); margin: 0 0 8px; }
.article-sidebar nav { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.article-sidebar ol { margin: 0; padding-left: 20px; }
.article-sidebar li { margin-bottom: 7px; color: var(--muted); }
.article-sidebar a, .article-sources a { text-underline-offset: 3px; }
.article-minutes { color: var(--muted); font-size: .9rem; margin-top: 9px; }
.article-body { min-width: 0; }
.article-body > section + section { margin-top: clamp(28px, 4vw, 45px); }
.article-body h2 { font-size: clamp(1.55rem, 3.4vw, 2.45rem); line-height: 1.12; }
.article-body p, .article-body ul { margin: 11px 0 0; }
.article-body li + li { margin-top: 7px; }
.article-example { background: #e9efe5; border-left: 3px solid var(--accent); padding: 16px 20px; margin-top: 19px; }
.article-example p { white-space: pre-line; }
.article-sources { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 21px; }

@media (max-width: 760px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-sidebar { position: static; }
}

.inquiry-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-status:empty { margin: 0; }
.inquiry-status:not(:empty) { margin-top: 14px; padding: 10px 14px; border-radius: 8px; }
.inquiry-status[data-state="success"] { background: #e6f2e8; color: #174b36; }
.inquiry-status[data-state="error"] { background: #fff0e8; color: #802813; }
.inquiry-status[data-state="pending"] { color: var(--muted); }
.inquiry button:disabled { cursor: wait; opacity: .72; }


/* The employee entry stays visible beside the mobile menu. */
.nav .employee-login {
  min-height: 41px;
  padding-inline: 13px;
  border-color: #bfe4bc80;
  color: var(--mint);
  white-space: nowrap;
}
.nav .employee-login:hover { background: #bfe4bc26; color: white; }

@media (max-width: 430px) {
  .site-header .nav, .nav-actions { gap: 7px; }
  .site-header .brand img { width: clamp(92px, 30vw, 130px); }
  .nav .employee-login { font-size: .76rem; padding-inline: 9px; gap: 7px; }
  .nav .menu-button { min-width: 50px; padding-inline: 6px; }
}
