/* =========================================================
   Inner pages (service pages)
   ========================================================= */

/* header sits in normal flow on inner pages */
.page-top { position: relative; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.page-top .header { position: relative; }
@media (max-width: 640px) {
  .page-top { border-bottom: 0; }
}

/* ---- intro ---- */
.svc-hero { background: var(--bg); padding: clamp(36px, 6vw, 80px) 0; }
.svc-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--blue); font-weight: 600; }
.crumbs a:hover { color: var(--cyan); }
.crumbs span[aria-hidden] { color: #a3b1c6; }
.svc-hero__title {
  margin: 16px 0 0;
  font-size: clamp(30px, 3.8vw, 54px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.02em; color: var(--blue);
}
.svc-hero__intro { margin: 18px 0 0; max-width: 36em; font-size: 18px; line-height: 1.65; color: var(--muted); }
.svc-hero__offer {
  display: inline-flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
  margin: 20px 0 0; padding: 10px 16px;
  border-radius: 12px; background: #fff; border: 1.5px solid var(--cyan);
  font-size: 15px; color: var(--blue);
}
.svc-hero__offer a { color: var(--cyan); font-weight: 700; }
.svc-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.svc-hero__media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; }

/* ---- overview + who is it for (label column + content column) ---- */
.svc-detail { background: #fff; }
.detail-row { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.detail-row + .detail-row { margin-top: clamp(56px, 6vw, 88px); }
.detail-label {
  margin: 10px 0 0;
  font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.detail-title {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 46px); font-weight: 700;
  line-height: 1.12; letter-spacing: -.02em; color: #0b1f3a;
}
.detail-body > p { margin: 20px 0 0; max-width: 46em; font-size: 17px; line-height: 1.7; color: var(--muted); }
.btn-plain {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 30px; height: 56px; padding: 0 30px;
  border-radius: 999px; background: var(--blue); color: #fff;
  font-size: 16px; font-weight: 700;
  transition: background .25s;
}
.btn-plain svg { width: 20px; height: 20px; }
.btn-plain:hover { background: var(--blue-dark); }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.checks li { display: flex; align-items: flex-start; gap: 14px; font-size: 17px; font-weight: 500; line-height: 1.45; color: #0b1f3a; }
.checks svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- big image ---- */
.svc-bigimg { background: #fff; padding-bottom: clamp(72px, 9vw, 128px); }
.svc-bigimg img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 24px; }

/* ---- what to expect: steps on a curved line ---- */
.svc-steps { background: var(--bg); }
.journey { position: relative; margin-top: 8px; }
.journey__path { position: absolute; left: 0; top: 0; width: 100%; height: 200px; overflow: visible; }
.journey__track { fill: none; stroke: rgba(13, 76, 161, .1); stroke-width: 12; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.journey__line {
  fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 8 10; vector-effect: non-scaling-stroke;
  animation: journey-flow 24s linear infinite;
}
@keyframes journey-flow { to { stroke-dashoffset: -540; } }

.journey__steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.journey__step { text-align: center; padding-top: 14px; }
.journey__step:nth-child(even) { padding-top: 114px; }
.journey__num {
  width: 72px; height: 72px; margin: 0 auto;
  display: grid; place-items: center;
  border-radius: 50%; background: #fff; border: 2px solid var(--blue);
  box-shadow: 0 0 0 8px var(--bg); /* gap so the line stops short of the circle */
  font-size: 22px; font-weight: 800; color: var(--blue);
  transition: background .25s, color .25s, transform .25s;
}
.journey__step:hover .journey__num { background: var(--blue); color: #fff; transform: scale(1.06); }
.journey__step h3 { margin: 22px 0 8px; font-size: 19px; font-weight: 700; color: var(--blue); }
.journey__step p { max-width: 250px; margin: 0 auto; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* steps appear one after another once the section scrolls in */
.js .journey .journey__step { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.js .journey.is-in .journey__step { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .journey__path { display: none; }
  .journey__steps { grid-template-columns: 1fr; gap: 0; }
  .journey__step, .journey__step:nth-child(even) { position: relative; text-align: left; padding: 0 0 32px 96px; min-height: 104px; }
  .journey__num { position: absolute; left: 0; top: 0; margin: 0; }
  .journey__step:not(:last-child)::after { /* dashed connector between circles */
    content: ""; position: absolute; left: 35px; top: 84px; bottom: 6px;
    border-left: 2px dashed var(--cyan);
  }
  .journey__step h3 { margin: 6px 0 6px; }
  .journey__step p { max-width: none; margin: 0; }
}

/* ---- single-column FAQ ---- */
.faq--single { background: #fff; }
.faq--single .faq__grid { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; }

/* ---- other treatments ---- */
.svc-more { background: var(--bg); }
.more-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-top: 32px;
}
.more-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: border-color .25s, background .25s;
}
.more-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.more-card span {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; font-size: 15.5px; font-weight: 700; color: var(--blue);
  transition: color .25s;
}
.more-card span svg { width: 16px; height: 16px; flex: none; color: var(--cyan); transition: transform .25s, color .25s; }
.more-card:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.more-card:hover span, .more-card:hover span svg { color: #fff; }
.more-card:hover span svg { transform: translateX(4px); }

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .svc-hero__grid { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .svc-hero__intro { font-size: 16px; }
  .svc-hero__actions .cta { flex: 1 1 100%; }
  .svc-bigimg img { aspect-ratio: 4 / 3; border-radius: 18px; }
  .detail-body > p, .checks li { font-size: 16px; }
  .more-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .more-card span { padding: 12px; font-size: 14px; }
}

/* ---- simple page intro (offers, and later pages) ---- */
.page-intro { background: var(--bg); padding: clamp(36px, 5vw, 64px) 0 0; }
.page-intro__title {
  margin: 16px 0 0; max-width: 18em;
  font-size: clamp(30px, 3.8vw, 54px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.02em; color: var(--blue);
}
.page-intro__lead { margin: 16px 0 0; max-width: 46em; font-size: 18px; line-height: 1.65; color: var(--muted); }
.offers--page { padding-top: clamp(28px, 4vw, 48px); }
@media (max-width: 640px) {
  .page-intro__lead { font-size: 16px; }
}

/* ---- service intro: blue text side, photo fills the right half ---- */
.svc-hero { position: relative; background: var(--blue); color: #fff; overflow: hidden; }
.svc-hero .crumbs { color: rgba(255, 255, 255, .75); }
.svc-hero .crumbs a { color: #fff; }
.svc-hero .crumbs a:hover { color: #7fd8f7; }
.svc-hero .crumbs span[aria-hidden] { color: rgba(255, 255, 255, .45); }
.svc-hero__title { color: #fff; }
.svc-hero__intro { color: #dbe7f7; }
.svc-hero__offer { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); color: #fff; }
.svc-hero__offer a { color: #7fd8f7; }
.svc-hero .cta--services { background: #fff; color: var(--blue); }
.svc-hero .cta--services .cta__icon { background: var(--blue); color: #fff; }
.svc-hero .cta--services::before { background: var(--blue-dark); }
.svc-hero .cta--services:hover { color: #fff; }
.svc-hero .cta--services:hover .cta__icon { background: #fff; color: var(--blue); }

@media (min-width: 1025px) {
  .svc-hero { padding: 0; }
  .svc-hero__grid { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .svc-hero__text { grid-column: 1; padding: clamp(56px, 6vw, 96px) clamp(24px, 3vw, 40px) clamp(56px, 6vw, 96px) 0; }
  .svc-hero__actions { gap: 12px; }
  .svc-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
  .svc-hero__media img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
}
@media (max-width: 1024px) {
  .svc-hero { padding: 0 0 clamp(40px, 6vw, 64px); }
  .svc-hero__media { order: -1; margin: 0 calc(-1 * var(--gutter)); }
  .svc-hero__media img { border-radius: 0; aspect-ratio: 16 / 10; }
  .svc-hero__grid { gap: 28px; }
}

/* =========================================================
   About page
   ========================================================= */
.page-about .doctor { background: var(--bg); }

/* approach statement + image cards */
.statement { background: var(--bg); text-align: center; }
.statement__label { margin: 0 0 18px; }
.statement__text {
  max-width: 980px; margin: 0 auto;
  font-size: clamp(24px, 2.6vw, 38px); font-weight: 600;
  line-height: 1.35; letter-spacing: -.01em; color: #0b1f3a;
}
.img-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 64px); text-align: left; }
.img-card { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; }
.img-card img { width: 100%; height: 100%; object-fit: cover; }
.img-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 47, 102, .85)); }
.img-card figcaption { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; font-size: 20px; font-weight: 700; color: #fff; }

/* the clinic / visit us */
.about-clinic { background: #fff; }
.visit-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.visit-list li { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; align-items: center; }
.visit-list svg { width: 22px; height: 22px; color: var(--cyan); grid-row: span 2; align-self: start; margin-top: 1px; }
.visit-list a { font-size: 17px; font-weight: 600; color: #0b1f3a; }
.visit-list a:hover { color: var(--blue); }
.visit-list small { grid-column: 2; font-size: 13px; color: var(--muted); }

/* treatments carousel */
.carousel-sec { background: #fff; }
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--line); color: var(--blue);
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.carousel-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: #fff; }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel__track {
  list-style: none; margin: 0; padding: 0 0 6px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 20px; }
.slide { scroll-snap-align: start; }
.slide__card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: background .25s, border-color .25s;
}
.slide__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.slide__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.slide__body strong { font-size: 18px; color: var(--blue); transition: color .25s; }
.slide__body > span { flex: 1; font-size: 14px; line-height: 1.55; color: var(--muted); transition: color .25s; }
.slide__body em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 14px; font-weight: 700; color: var(--cyan); transition: color .25s; }
.slide__body em svg { width: 15px; height: 15px; transition: transform .25s; }
.slide__card:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.slide__card:hover strong, .slide__card:hover .slide__body > span, .slide__card:hover em { color: #fff; }
.slide__card:hover em svg { transform: translateX(4px); }

/* video */
.video-sec { background: var(--bg); }
.video-block { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #0b1f3a; }
.video-block video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-block__btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: var(--blue);
  transition: opacity .25s, transform .25s, background .25s, color .25s;
}
.video-block__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: ripple 2.2s ease-out infinite; }
.video-block__btn:hover { background: var(--blue); color: #fff; transform: translate(-50%, -50%) scale(1.06); }
.video-block__btn svg { width: 30px; height: 30px; fill: currentColor; }
.video-block__btn .i-pause { display: none; }
.video-block.is-playing .i-play { display: none; }
.video-block.is-playing .i-pause { display: block; }
.video-block.is-playing .video-block__btn { opacity: 0; }
.video-block.is-playing .video-block__btn::after { animation: none; border: 0; }
.video-block.is-playing:hover .video-block__btn, .video-block.is-playing .video-block__btn:focus-visible { opacity: 1; }

@media (max-width: 1024px) {
  .carousel__track { grid-auto-columns: calc((100% - 40px) / 2.4); }
}
@media (max-width: 640px) {
  .img-cards { grid-template-columns: 1fr; gap: 14px; }
  .img-card { aspect-ratio: 16 / 10; }
  .carousel__track { grid-auto-columns: 82%; gap: 14px; }
  .carousel-btn { width: 42px; height: 42px; }
  .video-block { border-radius: 18px; }
  .video-block__btn { width: 64px; height: 64px; }
}

/* =========================================================
   Services, Doctor and Contact pages
   ========================================================= */
.statement--white { background: #fff; }
.services--page { padding-top: 0; }
.page-doctor .svc-detail .focus { margin-top: 26px; }

/* contact tiles */
.contact-sec { background: #fff; }
.contact-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-tile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px 24px 24px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 22px;
  transition: background .25s, border-color .25s, opacity .6s, transform .6s;
}
.contact-tile__ico { width: 48px; height: 48px; margin-bottom: 14px; color: var(--blue); transition: color .25s; }
.contact-tile__ico svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.contact-tile__ico .wave { stroke: var(--cyan); animation: tile-wave 2.2s ease-in-out infinite; }
.contact-tile__ico--phone svg { animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
.contact-tile__ico--pin svg { animation: pin-hop 2.6s ease-in-out infinite; }
@keyframes tile-wave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes pin-hop { 0%, 60%, 100% { transform: translateY(0); } 75% { transform: translateY(-4px); } }
.contact-tile__title { font-size: 15px; font-weight: 600; color: var(--muted); transition: color .25s; }
.contact-tile__value { font-size: 22px; font-weight: 800; color: var(--blue); transition: color .25s; }
.contact-tile__note { font-size: 14px; line-height: 1.5; color: var(--muted); transition: color .25s; }
.contact-tile__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-size: 15px; font-weight: 700; color: var(--cyan); transition: color .25s; }
.contact-tile__cta svg { width: 16px; height: 16px; transition: transform .25s; }
.contact-tile:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.contact-tile:hover .contact-tile__ico,
.contact-tile:hover .contact-tile__title,
.contact-tile:hover .contact-tile__value,
.contact-tile:hover .contact-tile__note,
.contact-tile:hover .contact-tile__cta { color: #fff; }
.contact-tile:hover .contact-tile__ico .wave { stroke: #fff; }
.contact-tile:hover .contact-tile__cta svg { transform: translateX(4px); }

/* map */
.map-sec { background: var(--bg); }
.map-block { position: relative; margin-top: clamp(32px, 4vw, 48px); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #e9eef4; }
.map-block iframe { display: block; width: 100%; height: 520px; border: 0; }
.map-card {
  position: absolute; left: 24px; bottom: 24px; max-width: 340px;
  padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
}
.map-card strong { display: block; font-size: 18px; color: var(--blue); }
.map-card span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.map-card .btn-plain { margin-top: 16px; height: 48px; padding: 0 22px; font-size: 15px; }
.map-card .btn-plain span { margin: 0; font-size: inherit; color: inherit; }

/* full-width menu: stagger for the extra About item */
@media (max-width: 1024px) {
  .nav.is-open .nav__link:nth-child(6) { animation-delay: .2s; }
  .contact-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .contact-tiles { grid-template-columns: 1fr; gap: 14px; }
  .map-block iframe { height: 360px; }
  .map-card { position: static; max-width: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
}
.map-card .map-card__hours { margin-top: 2px; font-weight: 600; color: var(--blue); }

/* opening hours table (contact page) */
.hours-row { margin-bottom: clamp(48px, 6vw, 72px); }
.hours { margin: 22px 0 0; max-width: 520px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours div:first-child { border-top: 1px solid var(--line); }
.hours dt { font-size: 16px; font-weight: 600; color: #0b1f3a; }
.hours dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--blue); white-space: nowrap; }

/* contact page: social links */
.social-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.social-row__label { margin: 0; font-size: 17px; font-weight: 700; color: #0b1f3a; }
.social-row__links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px; border: 1.5px solid var(--line); border-radius: 999px;
  transition: background .25s, border-color .25s, color .25s;
}
.social-link__ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; flex: none; }
.social-link__ico svg { width: 19px; height: 19px; }
.social-link__ico--fb { background: #1877F2; }
.social-link__ico--tt { background: #111; }
.social-link strong { display: block; font-size: 15px; color: #0b1f3a; transition: color .25s; }
.social-link small { display: block; font-size: 12.5px; color: var(--muted); transition: color .25s; }
.social-link:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.social-link:hover strong, .social-link:hover small { color: #fff; }
@media (max-width: 640px) {
  .social-row__links, .social-link { width: 100%; }
}
