/* Fox Run Eye Care: Optician Near Portsmouth page. Colors only via tokens. */

/* ─── Page heading ─────────────────────────────────────── */
.op-page-head {
  text-align: left;
  margin-bottom: 2rem;
}
.op-page-head h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--teal-dark);
  line-height: var(--lh-tight);
  text-wrap: balance;
  margin: 0;
}

/* ─── Intro hero (2-col: Colin + text) ─────────────────── */
.op-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.op-intro__img-col {
  display: flex;
  flex-direction: column;
}
.op-intro__img-wrap {
  border-radius: var(--radius-img);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 72, 92, 0.15);
  background: var(--white);
}
.op-intro__img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-position: center top;
}
.op-intro__caption {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: var(--lh-body);
  text-align: left;
  margin: 0.75rem 0 0;
}
.op-intro__h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--teal-dark);
  line-height: var(--lh-tight);
  text-wrap: balance;
  margin: 0 0 1rem;
}
.op-intro__text-col p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  line-height: var(--lh-body);
  margin: 0 0 1rem;
}
.op-intro__text-col p:last-of-type { margin-bottom: 0; }
.op-intro__text-col a:not(.btn) { color: var(--teal); font-weight: 600; text-decoration: underline; }
.op-intro__text-col .btn-row { margin-top: 1.5rem; }

/* Flipped: image right, text left (desktop) */
@media (min-width: 768px) {
  .op-intro--flip .op-intro__img-col { grid-column: 2; grid-row: 1; }
  .op-intro--flip .op-intro__text-col { grid-column: 1; grid-row: 1; }
}

/* ─── Feature text block (text-only sections) ──────────── */
.op-feature {
  max-width: var(--content-narrow);
  margin: 0 auto;
}
.op-feature__h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--teal-dark);
  line-height: var(--lh-tight);
  text-wrap: balance;
  margin: 0 0 1rem;
}
.op-feature p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  line-height: var(--lh-body);
  margin: 0 0 1rem;
}
.op-feature p:last-of-type { margin-bottom: 0; }
.op-feature a:not(.btn) { color: var(--teal); font-weight: 600; text-decoration: underline; }
.op-feature .btn-row { margin-top: 1.5rem; }

/* ─── Section heading (above split layouts) ─────────────── */
.op-eyebrow-center { text-align: left; }
.op-sec-head {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--teal-dark);
  line-height: var(--lh-tight);
  text-wrap: balance;
  text-align: left;
  margin: 0 0 2rem;
}

/* ─── Split layout (image + text) ───────────────────────── */
.op-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.op-split--flip .op-split__text { order: -1; }

.op-split__img {
  border-radius: var(--radius-img);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 72, 92, 0.15);
  background: var(--white);
  width: fit-content;
  max-width: 100%;
  justify-self: center;
}
.op-split__img img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
.op-split__img--contain img {
  object-fit: contain;
}

.op-split__h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--teal-dark);
  line-height: var(--lh-tight);
  text-wrap: balance;
  margin: 0 0 0.75rem;
}
.op-split__text p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  line-height: var(--lh-body);
  margin: 0 0 1rem;
}
.op-split__text p:last-of-type { margin-bottom: 0; }
.op-split__text a:not(.btn) { color: var(--teal); font-weight: 600; text-decoration: underline; }
.op-split__text .btn-row { margin-top: 1.25rem; }

/* ─── New intro (centered text below hero) ─────────────── */
.op-new-intro {
  text-align: left;
  max-width: var(--content-narrow);
  margin: 0 auto;
}
.op-new-intro h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--teal-dark);
  line-height: var(--lh-tight);
  text-wrap: balance;
  margin: 0 0 1rem;
}
.op-new-intro p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  line-height: var(--lh-body);
  margin: 0;
}
.op-new-intro a:not(.btn) {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
}
.op-new-intro a:not(.btn):hover { color: var(--teal-hover); }


.faq a:not(.btn) {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
}
.faq a:not(.btn):hover { color: var(--teal-hover); }



/* ─── Mobile ────────────────────────────────────────────── */
@media (max-width: 767px) {
  .op-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .op-intro__img-wrap {
    aspect-ratio: auto;
  }
  .op-split,
  .op-split--flip {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .op-split--flip .op-split__text { order: 0; }
  .op-split--flip .op-split__img { order: 1; }
  .op-split__img {
    aspect-ratio: auto;
  }
}
