/* =========================================================
   Happy Smile Clinic — Hero
   ========================================================= */
:root {
  --blue: #0D4CA1;
  --blue-deep: #08356f;
  --cyan: #00A6E0;
  --line: #E6E7E9;
  --wa: #25D366;
  --bg: #F3F6FA;
  --muted: #4d6283;

  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;

  --topbar-h: 50px;
  --gutter: clamp(16px, 3.2vw, 56px);
}

html[lang="ur"] {
  --font-body: "Noto Nastaliq Urdu", "DM Sans", serif;
  --font-display: "Noto Nastaliq Urdu", serif;
}
html[lang="ps"] {
  --font-body: "Noto Naskh Arabic", "DM Sans", serif;
  --font-display: "Noto Naskh Arabic", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--blue);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; }

/* page layout stays the same in RTL (video right); text itself flows RTL */
.topbar, .header, .hero { direction: ltr; }
html[dir="rtl"] [data-i18n] { direction: rtl; unicode-bidi: plaintext; }
html[dir="rtl"] .hero__content { direction: rtl; }
.ltr-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------------- Top bar ---------------- */
.topbar {
  min-height: var(--topbar-h);
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  position: relative;
  z-index: 30;
}
.topbar__inner {
  min-height: var(--topbar-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar__group { display: flex; align-items: center; }
.topbar__item {
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  transition: color .2s;
}
.topbar__item--addr { opacity: .92; min-width: 0; }
.topbar__item--addr span { overflow: hidden; text-overflow: ellipsis; }
.topbar__item--addr svg { font-size: 17px; flex: none; }
.topbar__item--call, .topbar__item--wa { font-size: 16.5px; font-weight: 700; letter-spacing: .01em; }
.topbar__group .topbar__item + .topbar__item {
  margin-left: 22px; padding-left: 22px;
  border-left: 1px solid rgba(230, 231, 233, .35);
}
.topbar__item:hover { color: var(--cyan); }

/* animated round icons (top bar) */
.ico {
  position: relative;
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 17px;
  color: #fff;
}
.ico::after { /* ripple */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid currentColor;
  animation: ripple 2s ease-out infinite;
}
.ico--call { background: var(--cyan); color: #fff; }
.ico--call::after { border-color: var(--cyan); }
.ico--call svg { animation: ring 2s ease-in-out infinite; transform-origin: 50% 50%; }
.ico--mobile { background: #fff; color: var(--blue); font-size: 16px; }
.ico--mobile::after { border-color: #fff; animation-delay: .3s; }
.ico--mobile svg { animation: wobble 2.6s .4s ease-in-out infinite; }
.ico--wa { background: var(--wa); }
.ico--wa::after { border-color: var(--wa); animation-delay: .6s; }
.ico--wa svg { animation: wobble 2.6s ease-in-out infinite; }

@keyframes ripple {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes ring { /* phone shake, then rest */
  0%, 50%, 100% { transform: rotate(0); }
  5%, 15%, 25%, 35% { transform: rotate(-16deg); }
  10%, 20%, 30%, 40% { transform: rotate(16deg); }
}
@keyframes wobble {
  0%, 60%, 100% { transform: scale(1); }
  70% { transform: scale(1.18) rotate(-8deg); }
  80% { transform: scale(.95) rotate(6deg); }
  90% { transform: scale(1.06); }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
  background: var(--bg);
  isolation: isolate;
}

.hero__media {
  position: relative;
  grid-column: 2; grid-row: 1;
  overflow: hidden;
  background: #dfe6ee;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------------- Header ---------------- */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
  padding: 14px var(--gutter);
}
.header__logo { display: block; width: clamp(112px, 8.8vw, 150px); }
.logo { width: 100%; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); }
.nav__link {
  position: relative;
  font-size: 16px; font-weight: 500;
  color: var(--blue);
  padding: 6px 0;
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--cyan); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav__link:hover { color: var(--cyan); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 14px; }

/* ---------------- Language switcher ---------------- */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 15px;
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 700; font-family: "DM Sans", sans-serif;
  transition: border-color .2s;
}
.lang__btn:hover { border-color: var(--cyan); }
.lang__btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang__btn .lang__chev { width: 14px; height: 14px; transition: transform .25s; }
.lang.is-open .lang__chev { transform: rotate(180deg); }

.lang__menu {
  list-style: none; margin: 0; padding: 6px;
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(8, 53, 111, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 5;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu button {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 9px;
  color: var(--blue); font-size: 15px; font-family: "DM Sans", sans-serif;
  text-align: left;
}
.lang__menu button:hover { background: #F0F7FC; }
.lang__menu button.is-active { background: rgba(0, 166, 224, .1); font-weight: 600; }
.lang__menu small { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--cyan); }
.f-ur { font-family: "Noto Nastaliq Urdu", serif; font-size: 14px; line-height: 2; }
.f-ps { font-family: "Noto Naskh Arabic", serif; font-size: 16px; }

/* ---------------- Book Appointment (flashy) ---------------- */
.btn-book {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  height: var(--h);
  padding: 0 24px 0 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 15.5px; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap;
  background: linear-gradient(110deg, var(--cyan) 0%, #1a8ee0 45%, var(--blue) 100%);
  isolation: isolate;
  transition: transform .25s ease;
}
.btn-book__ring { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.btn-book__ring::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--cyan);
  animation: book-pulse 2.4s ease-out infinite;
}
.btn-book__icon {
  width: calc(var(--h) - 14px); height: calc(var(--h) - 14px);
  display: grid; place-items: center; flex: none;
  border-radius: 50%;
  background: #fff; color: var(--blue);
  font-size: 20px;
  transition: transform .35s ease;
}
.btn-book:hover { transform: translateY(-2px); }
.btn-book:hover .btn-book__icon { transform: rotate(-12deg) scale(1.06); }

@keyframes book-pulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.18, 1.45); opacity: 0; }
}

/* ---------------- Burger (mobile) ---------------- */
.burger {
  display: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue);
  position: relative;
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .3s, opacity .3s, top .3s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* ---------------- Hero content (left half) ---------------- */
.hero__content {
  grid-column: 1; grid-row: 1;
  align-self: center;
  padding: clamp(170px, 20vh, 200px) var(--gutter) 64px;
  max-width: 760px;
}
.hero__title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(36px, 3.9vw, 70px);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--blue);
}
.hero__line { display: block; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__line--accent { color: var(--cyan); animation-delay: .12s; }
.hero__text {
  margin: 26px 0 0;
  max-width: 34em;
  font-size: clamp(16.5px, 1.25vw, 19px);
  line-height: 1.65;
  color: var(--muted);
  animation: rise .9s .24s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Services / Offers buttons */
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 38px;
  animation: rise .9s .36s cubic-bezier(.2, .7, .2, 1) both;
}
.cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  height: 62px;
  padding: 0 22px 0 8px;
  border-radius: 999px;
  font-size: 17px; font-weight: 700;
  isolation: isolate;
  overflow: hidden;
  transition: transform .25s ease ease, color .25s, border-color .25s;
}
html[dir="rtl"] .cta { padding: 0 8px 0 22px; }
.cta__icon {
  position: relative;
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 23px;
}
.cta__arrow { font-size: 18px; display: grid; transition: transform .3s ease; }
html[dir="rtl"] .cta__arrow { transform: scaleX(-1); }

/* fill sweeps in on hover */
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
html[dir="rtl"] .cta::before { transform-origin: right; }
.cta:hover::before { transform: scaleX(1); }
.cta:hover { transform: translateY(-3px); }
.cta:hover .cta__arrow { transform: translateX(5px); }
html[dir="rtl"] .cta:hover .cta__arrow { transform: scaleX(-1) translateX(5px); }

/* Services — solid blue */
.cta--services {
  color: #fff;
  background: var(--blue);
}
.cta--services::before { background: linear-gradient(110deg, var(--blue), var(--cyan)); }
.cta--services .cta__icon { background: #fff; color: var(--blue); }
.cta--services .cta__icon svg { animation: tooth-bounce 2.4s ease-in-out infinite; }

/* Offers — white outline */
.cta--offers {
  color: var(--blue);
  background: #fff;
  border: 1.5px solid var(--line);
}
.cta--offers::before { background: var(--cyan); }
.cta--offers:hover { color: #fff; border-color: var(--cyan); }
.cta--offers .cta__icon { background: var(--cyan); color: #fff; }
.cta--offers:hover .cta__icon { background: #fff; color: var(--cyan); }
.cta--offers .cta__icon::after { /* pulsing ring draws the eye to offers */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--cyan);
  animation: ripple 2s ease-out infinite;
}
.cta--offers .cta__icon svg { animation: tag-swing 2.6s ease-in-out infinite; transform-origin: 30% 30%; }

@keyframes tooth-bounce {
  0%, 55%, 100% { transform: translateY(0); }
  65% { transform: translateY(-4px); }
  75% { transform: translateY(0); }
  82% { transform: translateY(-2px); }
}
@keyframes tag-swing {
  0%, 50%, 100% { transform: rotate(0); }
  60% { transform: rotate(-14deg); }
  72% { transform: rotate(10deg); }
  84% { transform: rotate(-5deg); }
}

.hero__cta { display: none; }

/* ---------------- Language-specific type ---------------- */
html[lang="ur"] .hero__title { font-size: clamp(34px, 3.8vw, 64px); line-height: 1.9; letter-spacing: 0; }
html[lang="ps"] .hero__title { font-size: clamp(40px, 4.4vw, 76px); line-height: 1.4; letter-spacing: 0; font-weight: 600; }
html[lang="ur"] .hero__text { line-height: 2.3; font-size: 16px; }
html[lang="ur"] .nav__link { font-size: 15px; line-height: 2.1; }
html[lang="ur"] .btn-book { font-size: 14.5px; font-weight: 600; }
html[lang="ur"] .topbar__item--addr { font-size: 13px; }
html[lang="ur"] .cta { font-size: 15.5px; font-weight: 600; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1240px) {
  .nav { gap: 18px; }
  .nav__link { font-size: 15px; }
  .btn-book { font-size: 14.5px; }
}

@media (max-width: 1024px) {
  /* stack: header → content → video */
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .header { position: relative; grid-template-columns: auto 1fr; }
  .header__actions { justify-self: end; }
  .burger { display: block; }

  .nav {
    position: absolute; top: calc(100% - 4px); left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 18px;
    background: #fff; border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 50px -16px rgba(8, 53, 111, .45);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 14px 2px; font-size: 16px; }
  .nav__link + .nav__link { border-top: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--cyan); }

  .hero__content { padding: 24px var(--gutter) 44px; max-width: none; }
  .hero__title { font-size: clamp(40px, 7vw, 68px); }
  html[lang="ur"] .hero__title { font-size: clamp(32px, 6vw, 56px); }
  html[lang="ps"] .hero__title { font-size: clamp(36px, 7vw, 64px); }

  .hero__media { height: 62vh; min-height: 360px; }
}

@media (max-width: 640px) {
  .topbar__inner { flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
  .topbar__item--addr { font-size: 13px; width: 100%; justify-content: center; }
  .topbar__item--call, .topbar__item--wa { font-size: 14px; gap: 7px; }
  .topbar__group .topbar__item + .topbar__item { margin-left: 10px; padding-left: 10px; }
  .topbar .ico { width: 26px; height: 26px; font-size: 14px; }
  .topbar__item--wa > span:not(.ico) { display: none; } /* icon only on phones */

  .header { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .header__logo { width: 96px; }
  .header__actions { gap: 8px; }
  .lang__btn { height: 44px; padding: 0 12px; gap: 6px; }
  .lang__btn > svg:first-child { display: none; }
  .burger { width: 44px; height: 44px; }
  .burger span { left: 13px; right: 13px; }
  .burger span:nth-child(1) { top: 15px; }
  .burger span:nth-child(2) { top: 21px; }
  .burger span:nth-child(3) { top: 27px; }
  .burger[aria-expanded="true"] span:nth-child(1),
  .burger[aria-expanded="true"] span:nth-child(3) { top: 21px; }
  .header__actions .btn-book { display: none; } /* shown as full-width CTA instead */

  .hero__title { font-size: clamp(34px, 10vw, 52px); }
  .hero__text { margin-top: 18px; }
  .hero__actions { gap: 12px; margin-top: 26px; }
  .cta { flex: 1 1 100%; height: 58px; font-size: 16px; }
  .cta__arrow { margin-left: auto; }
  html[dir="rtl"] .cta__arrow { margin-left: 0; margin-right: auto; }
  .cta__icon { width: 42px; height: 42px; font-size: 21px; }

  .hero__cta { display: block; margin-top: 22px; }
  .btn-book--block { --h: 60px; width: 100%; justify-content: center; font-size: 16.5px; }
  .btn-book--block .btn-book__icon { position: absolute; left: 7px; top: 7px; }
  html[dir="rtl"] .btn-book--block .btn-book__icon { left: auto; right: 7px; }

  .hero__media { height: 56vh; min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------- Phone layout: white header + contact row, hero fits one screen ---------------- */
.mbar { display: none; }
@media (max-width: 640px) {
  .topbar { display: none; }
  .hero { min-height: 100vh; min-height: 100svh; background: #fff; }

  .header { background: #fff; padding: 8px var(--gutter); border-bottom: 1px solid var(--line); }
  .header__logo { width: 76px; }

  .mbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px var(--gutter);
    background: #fff; border-bottom: 1px solid var(--line);
  }
  .mbar__addr > svg { width: 22px; height: 22px; flex: none; color: var(--cyan); }
  .mbar__addr { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
  .mbar__addr strong { display: block; font-size: 13.5px; color: var(--blue); }
  .mbar__icons { display: flex; gap: 12px; flex: none; }
  .mbar__ico {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 700; line-height: 1; color: var(--blue);
  }
  .mbar__ico svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; color: #fff; }
  .mbar__ico::before { /* ripple ring */
    content: ""; position: absolute; top: 0; left: 50%; width: 38px; height: 38px; margin-left: -19px;
    border-radius: 50%; border: 2px solid; animation: ripple 2.2s ease-out infinite;
  }
  .mbar__ico--call svg { background: var(--cyan); animation: ring 2s ease-in-out infinite; }
  .mbar__ico--call::before { border-color: var(--cyan); }
  .mbar__ico--mobile svg { background: var(--blue); animation: wobble 2.6s .3s ease-in-out infinite; }
  .mbar__ico--mobile::before { border-color: var(--blue); animation-delay: .5s; }
  .mbar__ico--wa svg { background: var(--wa); animation: wobble 2.6s .9s ease-in-out infinite; }
  .mbar__ico--wa::before { border-color: var(--wa); animation-delay: 1s; }

  /* compact hero copy so everything sits on one screen */
  .hero__content { padding: 16px var(--gutter) 16px; }
  .hero__title { font-size: clamp(26px, 8.2vw, 40px); line-height: 1.08; }
  .hero__text { margin-top: 10px; font-size: 15px; line-height: 1.5; }
  .hero__actions { margin-top: 16px; gap: 10px; flex-wrap: nowrap; }
  .hero__actions .cta { flex: 1 1 0; height: 50px; padding: 0 10px 0 6px; gap: 8px; font-size: 14px; }
  html[dir="rtl"] .hero__actions .cta { padding: 0 6px 0 10px; }
  .hero__actions .cta__icon { width: 38px; height: 38px; font-size: 19px; }
  .hero__actions .cta__arrow { display: none; }
  .hero__cta { margin-top: 10px; }
  .btn-book--block { --h: 54px; font-size: 15.5px; }

  .hero__media { flex: 1 1 auto; height: auto; min-height: 200px; }
}

/* ---------------- Full-width mobile menu ---------------- */
.nav__ico, .nav__desc, .nav__go, .nav__extra { display: none; }

@media (max-width: 1024px) {
  .hero { z-index: 30; }              /* keep the open menu above later sections */
  body.nav-open { overflow: hidden; }

  .nav {
    position: fixed; top: var(--nav-top, 70px); left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; align-items: stretch;
    padding: 6px var(--gutter) 28px;
    background: #fff;
    border: 0; border-top: 1px solid var(--line); border-radius: 0;
    box-shadow: none;
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-10px);
  }
  .nav__link, .nav__link + .nav__link { border-top: 0; }
  .nav__link {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 17px; font-weight: 700; color: var(--blue);
  }
  .nav__ico {
    display: grid; place-items: center; flex: none;
    width: 44px; height: 44px; border-radius: 50%;
    background: #EEF3F9; color: var(--blue);
    transition: background .25s, color .25s;
  }
  .nav__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .nav__txt { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .nav__desc { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
  .nav__go { display: grid; font-size: 17px; color: var(--cyan); transition: transform .25s; }
  .nav__link.is-active { color: var(--blue); }
  .nav__link.is-active .nav__ico, .nav__link:active .nav__ico { background: var(--blue); color: #fff; }
  .nav__link:hover .nav__go { transform: translateX(4px); }

  /* staggered slide-in */
  .nav.is-open .nav__link, .nav.is-open .nav__extra { animation: nav-in .45s cubic-bezier(.2, .7, .2, 1) both; }
  .nav.is-open .nav__link:nth-child(2) { animation-delay: .04s; }
  .nav.is-open .nav__link:nth-child(3) { animation-delay: .08s; }
  .nav.is-open .nav__link:nth-child(4) { animation-delay: .12s; }
  .nav.is-open .nav__link:nth-child(5) { animation-delay: .16s; }
  .nav.is-open .nav__extra { animation-delay: .22s; }
  @keyframes nav-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

  .nav__extra { display: block; margin-top: 18px; }
  .nav__label { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--blue); }
  .nav__contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .nav__card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 12px;
    border: 1.5px solid var(--line); border-radius: 16px;
  }
  .nav__card small { display: block; font-size: 11.5px; color: var(--muted); }
  .nav__card strong { font-size: 15.5px; color: var(--blue); }
  .nav__card-ico {
    position: relative;
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 50%; color: #fff; font-size: 19px;
  }
  .nav__card-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid; animation: ripple 2.2s ease-out infinite; }
  .nav__card--call .nav__card-ico { background: var(--cyan); }
  .nav__card--call .nav__card-ico::after { border-color: var(--cyan); }
  .nav__card--call svg { animation: ring 2s ease-in-out infinite; }
  .nav__card--wa .nav__card-ico { background: var(--wa); }
  .nav__card--wa .nav__card-ico::after { border-color: var(--wa); animation-delay: .8s; }
  .nav__card--wa svg { animation: wobble 2.6s ease-in-out infinite; }

  .nav__addr {
    display: flex; align-items: center; gap: 12px;
    margin-top: 10px; padding: 12px 14px;
    border: 1.5px solid var(--line); border-radius: 16px;
    font-size: 13px; line-height: 1.35; color: var(--muted);
  }
  .nav__addr > svg { width: 24px; height: 24px; flex: none; color: var(--cyan); }
  .nav__addr strong { display: block; font-size: 14.5px; color: var(--blue); }
  .nav__addr em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 700; color: var(--cyan); }
  .nav__book { display: flex; margin-top: 14px; --h: 54px; width: 100%; justify-content: center; font-size: 15.5px; }
  .nav__book .btn-book__icon { position: absolute; left: 7px; top: 7px; }
}

/* ---------------- Services dropdown ---------------- */
.nav__item--drop { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__drop-toggle { width: 22px; height: 30px; display: grid; place-items: center; color: var(--blue); }
.nav__drop-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }

.drop {
  position: absolute; top: 100%; left: -24px; z-index: 40;
  width: 600px; margin-top: 12px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.drop__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
.drop__list li { border-bottom: 1px solid var(--line); }
.drop__link {
  display: flex; align-items: center; gap: 14px;
  margin: 3px 0; padding: 9px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--blue);
  transition: background .2s, color .2s;
}
.drop__ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; color: var(--blue); transition: color .2s; }
.drop__ico svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.drop__ico svg * { vector-effect: non-scaling-stroke; }
.drop__link:hover, .drop__link:focus-visible, .drop__link.is-current { background: var(--blue); color: #fff; outline: 0; }
.drop__link:hover .drop__ico, .drop__link:focus-visible .drop__ico, .drop__link.is-current .drop__ico { color: #fff; }
.drop__link:hover .drop__ico svg { animation: drop-wiggle .6s ease; }
.drop__all {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px; padding: 12px; border-radius: 10px;
  font-size: 15px; font-weight: 700; color: var(--blue);
  transition: background .2s, color .2s;
}
.drop__all svg { width: 16px; height: 16px; transition: transform .25s; }
.drop__all:hover { background: var(--blue); color: #fff; }
.drop__all:hover svg { transform: translateX(4px); }

@media (min-width: 1025px) {
  .nav__item--drop:hover .drop, .nav__item--drop:focus-within .drop, .nav__item--drop.is-open .drop { opacity: 1; visibility: visible; transform: none; }
  .nav__item--drop:hover .nav__drop-toggle svg, .nav__item--drop.is-open .nav__drop-toggle svg { transform: rotate(180deg); }
  /* icons draw themselves in when the menu opens */
  .nav__item--drop:hover .drop__ico svg *, .nav__item--drop.is-open .drop__ico svg * { stroke-dasharray: 140; animation: drop-draw .9s ease both; }
}
@keyframes drop-draw { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
@keyframes drop-wiggle { 0%, 100% { transform: none; } 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(8deg); } }

/* inside the full-width phone / tablet menu */
@media (max-width: 1024px) {
  .nav__item--drop { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 10px; border-bottom: 1px solid var(--line); }
  .nav__item--drop > .nav__link { border-bottom: 0; }
  .nav__drop-toggle { width: 40px; height: 40px; border-radius: 50%; background: #EEF3F9; }
  .nav__drop-toggle svg { width: 18px; height: 18px; }
  .nav__item--drop.is-open .nav__drop-toggle { background: var(--blue); color: #fff; }
  .nav__item--drop.is-open .nav__drop-toggle svg { transform: rotate(180deg); }
  .nav.is-open .nav__item--drop { animation: nav-in .45s .04s cubic-bezier(.2, .7, .2, 1) both; }

  .drop {
    position: static; grid-column: 1 / -1;
    width: auto; margin: 0; padding: 0 0 10px;
    border: 0; border-radius: 0;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .drop::before { display: none; }
  .nav__item--drop.is-open .drop { display: block; }
  .drop__list { grid-template-columns: 1fr; }
  .drop__list li:last-child { border-bottom: 0; }
  .drop__link { padding: 8px 8px; font-size: 15.5px; }
  .drop__ico, .drop__ico svg { width: 30px; height: 30px; }
  .drop__all { justify-content: flex-start; margin-top: 4px; padding: 12px 8px; }
}

/* ---------------- Smooth button edges ----------------
   1) once the hover fill has swept across, the button's own background switches to the
      same colour, so no white edge shows through the anti-aliased corners
   2) the pulsing ring on button icons stays inside the button instead of being clipped */
.cta:hover { transition: transform .25s ease, color .25s, border-color .25s, background-color 0s .35s; }
.cta--offers:hover { background-color: var(--cyan); }
.cta--wa:hover { background-color: var(--wa); }
.svc-hero .cta--services:hover { background-color: var(--blue-dark); }
.cta .cta__icon::after { animation-name: ripple-inside; }
@keyframes ripple-inside {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.26); opacity: 0; }
}

/* compact header on small laptops so the menu stays on the light half of the homepage hero */
@media (min-width: 1025px) and (max-width: 1700px) {
  .header { gap: 22px; }
  .header__logo { width: 96px; }
  .nav { gap: 13px; }
  .nav__link { font-size: 14px; }
  .nav__drop-toggle { width: 18px; }
  .header__actions .btn-book { --h: 48px; padding-right: 18px; font-size: 14px; }
}

/* ---------------- Opening hours ---------------- */
.topbar__left { display: flex; align-items: center; min-width: 0; }
.topbar__item--hours { margin-left: 20px; padding-left: 20px; border-left: 1px solid rgba(230, 231, 233, .35); opacity: .92; white-space: nowrap; }
.topbar__item--hours svg { font-size: 17px; flex: none; }
@media (max-width: 1100px) {
  .topbar__item--hours { display: none; } /* tablets: hours are shown in the menu instead */
}
.nav__hours { display: none; }
@media (max-width: 1024px) {
  .nav__hours { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 0 2px; font-size: 14px; font-weight: 600; color: var(--blue); }
  .nav__hours svg { width: 20px; height: 20px; flex: none; color: var(--cyan); }
}
@media (min-width: 1025px) and (max-width: 1180px) {
  .header { gap: 16px; }
  .header__logo { width: 84px; }
  .nav { gap: 9px; }
  .nav__link { font-size: 13px; }
  .nav__drop-toggle { width: 16px; }
}
