/* =========================================================
   Sujok Homeo Clinic — Location
   Loaded after style-v3.css. The header, footer, buttons, eyebrow and section titles come from
   style-v3.css unchanged; every rule here is scoped to .lo-page.
   ========================================================= */

.lo-page {
  --lo-tint: #eef5ec;          /* soft green panels (same as the topic pages) */
  --lo-field: #cfdccb;
  --lo-radius: 18px;
}
.lo-page .text-green { color: var(--text-green); }

/* ---------- Hero: full-width photo with the title in a label (as insurance.css) ---------- */
.lo-hero { position: relative; z-index: 1; }
.lo-hero-img {
  display: block; width: 100%; aspect-ratio: 2000 / 668; max-height: 600px;
  object-fit: cover; object-position: 50% 40%;
}
.lo-hero-title {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  padding: 14px clamp(28px, 4vw, 48px); white-space: nowrap;
  background: #ffffff; border-radius: 999px; box-shadow: 0 12px 30px rgba(23, 61, 43, .14);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.1; color: var(--ink-900);
}

/* ---------- Sections ---------- */
.lo-section { padding-block: var(--band-pad-y); }
.lo-hero + .lo-section { padding-top: calc(var(--band-pad-y) + 24px); }
.lo-section--tint { background: #fafcf8; }
.lo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }

.lo-card {
  padding: clamp(22px, 3vw, 36px); background: #ffffff; border: 1px solid var(--line); border-radius: var(--lo-radius);
  box-shadow: 0 10px 30px rgba(23, 61, 43, .06);
}
.lo-card[hidden] { display: none; }
.lo-card-title { margin-bottom: 18px; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--ink-900); }

/* Clinic details */
.lo-info { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.lo-info li { display: flex; gap: 14px; }
.lo-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lo-tint); color: var(--green-800); }
.lo-ic .icon { width: 20px; height: 20px; }
.lo-info h3 { margin-bottom: 2px; font-family: var(--font-sans); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-green); }
.lo-info p { line-height: 1.6; color: var(--ink-700); overflow-wrap: anywhere; }
.lo-info a { font-weight: 600; color: var(--ink-900); }
.lo-info a:hover { color: var(--green-800); }
.lo-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lo-btn-outline { background: #ffffff; border: 1.5px solid var(--green-800); color: var(--green-800); box-shadow: none; }
.lo-btn-outline:hover { background: var(--green-50); }

.lo-photo { margin: 0; overflow: hidden; border-radius: var(--lo-radius); }
.lo-photo img { display: block; width: 100%; height: 100%; min-height: 280px; object-fit: cover; }

/* Map */
.lo-map-section { padding-bottom: var(--band-pad-y); }
.lo-map { overflow: hidden; border: 1px solid var(--line); border-radius: var(--lo-radius); background: var(--lo-tint); }
.lo-map iframe { display: block; width: 100%; height: clamp(320px, 42vw, 460px); border: 0; }

/* ---------- Contact form ---------- */
.lo-grid--form { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.lo-form-intro .eyebrow { margin-bottom: 12px; }
.lo-form-lead { margin-top: 14px; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-500); }
.lo-form-lead a { font-weight: 600; color: var(--green-800); white-space: nowrap; }

.lo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.lo-field { display: grid; gap: 6px; }
.lo-field--full { grid-column: 1 / -1; }
.lo-label { font-size: .9rem; font-weight: 600; color: var(--ink-700); }
.lo-input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  background: #ffffff; border: 1px solid var(--lo-field); border-radius: 12px; font: inherit; color: var(--ink-900);
}
textarea.lo-input { resize: vertical; }
select.lo-input {
  padding-right: 38px; appearance: none; cursor: pointer;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c4757' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
}
.lo-input:focus { outline: 0; border-color: var(--green-800); box-shadow: 0 0 0 3px rgba(13, 90, 53, .12); }
.lo-input[aria-invalid="true"] { border-color: #a23b2a; box-shadow: 0 0 0 3px rgba(162, 59, 42, .1); }
.lo-msg { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: #fbeeeb; font-size: .95rem; color: #8c2f20; }
.lo-msg[hidden] { display: none; }
.lo-submit { justify-content: center; width: 100%; min-height: 50px; margin-top: 18px; }

.lo-done { text-align: center; }
.lo-done:focus { outline: 0; }
.lo-done-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 12px; border-radius: 50%; background: var(--lo-tint); color: var(--green-800); }
.lo-done-icon .icon { width: 26px; height: 26px; }
.lo-done h3 { margin-bottom: 8px; font-size: 1.6rem; color: var(--ink-900); }
.lo-done p { line-height: 1.6; color: var(--ink-700); }
.lo-preview { margin: 6px 0 18px; font-size: .88rem; color: var(--ink-500) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lo-grid, .lo-grid--form { grid-template-columns: minmax(0, 1fr); }
  .lo-photo img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  /* phones: taller crop, centred on the receptionist */
  .lo-hero-img { aspect-ratio: 2.3 / 1; object-position: 55% 40%; }
  .lo-hero-title { padding: 10px 24px; font-size: 1.5rem; }
}
@media (max-width: 360px) {
  .lo-hero-title { padding: 8px 18px; font-size: 1.25rem; }
}
@media (max-width: 560px) {
  .lo-fields { grid-template-columns: minmax(0, 1fr); }
  .lo-btns .btn { flex: 1 1 100%; justify-content: center; }
}
