/* ============================================================
   Atchison Eye Center — Interior page system
   Depends on core.css (tokens, header, footer, buttons)
   ============================================================ */

/* Page hero banner ------------------------------------------ */
.page-hero {
  background: linear-gradient(160deg, var(--teal-800), var(--teal-700) 65%, var(--teal-600));
  color: #eaf3f7; padding: clamp(1.5rem, 3.5vw, 2.4rem) 0; text-align: center;
}
.page-hero .crumb { font-size: .82rem; color: #a9d3e4; margin-bottom: .8rem; }
.page-hero .crumb a { color: #cfe6ef; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: #cfe2ea; max-width: 60ch; margin: 0 auto; font-size: 1.08rem; }

/* Readable prose column ------------------------------------- */
.prose { width: min(92%, 820px); margin: clamp(1.75rem,3.5vw,2.5rem) auto; }
.prose h2 { margin-top: 1.7rem; padding-bottom: .5rem; border-bottom: 2px solid var(--teal-100); }
.prose h3 { color: var(--teal-700); margin-top: 1.6rem; }
.prose p, .prose li { color: var(--slate); }
.prose ul { padding-left: 1.2rem; }
.prose .callout { background: var(--teal-50); border-left: 4px solid var(--teal-500); border-radius: 0 12px 12px 0; padding: 1.1rem 1.3rem; margin: 1.4rem 0; }
.prose .callout p { margin: 0; color: var(--teal-900); font-weight: 500; }
.prose .meta { color: var(--slate); font-size: .9rem; }
.prose address { font-style: normal; line-height: 1.9; }

/* About — doctors (full bio rows) --------------------------- */
.bio-row { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.4rem, 3vw, 2.4rem); align-items: center; max-width: 940px; margin-inline: auto;
  padding: clamp(.8rem,1.5vw,1.2rem) 0; border-bottom: 1px solid var(--line); }
.bio-row:last-child { border-bottom: 0; }
.bio-row__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/5; background: var(--teal-50); }
.bio-row__photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-row__photo .ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-head); font-size: 3rem; color: var(--teal-500); }
.bio-row__role { display: block; color: var(--teal-700); font-weight: 600; font-size: .98rem; margin-bottom: .7rem; }
.bio-row h3 { font-size: 1.6rem; margin: .1rem 0 .4rem; }
.bio-row .quote { font-style: italic; color: var(--teal-700); border-left: 3px solid var(--heart); padding-left: 1rem; margin: 0 0 1rem; }
.bio-row__memberships { margin-top: .8rem; font-size: .92rem; }

/* Services — category blocks -------------------------------- */
.svc-detail { display: grid; gap: 1.6rem; }
.svc-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 1fr 1.4fr; }
.svc-block:nth-child(even) { grid-template-columns: 1.4fr 1fr; }
.svc-block:nth-child(even) .svc-block__media { order: 2; }
.svc-block__media { min-height: 260px; background-size: cover; background-position: center; position: relative; }
.svc-block__media .tag { position: absolute; top: 1rem; left: 1rem; background: var(--tag-bg); color: #fff; font-family: var(--font-head); padding: .3rem .8rem; border-radius: 100px; font-size: .8rem; }
.svc-block__body { padding: clamp(1.6rem,3vw,2.4rem); }
.svc-block__body h2 { border: 0; margin-top: 0; }
.svc-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.svc-list li { display: flex; align-items: center; gap: .55rem; font-weight: 500; color: var(--ink); font-size: .95rem; }
.svc-list li::before { content: "✓"; color: var(--teal-500); font-weight: 700; }

/* Specialty — alternating feature split --------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem,3.5vw,3rem); align-items: center; padding: clamp(1rem,2vw,1.6rem) 0; }
.feature:first-child { padding-top: 0; }
.feature:nth-child(even) .feature__media { order: 2; }
/* One frame size for every instrument; the whole picture is always shown. */
.feature__media { aspect-ratio: 4/3; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: .75rem; min-width: 0; }
.feature__media img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
/* The one picture with no high-resolution original: shown on white, not stretched to the frame. */
.feature__media--product { display: grid; place-items: center; }
.feature__media--product img { width: auto; height: 100%; max-height: 360px; max-width: 100%; }
.feature h2 { margin-bottom: .4rem; }
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.2rem; }
.feature-note { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.feature-note h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.feature-note p { margin: 0; }
.feature ul { padding-left: 0; list-style: none; display: grid; gap: .55rem; margin: 1rem 0 1.4rem; }
.feature li { display: flex; gap: .6rem; align-items: flex-start; color: var(--slate); }
.feature li::before { content: "✦"; color: var(--heart); }

/* Info cards (contact) -------------------------------------- */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2.4rem; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-sm); }
.info-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; font-size: 1.5rem; margin: 0 auto .8rem; }
.info-card h3, .info-card__title { font-family: var(--font-head); color: var(--teal-900); font-weight: 600; line-height: 1.15; font-size: 1.05rem; margin: 0 0 .3rem; }
/* Plain links only: a .btn inside a card keeps the button's own colors. */
.info-card p, .info-card a:where(:not(.btn)) { font-size: .95rem; color: var(--slate); margin: 0; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Forms ------------------------------------------------------ */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.6rem,3vw,2.4rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-field { margin-bottom: 1rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 600; font-size: .88rem; color: var(--teal-800); margin-bottom: .35rem; }
.form-field label .req { color: var(--heart); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit;
  font-size: .97rem; color: var(--ink); background: #fff; transition: border-color .15s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--teal-700); }
.hp-field { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--slate); }
.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px; font-size: .92rem; font-weight: 500; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f6ee; color: #1f7a4d; }
.form-status.err { background: #fdeceb; color: #c0392b; }
.hipaa-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--slate); background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 10px; padding: .9rem 1rem; margin: 1rem 0; }
.hipaa-consent input { margin-top: .2rem; }

/* Split layout for form pages ------------------------------- */
.form-layout { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(1.6rem,4vw,3rem); align-items: start; }
.form-aside .info-card { text-align: left; margin-bottom: 1rem; display: flex; gap: .9rem; align-items: flex-start; }
.form-aside .info-card .ico { margin: 0; flex: none; }

@media (max-width: 860px) {
  .bio-row, .svc-block, .svc-block:nth-child(even), .feature, .form-layout { grid-template-columns: 1fr; }
  .bio-row__photo { width: min(100%, 280px); margin-inline: auto; }
  .svc-block__media, .feature__media { order: -1 !important; }
  .info-cards { grid-template-columns: 1fr; }
  .feature-pair { grid-template-columns: 1fr; }
  .form-row, .svc-list { grid-template-columns: 1fr; }
}
