/* ============================================================
   Welland Smiles — inner page layout
   ============================================================ */

.page-hero {
  position: relative;
  padding: 62px 0 58px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
/* clear, undimmed photo — legibility comes from the text shadow below */
.page-hero-scrim { position: absolute; inset: 0; background: none; }
.page-hero-inner { position: relative; z-index: 2; }
.page-title,
.page-lead,
.crumbs {
  text-shadow:
    0 1px 2px rgba(5, 28, 43, .9),
    0 3px 10px rgba(5, 28, 43, .78),
    0 14px 32px rgba(5, 28, 43, .55);
}
.page-lead { color: #f4fafe; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
  color: #b9d5e8;
  font-size: 12px;
}
.crumbs a { color: #dbeaf5; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
.page-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.page-lead {
  max-width: 42em;
  margin: 0;
  color: #d3e6f4;
  font-size: 16px;
  line-height: 1.7;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}

.page-content {
  color: #37485a;
  font-size: 15.5px;
  line-height: 1.8;
}
.page-content > :first-child { margin-top: 0; }
.page-content h2 {
  margin: 34px 0 14px;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.page-content h3 {
  margin: 26px 0 10px;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
}
.page-content h4 {
  margin: 22px 0 8px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
}
.page-content p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.8; }
.page-content ul,
.page-content ol { margin: 0 0 18px; padding-left: 22px; }
.page-content li { margin-bottom: 8px; }
.page-content a { color: var(--blue); font-weight: 600; }
.page-content a:hover { color: var(--blue-hover); }
.page-content strong { color: var(--navy); }
.page-content img {
  margin: 20px 0;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.page-content figure { margin: 22px 0; }
.page-content figure img { margin: 0; }
.page-content figcaption { margin-top: 8px; color: var(--slate-light); font-size: 12.5px; }
.page-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--blue);
  border-radius: 0 14px 14px 0;
  background: var(--cream);
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.page-content blockquote p { margin: 0; font-size: 16px; }
.page-content hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }

/* ---------- team page ---------- */
.team-intro { font-size: 16px; line-height: 1.75; }
.team-feature {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin: 8px 0 38px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.team-feature .team-photo { width: 100%; margin: 0; border-radius: 14px; box-shadow: none; aspect-ratio: 4 / 5; object-fit: cover; }
.team-name { margin: 8px 0 14px; color: var(--navy); font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 800; }
.team-feature p { font-size: 14.5px; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0 8px; }
.team-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.team-card img {
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 22%;
}
.team-body { padding: 16px 18px 18px; }
.team-body h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.02rem; font-weight: 800; }
.team-role {
  display: block;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.team-body p { margin: 0 0 8px; color: var(--slate); font-size: 13.5px; line-height: 1.65; }
.team-body p:last-child { margin-bottom: 0; }

@media screen and (max-width: 780px) {
  .team-feature { grid-template-columns: 1fr; gap: 18px; }
  .team-feature .team-photo { max-width: 220px; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- sidebar ---------- */
.page-side {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.side-card h3 {
  margin-bottom: 12px;
  color: var(--slate-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.side-card p { margin: 0 0 12px; color: var(--slate); font-size: 13.5px; line-height: 1.7; }
.side-card .btn { width: 100%; margin-bottom: 8px; padding: 12px 16px; font-size: 13px; }
.side-card .btn:last-child { margin-bottom: 0; }
.side-hours { margin: 0; font-size: 13px; color: var(--slate); }
.side-hours div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.side-hours .is-today { color: var(--blue-hover); font-weight: 700; }
.side-links { margin: 0; padding: 0; list-style: none; }
.side-links li { margin-bottom: 7px; }
.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--blue-soft-2);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.side-links a:hover { background: var(--blue-soft); color: var(--blue-hover); text-decoration: none; }
.side-links a span { color: var(--blue); }

/* ---------- forms list ---------- */
.form-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.form-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin: 0;
}
.form-list strong { display: block; color: var(--navy); font-size: 14.5px; }
.form-list span { color: var(--slate-light); font-size: 12.5px; }
.form-list .btn { padding: 10px 16px; font-size: 12.5px; flex: 0 0 auto; }

/* ---------- info grid on contact ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}
.info-tile {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.info-tile strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.info-tile span { color: var(--slate); font-size: 14px; line-height: 1.65; }
.info-tile a { color: var(--blue); text-decoration: none; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.related-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 140, 221, .4);
  box-shadow: 0 12px 26px rgba(12, 61, 93, .08);
  text-decoration: none;
}
.related-card strong { display: block; color: var(--navy); font-size: 14px; }
.related-card span { color: var(--slate-light); font-size: 12px; }

@media screen and (max-width: 980px) {
  .page-layout { grid-template-columns: 1fr; gap: 30px; }
  .page-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-card { flex: 1 1 260px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 640px) {
  .page-hero { padding: 40px 0 38px; }
  .page-side { display: block; }
  .side-card { margin-bottom: 14px; }
  .info-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .form-list li { flex-direction: column; align-items: flex-start; }
}
