/* ============================================================
   AisDental — Mediterranean Clinical
   Design tokens + base styles
   ============================================================ */

:root {
  --pine: #0c463e;
  --pine-700: #0f5a4f;
  --pine-300: #6fa79c;
  --terra: #2575bd;
  --terra-soft: #8fc0e8;
  --gold: #c79a4b;
  --mint: #e4efe9;
  --ivory: #f6f1e8;
  --ivory-2: #efe7da;
  --paper: #fffdf9;
  --ink: #1b2420;
  --ink-soft: #46514b;
  --line: #e2d9c9;

  --font-display: "Spectral", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-xl: 38px;
  --shadow-sm: 0 2px 8px rgba(20,40,34,.06);
  --shadow-md: 0 18px 40px -20px rgba(15,50,42,.35);
  --shadow-lg: 0 40px 90px -40px rgba(12,44,38,.55);
  --maxw: 1240px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
/* WordPress admin bar compatibility */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #site-header { top: 46px; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page { background: var(--ivory); overflow-x: clip; }

h1,h2,h3,h4 { margin: 0; font-weight: 600; line-height: 1.04; letter-spacing: -.012em; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── Typography ── */
.serif { font-family: var(--font-display); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px;
  background: var(--terra); display: inline-block;
}
.eyebrow.center::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  line-height: 1.0; letter-spacing: -.02em;
}
.h-sec {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -.018em;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); }
.ital { font-style: italic; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 16px 26px;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 10px 24px -10px rgba(37,117,189,.7); }
.btn-primary:hover { background: #1f64a6; box-shadow: 0 16px 30px -10px rgba(37,117,189,.8); }
.btn-dark    { background: var(--pine); color: #fff; }
.btn-dark:hover { background: var(--pine-700); }
.btn-ghost   { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine); }
.btn-white   { background: #fff; color: var(--pine); }
.btn-white:hover { background: #f3f7f4; }
.btn-wa {
  background: linear-gradient(135deg, #2de070 0%, #25d366 55%, #1aad52 100%);
  color: #fff;
  box-shadow: 0 6px 18px -5px rgba(37,211,102,.55);
}
.btn-wa:hover {
  background: linear-gradient(135deg, #25d366 0%, #1aad52 100%);
  box-shadow: 0 10px 24px -5px rgba(37,211,102,.65);
  transform: translateY(-1px);
}
.btn-lg  { padding: 19px 34px; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ── Pills / chips ── */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 15px;
  font-size: .86rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.chip svg { color: var(--pine); }

/* ── Section rhythm ── */
.section { padding: clamp(64px,8vw,120px) 0; }
.section.tight { padding: clamp(44px,5vw,72px) 0; }
.bg-paper  { background: var(--paper); }
.bg-pine   { background: var(--pine); color: #fff; }
.bg-pine .lead { color: rgba(255,255,255,.78); }
.bg-mint   { background: var(--mint); }
.bg-ivory2 { background: var(--ivory-2); }

.center { text-align: center; }
.sec-head { max-width: 720px; }
.sec-head.center { margin: 0 auto; }
.sec-head .h-sec { margin-top: 16px; }
.sec-head .lead  { margin-top: 18px; }

/* ── Cards ── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* ── Guarantee cards grid ── */
.guarantee-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* ── Image slot placeholder ── */
.img-slot { background: var(--mint); }
.img-slot__inner { position: absolute; inset: 0; }
.img-slot__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; height: 100%; width: 100%;
  color: var(--pine-300); font-size: .78rem; text-align: center; padding: 16px;
}
.img-slot__placeholder svg { opacity: .6; }
/* When an actual image is set via data-src or background-image */
.img-slot[style*="background-image"] .img-slot__placeholder { display: none; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.field .req   { color: var(--terra); }
.input, .select, textarea.input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #9aa39d; }
.input:focus, select.input:focus {
  outline: none; border-color: var(--pine);
  box-shadow: 0 0 0 4px rgba(12,70,62,.12);
}
.input.err { border-color: #d2502f; box-shadow: 0 0 0 4px rgba(210,80,47,.1); }
.err-msg   { font-size: .76rem; color: #c5421f; font-weight: 600; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230c463e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  padding-right: 40px;
}

.uploader {
  border: 1.6px dashed var(--pine-300); border-radius: var(--r-sm);
  background: rgba(228,239,233,.5); padding: 16px;
  text-align: center; display: flex; align-items: center; gap: 12px;
  justify-content: center; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  font-size: .9rem; color: var(--ink-soft);
}
.uploader:hover { background: rgba(228,239,233,.9); border-color: var(--pine); }
.uploader.has-file { border-style: solid; border-color: var(--pine); color: var(--pine); background: #fff; font-weight: 600; }

/* ── Nav ── */
.tb-wa:hover { background: rgba(37,211,102,.32) !important; border-color: rgba(37,211,102,.7) !important; }

.nav-link {
  font-size: .88rem; font-weight: 500; color: var(--ink-soft);
  transition: color .15s ease; white-space: nowrap;
}
.nav-link:hover { color: var(--pine); }

#site-header {
  background: rgba(255,253,249,0);
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(255,253,249,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-logo a { display: flex; align-items: center; }
.site-logo img { max-height: 68px; width: auto; display: block; }

/* ── Language switcher ── */
.lang-opt {
  display: flex; align-items: center; gap: 11px; width: 100%;
  text-align: left; border: none; cursor: pointer;
  background: transparent; border-radius: 9px; padding: 10px 12px;
  color: var(--ink); font-weight: 500; font-size: .92rem;
  transition: background .12s ease; font-family: inherit;
}
.lang-opt:hover { background: var(--ivory-2); }
.lang-opt[aria-selected="true"] { background: var(--mint); font-weight: 700; }
.lang-opt .lang-code { width: 26px; font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.lang-opt[aria-selected="true"] .lang-code { color: var(--pine); }
.lang-check { color: var(--pine); }
.lang-opt[aria-selected="false"] .lang-check { display: none; }

/* ── Google Translate / GTranslate plugin: keep it fully invisible — our
   own lang switcher above drives it (see triggerGoogleTranslate() in
   dental.js), so none of its default UI (top banner, iframe, floating
   flag widget, word-highlight overlay) should ever be seen. Google
   re-shows the banner frame with its own inline styles right after a
   translation is applied, so this is backed up by JS in dental.js
   (suppressGoogleTranslateBanner) which force-removes it on every DOM
   change rather than relying on CSS alone. ── */
#google_translate_element,
.gtranslate_wrapper,
#gtranslate_wrapper,
#gt_float_wrapper,
.gt_float_switcher,
.gt_float_switcher-arrow,
.gt-selector,
.gt_selector,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight { display: none !important; visibility: hidden !important; height: 0 !important; background: none !important; box-shadow: none !important; }
html body { top: 0 !important; position: static !important; }
body.goog-te-hl-blue,
body.goog-te-hl-orange { top: 0 !important; }

/* ── Sticky mobile bar ── */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; gap: 7px;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255,253,249,.97); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mb-menu {
  width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px;
}
.mb-menu:active { background: var(--ivory-2); }
.mb-btn {
  flex: 1 1 0; min-width: 0; height: 42px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: none; border-radius: 999px; font-family: inherit; font-weight: 700;
  font-size: .88rem; padding: 0 10px; cursor: pointer; white-space: nowrap;
}
.mb-wa    { background: linear-gradient(135deg, #25d366, #128c4a); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.mb-quote { background: var(--terra); color: #fff; }

/* ── Mobile menu ── */
.mm-overlay {
  position: fixed; inset: 0; z-index: 250; background: var(--paper);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 18px 22px calc(22px + env(safe-area-inset-bottom));
  animation: mmIn .28s cubic-bezier(.2,.8,.3,1);
}
@keyframes mmIn { from { transform: translateY(18px); } to { transform: none; } }
.mm-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 2px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.45rem; color: var(--ink);
}
.mm-link svg { color: var(--terra); }

/* ── FAB cluster (WA + Contact + Go-to-top) ── */
.fab-btn {
  position: fixed; right: 20px; z-index: 55;
  width: 42px; height: 42px;
  border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease;
}

/* WhatsApp */
.wa-float {
  bottom: 20px;
  background: linear-gradient(145deg, #2de070, #25d366 45%, #128c4a);
  color: #fff;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 5px 16px -4px rgba(37,211,102,.6), 0 0 0 0   rgba(37,211,102,.4); }
  65%  { box-shadow: 0 5px 16px -4px rgba(37,211,102,.2), 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 5px 16px -4px rgba(37,211,102,.6), 0 0 0 0   rgba(37,211,102,0); }
}
.wa-float:hover { animation-play-state: paused; transform: scale(1.08);
  box-shadow: 0 8px 24px -5px rgba(37,211,102,.7); }

/* Contact / Free quote */
.contact-float {
  bottom: 72px;
  background: var(--terra); color: #fff;
  box-shadow: 0 4px 14px -4px rgba(37,117,189,.5);
}
.contact-float:hover { transform: scale(1.08);
  box-shadow: 0 8px 22px -4px rgba(37,117,189,.65); }

/* Go to top */
.goto-top {
  bottom: 124px;
  background: var(--pine); color: #fff;
  box-shadow: 0 4px 14px -4px rgba(12,70,62,.4);
  opacity: 0; transform: scale(.6); pointer-events: none;
}
.goto-top.visible       { opacity: 1; transform: scale(1); pointer-events: auto; }
.goto-top.visible:hover { transform: scale(1.08); }

/* Tooltip (desktop hover only) */
.fab-tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: #0c1a14; color: #fff; font-size: .74rem; font-weight: 600;
  padding: 5px 10px; border-radius: 7px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.fab-tip::after {
  content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 4px solid transparent; border-left-color: #0c1a14;
}
.fab-btn:hover .fab-tip { opacity: 1; }

/* ── Modal ── */
.modal-bg {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(16,32,28,.55);
  backdrop-filter: blur(4px); padding: 20px;
  animation: fade .2s ease;
}
.modal {
  background: var(--paper); border-radius: var(--r-lg);
  width: min(560px,100%); max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: pop .28s cubic-bezier(.2,.9,.3,1.2);
}
/* Fixed header — stays put while the form body scrolls. */
.modal-head {
  flex: 0 0 auto;
  padding: 26px 26px 14px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  border-bottom: 1px solid var(--line);
}
/* Scrollable form body. */
.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 18px 26px 26px;
}
@keyframes fade { from { opacity:0 } to { opacity:1 } }
@keyframes pop  { from { opacity:0; transform:translateY(16px) scale(.97) } to { opacity:1; transform:none } }

/* ── Modal on phones: dock to the bottom as a tall sheet ── */
@media (max-width: 560px) {
  .modal-bg { padding: 0; place-items: end center; }
  .modal {
    width: 100%; max-height: 94vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    animation: sheet-up .3s cubic-bezier(.2,.9,.3,1);
  }
  .modal-head { padding: 20px 20px 12px; }
  .modal-head h3 { font-size: 1.4rem !important; }
  .modal-body { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); }

  /* Compact stepper: dots only — the panel heading says what step you're on.
     (Labels were wider than the screen and caused sideways scrolling.) */
  .modal-body .step-label { display: none; }
  .modal-body .wizard-stepper { margin-bottom: 18px !important; }
  .modal-body .wizard-step-line { margin: 0 8px !important; }

  /* One column = bigger tap targets, easier to scan and convert. */
  #wizard-treatments { grid-template-columns: 1fr !important; }
  #wizard-treatments .wizard-treatment-btn { grid-column: 1 / -1 !important; }
}

/* ── Contact page wizard: same stepper/label overflow fix as the modal
   above, since this is the same markup embedded directly on the page
   instead of inside .modal-body. ── */
@media (max-width: 560px) {
  .contact-wizard .step-label { display: none; }
  .contact-wizard .wizard-stepper { margin-bottom: 18px !important; }
  .contact-wizard .wizard-step-line { margin: 0 8px !important; }
  .cwz-form-grid { grid-template-columns: 1fr !important; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

/* ── Reveal on scroll ── */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.anim { animation: revealIn .7s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes revealIn { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:none; } }
}

/* ── Misc ── */
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.kicker-num { font-family: var(--font-display); font-weight: 600; }
.foot-link { color: rgba(255,255,255,.7); font-size: .9rem; transition: color .15s; }
.foot-link:hover { color: #fff; }

/* ── Before/After slider ── */
.ba-slider {
  position: relative; border-radius: 16px; overflow: hidden;
  cursor: ew-resize; user-select: none; touch-action: none;
  background: var(--mint);
}
.ba-slider__before-label,
.ba-slider__after-label {
  position: absolute; top: 10px;
  font-size: .7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  pointer-events: none; z-index: 10;
  color: #fff;
}
.ba-slider__before-label { left: 10px;  background: rgba(27,36,32,.8); }
.ba-slider__after-label  { right: 10px; background: var(--terra); }
.ba-slider__handle {
  position: absolute; top: 0; bottom: 0;
  width: 3px; background: #fff;
  transform: translateX(-1.5px); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06); z-index: 10;
}
.ba-slider__handle-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); color: var(--pine);
}

/* ── Home: Before/After carousel — 3 cases visible on desktop, 1 on
   mobile. A native scroll-snap track: every card keeps real layout
   dimensions at all times (just scrolled out of view, never hidden),
   which is also what lets the drag-to-compare handle measure each
   .ba-slider correctly on first load regardless of scroll position. ── */
.ba-carousel {
  max-width: 1120px;
  margin: 0 auto;
}
/* Positioning context for the arrows — deliberately just the track's
   own box, not .ba-carousel as a whole (which also includes the dots
   row below it), so top:50% centers against the cards, not the dots too. */
.ba-carousel__viewport { position: relative; }
.ba-carousel__track {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ba-carousel__track::-webkit-scrollbar { display: none; }
.ba-carousel__slide {
  flex: 0 0 calc((100% - 2 * 20px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}
.ba-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(8,28,24,.1); color: var(--pine); border: none;
  transition: background .15s ease, transform .15s ease;
}
.ba-carousel__arrow:hover { background: rgba(8,28,24,.18); transform: translateY(-50%) scale(1.06); }
.ba-carousel__arrow:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.ba-carousel__arrow--prev { left: -6px; }
.ba-carousel__arrow--next { right: -6px; }
.ba-carousel__dots {
  display: flex; gap: 9px; justify-content: center;
  margin-top: 30px;
  padding-top: 10px;
}
.ba-carousel__dot {
  width: 9px; height: 9px; border-radius: 50%; cursor: pointer;
  background: var(--line); border: none; padding: 0;
  transition: background .2s ease, width .2s ease;
}
.ba-carousel__dot:hover { background: var(--pine-300); }
.ba-carousel__dot.is-active { background: var(--terra); width: 22px; border-radius: 6px; }

@media (max-width: 900px) {
  .ba-carousel__slide { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 640px) {
  .ba-carousel__slide { flex-basis: 88%; }
  .ba-carousel__arrow { width: 34px; height: 34px; }
  .ba-carousel__arrow--prev { left: 4px; }
  .ba-carousel__arrow--next { right: 4px; }
}

/* ── Savings calculator slider ── */
input[type="range"] {
  accent-color: var(--terra);
  width: 100%; height: 6px;
}

/* ── Quote wizard stepper ── */
/* Pricing page tools */
.prices-tools {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 30px;
}
.price-category-panel,
.offer-creator {
  padding: 28px;
}
.price-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.price-cat-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.price-cat-btn:hover {
  border-color: var(--pine-300);
  transform: translateY(-1px);
}
.price-cat-btn.active {
  border-color: var(--pine);
  background: var(--mint);
}
.price-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--mint);
  color: var(--pine);
}
.price-cat-btn.active .price-cat-icon {
  background: var(--pine);
  color: #fff;
}
.price-cat-btn strong {
  display: block;
  font-size: .94rem;
  line-height: 1.15;
}
.price-cat-btn small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.25;
}
.offer-creator {
  display: grid;
  gap: 18px;
  background: linear-gradient(160deg, #fffdf9 0%, #f4f8f7 100%);
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.offer-grid .field:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.offer-creator .field > span {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
}
.offer-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}
.offer-summary > div {
  padding: 14px;
  border-right: 1px solid var(--line);
}
.offer-summary > div:last-child {
  border-right: 0;
  background: var(--pine);
  color: #fff;
}
.offer-summary span {
  display: block;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.offer-summary > div:last-child span {
  color: rgba(255,255,255,.72);
}
.offer-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--pine);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}
.offer-summary > div:last-child strong {
  color: #fff;
}
.offer-saving,
.offer-success {
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: .9rem;
}
.offer-success {
  padding: 18px;
  border-radius: var(--r-sm);
  background: var(--mint);
  color: var(--pine);
  font-weight: 700;
}

.wizard-step-circle {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .82rem; font-weight: 700;
  transition: all .2s ease;
}
.wizard-step-line {
  flex: 1; height: 2px; margin: 0 12px; border-radius: 2px;
  transition: background .2s ease;
  min-width: 16px;
}
.wizard-treatment-btn {
  display: flex; align-items: center; gap: 11px; text-align: left;
  padding: 13px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fff;
  transition: all .15s ease; cursor: pointer;
  font-family: inherit;
}
.wizard-treatment-btn:hover { border-color: var(--pine-300); }
.wizard-treatment-btn.active { border-color: var(--pine); background: var(--mint); }
.wizard-treatment-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--mint); color: var(--pine);
  display: grid; place-items: center; flex-shrink: 0;
  transition: all .15s ease;
}
.wizard-treatment-btn.active .wizard-treatment-icon { background: var(--pine); color: #fff; }

/* ── Stat counters section ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}

/* ── Topbar animation ── */
@keyframes tbFade { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
.tb-anim { animation: tbFade .5s ease; }

/* ── Parallax banner ── */
.parallax-section {
  position: relative; height: clamp(420px,60vh,560px);
  overflow: hidden; display: grid; place-items: center;
}
.parallax-bg {
  position: absolute; inset: -12% 0; will-change: transform;
}
.parallax-bg .img-slot {
  width: 100%; height: 100%;
  border-radius: 0 !important;
}
.parallax-bg .img-slot .img-slot__inner { position: absolute; inset: 0; }
.parallax-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(8,40,35,.42),rgba(8,40,35,.66));
}
.parallax-content {
  position: relative; color: #fff; max-width: 900px;
  text-align: center; padding: 0 28px;
}
.parallax-heading {
  font-size: clamp(2.2rem, 5vw, 3.8rem); color: #fff;
  margin-top: 16px; line-height: 1.15;
  text-wrap: balance;
}
/* A manually inserted <br> in the heading text (used to force a specific
   2-line split) can orphan a lone word once the container/font-size
   combination no longer matches what it was written for — at any
   viewport width, not just mobile. Ignore it and let the browser wrap
   the whole phrase naturally / balance it instead. */
.parallax-heading br { display: none; }
.parallax-cta {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-top: 28px;
}

@media (max-width: 640px) {
  .parallax-section { height: clamp(440px, 64vh, 560px); }
  .parallax-content { padding: 0 16px; }
  /* The floor above is too large for narrow screens. */
  .parallax-heading { font-size: clamp(1.5rem, 8vw, 2rem); line-height: 1.3; }
  .parallax-content .lead { font-size: .92rem; margin-top: 12px; }
  .parallax-cta { margin-top: 20px; gap: 10px; }
  .parallax-cta .btn-lg { padding: 11px 18px; font-size: .85rem; gap: 6px; }
}

/* Treatment landing pages */
.treatment-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background: linear-gradient(160deg,#f4f8f7 0%,#fff 65%);
}
.treatment-hero::after {
  content: "";
  position: absolute;
  top: -90px; right: -90px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(12,70,62,.07),transparent 70%);
  pointer-events: none;
}
.treatment-hero__grid,
.treatment-split,
.treatment-faq-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}
.treatment-hero__grid { position: relative; z-index: 1; }
.treatment-hero__title { margin-top: 16px; }
.treatment-hero__lead { margin-top: 20px; max-width: 560px; }
.treatment-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.treatment-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 34px;
  max-width: 620px;
}
.treatment-stat {
  background: var(--mint);
  border: 1px solid rgba(12,70,62,.08);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.treatment-stat__value {
  font-size: 1.75rem;
  color: var(--pine);
  line-height: 1;
}
.treatment-stat__label {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: .8rem;
}
.treatment-hero__media { position: relative; }
.treatment-floating-note {
  position: absolute;
  left: -18px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--pine);
  box-shadow: var(--shadow-md);
  font-size: .88rem;
  font-weight: 700;
}
.treatment-section-title { margin-top: 14px; }
.treatment-copy {
  margin-top: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 1.02rem;
}
.treatment-checks {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.treatment-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
}
.treatment-check span {
  color: var(--pine);
  flex-shrink: 0;
  margin-top: 1px;
}
.treatment-option-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  margin-top: 48px;
}
.treatment-option {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.treatment-option.is-popular { border: 2px solid var(--terra); }
.treatment-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--terra);
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 700;
}
.treatment-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--mint);
  color: var(--pine);
}
.treatment-option h3 {
  margin-top: 18px;
  font-size: 1.35rem;
}
.treatment-option p,
.treatment-Incluso p {
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: .92rem;
}
.treatment-price {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
}
.treatment-price span { color: var(--ink-soft); font-size: .78rem; }
.treatment-price strong {
  color: var(--pine);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}
.treatment-price small { color: var(--ink-soft); font-size: .78rem; }
.treatment-option .btn { margin-top: 20px; align-self: flex-start; padding: 11px 18px; }
.treatment-process-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  margin-top: 48px;
}
.treatment-process-card {
  position: relative;
  min-height: 100%;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.06);
}
.treatment-process-num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.treatment-process-icon {
  position: absolute;
  top: 33px;
  right: 30px;
  color: rgba(255,255,255,.55);
}
.treatment-process-card h3 {
  margin-top: 22px;
  color: #fff;
  font-size: 1.1rem;
}
.treatment-process-card p {
  margin-top: 10px;
  color: rgba(255,255,255,.72);
  line-height: 1.58;
  font-size: .92rem;
}
.treatment-Incluso-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin-top: 48px;
}
.treatment-Incluso { padding: 26px; }
.treatment-Incluso h3 {
  margin-top: 16px;
  font-size: 1.02rem;
}
.treatment-faq-grid {
  grid-template-columns: .72fr 1.28fr;
  align-items: start;
}
.treatment-faq-lead { margin: 16px 0 22px; }
.treatment-faq-list { display: grid; gap: 12px; }
.treatment-faq-list .faq-item {
  padding: 0 22px;
  overflow: hidden;
}
.treatment-faq-list .faq-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
}
.treatment-faq-list .faq-icon {
  color: var(--terra);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.treatment-faq-list .faq-item.open .faq-icon { transform: rotate(45deg); }
.treatment-faq-list .faq-body {
  overflow: hidden;
  transition: max-height .3s ease;
}
.treatment-faq-list .faq-body p {
  padding-bottom: 22px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: .95rem;
}

/* ── Standalone FAQs page accordion ── */
.faqs-page .faqs-group { margin-bottom: 40px; }
.faqs-page .faq-item {
  padding: 0 22px;
  overflow: hidden;
}
.faqs-page .faq-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.faqs-page .faq-toggle strong { font-size: 1.02rem; }
.faqs-page .faq-icon {
  color: var(--terra);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faqs-page .faq-item.open .faq-icon { transform: rotate(45deg); }
.faqs-page .faq-body {
  overflow: hidden;
  transition: max-height .3s ease;
}
.faqs-page .faq-body p {
  padding-bottom: 22px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: .95rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .nav-links  { display: none !important; }
}
@media (max-width: 1080px) {
  .hero-grid, .savings-grid, .why-grid, .faq-grid,
  .treatment-hero__grid, .treatment-split, .treatment-faq-grid,
  .final-grid, .cta-band, .inc-grid, .calc-grid, .guarantee-grid,
  .prices-tools {
    grid-template-columns: 1fr !important;
  }
  .svc-grid, .team-grid, .rev-grid, .places-grid, .stats-grid,
  .treatment-option-grid, .treatment-process-grid, .treatment-Incluso-grid {
    grid-template-columns: repeat(2,1fr) !important;
  }
  .how-grid  { grid-template-columns: repeat(2,1fr) !important; }
  .foot-grid { grid-template-columns: 1fr 1fr !important; }
  .topbar .tb-rating, .topbar .tb-div, .topbar .tb-link { display: none !important; }
  /* Hero quote card: centre it once the hero stacks to one column */
  .hero-quote-card {
    width: 100% !important;
    max-width: 460px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 18px !important;
  }
}

/* ── Hero image slider ── */
.hero-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider__dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex;
  gap: 7px;
  justify-content: center;
  z-index: 2;
}
.hero-slider__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero-slider__dot.is-active { background: #fff; transform: scale(1.15); }
@media (max-width: 860px) {
  .mobilebar     { display: flex !important; }
  .fab-btn       { right: 10px; }
  .wa-float      { bottom: 62px; }
  .contact-float { bottom: 114px; }
  .goto-top      { bottom: 166px; }
  .wrap { padding: 0 20px; }
  body { padding-bottom: 56px; }
}
@media (max-width: 680px) {
  .svc-grid, .team-grid, .rev-grid, .how-grid,
  .treatment-option-grid, .treatment-process-grid, .treatment-Incluso-grid,
  .gallery-grid, .foot-grid, .places-grid { grid-template-columns: 1fr !important; }
  .treatment-stats { grid-template-columns: 1fr !important; }
  .treatment-floating-note { position: static; margin-top: 14px; }
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; gap: 28px 16px !important; }
  .nav-cta .chip { display: none !important; }
  .topbar-msg span:last-child { font-size: .78rem; }
  .price-category-panel,
  .offer-creator { padding: 22px !important; }
  .price-category-list,
  .offer-grid,
  .offer-summary { grid-template-columns: 1fr !important; }
  .offer-grid .field:last-child:nth-child(odd) { grid-column: auto; }
  .offer-summary > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .offer-summary > div:last-child { border-bottom: 0; }
  /* Guarantee cards: single column + compact on small phones */
  .guarantee-cards { grid-template-columns: 1fr !important; gap: 12px; }
  .guarantee-card  { padding: 18px !important; }
  .guarantee-card h3 { font-size: .97rem !important; }

  /* Single Service page (single-ais_service.php) */
  .svc-facts-strip { gap: 20px !important; justify-content: flex-start !important; }
  /* A negative offset that reads fine in the 2-col desktop hero would push
     past the screen edge once the hero collapses to 1 column — pull it
     back inside the image instead of letting it hang off the left. */
  .svc-price-badge { left: 10px !important; padding: 10px 14px !important; }
  /* The connecting line between step numbers only makes sense when the
     steps sit in a row — hide it once they stack into one column. */
  .svc-steps-connector { display: none !important; }
  .svc-gallery-grid { grid-template-columns: repeat(2,1fr) !important; }

  /* Contact page: address bar's trailing "view on map" link and the
     centered text block don't fit one row anymore once the card narrows —
     drop the nowrap and let it wrap onto a second line instead of
     overflowing the card. */
  .contact-address-bar { flex-wrap: wrap; }
  .contact-address-bar > span:last-child { white-space: normal !important; }
}
@media (max-width: 1080px) {
  .svc-gallery-grid { grid-template-columns: repeat(3,1fr) !important; }
  /* Hero collapses to one column at this breakpoint too, so the badge's
     desktop-only negative offset needs pulling back in here as well. */
  .svc-price-badge { left: 10px !important; }
}

/* ═══════════════════════════════════════════════════════════
   MEGA MENU
   ═══════════════════════════════════════════════════════════ */
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-item  { position: static; display: flex; align-items: center; }
.nav-item > .nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: 10px; transition: background .14s ease, color .15s ease;
}
.nav-item > .nav-link:hover { background: var(--mint); color: var(--pine); }
/* Custom nav (ais_dt_nav_items) renders bare <a class="nav-link"> with no
   .nav-item wrapper — give those direct children the same padded spacing. */
.nav-links > .nav-link {
  display: inline-flex; align-items: center;
  padding: 9px 13px; border-radius: 10px;
  transition: background .14s ease, color .15s ease;
}
.nav-links > .nav-link:hover { background: var(--mint); color: var(--pine); }
.nav-caret { display: inline-grid; place-items: center; color: var(--pine-300); transition: transform .2s ease; }
.nav-item.has-mega:hover .nav-caret,
.nav-item.has-mega:focus-within .nav-caret,
.nav-item.has-children:hover .nav-caret,
.nav-item.has-children:focus-within .nav-caret { transform: rotate(180deg); }

/* ── Native submenu dropdown (children added in Appearance → Menus) ── */
.nav-item.has-children { position: relative; }
.nav-item.has-children > .nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 9px 13px; border-radius: 10px; transition: background .14s ease, color .15s ease; }
.nav-item.has-children:hover > .nav-link { background: var(--mint); color: var(--pine); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 230px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
/* Invisible bridge so the dropdown doesn't close in the gap below the link. */
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.has-children:hover > .nav-dropdown,
.nav-item.has-children:focus-within > .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-sub { list-style: none; margin: 0; padding: 0; }
.nav-sub-item { position: relative; }
.nav-sub-link {
  display: block; padding: 9px 12px; border-radius: 9px;
  color: var(--ink-soft); font-size: .92rem; font-weight: 500; white-space: nowrap;
  transition: background .14s ease, color .14s ease;
}
.nav-sub-link:hover { background: var(--mint); color: var(--pine); }
/* Nested (third-level) submenu flyout */
.nav-sub--nested {
  position: absolute; top: -8px; left: 100%; margin-left: 4px;
  min-width: 210px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s;
}
.nav-sub-item:hover > .nav-sub--nested { opacity: 1; visibility: visible; }

.mega-panel {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(960px, 94vw); padding-top: 14px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
.nav-item.has-mega:hover .mega-panel,
.nav-item.has-mega:focus-within .mega-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-inner {
  display: grid; gap: 26px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 26px;
}
.mega-inner.has-feature { grid-template-columns: 1fr 300px; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.mega-col-head {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 10px;
}
.mega-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-link {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 9px 10px; border-radius: 12px; transition: background .14s ease;
}
.mega-link:hover { background: var(--mint); }
.mega-link-ic {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--mint); color: var(--pine);
  display: grid; place-items: center; transition: background .14s ease, color .14s ease;
}
.mega-link:hover .mega-link-ic { background: var(--pine); color: #fff; }
.mega-link-tx { display: flex; flex-direction: column; gap: 2px; }
.mega-link-tx strong { font-size: .92rem; color: var(--ink); font-weight: 600; }
.mega-link-tx small  { font-size: .8rem; color: var(--ink-soft); line-height: 1.35; }

.mega-feature {
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--r-md); padding: 22px; min-height: 200px;
  background: linear-gradient(160deg, var(--pine), var(--pine-700)); color: #fff;
  position: relative; overflow: hidden; transition: transform .18s ease;
}
.mega-feature:hover { transform: translateY(-2px); }
.mega-feat-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-soft); }
.mega-feat-title { font-family: var(--font-display); font-size: 1.3rem; margin-top: 6px; color: #fff; line-height: 1.15; }
.mega-feat-text  { font-size: .86rem; color: rgba(255,255,255,.82); margin-top: 8px; line-height: 1.5; }
.mega-feat-btn   { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .88rem; color: #fff; }

/* Mobile mega sub-links */
.mm-sublink {
  display: block; padding: 11px 2px 11px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-size: 1rem; font-weight: 500;
}
.mm-sublink:hover { color: var(--pine); }

/* ═══════════════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════════════ */
.blog-card { transition: transform .18s ease, box-shadow .18s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__media img { transition: transform .4s ease; }
.blog-card:hover .blog-card__media img { transform: scale(1.04); }

.blog-prose { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.8; }
.blog-prose > * + * { margin-top: 1.1em; }
.blog-prose h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--pine); margin-top: 1.6em; line-height: 1.2; }
.blog-prose h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin-top: 1.4em; line-height: 1.2; }
.blog-prose a { color: var(--terra); text-decoration: underline; text-underline-offset: 2px; }
.blog-prose ul, .blog-prose ol { padding-left: 1.3em; }
.blog-prose li + li { margin-top: .4em; }
.blog-prose img { border-radius: var(--r-md); margin: 1.4em 0; }
.blog-prose blockquote {
  border-left: 3px solid var(--terra); padding: 6px 0 6px 20px; margin: 1.4em 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink);
}
.blog-prose strong { color: var(--ink); }

/* Pagination (override the header .nav-links hide rule) */
.blog-pagination .nav-links { display: flex !important; gap: 6px; flex-wrap: wrap; justify-content: center; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 42px; height: 42px; padding: 0 12px; justify-content: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font-weight: 600; font-size: .92rem; transition: border-color .15s ease;
}
.blog-pagination .page-numbers.current { background: var(--pine); color: #fff; border-color: var(--pine); }
.blog-pagination .page-numbers:hover:not(.current) { border-color: var(--pine-300); }

@media (max-width: 1080px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════
   HOME SHOWCASE SLIDER
   ═══════════════════════════════════════════════════════════ */
.home-slider {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--pine);
  isolation: isolate;
}
.home-slider__track {
  position: relative;
  min-height: clamp(420px, 56vh, 600px);
}
.home-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}
.home-slide.is-active { opacity: 1; visibility: visible; }

.home-slide__media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--mint);
  display: grid; place-items: center;
  transform: scale(1.04);
}
@media (prefers-reduced-motion: no-preference) {
  .home-slide.is-active .home-slide__media {
    animation: kenburns 7s ease-out both;
  }
}
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.home-slide__placeholder { color: var(--pine-300); opacity: .5; }

.home-slide__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,28,24,.86) 0%, rgba(8,28,24,.6) 42%, rgba(8,28,24,.18) 72%, rgba(8,28,24,0) 100%);
}
.home-slide__content {
  position: relative; z-index: 2;
  max-width: 560px; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  gap: 14px; padding: clamp(28px, 5vw, 64px);
  color: #fff;
}
.home-slide__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.08; color: #fff;
}
.home-slide__text {
  font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.55;
  color: rgba(255,255,255,.86); max-width: 460px;
}
.home-slide__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Arrows — a subtle scrim rather than a solid button, so they read as
   part of the photo rather than floating UI chrome. */
.home-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(8,28,24,.28); color: #fff; border: none;
  box-shadow: none; transition: background .15s ease, transform .15s ease;
}
.home-slider__arrow svg { width: 18px; height: 18px; }
.home-slider__arrow:hover { background: rgba(8,28,24,.5); transform: translateY(-50%) scale(1.06); }
.home-slider__arrow:focus-visible { outline: 2px solid rgba(255,255,255,.85); outline-offset: 2px; }
.home-slider__arrow--prev { left: 18px; }
.home-slider__arrow--next { right: 18px; }

/* Dots */
.home-slider__dots {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 20px;
  display: flex; gap: 9px; justify-content: center;
}
.home-slider__dot {
  width: 10px; height: 10px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.45); border: none; padding: 0;
  transition: background .2s ease, width .2s ease;
}
.home-slider__dot:hover { background: rgba(255,255,255,.7); }
.home-slider__dot.is-active { background: var(--terra); width: 26px; border-radius: 6px; }

@media (max-width: 760px) {
  .home-slide__overlay {
    background: linear-gradient(0deg, rgba(8,28,24,.92) 0%, rgba(8,28,24,.62) 55%, rgba(8,28,24,.4) 100%);
  }
  .home-slide__content { justify-content: flex-end; max-width: 100%; padding-bottom: 64px; }
  .home-slide__text { max-width: 100%; }
  /* Text is bottom-anchored and full-width on mobile, leaving nowhere
     for the arrows to sit without covering it — swipe (already wired
     up) and the dots handle navigation there instead. */
  .home-slider__arrow { display: none; }
  .home-slide__cta .btn-lg { padding: 9px 16px; font-size: .82rem; gap: 5px; }
}

/* ── Home slider: full-bleed variant (first section on the home page) ── */
.home-slider-section { width: 100%; }
.home-slider--full {
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.home-slider--full .home-slider__track { min-height: clamp(440px, 62vh, 640px); }
/* Keep the slide text aligned with the site's content width, not flush to the edge. */
.home-slider--full .home-slide__content {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 40px);
  padding-right: clamp(20px, 5vw, 40px);
}
.home-slider--full .home-slide__content > * { max-width: 600px; }

/* ═══════════════════════════════════════════════════════════
   HOME — "YOUR JOURNEY" STEP TIMELINE
   ═══════════════════════════════════════════════════════════ */
.journey-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: 52px;
}
.journey-step { text-align: center; padding: 0 14px; }
.journey-step__top { position: relative; display: flex; justify-content: center; margin-bottom: 24px; }
.journey-num {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  position: relative; z-index: 2; background: var(--paper);
}
.journey-num.is-filled  { background: var(--pine); color: #fff; box-shadow: 0 10px 24px -12px rgba(12,70,62,.7); }
.journey-num.is-outline { border: 2px solid var(--pine); color: var(--pine); }
/* Connector line to the next step */
.journey-step:not(:last-child) .journey-step__top::after {
  content: ""; position: absolute; top: 50%;
  left: calc(50% + 33px); right: calc(-50% + 33px);
  height: 2px; background: var(--line); z-index: 1;
}
.journey-title { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); }
.journey-desc  { color: var(--ink-soft); font-size: .92rem; line-height: 1.55; margin-top: 8px; max-width: 240px; margin-inline: auto; }

@media (max-width: 980px) {
  .journey-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .journey-step:not(:last-child) .journey-step__top::after { display: none; }
}
@media (max-width: 540px) {
  .journey-grid { grid-template-columns: 1fr; gap: 30px 0; }
}

/* ═══════════════════════════════════════════════════════════
   HOME — GALLERY MOSAIC
   ═══════════════════════════════════════════════════════════ */
.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  margin-top: 48px;
}
.home-gallery-cell {
  position: relative; overflow: hidden;
  border-radius: var(--r-md);
  background: var(--mint);
}
.home-gallery-cell .img-slot { width: 100%; height: 100%; }
.home-gallery-cell.is-feature { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) {
  .home-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .home-gallery-cell.is-feature { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 520px) {
  .home-gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
}

/* ── Gallery cells as lightbox triggers ── */
.home-gallery-cell { border: none; padding: 0; margin: 0; cursor: pointer; display: block; }
.home-gallery-cell.lightbox-trigger img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.home-gallery-cell.lightbox-trigger:hover img { transform: scale(1.06); }
.home-gallery-cell.lightbox-trigger:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }

/* ═══════════════════════════════════════════════════════════
   IMAGE LIGHTBOX
   ═══════════════════════════════════════════════════════════ */
.ais-lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  background: rgba(8,20,17,.93); padding: 28px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.ais-lightbox.is-open { display: flex; animation: fade .2s ease; }
.ais-lightbox__img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 8px; object-fit: contain;
  box-shadow: 0 30px 90px -20px rgba(0,0,0,.7);
  animation: pop .25s cubic-bezier(.2,.9,.3,1.2);
}
.ais-lightbox__close,
.ais-lightbox__nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff;
  border: none; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.ais-lightbox__close {
  top: 22px; right: 26px; width: 46px; height: 46px;
  border-radius: 50%; font-size: 28px; line-height: 1;
}
.ais-lightbox__nav {
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
}
.ais-lightbox__prev { left: 22px; }
.ais-lightbox__next { right: 22px; }
.ais-lightbox__close:hover,
.ais-lightbox__nav:hover { background: rgba(255,255,255,.28); }
.ais-lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 600px) {
  .ais-lightbox__nav { width: 34px; height: 34px; }
  .ais-lightbox__prev { left: 10px; } .ais-lightbox__next { right: 10px; }
}

/* ═══════════════════════════════════════════════════════════
   SERVICE REVIEWS CAROUSEL
   ═══════════════════════════════════════════════════════════ */
.review-carousel { position: relative; margin-top: 48px; }
.review-carousel__track {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px; margin: -4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.review-carousel__track::-webkit-scrollbar { display: none; }
.review-carousel__track > .review-card {
  flex: 0 0 calc((100% - 44px) / 3);
  scroll-snap-align: start;
}
@media (max-width: 980px) { .review-carousel__track > .review-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 640px) { .review-carousel__track > .review-card { flex-basis: 86%; } }

.review-carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; color: var(--pine); box-shadow: var(--shadow-md);
  display: grid; place-items: center; transition: background .15s ease, transform .15s ease;
}
.review-carousel__nav:hover { transform: translateY(-50%) scale(1.07); }
.review-carousel__nav.prev { left: -12px; }
.review-carousel__nav.next { right: -12px; }
.review-carousel__nav[disabled] { opacity: .35; cursor: default; transform: translateY(-50%); }
@media (max-width: 640px) { .review-carousel__nav { display: none; } }

/* ============================================================
   TRUST STRIP  (badges beneath the hero)
   ============================================================ */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
/* Desktop: continuous auto-scrolling marquee. The track holds 3 copies
   of the row (see trust-strip.php) so it always spans wide viewports
   and loops seamlessly — translating by exactly one copy's width
   (-33.333%) lands back on an identical frame. */
.trust-strip__viewport { overflow: hidden; }
.trust-strip__track {
  display: flex;
  width: max-content;
  animation: trust-marquee 26s linear infinite;
}
.trust-strip__track:hover { animation-play-state: paused; }
@keyframes trust-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-strip__track { animation: none; }
}
.trust-strip__row {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 40px;
  padding: 22px 28px;
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .92rem;
  white-space: nowrap;
}
.trust-strip__icon { color: var(--terra); display: inline-flex; }

/* Mobile: no marquee — one centered, wrapped row of chips instead
   (the 2 duplicate rows used for the desktop loop are hidden). */
@media (max-width: 640px) {
  .trust-strip__track { animation: none; width: 100%; }
  .trust-strip__row:nth-child(n+2) { display: none; }
  .trust-strip__row {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 18px 16px;
  }
  .trust-strip__item {
    gap: 8px;
    padding: 9px 14px;
    font-size: .82rem;
    line-height: 1.1;
    background: var(--mint);
    border-radius: 999px;
    white-space: normal;
  }
  .trust-strip__icon svg { width: 17px; height: 17px; }
}

/* ============================================================
   ALBANIAN RIVIERA CAROUSEL  (Places section · turquoise water)
   ============================================================ */
.riviera-carousel {
  --riviera-gap: 22px;
  --riviera-per-view: 3;
  margin: 34px 0 0;
}
.riviera-carousel__viewport {
  position: relative;
  overflow: hidden;
  /* just enough room below so the soft card shadow isn't clipped */
  padding-bottom: 14px;
}
.riviera-carousel__track {
  display: flex;
  gap: var(--riviera-gap);
  transition: transform .6s cubic-bezier(.45, 0, .2, 1);
  will-change: transform;
}
.riviera-slide {
  flex: 0 0 calc((100% - (var(--riviera-per-view) - 1) * var(--riviera-gap)) / var(--riviera-per-view));
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 10px 24px -14px rgba(15, 50, 42, .25);
  background: linear-gradient(120deg, #79d3d0 0%, #2aa5c4 45%, #2575bd 100%);
}
.riviera-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.riviera-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  color: var(--pine);
  background: rgba(255, 253, 249, .92);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  z-index: 2;
}
.riviera-carousel__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.riviera-carousel__arrow:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.riviera-carousel__arrow--prev { left: 16px; }
.riviera-carousel__arrow--next { right: 16px; }
.riviera-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
}
/* The carousel ends the Places section — trim its bottom padding so the
   gap before the next section isn't excessive. */
#explore.section { padding-bottom: clamp(40px, 5vw, 64px); }
.riviera-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--pine-300);
  opacity: .5;
  cursor: pointer;
  transition: width .25s ease, opacity .25s ease, background .25s ease, border-radius .25s ease;
}
.riviera-carousel__dot:hover { opacity: .8; }
.riviera-carousel__dot.is-active {
  width: 26px;
  border-radius: 6px;
  opacity: 1;
  background: var(--terra);
}
@media (max-width: 900px) {
  .riviera-carousel { --riviera-per-view: 2; }
}
@media (max-width: 600px) {
  .riviera-carousel {
    --riviera-per-view: 1;
    --riviera-gap: 14px;
  }
  /* show a peek of the next card to hint it's swipeable */
  .riviera-slide { flex-basis: 84%; }
  .riviera-carousel__arrow { width: 38px; height: 38px; }
  .riviera-carousel__arrow--prev { left: 10px; }
  .riviera-carousel__arrow--next { right: 10px; }
}

/* ─────────────────────────────────────────────────────────
   CALL-ME-BACK BAR  (phone-only lead capture)
   ───────────────────────────────────────────────────────── */
.callback-bar {
  background: linear-gradient(120deg, var(--pine) 0%, #0e5249 60%, #12655a 100%);
}
.callback-bar__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px 48px;
  align-items: center;
}
.callback-bar__copy { max-width: 540px; }
.callback-bar__form { position: relative; }
.callback-bar__row {
  display: flex;
  gap: 12px;
}
.callback-bar__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  font-size: 1.02rem;
}
.callback-bar__btn {
  flex: 0 0 auto;
  height: 54px;
  white-space: nowrap;
}
.callback-bar__note {
  margin-top: 10px;
  font-size: .8rem;
  color: #fff;
  opacity: .8;
}
.callback-bar__success {
  display: none;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-weight: 600;
}
.callback-bar__success svg { vertical-align: middle; margin-right: 8px; }

@media (max-width: 860px) {
  .callback-bar__inner { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 520px) {
  .callback-bar__row { flex-direction: column; }
  .callback-bar__btn { width: 100%; justify-content: center; }
}
