/* =====================================================================
   Smile Up Dental Clinic — public website styles
   Layout follows smileupdental.in: rounded "boxes" inset 24px from the
   window edges, 1310px content width, Plus Jakarta Sans + DM Sans buttons.
   Breakpoints: ≤1024px tablet, ≤767px phone.
   ===================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #41a6a6;
  --teal-dark: #348c8c;
  --aqua: #7cd9da;
  --navy: #204289;
  --ink: #1a1a1c;
  --soft: #f2f6fa;
  --white: #fff;
  --blue: #2b6cf5;
  --wa: #25d366;
  --radius: 24px;
  --gutter: 24px;
  --pad: 34px;
  --content: 1310px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-btn: "DM Sans", var(--font);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; color: var(--ink); }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }
main:focus { outline: none; }

.icon { width: 1em; height: 1em; display: inline-block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--teal); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 16px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------------- */
.box {
  position: relative;
  margin: var(--gutter) var(--gutter) 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.container {
  width: 100%;
  max-width: calc(var(--content) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
}
section:not(.box) > .container { max-width: calc(var(--content) + var(--pad) * 2 + var(--gutter) * 2); padding: 0 calc(var(--pad) + var(--gutter)); }

.h3, .visit-card h2, .cta h2 { font-size: 38px; line-height: 46px; letter-spacing: -1px; }
.accent { color: var(--teal); }

/* Section titles: "OUR SERVICES", "ACHIEVEMENTS", "REVIEWS" */
.section-title { max-width: 1044px; margin: 0 auto; text-align: center; }
.section-title .eyebrow { font-size: 14px; line-height: 14px; font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.section-title h2 { font-size: 50px; line-height: 55px; letter-spacing: -2px; color: var(--teal); margin-bottom: 20px; }
.section-title .lead { color: var(--ink); max-width: 1044px; margin: 0 auto; }
.achievements .section-title .lead, .reviews .section-title .lead { max-width: 645px; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 49px;
  padding: 17px 32px;
  border: 0;
  border-radius: 38px;
  font-family: var(--font-btn);
  font-size: 15px;
  line-height: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { font-size: 18px; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); box-shadow: 0 10px 24px -10px rgba(65, 166, 166, .9); }
.btn-light, .btn-white { background: var(--white); color: var(--teal); }
.btn-light:hover, .btn-white:hover { background: var(--teal); color: var(--white); }
.btn-whatsapp { background: var(--wa); color: var(--white); }
.btn-whatsapp:hover { background: #1fb457; color: var(--white); }
.btn-sm { min-height: 47px; padding: 16px 28px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------------
   Header (sits inside the first box on desktop)
   --------------------------------------------------------------------- */
.site-header {
  position: absolute;
  z-index: 40;
  top: var(--gutter);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--gutter) * 2);
  max-width: calc(var(--content) + var(--pad) * 2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px var(--pad) 0;
}
.brand img { width: 180px; height: auto; }
.main-nav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0 10px; background: var(--white); border-radius: 40px; min-height: 54px; }
.nav-link { display: block; padding: 0 36px; font-size: 15px; line-height: 54px; font-weight: 500; color: var(--teal); white-space: nowrap; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 36px; right: 36px; bottom: 14px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { color: var(--teal-dark); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-call { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--teal); white-space: nowrap; }
.header-call img { width: 16px; height: 22px; }
.call-label { display: none; }
.header-chat { display: block; width: 54px; height: 54px; border-radius: 50%; transition: transform .3s var(--ease); }
.header-chat:hover { transform: scale(1.06); }
.header-chat img { width: 54px; height: 54px; }
.menu-btn { display: none; }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero { background: #b7f1f2 var(--img-hero, url("../img/site/hero-bg.jpg")) center / cover no-repeat; }
.hero-static, .hero-swiper, .hero-wrapper { height: 100%; }
.hero-swiper { position: static; }
.hero-slide {
  position: relative;
  min-height: 917px;
  display: flex;
  align-items: center;
  padding: 100px var(--pad) 0;
  max-width: calc(var(--content) + var(--pad) * 2);
  margin: 0 auto;
}
.hero.is-slider .hero-slide { max-width: none; padding-left: max(var(--pad), calc((100% - var(--content)) / 2)); padding-right: max(var(--pad), calc((100% - var(--content)) / 2)); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-text { position: relative; z-index: 2; width: 645px; max-width: 50%; }
.hero-eyebrow { font-size: 14px; line-height: 14px; font-weight: 700; color: var(--aqua); margin-bottom: 20px; }
.hero h1, .hero .h1, .page-hero h1 { font-size: 65px; line-height: 78px; letter-spacing: -3px; color: var(--ink); }
.hero-desc { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--ink); max-width: 560px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.hero-buttons.is-center { justify-content: center; }
.hero-media { position: absolute; z-index: 1; right: 23px; bottom: 0; width: 48.4%; max-width: 665px; }
.hero.is-slider .hero-media { right: max(23px, calc((100% - var(--content)) / 2 - 11px)); }
.hero-media img { width: 100%; height: auto; }
.hero-pagination.swiper-pagination { bottom: 28px !important; z-index: 5; }
.swiper-pagination-bullet { width: 10px; height: 10px; background: var(--teal); opacity: .3; transition: opacity .3s, width .3s; }
.swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 6px; }

/* Entrance animation for the hero (respects reduced motion) */
.hero-text > *, .hero-media { animation: rise .9s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .1s; }
.hero-text > :nth-child(3) { animation-delay: .2s; }
.hero-text > :nth-child(4) { animation-delay: .3s; }
.hero-media { animation-name: rise-media; animation-duration: 1.1s; animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes rise-media { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   Marquee (scrolling text, managed in the admin)
   --------------------------------------------------------------------- */
.marquee {
  position: relative;
  margin: var(--gutter) var(--gutter) 0;
  border-radius: var(--radius);
  background: var(--teal);
  overflow: hidden;
  --marquee-duration: 40s;
}
.marquee.marquee-slow { --marquee-duration: 65s; }
.marquee.marquee-fast { --marquee-duration: 24s; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-duration) linear infinite; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex-shrink: 0; list-style: none; margin: 0; padding: 0; }
.marquee-list li { display: flex; align-items: center; }
.marquee-list li > span, .marquee-link { display: flex; align-items: center; gap: 16px; padding: 22px 28px; font-size: 20px; line-height: 26px; font-weight: 600; color: var(--white); white-space: nowrap; letter-spacing: -.3px; }
.marquee-link:hover { color: var(--ink); }
.marquee-list li { gap: 16px; }
.marquee-icon { font-size: 22px; color: var(--white); opacity: .9; }
.marquee-list li > span { padding: 22px 28px 22px 0; }
.marquee-list li { padding-left: 28px; }
.marquee-list li > .marquee-link { padding-left: 0; }
.marquee-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: var(--white);
  display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .3s, background .3s;
}
.marquee:hover .marquee-toggle, .marquee-toggle:focus-visible { opacity: 1; }
.marquee-toggle:hover { background: rgba(255, 255, 255, .35); }
.marquee-toggle .i-play, .marquee.is-paused .marquee-toggle .i-pause { display: none; }
.marquee.is-paused .marquee-toggle .i-play { display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------
   About
   --------------------------------------------------------------------- */
.about { padding: 100px 0 99px; }
.about-grid { display: grid; grid-template-columns: 423px 1fr; gap: 108px; align-items: center; }
.about-media { min-width: 0; }
.about-swiper { border-radius: 20px; }
.about-swiper img { width: 100%; height: 456px; object-fit: cover; border-radius: 20px; }
.about-swiper .swiper-pagination { display: none; }
.about-quote { width: 96px; height: 96px; margin: 0 0 44px; }
.about-copy p { font-size: 20px; line-height: 24px; font-weight: 500; color: var(--ink); text-align: justify; }
.about-sign { display: flex; align-items: center; gap: 24px; margin-top: 70px; color: var(--navy); }
.about-sign span { width: 90px; height: 2px; background: var(--teal); }

/* ---------------------------------------------------------------------
   Services
   --------------------------------------------------------------------- */
.services { background: #cdf4f4 var(--img-services, url("../img/site/services-bg.jpg")) center top / cover no-repeat; padding: 70px 0 72px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.service-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(32, 66, 137, .45); }
.service-media { overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 419 / 277; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { flex: 1; display: flex; flex-direction: column; padding: 32px 28px 28px; text-align: center; }
.service-body h3 { font-size: 28px; line-height: 33.6px; letter-spacing: -1px; color: var(--teal); margin-bottom: 19px; }
.service-body p { color: #000; }
.service-actions { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.service-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-btn); font-size: 15px; font-weight: 600; color: var(--teal); }
.service-link .icon { transition: transform .3s var(--ease); }
.service-link:hover .icon { transform: translateX(4px); }
.service-wa { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(37, 211, 102, .12); color: #1faa52; font-size: 18px; transition: background .3s, color .3s; }
.service-wa:hover { background: var(--wa); color: var(--white); }
.service-wa .icon { fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------------
   Why choose us
   --------------------------------------------------------------------- */
.why { margin-top: 48px; padding: 70px 0 66px; background: var(--teal) var(--img-why, url("../img/site/why-bg.jpg")) center / cover no-repeat fixed; color: var(--white); }
.why::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--aqua) 0%, var(--teal) 26%); opacity: .62; mix-blend-mode: multiply; }
.why::after { content: ""; position: absolute; inset: 0; background: rgba(150, 205, 205, .45); }
.why .container { position: relative; }
.why-head { max-width: 423px; }
.why-head h2 { font-size: 50px; line-height: 60px; letter-spacing: -2px; color: var(--white); }
.why-sub { margin-top: 20px; font-weight: 600; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 140px; }
.why .container { z-index: 1; }
.why-item img { width: auto; height: 54px; margin-bottom: 14px; }
.why-item h3 { font-size: 20px; line-height: 26px; color: var(--white); margin-bottom: 8px; }
.why-item p { max-width: 280px; }

/* ---------------------------------------------------------------------
   Visit (map + address)
   --------------------------------------------------------------------- */
.visit { padding-top: 144px; }
.visit-grid { display: grid; grid-template-columns: 645fr 641fr; gap: 22px; }
.visit-map { border-radius: var(--radius); overflow: hidden; min-height: 655px; background: var(--soft); }
.visit-map iframe { display: block; width: 100%; height: 100%; min-height: 655px; border: 0; }
.visit-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 60px 40px; border-radius: var(--radius); background: #d5f6f6 var(--img-visit, url("../img/site/visit-bg.jpg")) center / cover no-repeat;
}
.visit-card img { width: 109px; height: 109px; margin-bottom: 20px; }
.visit-card h2 { max-width: 441px; color: var(--navy); }
.visit-address { max-width: 353px; margin: 20px 0 0; font-size: 20px; line-height: 26px; font-weight: 500; }
.visit-address, .visit-address a { color: var(--navy); }
.visit-address a:hover { color: var(--teal); }
.visit-card .btn { margin-top: 24px; }

/* ---------------------------------------------------------------------
   Achievements
   --------------------------------------------------------------------- */
.achievements { margin-top: 147px; background: var(--soft); padding: 112px 0 116px; }
.achievements-swiper { max-width: 1262px; margin: 76px auto 0; padding-bottom: 40px; }
.achievements-swiper .swiper-slide { display: flex; justify-content: center; }
.achievement { display: block; width: 225px; max-width: 100%; border-radius: 4px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(32, 66, 137, .55); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.achievement:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -20px rgba(32, 66, 137, .6); }
.achievement img { width: 225px; height: 300px; object-fit: cover; }
.achievements-swiper .swiper-pagination { bottom: 0 !important; }

/* ---------------------------------------------------------------------
   Reviews (Google reviews widget)
   --------------------------------------------------------------------- */
.reviews { padding: 88px 0 140px; }
.reviews-widget { display: flex; align-items: center; gap: 30px; margin-top: 70px; }
.reviews-summary { flex: 0 0 240px; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 18px; color: #555; }
.reviews-logo { width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .24); object-fit: contain; background: #fff; }
.reviews-name { display: block; font-size: 14px; font-weight: 700; color: #333; margin-bottom: 4px; }
.reviews-rating { display: flex; align-items: center; gap: 6px; }
.reviews-rating strong { font-size: 19px; color: #fb8e28; }
.stars { display: inline-flex; gap: 1px; color: #fb8e28; font-size: 17px; }
.stars .icon { fill: currentColor; stroke: none; }
.reviews-count { margin-top: 4px; }
.reviews-powered { margin-top: 2px; }
.g-word { font-weight: 600; letter-spacing: -.2px; }
.g-word span:nth-child(1), .g-word span:nth-child(4) { color: #4285f4; }
.g-word span:nth-child(2), .g-word span:nth-child(6) { color: #ea4335; }
.g-word span:nth-child(3) { color: #fbbc05; }
.g-word span:nth-child(5) { color: #34a853; }
.review-us { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 10px 7px 14px; border-radius: 27px; background: #0a6cff; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .24); }
.review-us:hover { color: #fff; background: #0057d9; }
.review-us .google-g { background: #fff; border-radius: 50%; padding: 2px; width: 20px; height: 20px; }
.reviews-slider { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.reviews-swiper { flex: 1; min-width: 0; padding: 8px 4px 34px; }
.reviews-swiper .swiper-wrapper { align-items: center; }
.review-card { padding: 15px; border-radius: 4px; background: #fafafa; box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .24); font-size: 15px; line-height: 22px; color: #222; }
.review-head { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding-right: 22px; }
.review-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .24); }
.review-name { font-size: 15px; font-weight: 700; color: #154fc1; }
.review-name:hover { color: #0b3c99; }
.review-time { font-size: 13px; color: #555; }
.review-g { position: absolute; top: 0; right: 0; }
.review-text { margin-top: 8px; }
.reviews-nav { flex: 0 0 33px; width: 33px; height: 33px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #777; box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .24); cursor: pointer; transition: color .3s; }
.reviews-nav:hover { color: var(--teal); }
.reviews-swiper .swiper-pagination { bottom: 0 !important; }

/* ---------------------------------------------------------------------
   Closing call to action
   --------------------------------------------------------------------- */
.cta { margin: 0 48px; min-height: 515px; display: flex; align-items: flex-start; justify-content: center; text-align: center; background: #23819b var(--img-cta, url("../img/site/cta-bg.jpg")) center / cover no-repeat; }
.cta::before { content: ""; position: absolute; inset: 0; background: #23819b; opacity: .82; }
.cta-inner { position: relative; z-index: 1; }
.cta-inner { display: flex; flex-direction: column; align-items: center; padding: 100px 24px 80px; }
.cta-inner img { width: 79px; height: 71px; }
.cta-inner > h2 { max-width: 532px; margin: 50px 0 48px; color: var(--white); }
.reviews + .cta, .blog-list + .cta, .related + .cta { margin-top: 0; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { margin-top: 218px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; max-width: calc(var(--content) + var(--pad) * 2 + var(--gutter) * 2); margin: 0 auto; padding: 0 calc(var(--pad) + var(--gutter)); }
.footer-address p { max-width: 390px; font-size: 13px; line-height: 20px; font-weight: 700; color: var(--navy); }
.social { display: flex; gap: 24px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--soft); color: var(--navy); font-size: 16px; transition: background .3s, color .3s, transform .3s var(--ease); }
.social a:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }
.footer-call { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-phone { font-size: 26px; line-height: 32px; font-weight: 600; color: var(--teal); letter-spacing: -.5px; }
.footer-hours { padding-left: 55px; font-size: 14px; line-height: 20px; color: var(--navy); }
.footer-hours h3 { font-size: 14px; line-height: 20px; color: var(--navy); }
.footer-hours p + p { margin-top: 12px; }
.footer-bottom { max-width: calc(var(--content) + var(--gutter) * 2); margin: 100px auto 0; padding: 36px var(--gutter) 100px; border-top: 1px solid #e6eaf0; text-align: center; font-size: 12px; line-height: 18px; color: var(--navy); }
.footer-bottom a { color: var(--teal); }

/* ---------------------------------------------------------------------
   Floating WhatsApp button
   --------------------------------------------------------------------- */
.wa-float {
  position: fixed; z-index: 60; right: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 20px 0 16px;
  border-radius: 50px; background: var(--wa); color: var(--white); font-size: 16px; font-weight: 500;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06), 0 2px 32px rgba(0, 0, 0, .16);
  transition: transform .3s var(--ease), box-shadow .3s;
}
/* DigiBot launcher sits bottom-right (52-112px up): lift the WhatsApp button above it */
body:has(#ai-bot-widget-container) .wa-float { bottom: 128px; }
.wa-float:hover { color: var(--white); transform: translateY(-3px); box-shadow: 0 1px 6px rgba(0, 0, 0, .06), 0 8px 32px rgba(0, 0, 0, .22); }
.wa-float .icon, .btn-whatsapp .icon { fill: currentColor; stroke: none; font-size: 18px; }

/* ---------------------------------------------------------------------
   Popups (appointment and message forms) and lightbox
   --------------------------------------------------------------------- */
dialog { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(14, 38, 52, .6); backdrop-filter: blur(4px); }
.popup { width: min(940px, calc(100% - 32px)); margin: auto; overflow: visible; }
.popup[open] { animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
.popup-box { position: relative; display: grid; grid-template-columns: 300px 1fr; grid-template-rows: minmax(0, 1fr); height: auto; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: 24px; overflow: hidden; background: var(--white); box-shadow: 0 40px 80px -30px rgba(10, 40, 60, .55); }

/* Teal side panel */
.popup-aside { position: relative; display: flex; flex-direction: column; padding: 34px 28px; color: var(--white); background: linear-gradient(160deg, var(--aqua) -30%, var(--teal) 45%, #2d8a8f 100%); overflow-y: auto; scrollbar-width: none; }
.popup-aside::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .08); pointer-events: none; }
.popup-logo { width: 132px; height: auto; padding: 8px 10px; border-radius: 12px; background: var(--white); margin-bottom: 28px; }
.popup-aside-title { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.5px; }
.popup-aside-text { margin-top: 10px; font-size: 14px; line-height: 21px; opacity: .92; }
.popup-contact { list-style: none; margin: auto 0 0; padding: 26px 0 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.popup-contact li { display: flex; gap: 12px; font-size: 13.5px; line-height: 19px; }
.popup-contact .icon { flex: 0 0 34px; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .16); }
.popup-contact .icon.is-fill { fill: currentColor; stroke: none; padding: 9px; }
.popup-contact small { display: block; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; opacity: .75; margin-bottom: 1px; }
.popup-contact a { color: var(--white); font-weight: 600; }
.popup-contact a:hover { text-decoration: underline; }

/* Form side */
.popup-main { position: static; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cfdbe6 transparent; padding: 28px 32px 24px; }
.popup-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--soft); color: var(--navy); cursor: pointer; font-size: 18px; transition: background .3s, color .3s, transform .3s var(--ease); }
.popup-close:hover { background: var(--teal); color: var(--white); transform: rotate(90deg); }
.popup-eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); }
.popup-title { font-size: 27px; line-height: 33px; letter-spacing: -1px; color: var(--ink); margin: 4px 48px 18px 0; }
.popup-form { display: flex; flex-wrap: wrap; gap: 12px 14px; }

.field { flex: 1 1 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.field.is-half { flex: 1 1 calc(50% - 8px); }
.field > label, .field > legend { display: flex; align-items: baseline; gap: 6px; padding: 0; margin-bottom: 6px; font-size: 13.5px; line-height: 18px; font-weight: 600; color: var(--navy); }
.field > legend { width: 100%; float: left; }
.field > legend + * { clear: both; }
.field .req { color: #e0565b; }
.field .opt { margin-left: auto; font-size: 11.5px; font-weight: 500; color: #8a97ad; }
.control { position: relative; }
.control-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 17px; color: #9aa8bb; pointer-events: none; transition: color .2s; }
.input {
  width: 100%; height: 44px; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 12px;
  background: #f7f9fc; color: var(--ink); font: 15px/22px var(--font);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.has-icon .input { padding-left: 42px; }
.input::placeholder { color: #a5b1c2; }
.input:hover { border-color: #cdd7e3; }
.input:focus { outline: none; background: var(--white); border-color: var(--teal); box-shadow: 0 0 0 4px rgba(65, 166, 166, .16); }
.control:focus-within .control-icon { color: var(--teal); }
textarea.input { height: auto; min-height: 80px; padding-bottom: 26px; resize: vertical; }
select.input { appearance: none; cursor: pointer; padding-right: 40px; background: #f7f9fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2341A6A6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 16px center no-repeat; }
select.input:focus { background-color: var(--white); }
input[type="date"].input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
.input.is-invalid { border-color: #e0565b; background: #fff7f7; box-shadow: 0 0 0 4px rgba(224, 86, 91, .12); }
.control:has(.is-invalid) .control-icon { color: #e0565b; }
.counter { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: #9aa8bb; pointer-events: none; }
.field-error { display: flex; gap: 6px; margin-top: 6px; font-size: 12.5px; line-height: 17px; color: #c8383e; font-weight: 600; }

/* Time-slot choices */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #f7f9fc; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.choice-box strong { font-size: 14px; line-height: 19px; color: var(--ink); }
.choice-box small { font-size: 12px; line-height: 16px; color: #7b889c; }
.choice:hover .choice-box { border-color: #cdd7e3; }
.choice input:checked + .choice-box { border-color: var(--teal); background: rgba(65, 166, 166, .08); box-shadow: inset 0 0 0 1px var(--teal); }
.choice input:checked + .choice-box strong { color: var(--teal-dark); }
.choice input:focus-visible + .choice-box { box-shadow: 0 0 0 4px rgba(65, 166, 166, .2); }

/* Footer, errors, submit */
.form-error { flex: 1 1 100%; padding: 12px 14px; border-radius: 12px; background: #fff1f1; border: 1px solid #f6caca; font-size: 13.5px; line-height: 19px; color: #b4282e; font-weight: 600; }
.form-foot { flex: 1 1 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 40px; background: linear-gradient(135deg, #4fb8b8, var(--teal) 50%, var(--teal-dark)); color: #fff;
  font-family: var(--font-btn); font-size: 16px; font-weight: 600; cursor: pointer;
  box-shadow: 0 14px 26px -14px rgba(52, 140, 140, .9); transition: transform .3s var(--ease), box-shadow .3s, filter .3s;
}
.btn-submit .icon { font-size: 18px; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(52, 140, 140, 1); filter: brightness(1.04); }
.btn-submit[disabled] { opacity: .8; cursor: progress; transform: none; }
.btn-submit.is-loading .icon { display: none; }
.btn-submit.is-loading::before { content: ""; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; line-height: 16px; color: #8a97ad; text-align: center; }
.form-note .icon { color: var(--teal); font-size: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Success state */
.form-success { text-align: center; padding: 40px 10px 20px; color: var(--navy); }
.form-success:focus { outline: none; }
.success-icon svg { width: 76px; height: 76px; margin: 0 auto 18px; fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-icon circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .7s var(--ease) forwards; fill: rgba(65, 166, 166, .1); }
.success-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 28px; line-height: 34px; color: var(--ink); margin-bottom: 8px; }
.form-success p { max-width: 400px; margin: 0 auto; }
.success-ref { margin-top: 16px !important; display: inline-block; padding: 8px 16px; border-radius: 30px; background: var(--soft); font-size: 14px; }
.success-ref strong { color: var(--teal-dark); letter-spacing: .3px; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.btn-ghost { background: var(--soft); color: var(--navy); }
.btn-ghost:hover { background: #e4ebf3; color: var(--navy); }

@media (max-width: 860px) {
  .popup-box { grid-template-columns: 1fr; }
  .popup-aside { display: none; }
}
@media (max-width: 767px) {
  .popup { width: 100%; margin: auto 0 0; }
  .popup[open] { animation-name: sheet; }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .popup-box { max-height: 92vh; border-radius: 24px 24px 0 0; }
  .popup-main { padding: 26px 20px 22px; }
  .popup-title { font-size: 25px; line-height: 31px; margin-bottom: 18px; }
  .field.is-half { flex-basis: 100%; }
  .choices { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .choice-box { padding: 10px; }
  .choice-box small { font-size: 11px; }
  .input { font-size: 16px; } /* prevents iOS zoom on focus */
}

.lightbox { width: 100vw; height: 100vh; background: rgba(8, 20, 28, .92); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; max-width: calc(100vw - 160px); max-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; object-fit: contain; border-radius: 4px; animation: pop .35s var(--ease); }
.lightbox figcaption { font-size: 14px; opacity: .85; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; cursor: pointer; transition: background .3s; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.is-prev { left: 20px; }
.lightbox-nav.is-next { right: 20px; }

.toasts { position: fixed; z-index: 120; left: 50%; bottom: 80px; transform: translateX(-50%); display: grid; gap: 8px; }
.toast { padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: pop .3s var(--ease); }

/* ---------------------------------------------------------------------
   Inner pages (blog, 404)
   --------------------------------------------------------------------- */
.page-hero { background: linear-gradient(160deg, #e4fcfc 0%, #bff2f3 55%, #9fe4e6 100%); min-height: 470px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 150px var(--pad) 80px; }
.page-hero-inner { max-width: 860px; }
.page-hero h1 { font-size: 60px; line-height: 70px; }
.page-hero-lead { margin: 18px auto 0; max-width: 620px; font-size: 18px; line-height: 28px; color: var(--ink); }
.post-hero h1 { font-size: 46px; line-height: 56px; letter-spacing: -1.5px; }
.crumbs { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.crumbs span { color: var(--navy); opacity: .5; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 20px; font-size: 15px; color: var(--navy); }
.post-meta span { display: inline-flex; align-items: center; gap: 8px; }
.post-meta .icon { color: var(--teal); }

.blog-list { padding: 90px 0 120px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px #e6eef3, 0 18px 40px -30px rgba(32, 66, 137, .45); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px #d8e8ee, 0 26px 44px -26px rgba(32, 66, 137, .5); }
.blog-card-media { display: block; aspect-ratio: 16 / 10.5; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.blog-card:hover .blog-card-media img { transform: scale(1.06); }
.blog-card-body { flex: 1; display: flex; flex-direction: column; padding: 26px 28px 30px; }
.blog-meta { font-size: 13px; font-weight: 600; color: var(--aqua); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .3px; color: var(--teal); }
.blog-card h3 { font-size: 22px; line-height: 28px; letter-spacing: -.5px; margin-bottom: 10px; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--teal); }
.blog-card p { color: #444; }
.read-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-family: var(--font-btn); font-weight: 600; font-size: 15px; }
.read-more .icon { transition: transform .3s var(--ease); }
.read-more:hover .icon { transform: translateX(4px); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-btn { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 22px; background: var(--soft); color: var(--navy); font-weight: 600; }
.page-btn:hover { background: var(--aqua); color: var(--ink); }
.page-btn.is-current { background: var(--teal); color: #fff; }
.empty-state { max-width: 520px; margin: 0 auto; padding: 50px 24px; text-align: center; border-radius: var(--radius); background: var(--soft); }
.empty-state .icon { font-size: 40px; color: var(--teal); margin-bottom: 12px; }
.empty-state h3 { font-size: 22px; margin-bottom: 6px; }

.post { padding: 70px 0 100px; }
.post-container { max-width: 860px; margin: 0 auto; padding: 0 var(--pad); }
.post-cover { margin: 0 0 44px; border-radius: var(--radius); overflow: hidden; }
.post-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.prose { font-size: 18px; line-height: 30px; color: #2b2f3a; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 30px; line-height: 38px; letter-spacing: -1px; color: var(--teal); margin-top: 38px; }
.prose h3 { font-size: 23px; line-height: 30px; margin-top: 30px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--teal); }
.prose blockquote { margin: 26px 0; padding: 18px 24px; border-left: 4px solid var(--teal); background: var(--soft); border-radius: 0 16px 16px 0; color: var(--navy); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 16px; margin: 26px auto; }
.prose strong { color: var(--ink); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.post-footer { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid #e6eaf0; }
.post-footer .btn-light { box-shadow: inset 0 0 0 1px #cfe9e9; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.post-nav-link { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 18px; background: var(--soft); transition: background .3s; }
.post-nav-link:hover { background: #e2f6f6; }
.post-nav-link span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--teal); }
.post-nav-link strong { color: var(--ink); font-size: 16px; line-height: 22px; }
.post-nav-link.is-next { text-align: right; align-items: flex-end; }
.related { background: var(--soft); padding: 74px 0 90px; margin-bottom: 120px; }
.related .section-title { margin-bottom: 40px; }

/* Scroll reveal: site.js marks below-the-fold elements as pending, then visible */
[data-reveal].is-pending { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-pending.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   Mobile drawer (slides in from the left, like the reference)
   --------------------------------------------------------------------- */
.no-scroll { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 30, 40, .5); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); padding: 70px 26px 30px; background: var(--white); overflow-y: auto; transform: translateX(-100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; gap: 24px; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-close { position: absolute; top: 18px; left: 22px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--soft); color: var(--navy); font-size: 18px; cursor: pointer; }
.drawer-links { list-style: none; margin: 0; padding: 0; }
.drawer-link { display: block; padding: 14px 0; border-bottom: 1px solid #edf1f5; font-size: 17px; font-weight: 600; color: var(--navy); }
.drawer-link.is-active, .drawer-link:hover { color: var(--teal); }
.drawer-contact { display: grid; gap: 12px; font-size: 15px; }
.drawer-contact a { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.drawer-contact .icon { color: var(--teal); }
@media (max-width: 767px) { .site-header.is-scrolled { box-shadow: 0 6px 24px rgba(32, 66, 137, .14); } }

/* ---------------------------------------------------------------------
   Large screens
   --------------------------------------------------------------------- */
@media (min-width: 1700px) {
  .hero-media { right: calc((100% - var(--content)) / 2 - 11px); }
}

/* ---------------------------------------------------------------------
   Laptop / small desktop
   --------------------------------------------------------------------- */
@media (max-width: 1279px) {
  .nav-link { padding: 0 22px; }
  .nav-link::after { left: 22px; right: 22px; }
  .hero h1, .hero .h1 { font-size: 56px; line-height: 66px; }
  .about-grid { gap: 60px; grid-template-columns: 380px 1fr; }
  .call-number { display: none; }
  .call-label { display: inline; }
}

/* ---------------------------------------------------------------------
   Tablet
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --pad: 28px; }
  .brand img { width: 150px; }
  .nav-link { padding: 0 14px; font-size: 14px; }
  .nav-link::after { left: 14px; right: 14px; }
  .main-nav { display: none; }
  .header-actions { flex: 1; justify-content: flex-end; }
  .menu-btn { order: -1; margin-right: auto; display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 38px; height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; }
  .menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--teal); }
  .hero-slide.layout-side { min-height: 720px; }
  .hero h1, .hero .h1 { font-size: 46px; line-height: 54px; letter-spacing: -2px; }
  .hero-text { max-width: 52%; }
  .hero-buttons { gap: 14px; }
  .about-grid { grid-template-columns: 1fr 1.3fr; gap: 40px; }
  .about-swiper img { height: 400px; }
  .about-copy p { font-size: 18px; }
  .section-title h2, .why-head h2 { font-size: 42px; line-height: 48px; }
  .services-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { margin-top: 70px; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-map, .visit-map iframe { min-height: 420px; }
  .reviews-widget { flex-direction: column; align-items: stretch; }
  .reviews-summary { flex-basis: auto; justify-content: center; }
  .cta { margin: 0 var(--gutter); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-hours { padding-left: 0; }
  .footer-call { align-items: flex-start; }
}

/* ---------------------------------------------------------------------
   Phone
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root { --gutter: 12px; --pad: 20px; --radius: 20px; }
  .site-header {
    position: fixed; top: 0; left: 0; transform: none; width: 100%; max-width: none;
    padding: 18px 20px; background: transparent;
    gap: 10px; transition: background-color .3s, box-shadow .3s, padding .3s;
  }
  .site-header.is-scrolled { background: var(--white); padding-top: 12px; padding-bottom: 12px; }
  .brand img { width: 130px; }
  .main-nav { display: none; }
  .header-actions { flex: 1; gap: 12px; justify-content: flex-end; }
  .header-call { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); box-shadow: 0 4px 16px rgba(32, 66, 137, .14); order: 1; }
  .header-call .call-number, .header-call .call-label { display: none; }
  .header-chat, .header-chat img { width: 42px; height: 42px; order: 2; }
  .header-chat { order: 2; }
  .menu-btn { order: -1; margin-right: auto; display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 34px; height: 42px; padding: 0 4px; border: 0; background: none; cursor: pointer; }
  .menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--teal); }
  .box { margin: var(--gutter) var(--gutter) 0; }
  .hero, .page-hero { margin: 0; border-radius: 0; }
  .hero { min-height: 0; }
  .hero-slide { flex-direction: column; min-height: 0; padding: 116px var(--pad) 0; text-align: center; }
  .hero.is-slider .hero-slide { padding-left: var(--pad); padding-right: var(--pad); }
  .hero-text { width: 100%; max-width: 300px; margin: 0 auto; }
  .hero h1, .hero .h1 { font-size: 39px; line-height: 46px; letter-spacing: -1.5px; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 22px; }
  .hero-media, .hero.is-slider .hero-media { position: relative; right: auto; width: 100%; margin: 36px auto 0; }
  .hero-pagination.swiper-pagination { bottom: 12px !important; }
  .marquee-list li > span, .marquee-link { font-size: 17px; padding-top: 16px; padding-bottom: 16px; }
  .about { padding: 60px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-swiper img { height: auto; aspect-ratio: 423 / 456; }
  .about-quote { width: 72px; height: 72px; margin-bottom: 24px; }
  .about-copy p { font-size: 14px; line-height: 16px; }
  .services { padding: 50px 0; }
  .section-title h2, .why-head h2 { font-size: 30px; line-height: 36px; letter-spacing: -1px; }
  .section-title .eyebrow { margin-bottom: 14px; }
  .services-grid, .blog-grid, .why-grid { grid-template-columns: 1fr; }
  .service-body { padding: 24px 20px; }
  .service-body h3 { font-size: 18px; line-height: 22px; letter-spacing: -.5px; margin-bottom: 14px; }
  .service-body p, .section-title .lead { font-size: 14px; line-height: 20px; }
  .why { margin-top: 24px; padding: 50px 0 56px; background-attachment: scroll; }
  .why-head { text-align: center; max-width: none; }
  .why-grid { margin-top: 40px; gap: 32px; text-align: center; }
  .why-item img { margin: 0 auto 12px; }
  .why-item p { margin: 0 auto; }
  .visit { padding-top: 60px; }
  .visit-card { padding: 44px 22px; }
  .visit-card h2, .h3, .cta h2 { font-size: 28px; line-height: 34px; }
  .visit-address { font-size: 17px; line-height: 24px; }
  .visit-map, .visit-map iframe { min-height: 320px; }
  .achievements { margin-top: 60px; padding: 50px 0 60px; }
  .reviews { padding: 60px 0 70px; }
  .reviews-widget { margin-top: 36px; }
  .reviews-nav { display: none; }
  .cta { margin: 0 var(--gutter); min-height: 0; }
  .cta-inner { padding: 60px 20px 70px; }
  .cta-inner > h2 { margin: 24px 0 26px; }
  .site-footer { margin-top: 80px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .footer-address p { margin: 0 auto; }
  .social { justify-content: center; }
  .footer-call { align-items: center; }
  .footer-bottom { margin-top: 36px; padding-bottom: 80px; }
  .wa-float { right: 12px; bottom: 12px; }
  .page-hero { min-height: 0; padding: 130px var(--pad) 60px; }
  .page-hero h1 { font-size: 38px; line-height: 46px; letter-spacing: -1.5px; }
  .post-hero h1 { font-size: 30px; line-height: 38px; letter-spacing: -1px; }
  .blog-list { padding: 50px 0 60px; }
  .post { padding: 40px 0 60px; }
  .prose { font-size: 16px; line-height: 27px; }
  .prose h2 { font-size: 24px; line-height: 31px; }
  .post-nav { grid-template-columns: 1fr; }
  .related { margin-bottom: 60px; padding: 50px 0 60px; }
  .lightbox figure { max-width: calc(100vw - 24px); }
  .lightbox-nav { top: auto; bottom: 20px; }
}

@media (max-width: 359px) {
  .brand img { width: 112px; }
  .header-actions { gap: 8px; }
  .hero h1, .hero .h1 { font-size: 34px; line-height: 41px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.related .blog-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 420px)); justify-content: center; }

/* Popups on short screens (laptops, landscape phones): tighter spacing, side panel trimmed */
@media (max-height: 780px) and (min-width: 768px) {
  .popup-main { padding: 22px 30px 20px; }
  .popup-title { font-size: 24px; line-height: 30px; margin-bottom: 14px; }
  .popup-form { gap: 10px 14px; }
  .field > label, .field > legend { margin-bottom: 4px; }
  .input { height: 42px; }
  textarea.input { min-height: 66px; }
  .choice-box { padding: 8px 12px; }
  .form-foot { gap: 8px; }
  .btn-submit { min-height: 48px; }
  .popup-aside { padding: 26px 24px; }
  .popup-logo { margin-bottom: 18px; }
  .popup-contact { gap: 12px; padding-top: 18px; }
  .popup-contact li:nth-child(n+3) { display: none; } /* keep phone + WhatsApp only */
}

/* =====================================================================
   Hero layouts
   - layout-side : cut-out picture beside the text (the reference design)
   - layout-bg   : full-width photo behind the text, with a left→right gradient
   - is-image-only : text switched off — just the picture, natural aspect ratio
   The picture is always the background layer (z-index 0), the gradient above
   it (1) and the text on top (2).
   ===================================================================== */
.hero-slide.is-image-only { min-height: 0; padding: 0; max-width: none; display: block; }
.hero-photo { display: block; width: 100%; height: auto; max-height: 880px; object-fit: contain; }
.hero-slide.layout-bg { min-height: clamp(520px, 50vw, 760px); max-width: none; padding-left: max(var(--pad), calc((100% - var(--content)) / 2)); padding-right: max(var(--pad), calc((100% - var(--content)) / 2)); }
.hero-slide.layout-bg::before {
  content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 50%; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 38, 44, .88) 0%, rgba(6, 38, 44, .62) 45%, rgba(6, 38, 44, 0) 100%);
}
.layout-bg .hero-bg { object-position: center; }
.layout-bg .hero-text { max-width: 560px; }
.layout-bg h1, .layout-bg .h1 { color: var(--white); font-size: 56px; line-height: 64px; letter-spacing: -2.5px; }
.layout-bg .accent, .layout-bg .hero-eyebrow { color: var(--aqua); }
.layout-bg .hero-desc { color: rgba(255, 255, 255, .92); }
.layout-bg .btn-light { background: rgba(255, 255, 255, .95); }

/* Transparent header over a dark photo: white logo and call link */
.logo-light { display: none; }
body.hero-dark .site-header:not(.is-scrolled) .logo-dark { display: none; }
body.hero-dark .site-header:not(.is-scrolled) .logo-light { display: block; }

/* =====================================================================
   Floating buttons
   - Back to top: bottom-left.  WhatsApp: bottom-right, ABOVE the DigiBot launcher.
   ===================================================================== */
.to-top {
  position: fixed; z-index: 60; left: 20px; bottom: 20px; width: 46px; height: 46px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(135deg, #4fb8b8, var(--teal) 50%, var(--teal-dark)); color: var(--white);
  font-size: 20px; cursor: pointer; box-shadow: 0 12px 24px -12px rgba(52, 140, 140, .9);
  opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), box-shadow .3s, visibility 0s linear .3s;
}
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -12px rgba(52, 140, 140, 1); }
.to-top .icon { stroke-width: 2.4; }

/* =====================================================================
   Mobile tightening (phones only — the desktop design is unchanged)
   ===================================================================== */
@media (max-width: 767px) {
  :root { --gutter: 10px; --pad: 16px; --radius: 18px; }
  html, body { max-width: 100%; overflow-x: hidden; }

  /* Header */
  .site-header { padding: 12px 16px; gap: 8px; }
  .site-header.is-scrolled { padding-top: 8px; padding-bottom: 8px; }
  .brand img { width: 112px; }
  .header-actions { gap: 8px; }
  .header-call, .header-chat, .header-chat img { width: 38px; height: 38px; }
  .menu-btn { width: 30px; height: 38px; gap: 5px; }
  body.hero-dark .site-header:not(.is-scrolled) .menu-btn span { background: var(--white); }

  /* Hero: controlled height, never the full viewport */
  .hero-slide.layout-side { min-height: 0; padding: 80px var(--pad) 0; }
  .layout-side .hero-text { max-width: 280px; }
  .hero h1, .hero .h1 { font-size: 31px; line-height: 37px; letter-spacing: -1.2px; }
  .hero-eyebrow { margin-bottom: 10px; font-size: 13px; }
  .hero-buttons { gap: 10px; margin-top: 18px; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .layout-bg .hero-buttons { justify-content: flex-start; }
  .layout-side .hero-media, .layout-side.hero-slide .hero-media { width: 74%; margin-top: 10px; }
  .hero-buttons .btn { padding: 13px 18px; }
  .hero-slide.layout-bg { min-height: 440px; padding: 84px var(--pad) 36px; align-items: flex-end; text-align: left; }
  .hero-slide.layout-bg::before { width: 100%; background: linear-gradient(90deg, rgba(6, 38, 44, .9) 0%, rgba(6, 38, 44, .6) 65%, rgba(6, 38, 44, .25) 100%); }
  .layout-bg .hero-text { max-width: 100%; margin: 0; }
  .layout-bg h1, .layout-bg .h1 { font-size: 29px; line-height: 35px; letter-spacing: -1px; }
  .hero-desc { font-size: 15px; line-height: 22px; margin-top: 10px; }
  .hero-photo { max-height: 420px; }
  .btn { min-height: 44px; padding: 14px 24px; font-size: 14px; }
  .btn-sm { min-height: 42px; padding: 12px 22px; }

  /* Sections: smaller vertical rhythm */
  .marquee-list li > span, .marquee-link { font-size: 15px; padding-top: 12px; padding-bottom: 12px; }
  .about { padding: 40px 0; }
  .about-grid { gap: 28px; }
  .about-quote { width: 56px; height: 56px; margin-bottom: 16px; }
  .about-sign { margin-top: 32px; }
  .services { padding: 36px 0; }
  .section-title h2, .why-head h2 { font-size: 26px; line-height: 31px; margin-bottom: 12px; }
  .section-title .eyebrow { margin-bottom: 10px; }
  .services-grid { gap: 14px; margin-top: 24px; }
  .service-body { padding: 18px 16px 16px; }
  .service-body h3 { font-size: 17px; line-height: 21px; margin-bottom: 8px; }
  .service-actions { padding-top: 14px; }
  .why { margin-top: 16px; padding: 36px 0 32px; }
  .why-grid { margin-top: 26px; gap: 22px; }
  .visit { padding-top: 36px; }
  .visit-card { padding: 30px 18px; }
  .visit-card img { width: 80px; height: 80px; margin-bottom: 12px; }
  .visit-card h2, .h3, .cta h2 { font-size: 23px; line-height: 29px; letter-spacing: -.6px; }
  .visit-address { font-size: 15px; line-height: 21px; margin-top: 12px; }
  .visit-map, .visit-map iframe { min-height: 260px; }
  .achievements { margin-top: 36px; padding: 34px 0 40px; }
  .achievements-swiper { margin-top: 24px; padding-bottom: 32px; }
  .reviews { padding: 40px 0 44px; }
  .reviews-widget { margin-top: 24px; gap: 18px; }
  .cta-inner { padding: 36px 16px 40px; }
  .cta-inner img { width: 60px; height: auto; }
  .cta-inner > h2 { margin: 14px 0 18px; }
  .site-footer { margin-top: 44px; }
  .footer-grid { gap: 22px; }
  .footer-phone { font-size: 22px; }
  .footer-bottom { margin-top: 26px; padding: 22px var(--gutter) 84px; }

  /* Inner pages */
  .page-hero { padding: 104px var(--pad) 40px; }
  .page-hero h1 { font-size: 32px; line-height: 38px; letter-spacing: -1.2px; }
  .page-hero-lead { font-size: 15px; line-height: 22px; margin-top: 12px; }
  .post-hero h1 { font-size: 26px; line-height: 32px; }
  .blog-list { padding: 32px 0 40px; }
  .blog-grid { gap: 16px; }
  .blog-card-body { padding: 18px 18px 20px; }
  .blog-card h3 { font-size: 19px; line-height: 24px; }
  .post { padding: 26px 0 40px; }
  .post-cover { margin-bottom: 24px; }
  .prose { font-size: 15.5px; line-height: 25px; }
  .related { margin-bottom: 36px; padding: 34px 0 40px; }

  /* Popups */
  .popup-main { padding: 20px 16px 18px; }
  .popup-title { font-size: 22px; line-height: 28px; margin-bottom: 14px; }
  .popup-form { gap: 10px; }

  /* Floating buttons: smaller and stacked on the right edge; back-to-top on the left */
  .to-top { left: 12px; bottom: 14px; width: 42px; height: 42px; font-size: 18px; }
  .wa-float { right: 16px; bottom: 16px; width: 44px; height: 44px; padding: 0; justify-content: center; gap: 0; }
  .wa-float span { display: none; }
  .wa-float .icon { font-size: 24px; }
  /* DigiBot launcher is shrunk below (zoom .72): its top edge is then ~81px up, so sit just above it */
  body:has(#ai-bot-widget-container) .wa-float { bottom: 92px; right: 17px; }
  /* Shrink only while the chat is closed, so the opened chat keeps its normal readable size */
  #ai-bot-widget-container:not(.chat-open) { zoom: .72; }
}
@media (max-width: 359px) {
  .layout-side .hero-text { max-width: 250px; }
  .hero h1, .hero .h1 { font-size: 28px; line-height: 34px; }
  .layout-bg h1, .layout-bg .h1 { font-size: 26px; line-height: 32px; }
}

/* Tablets: the background-photo hero keeps a controlled height too */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-slide.layout-bg { min-height: 520px; }
  .layout-bg h1, .layout-bg .h1 { font-size: 42px; line-height: 50px; }
}

/* The DigiBot widget sits on the highest layer, so hide it while the side menu is open */
body.menu-open #ai-bot-widget-container { display: none !important; }

/* =====================================================================
   Redesigned navigation (phones and tablets): a floating rounded bar with
   the logo on the left and call / chat / menu buttons on the right, and a
   side menu that slides in from the right. Desktop keeps the original bar.
   ===================================================================== */
@media (max-width: 1024px) {
  .header-actions { order: 2; margin-left: auto; gap: 10px; align-items: center; }
  .menu-btn {
    order: 3; margin: 0; width: 44px; height: 44px; padding: 0; border-radius: 50%; gap: 4px; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #4fb8b8, var(--teal) 50%, var(--teal-dark)); box-shadow: 0 10px 20px -12px rgba(52, 140, 140, .95);
    transition: transform .3s var(--ease), box-shadow .3s;
  }
  .menu-btn:hover { transform: scale(1.05); }
  .menu-btn span { width: 18px; height: 2px; background: var(--white) !important; }
  .menu-btn span:nth-child(2) { width: 12px; align-self: center; margin-left: 3px; }
  .header-call { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e4f5f5; color: var(--teal-dark); box-shadow: none; }
  .header-call .call-number, .header-call .call-label { display: none; }
  .header-call:hover { background: #d3eeee; }
  .header-chat, .header-chat img { width: 44px; height: 44px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .site-header {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%); width: calc(100% - 48px); max-width: none; padding: 9px 10px 9px 20px; border-radius: 22px;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 14px 34px -16px rgba(32, 66, 137, .4);
  }
  .brand img { width: 128px; }
  body.hero-dark .site-header .logo-dark { display: block !important; }
  body.hero-dark .site-header .logo-light { display: none !important; }
}
@media (max-width: 767px) {
  .site-header, .site-header.is-scrolled {
    top: 10px; left: 10px; right: 10px; width: auto; transform: none; padding: 7px 7px 7px 14px; gap: 8px; border-radius: 20px;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px -14px rgba(32, 66, 137, .45); align-items: center;
  }
  .site-header.is-scrolled { background: rgba(255, 255, 255, .98); box-shadow: 0 14px 34px -14px rgba(32, 66, 137, .55); }
  .brand img { width: 104px; }
  .header-actions { gap: 8px; }
  .header-call, .header-chat, .header-chat img, .menu-btn { width: 40px; height: 40px; }
  .menu-btn { gap: 3.5px; }
  .menu-btn span { width: 16px; }
  .menu-btn span:nth-child(2) { width: 11px; }
  /* The bar is white on every page, so the coloured logo is always the right one */
  body.hero-dark .site-header .logo-dark { display: block !important; }
  body.hero-dark .site-header .logo-light { display: none !important; }
  body.hero-dark .site-header:not(.is-scrolled) .menu-btn span { background: var(--white) !important; }
}

/* Side menu */
.drawer-panel { left: auto; right: 0; width: min(340px, 88vw); padding: 18px 20px 24px; gap: 18px; border-radius: 26px 0 0 26px; transform: translateX(100%); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-head .brand img { width: 112px; }
.drawer-head .logo-light { display: none !important; }
.drawer-head .logo-dark { display: block !important; }
.drawer-close { position: static; width: 42px; height: 42px; flex-shrink: 0; background: var(--soft); transition: background .3s, color .3s, transform .3s var(--ease); }
.drawer-close:hover { background: var(--teal); color: var(--white); transform: rotate(90deg); }
.drawer-links { display: grid; gap: 4px; }
.drawer-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 14px; font-size: 16px; font-weight: 600; color: var(--navy); transition: background .2s, color .2s; }
.drawer-link-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: #e9f6f6; color: var(--teal-dark); font-size: 18px; transition: background .2s, color .2s; }
.drawer-link-icon.is-wa { background: rgba(37, 211, 102, .14); color: #1faa52; }
.drawer-link-icon.is-wa .icon { fill: currentColor; stroke: none; }
.drawer-link-text { flex: 1; }
.drawer-link-arrow { color: #b7c6c8; font-size: 16px; }
.drawer-link:hover { background: #f1f8f8; color: var(--navy); }
.drawer-link.is-active { background: linear-gradient(135deg, #4fb8b8, var(--teal) 55%, var(--teal-dark)); color: var(--white); }
.drawer-link.is-active .drawer-link-icon { background: rgba(255, 255, 255, .22); color: var(--white); }
.drawer-link.is-active .drawer-link-arrow { color: rgba(255, 255, 255, .8); }
.drawer-panel .btn-block { margin-top: 4px; }
.drawer-contact { gap: 4px; padding-top: 14px; border-top: 1px solid #e8eff2; }
.drawer-contact a { gap: 12px; padding: 6px 4px; border-radius: 12px; font-size: 14px; line-height: 18px; font-weight: 600; word-break: break-word; }
.drawer-contact a small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; color: #8aa0a2; }
.drawer-contact a > span:not(.drawer-link-icon) { min-width: 0; }
.drawer-panel .social { margin-top: auto; padding-top: 6px; gap: 12px; }
.drawer-panel .social a { width: 42px; height: 42px; }

/* Desktop: the bar stays put while scrolling (like the reference): unchanged at the top, then a compact white bar */
@media (min-width: 1025px) {
  .site-header { position: fixed; transition: top .3s var(--ease), padding .3s var(--ease), border-radius .3s var(--ease), background-color .3s, box-shadow .3s; }
  .site-header.is-scrolled {
    top: 12px; padding: 9px 22px 9px 26px; border-radius: 26px; max-width: 1380px;
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 34px -16px rgba(32, 66, 137, .4);
  }
  .site-header.is-scrolled .brand img { width: 132px; }
  .site-header.is-scrolled .main-nav ul { background: var(--soft); min-height: 46px; }
  .site-header.is-scrolled .nav-link { line-height: 46px; }
  .site-header.is-scrolled .nav-link::after { bottom: 12px; }
  .site-header.is-scrolled .header-chat, .site-header.is-scrolled .header-chat img { width: 46px; height: 46px; }
}
