
@font-face {
  font-family: "Lato";
  src: url("fonts/lato-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("fonts/lato-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --cyan: #04afe0;
  --cyan-dark: #008bb8;
  --cyan-pale: #e7f8fd;
  --purple: #803c99;
  --purple-dark: #5f2a76;
  --purple-soft: rgba(128, 60, 153, 0.12);
  --navy: #13263a;
  --ink: #1d3348;
  --muted: #5b6f80;
  --line: #d7e3ea;
  --pale: #f3f7f9;
  --warm: #fbfaf8;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(19, 38, 58, 0.14);
  --shadow-soft: 0 10px 30px rgba(19, 38, 58, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;
  --side-padding: 22px;
  --header-height: 78px;
  --ease: 200ms cubic-bezier(.2,.7,.2,1);
  --grad-mesh: radial-gradient(900px 420px at 12% 18%, rgba(4,175,224,.22), transparent 60%),
               radial-gradient(700px 380px at 88% 12%, rgba(128,60,153,.2), transparent 55%),
               radial-gradient(800px 480px at 70% 88%, rgba(4,175,224,.12), transparent 50%),
               linear-gradient(160deg, #f7fbff 0%, #eef5fa 45%, #f8f5fb 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-width: 320px; min-height: 100vh; margin: 0;
  color: var(--ink); background: var(--white);
  font-family: "Lato", system-ui, sans-serif;
  font-size: 1.03rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 72px;
}
@media (min-width: 901px) { body { padding-bottom: 0; } }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
p, ul, ol, blockquote, figure { margin-top: 0; }
p:last-child, ul:last-child, ol:last-child, blockquote:last-child { margin-bottom: 0; }

h1,h2,h3,h4 {
  margin: 0 0 .75rem; color: var(--navy); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }

.container {
  width: min(100% - (var(--side-padding) * 2), var(--container));
  margin-inline: auto;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  padding: .7rem 1rem; background: var(--navy); color: #fff;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.icon { width: 1.05em; height: 1.05em; flex: 0 0 auto; }
.accent { color: var(--purple); }

/* Topbar */
.topbar {
  background: linear-gradient(90deg, #0f2234, #1a3550 55%, #2a1f45);
  color: rgba(255,255,255,.92);
  font-size: .78rem; letter-spacing: .02em;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px; gap: 1rem;
}
.topbar p, .topbar span { margin: 0; }
.topbar a {
  color: #fff; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
}
.topbar a:hover { color: var(--cyan); }

/* Sticky glass header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(19,38,58,.06);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: box-shadow var(--ease), background var(--ease), min-height var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(19,38,58,.08);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-height); gap: 1.25rem;
  transition: min-height var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: 64px; }

.logo {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  max-width: 210px; text-decoration: none; line-height: 1;
}
.logo img {
  width: min(200px, 48vw); height: auto;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.4));
}
.site-header.is-scrolled .logo img { width: min(170px, 44vw); }

.main-nav {
  display: flex; align-items: center; margin-left: auto; gap: .15rem;
}
.main-nav > a,
.main-nav summary {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 .55rem; color: var(--navy); font-size: .9rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; background: none; border: 0;
}
.main-nav > a:hover,
.main-nav summary:hover,
.main-nav a[aria-current="page"] { color: var(--purple); }

.nav-group { position: relative; }
.nav-group summary { list-style: none; gap: .35rem; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after {
  content: ""; width: .42rem; height: .42rem;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-1px) rotate(45deg); transition: transform var(--ease);
}
.nav-group[open] summary::after { transform: translateY(2px) rotate(225deg); }
.nav-dropdown {
  position: absolute; top: calc(100% - 2px); left: -.5rem; z-index: 40;
  min-width: 220px; padding: .55rem; margin: 0; list-style: none;
  background: rgba(255,255,255,.96); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.nav-dropdown a {
  display: block; padding: .65rem .75rem; border-radius: 8px;
  text-decoration: none; font-weight: 700; color: var(--navy); font-size: .9rem;
}
.nav-dropdown a:hover { background: var(--cyan-pale); color: var(--purple); }

.nav-cta {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-height: 44px; margin-left: .55rem; padding: .65rem 1rem !important;
  color: #fff !important; background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 999px; box-shadow: 0 10px 22px rgba(128,60,153,.28);
}
.nav-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

.menu-toggle {
  display: none; align-items: center; justify-content: center; gap: .45rem;
  min-width: 48px; min-height: 48px; padding: 0 .85rem;
  color: var(--navy); background: var(--cyan-pale);
  border: 1px solid rgba(4,175,224,.28); border-radius: 12px; font-weight: 700;
}

/* Shared controls */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  margin-bottom: .85rem; color: var(--purple);
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  line-height: 1.2; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}
.lead {
  max-width: 38rem; color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.55;
}
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.button, .button-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 52px; padding: .9rem 1.3rem; border-radius: 999px;
  font-size: .95rem; font-weight: 700; text-decoration: none; transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
}
.button {
  color: #fff; background: linear-gradient(135deg, #8d45a8, #622d77);
  border: 0; box-shadow: 0 14px 28px rgba(128,60,153,.28);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(128,60,153,.34); }
.button-outline {
  color: var(--navy); background: rgba(255,255,255,.72);
  border: 1.5px solid rgba(19,38,58,.18);
}
.button-outline:hover { border-color: var(--purple); color: var(--purple); background: #fff; }
.button .icon { margin-left: .35rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--purple); font-weight: 700; text-decoration: none;
}
.text-link:hover { color: var(--purple-dark); }

/* Hero */
.hero-home {
  position: relative; overflow: hidden;
  padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(2.2rem, 4vw, 3.2rem);
  background: var(--grad-mesh);
}
.hero-home::before {
  content: ""; position: absolute; inset: auto -10% -30% 40%; height: 70%;
  background: radial-gradient(circle at center, rgba(128,60,153,.16), transparent 65%);
  pointer-events: none;
}
.hero-layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-copy h1 { max-width: 11ch; margin-bottom: 1rem; }
.hero-copy .lead { margin-bottom: .55rem; }
.hero-note {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.15rem; color: var(--muted); font-weight: 700; font-size: .95rem;
}
.hero-visual {
  position: relative; max-width: 480px; margin-inline: auto;
}
.hero-visual::before,
.hero-visual::after {
  content: ""; position: absolute; border-radius: 24px; z-index: 0;
}
.hero-visual::before {
  inset: -18px -22px 40px 28px;
  background: linear-gradient(145deg, rgba(4,175,224,.55), rgba(128,60,153,.45));
  transform: rotate(3deg);
}
.hero-visual::after {
  inset: 34px 34px -18px -18px;
  background: rgba(19,38,58,.12);
  transform: rotate(-4deg);
}
.hero-visual img {
  position: relative; z-index: 1; width: 100%;
  border-radius: 22px; box-shadow: var(--shadow);
  border: 4px solid #fff;
}
.photo-caption {
  position: relative; z-index: 2; margin: -1.6rem 1rem 0 auto; max-width: 18rem;
  padding: .85rem 1rem; border-radius: 14px;
  background: rgba(19,38,58,.92); color: #fff; font-size: .88rem; font-weight: 700;
  box-shadow: var(--shadow-soft);
}

/* Trust strip */
.trust-strip {
  padding: 1.1rem 0; background: #fff;
  border-block: 1px solid rgba(19,38,58,.06);
  box-shadow: 0 10px 40px rgba(19,38,58,.04);
}
.trust-items {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.trust-items > div {
  display: grid; gap: .2rem; padding: .85rem 1rem; border-radius: 14px;
  background: linear-gradient(180deg, #fff, var(--pale));
  border: 1px solid rgba(19,38,58,.06);
}
.trust-items strong {
  color: var(--navy); font-size: .98rem; letter-spacing: -.01em;
}
.trust-items span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: clamp(3.4rem, 7vw, 5.4rem) 0; }
.section-heading { margin-bottom: 2rem; max-width: 44rem; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading > p { color: var(--muted); font-size: 1.05rem; max-width: 40rem; }
.color-section { background: linear-gradient(180deg, #f4fafc 0%, #f7f3fa 100%); }
.dark-section {
  background: linear-gradient(145deg, #13263a 0%, #1d3552 55%, #2a2144 100%);
  color: rgba(255,255,255,.88);
}
.dark-section h2, .dark-section h3, .dark-section .eyebrow { color: #fff; }
.dark-section .eyebrow::before { background: linear-gradient(90deg, var(--cyan), #d28cff); }
.dark-section .section-heading > p { color: rgba(255,255,255,.72); }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.image-panel img {
  width: 100%; border-radius: 22px; box-shadow: var(--shadow-soft);
  border: 3px solid #fff;
}
.copy-panel .button-row { margin-top: 1.2rem; }

/* Services */
.service-list {
  display: grid; gap: 1rem;
}
.service-list.two-column { grid-template-columns: repeat(2, 1fr); }
.service-card {
  display: grid; grid-template-columns: auto 1fr; gap: .95rem; align-items: start;
  padding: 1.2rem 1.25rem; border-radius: 18px; text-decoration: none;
  background: rgba(255,255,255,.9); border: 1px solid rgba(19,38,58,.07);
  box-shadow: 0 8px 24px rgba(19,38,58,.05);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(19,38,58,.12);
  border-color: rgba(128,60,153,.25);
}
.service-card h3 { margin-bottom: .35rem; }
.service-card p { color: var(--muted); font-size: .95rem; }
.service-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(4,175,224,.18), rgba(128,60,153,.16));
  color: var(--purple); font-weight: 700; font-size: 1.1rem;
}
.service-icon svg { width: 22px; height: 22px; }

/* Process */
.process-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.process-step {
  padding: 1.35rem 1.25rem; border-radius: 18px;
  background: #fff; border: 1px solid rgba(19,38,58,.07);
  box-shadow: var(--shadow-soft); min-height: 100%;
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: .9rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff; font-weight: 700; font-size: .9rem;
}
.process-step h3 { margin-bottom: .45rem; }
.process-step p { color: var(--muted); }

/* Meet Terra polish */
.meet-terra .image-panel { position: relative; }
.meet-terra .image-panel::after {
  content: ""; position: absolute; inset: auto -12px -12px auto; width: 42%; height: 42%;
  border-radius: 18px; z-index: -1;
  background: linear-gradient(135deg, rgba(4,175,224,.35), rgba(128,60,153,.35));
}

/* Reviews */
.review-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quote-card {
  padding: 1.4rem 1.3rem; border-radius: 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.quote-card blockquote { margin: 0 0 1rem; font-size: 1rem; line-height: 1.6; }
.quote-card footer { color: rgba(255,255,255,.7); font-weight: 700; }

/* Callout / visit */
.callout {
  padding: 1.2rem 1.25rem; border-radius: 18px;
  background: var(--pale); border: 1px solid rgba(19,38,58,.06);
}
.callout h3 { margin-bottom: .4rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 6vw, 4.4rem) 0;
  background: linear-gradient(120deg, #13263a 0%, #2a2148 48%, #0f4e66 100%);
  color: #fff;
}
.cta-band::before {
  content: ""; position: absolute; inset: -20% 40% auto -10%; height: 80%;
  background: radial-gradient(circle, rgba(4,175,224,.25), transparent 65%);
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; max-width: 14ch; }
.cta-inner p { color: rgba(255,255,255,.78); max-width: 34rem; }
.cta-inner .eyebrow { color: #b7eefc; }
.cta-inner .eyebrow::before { background: #04afe0; }
.cta-inner .button {
  background: #fff; color: var(--navy); box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
.cta-inner .button-outline {
  color: #fff; border-color: rgba(255,255,255,.45); background: transparent;
}
.cta-inner .button-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Page hero */
.page-hero {
  padding: clamp(2.2rem, 5vw, 3.6rem) 0;
  background: var(--grad-mesh);
  border-bottom: 1px solid rgba(19,38,58,.05);
}
.page-hero h1 { max-width: 16ch; }

/* Footer */
.site-footer {
  padding: 3.2rem 0 1.4rem;
  background: #0f1d2c; color: rgba(255,255,255,.78);
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 1.5rem;
  padding-bottom: 1.8rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .footer-logo {
  display: inline-block; margin-bottom: 1rem; max-width: 190px;
}
.footer-brand .footer-logo img {
  width: 100%; height: auto;
  /* logo is dark-on-transparent; invert for dark footer */
  filter: brightness(0) invert(1);
  opacity: .95;
}
.footer-brand h2 { color: #fff; font-size: 1.55rem; }
.footer-brand p { color: rgba(255,255,255,.7); }
.footer-brand .text-link { color: #7fe0ff; }
.site-footer h3 {
  color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem;
}
.footer-contact a, .footer-links a {
  display: block; color: rgba(255,255,255,.78); text-decoration: none; margin-bottom: .45rem;
}
.footer-contact a:hover, .footer-links a:hover { color: #fff; }
.hours-list { margin: 0; }
.hours-list > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .28rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .92rem;
}
.hours-list dt { font-weight: 700; color: #fff; }
.hours-list dd { margin: 0; }
.footer-disclaimer {
  margin-top: 1.3rem; padding: 1rem 1.1rem; border-radius: 14px;
  background: rgba(255,255,255,.04); font-size: .85rem; color: rgba(255,255,255,.62);
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.2rem; font-size: .85rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Mobile callbar — leave clear space for DearDoc launcher (bottom-right) */
.mobile-callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: .65rem .75rem calc(.65rem + env(safe-area-inset-bottom, 0));
  padding-right: calc(.75rem + 92px); /* clear chat avatar */
  background: rgba(255,255,255,.92); border-top: 1px solid rgba(19,38,58,.08);
  backdrop-filter: blur(12px); display: none;
  pointer-events: none;
}
.mobile-call {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%; max-width: 100%;
  min-height: 52px; border-radius: 999px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #8d45a8, #622d77);
  box-shadow: 0 12px 24px rgba(128,60,153,.28); font-weight: 700;
  overflow: hidden;
}
.mobile-call > span {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15;
  min-width: 0;
}
.mobile-call .call-label-full { display: none; }
.mobile-call .call-label-short { display: inline; }
.mobile-call small { display: block; font-size: .78rem; opacity: .9; font-weight: 600; }
@media (min-width: 420px) {
  .mobile-call .call-label-full { display: inline; }
  .mobile-call .call-label-short { display: none; }
}

/* Reveal animations */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card:hover, .button:hover { transform: none; }
}

/* Forms / misc preserved lightly */
.sidebar-box, .content-card, .faq-item, .info-card {
  border-radius: 16px;
}
.faq-item, details.faq-item {
  background: #fff; border: 1px solid rgba(19,38,58,.08);
  margin-bottom: .7rem; padding: .2rem .9rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-layout, .split, .process-list, .review-list, .footer-grid, .service-list.two-column, .trust-items {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: calc(var(--header-height) + 36px) 0 0 0;
    display: none; flex-direction: column; align-items: stretch;
    gap: .2rem; padding: 1rem 1.1rem 2rem; margin: 0;
    background: rgba(255,255,255,.97); overflow: auto;
    border-top: 1px solid rgba(19,38,58,.06);
  }
  .site-header.is-scrolled ~ * .main-nav,
  .main-nav.is-open { /* noop helper */ }
  .main-nav.is-open { display: flex; }
  body.nav-open { overflow: hidden; }
  .main-nav > a, .main-nav summary {
    min-height: 52px; padding: .85rem .4rem; border-bottom: 1px solid rgba(19,38,58,.06);
    font-size: 1.05rem;
  }
  .nav-dropdown {
    position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 .4rem .4rem;
  }
  .nav-cta { margin: .8rem 0 0; width: 100%; }
  .hero-copy h1 { max-width: none; }
  .button-row { width: 100%; }
  .button, .button-outline { width: 100%; }
  .mobile-callbar { display: block; }
  .topbar-inner span:first-child { display: none; }
}
@media (max-width: 640px) {
  :root { --side-padding: 16px; --header-height: 70px; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo img { width: min(168px, 58vw); }
  .hero-home { padding-top: 1.8rem; }
}

/* Dec 3: smaller Terra photo (Home + About) */
.meet-terra .image-panel { justify-self: center; width: min(100%, 360px); }
.page-hero-image { justify-self: center; width: min(100%, 360px); }
.page-hero-image img, .meet-terra .image-panel img { width: 100%; height: auto; }
@media (max-width: 980px) {
  .meet-terra .image-panel, .page-hero-image { width: min(70%, 250px); margin-inline: auto; }
}

/* Dec 3: new Enhance Rehab & Wellness logo (full-color, white background) */
.logo img { filter: none; }
.footer-brand .footer-logo img { filter: none; opacity: 1; background: #fff; padding: .5rem .7rem; border-radius: 12px; }

/* Dec 3: About/service hero layout with smaller photo */
.page-hero-layout { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.page-hero-layout:not(:has(.page-hero-image)) { grid-template-columns: 1fr; }
.page-hero-image { width: min(100%, 340px); }
@media (max-width: 980px) {
  .page-hero-layout { grid-template-columns: 1fr; }
  .page-hero-image { width: min(62%, 230px); margin-inline: auto; }
}

/* Dec 3b: contact hours fully black; photo framing for portrait images */
main .hours-list dt, main .hours-list dd, main .contact-block .hours-list, main .contact-block .hours-list * { color: #000 !important; }
.image-panel:not(.x) img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.meet-terra .image-panel img { aspect-ratio: auto; object-fit: initial; }


/* Contact page layout (was missing from the original CSS) */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid rgba(19,38,58,.08);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.5rem 1.2rem;
}
.contact-block + .contact-block { margin-top: 1.15rem; padding-top: 1.1rem; border-top: 1px solid rgba(19,38,58,.08); }
.contact-block h3 { margin-bottom: .45rem; }
.contact-block a { word-break: break-word; }
.contact-form {
  background: #fff;
  border: 1px solid rgba(19,38,58,.08);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.5rem 1.2rem;
}
.contact-form iframe { display: block; width: 100%; min-height: 700px; border: 0; border-radius: 14px; background: #f7f8fa; }
main .hours-list { max-width: 22rem; }
main .hours-list > div {
  display: flex; justify-content: space-between; gap: 1.2rem;
  padding: .32rem 0; border-bottom: 1px solid rgba(19,38,58,.08);
  font-size: .95rem;
}
main .hours-list dt, main .hours-list dd { color: #000; }
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}
