/* ==========================================================================
   Mangatt Ayurveda & Physiotherapy – public website
   Palette, type and shapes follow the supplied HTML design reference.
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #FCFDF6;
  --ink: #1c1c1a;
  --sage: #E1ECCB;
  --sage2: #cfe0b0;
  --green: #4f7a35;
  --btn: #2a3524;
  --card: #FFFFFF;
  --muted: #1c1c1a99;
  --line: #1c1c1a1f;
  --tint: #f4f7e8;
  --r-card: 28px;
  --r-sm: 24px;
  --shadow: 0 18px 40px #2a352414;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head: "Inter Tight", Inter, system-ui, sans-serif;
  --display: Fraunces, Georgia, serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --brand: #5f675e;  /* logo colour, a touch deeper than the artwork for small-size contrast */
  --on-btn: #ffffff;      /* text on primary (dark) buttons */
  --glass: #ffffffb3;     /* translucent white chips on tinted panels */
  --hd-bg: #fcfdf6d9;     /* header after scrolling */
  --err: #b3261e;
  --glow: #e1ecca;
}
/* Dark theme: same structure, colours re-stepped for a dark surface. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11140f;
  --ink: #e9eddf;
  --sage: #222b1d;
  --sage2: #2e3b26;
  --green: #a3cf7f;
  --btn: #cfe0b0;
  --card: #181d15;
  --muted: #e9eddfa8;
  --line: #e9eddf24;
  --tint: #1d2419;
  --brand: #c9d1c4;
  --on-btn: #12160f;
  --glass: #ffffff14;
  --hd-bg: #11140fd9;
  --err: #ff8a80;
  --glow: #24301d;
  --shadow: 0 18px 40px #00000059;
}
:root[data-theme="dark"] .pre-mark img { filter: brightness(2.1) saturate(.6); }
:root[data-theme="dark"] .map iframe { filter: brightness(.85) contrast(1.05); }
body { transition: background-color .4s ease, color .4s ease; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
dialog { margin: auto; }  /* keep native centring of modal dialogs after the reset */
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--sage2); }
:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4, .h3 {
  font-family: var(--head); font-weight: 500; line-height: 1.05; letter-spacing: -.04em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3, .h3 { font-size: 1.45rem; letter-spacing: -.03em; }
h4 { font-size: 1.12rem; letter-spacing: -.02em; }
p { color: var(--muted); }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; max-width: 640px; }
.mt { margin-top: 2.4rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--btn); color: var(--on-btn); padding: .6rem 1rem; border-radius: 99px; }
.skip:focus { left: 12px; }
main:focus { outline: none; }
/* Side-sliding sections must never widen the page (clip keeps sticky/fixed children working). */
main { overflow-x: hidden; overflow-x: clip; }

.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 18px; height: 18px; }
.i-xs { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }

section { padding: 96px 5vw; max-width: var(--wrap); margin: 0 auto; }

/* --------------------------------------------------------------------------
   Buttons, pills, tags
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; gap: .55rem; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 99px; border: 1px solid var(--btn);
  background: var(--btn); color: var(--on-btn); font: 500 .95rem/1.2 var(--body);
  text-decoration: none; transition: transform .25s var(--ease), background .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #2a352426; }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.o { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.o:hover { background: var(--sage); box-shadow: none; }
.btn.dk { padding: .35rem 1.5rem .35rem .35rem; }
.btn.wide { width: 100%; }
.ic {
  width: 42px; height: 42px; border-radius: 50%; background: var(--sage); color: var(--ink);
  display: grid; place-items: center; transition: transform .4s var(--ease); flex: none;
}
.btn:hover .ic { transform: rotate(45deg); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btns.left { justify-content: flex-start; margin-top: 1.6rem; }
.link {
  display: inline-flex; gap: .35rem; align-items: center; background: none; border: 0; padding: 0;
  color: var(--green); font-weight: 500; text-decoration: none; font-size: .95rem;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .9rem; border: 1px solid var(--line);
  border-radius: 99px; font-size: .85rem; background: var(--card); color: var(--ink); text-decoration: none;
}
.pill.lg { padding: .6rem 1.1rem; font-size: .95rem; transition: background .25s; }
a.pill:hover { background: var(--sage); }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.center .pills { justify-content: center; }
.tag {
  display: inline-flex; gap: .5rem; align-items: center; padding: .5rem 1rem;
  border: 1px solid var(--line); border-radius: 14px; background: var(--tint);
  font-size: .88rem; font-weight: 500; margin-bottom: 1.4rem; color: var(--ink);
}
.ico {
  width: 52px; height: 52px; border-radius: 16px; background: var(--sage); color: var(--btn);
  display: grid; place-items: center; margin-bottom: 1rem; transition: transform .4s var(--ease); flex: none;
}

.pts { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .55rem; }
.pts li { display: flex; gap: .65rem; align-items: baseline; font-size: .97rem; }
.pts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Preloader (breathing orb) – runs once per visit
   -------------------------------------------------------------------------- */
.pre { display: none; }
.intro-play .pre {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; text-align: center;
  background: radial-gradient(ellipse at 50% 38%, var(--glow), var(--bg) 62%);
  transition: opacity .7s var(--ease), visibility .7s;
  animation: pre-safety .01s 5s forwards;  /* never blocks the page, even if a script fails */
}
.intro-play:not(.ready) { overflow: hidden; }
.pre-mark { display: grid; justify-items: center; gap: .45rem; transition: transform .8s var(--ease), opacity .5s, filter .6s; }
.pre-mark > * { opacity: 0; transform: translateY(10px); animation: pre-in .9s var(--ease) forwards; }
/* lotus inside a circular loading ring that fills once */
.pre-ring { position: relative; width: 116px; height: 116px; display: grid; place-items: center; animation-delay: .05s; }
.pre-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.pre-ring circle { fill: none; stroke-width: 2.2; }
.pre-track { stroke: var(--line); }
.pre-fill { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: pre-ring 1.25s cubic-bezier(.65, 0, .35, 1) .3s forwards; }
.pre-ring img { width: 52px; height: 52px; opacity: 0; transform: scale(.8); animation: pre-in .9s var(--ease) .15s forwards; }
.pre-note { margin-top: 1.4rem; font-size: .95rem; color: var(--muted); animation-delay: .45s; }
@keyframes pre-in { to { opacity: 1; transform: none; } }
@keyframes pre-ring { to { stroke-dashoffset: 0; } }
@keyframes pre-safety { to { opacity: 0; visibility: hidden; } }
.pre.hide { opacity: 0; visibility: hidden; }
.pre.hide .pre-mark { transform: translateY(-16px) scale(.97); opacity: 0; filter: blur(4px); }

/* Click leaves (created by site.js): a leaf shape with a light centre vein */
.leaf {
  position: fixed; z-index: 400; pointer-events: none; will-change: transform, opacity;
  border-radius: 0 100% 0 100%;
  background-image: linear-gradient(45deg, transparent 46%, #ffffff66 49%, #ffffff66 51%, transparent 54%);
  box-shadow: 0 2px 6px #2a352422;
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--btn);
  transform: scaleX(0); transform-origin: 0 0; z-index: 120; pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
/* Header: just the logo (it opens the side menu) and a few actions – no bar or box behind them. */
.hd {
  position: fixed; z-index: 100; left: 0; right: 0; top: calc(14px + env(safe-area-inset-top, 0px));
  width: min(1320px, calc(100% - 28px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: transform .6s var(--ease);
}
.hd.hid { transform: translateY(calc(-100% - 24px)); }
/* Logo artwork (transparent). Light and dark versions swap with the theme. */
.logo-art { display: inline-block; line-height: 0; }
.logo-art img { display: block; height: auto; }
.logo-art-h img { width: 198px; }
.logo-art-stack img { width: 180px; }
.logo-on-dark { display: none !important; }
:root[data-theme="dark"] .logo-on-light { display: none !important; }
:root[data-theme="dark"] .logo-on-dark { display: block !important; }
.logo { display: inline-grid; gap: .35rem; text-decoration: none; color: var(--muted); }
.logo-sub { font: 600 .62rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding-left: 2px; }

.hd-actions { display: flex; align-items: center; gap: .6rem; }
.nav-cta { font-size: .88rem; }
.nav-cta .ic { width: 36px; height: 36px; }
.ham {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center; color: var(--ink); transition: background .25s;
}
.ham:hover { background: var(--sage); }


/* --------------------------------------------------------------------------
   Hero with arch
   -------------------------------------------------------------------------- */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 150px; padding-bottom: 40px; }
.hero::before {
  content: ""; position: absolute; top: -10%; left: 50%; width: 100vw; transform: translateX(-50%); height: 70%; z-index: -1;
  background: radial-gradient(ellipse at 50% 0, var(--glow), transparent 70%);
}
.hero h1 { max-width: 1000px; }
.hero h1 em { font-style: normal; color: var(--muted); }
.hero > p { margin: 1.6rem auto 2rem; max-width: 580px; font-size: 1.08rem; }
.w { display: inline-block; }
.tag.w { display: inline-flex; }
/* Hero entrance: each line rises out of a soft blur, one after another. */
.js .w { opacity: 0; transform: translateY(22px); filter: blur(8px); }
.js.ready .w { animation: up .95s var(--ease) forwards; }
.js.ready h1 .w:nth-of-type(1) { animation-delay: .08s; }
.js.ready h1 .w:nth-of-type(2) { animation-delay: .16s; }
.js.ready h1 .w:nth-of-type(3) { animation-delay: .26s; }
.js.ready .hero > p.w { animation-delay: .38s; }
.js.ready .hero > .btns.w { animation-delay: .48s; }
@keyframes up { to { opacity: 1; transform: none; filter: none; } }
/* the three green dots pop in, then start floating */
.js .hero .o1 { opacity: 0; }
.js.ready .hero .o1 { animation: dot-in .6s var(--ease) forwards, float 3.5s ease-in-out 1.2s infinite; animation-delay: .2s, 1.2s; }
.js.ready .hero .o1:nth-of-type(2) { animation-delay: .26s, 1.6s; }
.js.ready .hero .o1:nth-of-type(3) { animation-delay: .32s, 2s; }
@keyframes dot-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
/* the photo arch rises in last */
.js .hero .arch-wrap { opacity: 0; transform: translateY(48px); }
.js.ready .hero .arch-wrap { animation: rise 1.3s var(--ease) .32s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.o1 {
  display: inline-block; width: .4em; height: .4em; border-radius: 50%; margin: 0 .06em; vertical-align: .08em;
  background: radial-gradient(circle at 35% 30%, #d9ecb0, #8fb85c); animation: float 3.5s ease-in-out infinite;
}
.o1:nth-of-type(2) { animation-delay: .4s; } .o1:nth-of-type(3) { animation-delay: .8s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.arch-wrap { position: relative; width: 100%; display: flex; justify-content: center; margin-top: 64px; }
.arch {
  width: min(520px, 88vw); height: min(660px, 110vw); border-radius: 999px 999px 28px 28px; overflow: hidden;
  background: var(--sage); will-change: width, height, border-radius;
}
.arch-ph, .arch-ph img, .ph-fill, .ph-fill img { width: 100%; height: 100%; object-fit: cover; }
.js .arch img { scale: 1.16; will-change: scale; transform-origin: 50% 40%; }
.js .hero > .tag, .js .hero > h1, .js .hero > p, .js .hero > .btns, .js .hero > .rating-pill { will-change: translate; }
.arch-mini {
  position: absolute; left: calc(50% - min(520px, 88vw) / 2 - 70px); bottom: 70px; width: 150px; height: 200px;
  border-radius: 99px 99px 20px 20px; overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow);
  transition: opacity .4s;
}
.arch-badge {
  position: absolute; right: calc(50% - min(520px, 88vw) / 2 - 60px); top: 120px; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; padding: .9rem 1.2rem; text-align: left; box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite; transition: opacity .4s;
}
.arch-badge b { display: block; font-family: var(--head); font-weight: 500; letter-spacing: -.02em; }
.arch-badge small { color: var(--muted); }
.arch-wrap.wide .arch-mini, .arch-wrap.wide .arch-badge { opacity: 0; }

/* --------------------------------------------------------------------------
   Generic blocks
   -------------------------------------------------------------------------- */
.center { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.center h2 { margin-bottom: 1rem; }
.center .lead { margin: 0 auto; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover .ico { transform: rotate(-8deg) scale(1.06); }
.card h3 { margin-bottom: .5rem; }
.grid3, .grid2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.grid2 { grid-template-columns: repeat(2, 1fr); }
.svc { display: flex; flex-direction: column; }
.svc > .btn { margin-top: auto; align-self: flex-start; }

.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 2.4rem; text-align: left; }
.mini > div, .why-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 22px;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.mini > div:hover, .why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mini b, .why-item b { display: block; font-family: var(--head); font-weight: 500; font-size: 1.1rem; letter-spacing: -.02em; }
.mini small, .why-item small { color: var(--muted); font-size: .9rem; }
.mini-col { grid-template-columns: 1fr; }
.mini-col > div { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
.mini-col .ico { grid-row: span 2; margin: 0; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.bento-tile {
  background: var(--sage); border-radius: 26px; padding: 26px; min-height: 180px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; transition: transform .3s var(--ease), background .3s;
}
.bento-tile:hover { transform: scale(1.02); background: var(--sage2); }
.bento-tile .ico { background: var(--card); color: var(--ink); }
.bento-tile b { font: 400 1.25rem/1.15 var(--display); letter-spacing: -.02em; margin-bottom: .35rem; }
.bento-tile small { color: var(--muted); }
.bento-tile.dark { background: var(--btn); color: var(--on-btn); }
.bento-tile.dark small { color: var(--on-btn); opacity: .72; }
.bento-tile.dark .ic { margin-top: auto; align-self: flex-end; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.why-item { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
.why-item .ico { grid-row: span 2; margin: 0; }

.band { background: var(--sage); border-radius: 40px; max-width: none; margin: 0 3vw; padding: 80px 5vw; }
.band-in { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.band-in > div:first-child { max-width: 640px; }
.band-in h2 { margin-bottom: .8rem; }
.band .pill { background: var(--glass); }
.band .tag { background: var(--glass); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.split-h { margin-bottom: .8rem; }
.cbt { align-items: center; }
.pts-2 { grid-template-columns: 1fr 1fr; column-gap: 1.4rem; }
@media (max-width: 520px) { .pts-2 { grid-template-columns: 1fr; } }
.corp { background: var(--btn); color: var(--on-btn); border: 0; }
.corp p, .corp .pts li { color: var(--on-btn); opacity: .85; }
.corp .pts li::before { background: var(--sage2); }
.corp h2 { margin-bottom: .8rem; }
.corp .btn.o { background: transparent; color: var(--on-btn); border-color: currentColor; }
.corp .btn.o:hover { background: #ffffff1a; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.6rem 0; }
.tier { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 22px; overflow: hidden; }
.tier b { display: block; font: 400 1.35rem var(--display); letter-spacing: -.02em; margin-top: .6rem; }
.tier small { color: var(--muted); font-size: .82rem; }
.tier-dot { display: block; width: 34px; height: 34px; border-radius: 50%; }
.tier-silver .tier-dot { background: radial-gradient(circle at 35% 30%, #fafafa, #b9bcb4); }
.tier-gold .tier-dot { background: radial-gradient(circle at 35% 30%, #fbf0c4, #c9a33f); }
.tier-platinum .tier-dot { background: radial-gradient(circle at 35% 30%, #ffffff, #9fb3ad); }
.tiers-lg { gap: 20px; }
.tiers-lg .tier { padding: 36px; display: flex; flex-direction: column; gap: .8rem; }
.tiers-lg .tier .btn { margin-top: auto; align-self: flex-start; }
.soon { display: flex; gap: .5rem; align-items: center; padding: .7rem 1rem; border-radius: 14px; background: var(--tint); font-size: .9rem; }

/* --------------------------------------------------------------------------
   Doctor flip cards – click/tap/keyboard only, never hover
   -------------------------------------------------------------------------- */
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); justify-content: center; gap: 28px; margin-top: 48px; }
.flip { perspective: 1600px; height: 600px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.flip-in { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.flip.is-flipped .flip-in { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--r-card); border: 1px solid var(--line); background: var(--card); padding: 16px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px #2a352412;
  transition: box-shadow .35s var(--ease);
}
.flip:hover .flip-face { box-shadow: 0 22px 50px #2a35241f; }
.flip-front .flip-ph { flex: 1; min-height: 0; border-radius: 20px; overflow: hidden; }
.flip-front .flip-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.flip:hover .flip-front .flip-ph img { transform: scale(1.03); }
.flip-meta { padding: 1.1rem .5rem .4rem; }
.flip-meta h3 { font-size: 1.55rem; }
.flip-q { color: var(--green); font-weight: 500; font-size: .92rem; margin-top: .35rem; }
.flip-t { font-size: .9rem; margin-top: .2rem; }
.flip-btn {
  display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start; margin: .6rem .5rem .3rem;
  padding: .55rem 1rem; border-radius: 99px; border: 1px solid var(--line); background: var(--tint);
  font-size: .85rem; font-weight: 500; transition: background .25s;
}
.flip-btn:hover { background: var(--sage); }
.flip-btn .i { transition: transform .5s var(--ease); }
.flip:hover .flip-front .flip-btn .i { transform: rotate(180deg); }
.flip-back { transform: rotateY(180deg); background: var(--sage); padding: 32px; overflow-y: auto; overscroll-behavior: contain; }
.flip-back h3 { font-size: 1.6rem; }
.flip-back h4 { margin: 1.2rem 0 .5rem; font-size: 1rem; }
.flip-intro { margin-top: .9rem; color: var(--ink); }
.flip-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.flip-tags .pill { background: var(--glass); }
.flip-back .pts { margin: 0 0 1rem; gap: .4rem; }
.flip-back .pts li { font-size: .92rem; }
.flip-back .flip-btn { margin: auto 0 0; background: var(--card); }

/* --------------------------------------------------------------------------
   Stay, gallery, lightbox
   -------------------------------------------------------------------------- */
.stay-home, .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
/* Photos on inner pages: a clean rounded frame */
.ph-frame { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--sage); box-shadow: 0 0 0 1px var(--line), var(--shadow); }

/* Service pages: "What's included" card beside the overview */
.glance { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); align-self: center; }
.glance-h { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.glance-h h2 { margin: 0; font-size: 1.45rem; }
.glance-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.glance-list a { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .8rem; padding: .95rem .2rem;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; transition: color .2s, padding .25s var(--ease); }
.glance-list a:hover { color: var(--green); padding-left: .5rem; }
.glance-list small { color: var(--muted); font-weight: 400; font-size: .82rem; white-space: nowrap; }
.glance-list .i { color: var(--muted); }
.glance-notes { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .5rem; font-size: .9rem; color: var(--muted); }
.glance-notes li { display: flex; align-items: center; gap: .5rem; }
.glance-notes .i { color: var(--green); flex: none; }
.tgroup { scroll-margin-top: 90px; }
.stay-home h2, .two-col h2 { margin-bottom: 1rem; }

.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.gal-item {
  position: relative; border: 0; padding: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--sage);
  aspect-ratio: 3 / 4; cursor: zoom-in;
}
.gal-item img { transition: transform .9s var(--ease); }
.gal-item:hover img { transform: scale(1.05); }
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
.lb::backdrop { background: #1c1c1ae6; }
.lb[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 4vh 3vw; }
.lb figure { height: 100%; display: grid; place-items: center; min-width: 0; }
.lb-slide { display: grid; gap: .8rem; justify-items: center; max-height: 100%; }
.lb-slide[hidden] { display: none; }
.lb-ph img { max-height: 82dvh; width: auto; border-radius: 20px; }
.lb figcaption { color: #fff; font-size: .95rem; }
.lb .ham { display: grid; }
.lb-x { position: fixed; top: 20px; right: 20px; }

/* --------------------------------------------------------------------------
   Accordions & steps
   -------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 24px; }
.step-n { display: inline-block; font: 400 2rem var(--display); color: var(--green); margin-bottom: .8rem; }
.steps h3 { font-size: 1.2rem; margin-bottom: .4rem; }

/* --------------------------------------------------------------------------
   Contact & map
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact h2 { margin-bottom: .6rem; }
.num { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.map { border-radius: var(--r-card); overflow: hidden; min-height: 420px; background: var(--sage); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.mailopts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.4rem 0 .8rem; }
.mailopt { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px; transition: transform .3s var(--ease), box-shadow .3s; }
.mailopt:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mailopt b { font-family: var(--head); font-weight: 500; font-size: 1.1rem; }
.mailopt small { color: var(--muted); word-break: break-word; }
.hint { font-size: .82rem; color: var(--muted); }
/* "Email us" chooser (computers) */
.dlg-sm { width: min(460px, calc(100vw - 24px)); }
.mailpick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.2rem; }
.mailpick-o { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; transition: transform .25s var(--ease), box-shadow .25s; }
.mailpick-o:hover, .mailpick-o:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.mailpick-o b { font-family: var(--head); font-weight: 500; font-size: 1.05rem; }
.mailpick-o small { color: var(--muted); font-size: .8rem; margin-top: -.3rem; }
.mailpick-o.is-last { border-color: var(--green); }
.mp-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.mp-ic .i { width: 20px; height: 20px; }
.mp-gm { background: #fce8e6; color: #c5221f; }
.mp-ol { background: #e3effb; color: #0f62b4; }
.mp-ya { background: #efe7fb; color: #5f01d1; }
.mp-ap { background: var(--sage); color: var(--green); }
:root[data-theme="dark"] .mp-gm { background: #3a1f1d; color: #f6aea9; }
:root[data-theme="dark"] .mp-ol { background: #17293d; color: #9cc8f5; }
:root[data-theme="dark"] .mp-ya { background: #2a2140; color: #c9b2f2; }

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */
.pintro { padding-top: 150px; padding-bottom: 32px; }
.pintro h1 { max-width: 900px; margin-bottom: 1.2rem; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 32px; }
.svc-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-height: 300px; }
.svc-card h2 { margin-bottom: .6rem; }
.svc-card small { margin-top: .8rem; font-size: .86rem; }
.svc-card .more { margin-top: auto; padding-top: 1.2rem; display: inline-flex; gap: .4rem; align-items: center; font-weight: 500; color: var(--green); }
.svc-major { background: var(--sage); border-color: transparent; }
.svc-major .ico { background: var(--card); }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.spec > div { background: var(--card); padding: 22px; }
.spec b { display: block; font-family: var(--head); font-weight: 500; letter-spacing: -.02em; font-size: 1.05rem; margin-bottom: .2rem; }
.spec small { color: var(--muted); }

.tgroup { padding-top: 40px; padding-bottom: 40px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.tcard { padding: 24px; display: flex; flex-direction: column; }
.tcard h3 { font-size: 1.25rem; }
.tdet { margin-top: auto; padding-top: .8rem; }
.tdet summary {
  list-style: none; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; font-weight: 500;
  font-size: .9rem; color: var(--green);
}
.tdet summary::-webkit-details-marker { display: none; }
.tdet[open] summary .i { transform: rotate(45deg); }
.tdet .pts { margin: .8rem 0; }
.note { display: flex; gap: .45rem; align-items: baseline; font-size: .86rem; background: var(--tint); border-radius: 12px; padding: .6rem .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }

.durs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dur-card { background: var(--sage); border-radius: var(--r-sm); padding: 24px; display: grid; }
.dur-card b { font: 400 3rem/1 var(--display); letter-spacing: -.03em; }
.dur-card span { font-weight: 500; margin-bottom: .4rem; }
.dur-card small { color: var(--muted); }
.pk-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 28px; }
.pk-sec { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.pk-head { display: flex; gap: 1.4rem; align-items: flex-start; }
.pk-head h2 { margin-bottom: .6rem; }
.pk-group { font-size: 1.2rem; margin: 2.2rem 0 1rem; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pk-card { padding: 22px; display: flex; flex-direction: column; }
.pk-card h4 { margin-bottom: .35rem; }
.pk-card p { font-size: .93rem; }
.pk-card p { margin-bottom: 1rem; }
.pk-foot { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-top: 1px solid var(--line); }
.price { font-size: .82rem; color: var(--muted); }
.tech { margin-top: 2.4rem; background: var(--tint); border-radius: var(--r-sm); padding: 24px; }
.tech h3 { font-size: 1.15rem; }

.bento4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento4 .card:nth-child(1) { grid-column: span 2; background: var(--sage); border-color: transparent; }
.bento4 .card:nth-child(1) .ico { background: var(--card); }
.bento4 .card:nth-child(4) { grid-column: span 2; }
.dist { list-style: none; padding: 0; margin: 1rem 0; }
.dist li { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.legal { max-width: 860px; padding-top: 24px; }
.legal-sec { padding: 1.6rem 0; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
/* Clean, centred footer */
.ft { margin-top: 96px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg) 0%, var(--tint) 100%); }
.ft-in { max-width: 920px; margin: 0 auto; padding: 64px 5vw 36px; display: grid; justify-items: center; text-align: center; }
.ft-logo { display: inline-block; }
.ft-logo .logo-art-stack img { width: 168px; }
.ft-tag { margin-top: 1rem; font-size: .92rem; letter-spacing: .01em; }
.ft-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.8rem; margin-top: 2.2rem; }
.ft-links a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .2rem 0; position: relative; }
.ft-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease); }
.ft-links a:hover::after { transform: scaleX(1); }
.ft-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.8rem; }
.ft-c {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 99px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: .85rem;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.ft-c:hover { background: var(--sage); transform: translateY(-2px); }
.ft-c .i { color: var(--green); }
.ft-bottom {
  width: 100%; margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: .6rem 1.4rem; flex-wrap: wrap; font-size: .8rem;
}
.ft-bottom nav { display: flex; gap: .7rem; align-items: center; color: var(--muted); }
.ft-bottom nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.ft-bottom nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ft-note { margin-top: .8rem; font-size: .76rem; }
@media (max-width: 560px) { .ft-bottom { justify-content: center; } .ft-links { gap: .3rem 1.2rem; } }

/* --------------------------------------------------------------------------
   Floating WhatsApp & enquiry dialog
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: inline-flex; align-items: center; gap: .5rem; background: #25D366; color: #0b3d1e; border: 0;
  padding: .8rem 1.2rem; border-radius: 99px; font-weight: 600; box-shadow: 0 10px 30px #25d36659;
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); }

.dlg { border: 0; padding: 0; border-radius: var(--r-card); width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px #1c1c1a40; }
.dlg::backdrop { background: #1c1c1a66; backdrop-filter: blur(4px); }
.dlg[open] { animation: dlg-in .45s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.dlg-in { padding: 32px; position: relative; }
.dlg-x { position: absolute; top: 16px; right: 16px; display: grid; width: 42px; height: 42px; }
.dlg h2 { font-size: 2rem; margin-bottom: .5rem; padding-right: 48px; }
.dlg form { display: grid; gap: 14px; margin-top: 1.4rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; font-size: .92rem; }
input, select, textarea {
  width: 100%; padding: .85rem 1.05rem; border-radius: 16px; border: 1px solid var(--line); background: var(--card);
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 92px; }
/* Dropdowns look and size the same as text boxes in every browser (Safari draws its own otherwise). */
select {
  -webkit-appearance: none; appearance: none; padding-right: 2.6rem; cursor: pointer; line-height: 1.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231c1c1a99' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 8px;
}
:root[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23e9eddfa8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px #4f7a3526; }
[aria-invalid="true"] { border-color: var(--err); }
.phone { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.phone:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #4f7a3526; }
.phone span { display: grid; place-items: center; padding: 0 .9rem; background: var(--tint); font-weight: 500; border-right: 1px solid var(--line); }
.phone input { border: 0; border-radius: 0; box-shadow: none !important; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--green); flex: none; }
.err { color: var(--err); font-size: .84rem; min-height: 0; }
.err:empty { display: none; }
.dlg button[type="submit"][disabled] { opacity: .6; pointer-events: none; }
.sent { text-align: center; display: grid; justify-items: center; gap: 1rem; padding: 1.6rem 0 .4rem; }
.sent:focus { outline: none; }
.sent h2 { padding: 0; }
.sent p { margin: 0; max-width: 34ch; }
/* Success tick: the circle draws itself, then the check, then a gentle pop. */
.tick { width: 84px; height: 84px; overflow: visible; }
.tick-c { fill: none; stroke: #2f9e5d; stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; transform-origin: center; }
.tick-p { fill: none; stroke: #2f9e5d; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 34; }
.sent:not([hidden]) .tick-c { animation: tick-draw .6s cubic-bezier(.65, 0, .35, 1) forwards; }
.sent:not([hidden]) .tick-p { animation: tick-draw .4s .5s cubic-bezier(.65, 0, .35, 1) forwards; }
.sent:not([hidden]) .tick { animation: tick-pop .45s .85s ease-out; }
.sent:not([hidden]) h2, .sent:not([hidden]) p { animation: done-up .5s .35s cubic-bezier(.16, 1, .3, 1) both; }
.sent:not([hidden]) p { animation-delay: .45s; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
@keyframes tick-pop { 50% { transform: scale(1.08); } }
@keyframes done-up { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .tick-c, .tick-p { stroke-dashoffset: 0; }
  .sent:not([hidden]) .tick, .sent:not([hidden]) .tick-c, .sent:not([hidden]) .tick-p,
  .sent:not([hidden]) h2, .sent:not([hidden]) p { animation: none; }
}

/* --------------------------------------------------------------------------
   Reveal on scroll (only when JS is running)
   -------------------------------------------------------------------------- */
/* Sections slide in as they enter the viewport: up by default, from the
   left/right in two-column layouts, with grid items following one by one. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }
.js .rv { opacity: 0; transform: translate3d(0, 64px, 0) scale(.985); will-change: opacity, transform;
  transition: opacity .9s ease, transform 1.15s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.rv-l:not(.in) { transform: translate3d(-80px, 0, 0); }
.js .rv.rv-r:not(.in) { transform: translate3d(80px, 0, 0); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-child { opacity: 0; transform: translate3d(0, 36px, 0);
  transition: opacity .7s ease, transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.in .rv-child, .js .rv-child.in { opacity: 1; transform: none; }
/* Photos ease out of a gentle zoom as their section arrives. */
.js .rv .ph-fill img { transform: scale(1.14); transition: transform 1.8s var(--ease-out); }
.js .rv.in .ph-fill img { transform: none; }
/* After the entrance, restore the quick hover transitions. */
.js .rv.done, .js .rv.done .rv-child { will-change: auto; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, opacity .3s; transition-delay: 0ms; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .bento, .bento4 { grid-template-columns: repeat(2, 1fr); }
  .bento4 .card:nth-child(n) { grid-column: auto; }
  .steps, .durs { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .spec { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  section { padding: 64px 5vw; }
  .hero { padding-top: 120px; }
  .pintro { padding-top: 120px; }
  .grid3, .grid2, .mini, .split, .stay-home, .two-col, .tiers, .mailopts, .gal { grid-template-columns: 1fr; }
  .docs { grid-template-columns: minmax(0, 460px); }
  .flip { height: 560px; }
  .why, .svc-grid, .spec { grid-template-columns: 1fr; }
  .arch-mini, .arch-badge { display: none; }
  .band { border-radius: 28px; padding: 56px 6vw; margin: 0 3vw; }
  .ph-frame { width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 3; }
  .glance { padding: 24px; }
  .gal-item { aspect-ratio: 4 / 5; }
  .wa-float span { display: none; }
  .wa-float { padding: .9rem; }
  .wa-float .i { width: 26px; height: 26px; }
  .pk-head { flex-direction: column; gap: .4rem; }
  .lb[open] { grid-template-columns: 1fr; padding: 70px 12px 12px; }
  .lb-nav { position: fixed; bottom: 18px; }
  .lb-prev { left: 18px; } .lb-next { right: 18px; }
}
@media (max-width: 520px) {
  .logo-art-h img { width: 168px; }
  .bento, .bento4, .steps, .durs { grid-template-columns: 1fr; }
  .dlg-in { padding: 24px 20px; }
  .flip { height: 540px; }
  .flip-back { padding: 24px; }
  .btns .btn { width: 100%; }
  .btn { white-space: normal; text-align: left; }
}
/* Grid children may shrink below their content width (prevents horizontal overflow). */
.two-col > *, .stay-home > *, .split > *, .grid3 > *, .grid2 > * { min-width: 0; }

/* --------------------------------------------------------------------------
   Headline reveal: words rise out of a soft blur, one after another
   -------------------------------------------------------------------------- */
.split-words .wd { display: inline-block; opacity: 0; transform: translateY(.42em); filter: blur(8px);
  transition: opacity .8s ease, transform 1s cubic-bezier(.16, 1, .3, 1), filter .9s ease;
  transition-delay: calc(var(--d, 0ms) + 120ms + var(--i) * 60ms); }
.rv.in .split-words .wd, .split-words.rv.in .wd { opacity: 1; transform: none; filter: none; }

/* --------------------------------------------------------------------------
   "How it works" pinned story (wide screens)
   -------------------------------------------------------------------------- */
@media (min-width: 980px) {
  .pin { height: 230vh; padding-top: 0; padding-bottom: 0; }
  .pin-in { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .steps-story { position: relative; padding-top: 28px; }
  .steps-story::before, .steps-story::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; border-radius: 3px; }
  .steps-story::before { right: 0; background: var(--line); }
  .steps-story::after { width: calc(var(--p, 0) * 100%); background: var(--green); }
  .js .steps-story li { opacity: .5; transform: translateY(10px);
    transition: opacity .6s ease, transform .7s cubic-bezier(.16, 1, .3, 1), border-color .5s, box-shadow .6s; }
  .js .steps-story li.past { opacity: .8; transform: none; }
  .js .steps-story li.on { opacity: 1; transform: translateY(-8px); border-color: var(--green); box-shadow: var(--shadow); }
}

/* --------------------------------------------------------------------------
   Content on screen when a page opens appears at once (no reveal animation)
   -------------------------------------------------------------------------- */
.js .rv.rv-instant, .js .rv.rv-instant .rv-child, .js .rv-instant .ph-fill img {
  transition: none !important; }
/* The homepage hero plays its entrance only on the first visit of a session. */
.js.intro-done .w, .js.intro-done .hero .arch-wrap { opacity: 1; transform: none; filter: none; animation: none !important; }
.js.intro-done .hero .o1 { opacity: 1; animation: float 3.5s ease-in-out infinite; }

/* --------------------------------------------------------------------------
   Reduced motion: no breathing, flipping, parallax or reveal movement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv, .js .w, .js .hero .arch-wrap, .js .hero .o1 { opacity: 1; transform: none; filter: none; }
  .o1, .arch-badge { animation: none; }
  .js .arch img { scale: 1; }
}
@media (forced-colors: active) {
  .btn, .pill, .card, .flip-face { border: 1px solid CanvasText; }
}

/* ==========================================================================
   Compact enquiry form (two columns, roughly square)
   ========================================================================== */
.dlg-in { padding: 28px 30px 26px; }
.dlg-head { display: flex; gap: 14px; align-items: center; padding-right: 48px; }
.dlg-ic { width: 52px; height: 52px; border-radius: 16px; background: #25D366; color: #0b3d1e; display: grid; place-items: center; flex: none; }
.dlg-head h2 { font-size: 1.7rem; margin: 0; padding: 0; }
.dlg-head p { font-size: .9rem; margin-top: .2rem; }
.dlg form.qf { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 20px; }
.qf .field { gap: .3rem; min-width: 0; }
.qf label { font-size: .85rem; }
.qf input, .qf select, .qf textarea, .qf .phone { border-radius: 14px; }
.qf input, .qf select, .qf textarea { padding: .68rem .9rem; font-size: .95rem; }
.qf input, .qf select { height: 48px; }  /* every single-line field is the same height */
.qf .phone input { height: 46px; }  /* inside the bordered number box, which adds 2px */
.qf select { padding-right: 2.4rem; }
.qf textarea { min-height: 0; height: 48px; resize: none; line-height: 1.4; }
.qf .phone input { padding-left: .8rem; }
.qf .phone span { padding: 0 .75rem; font-size: .92rem; }
.qf .err { font-size: .78rem; }
.qf-full { grid-column: 1 / -1; }
.qf-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.qf-foot .hint { max-width: 290px; line-height: 1.45; }
.qf-foot .hint .i { margin-right: .2rem; }
.sent[hidden], #inquiry-form-wrap[hidden] { display: none !important; }
.req { color: var(--err); }
@media (max-width: 600px) {
  .dlg form.qf { grid-template-columns: 1fr; }
  .qf-foot { flex-direction: column; align-items: stretch; }
  .qf-foot .btn { width: 100%; }
  .qf textarea { height: 70px; }
  .dlg-in { padding: 22px 18px; }
}

/* ==========================================================================
   Contact & enquiry: WhatsApp and email cards
   ========================================================================== */
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 18px; margin-top: 44px; }
.channel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; aspect-ratio: 1 / 1; min-height: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.channel:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.channel h3 { margin-top: .6rem; }
.channel p { font-size: .93rem; }
.channel .ch-val { font-weight: 500; color: var(--ink); word-break: break-word; }
.channel .ch-sub { font-size: .85rem; font-weight: 400; color: var(--muted); }
.ch-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; }
.ch-ic .i { width: 28px; height: 28px; }
.ch-wa { background: #25D366; color: #0b3d1e; }
.ch-gm { background: #fce8e6; color: #c5221f; }
:root[data-theme="dark"] .ch-gm { background: #3a1f1d; color: #f6aea9; }
@media (max-width: 1080px) { .channels { grid-template-columns: 1fr 1fr; } .channel { aspect-ratio: auto; } }
@media (max-width: 680px) { .channels { grid-template-columns: 1fr; } }

/* ==========================================================================
   Header preferences: light/dark
   ========================================================================== */
.prefs { display: flex; align-items: center; gap: .4rem; }
.theme-btn { display: grid !important; width: 42px; height: 42px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

@media (max-width: 860px) {
  .js .rv.rv-l:not(.in) { transform: translate3d(-40px, 0, 0); }  /* smaller slide on phones; :not(.in) so it never sticks */
  .js .rv.rv-r:not(.in) { transform: translate3d(40px, 0, 0); }
}

@media (max-width: 600px) {
  .dlg-head p { display: none; }
  .dlg-head h2 { font-size: 1.45rem; }
  .dlg-ic { width: 44px; height: 44px; }
  .dlg form.qf { gap: 10px; margin-top: 14px; }
  .qf textarea { height: 56px; }
}

/* One booking button only (header). Shorter label on small screens. */
.cta-short { display: none; }
@media (max-width: 860px) {
  .nav-cta { padding: .3rem 1rem .3rem .3rem; font-size: .85rem; }
  .nav-cta .cta-long { display: none; }
  .nav-cta .cta-short { display: inline; }
  .nav-cta .ic { width: 32px; height: 32px; }
}

/* ==========================================================================
   Premium refinement layer
   Quieter shadows, more air, editorial type accents, framed photography.
   ========================================================================== */
:root {
  --shadow-sm: 0 1px 2px #1c1c1a08, 0 8px 24px #2a35240a;
  --shadow: 0 2px 6px #1c1c1a0a, 0 24px 56px #2a35241c;
}
:root[data-theme="dark"] {
  --shadow-sm: 0 1px 2px #00000059, 0 8px 24px #00000040;
  --shadow: 0 2px 6px #00000066, 0 24px 56px #00000073;
}
h1, h2, h3, .h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.lead { font-size: 1.14rem; line-height: 1.7; }
section { padding-top: 112px; padding-bottom: 112px; }
.pintro { padding-top: 160px; }

/* Eyebrow label above section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem; margin: 0 0 1.1rem;
  font: 600 .72rem/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .55; }
.center .eyebrow::after { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .55; }
.center .eyebrow { justify-content: center; }

/* Editorial accent words in headings */
.accent { font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: -.025em; color: var(--green); }
.hero h1 em.accent { color: var(--green); }

/* Surfaces: hairline borders + soft layered shadows */
.card, .channel, .why-item, .mini > div, .tier, .steps li, .mailopt, .dur-card, .spec, .flip-face, .stat {
  box-shadow: var(--shadow-sm);
}
.card:hover, .channel:hover, .why-item:hover, .mini > div:hover, .mailopt:hover { box-shadow: var(--shadow); }
.card, .channel, .tier, .why-item, .mini > div { border-color: var(--line); }

.arch { box-shadow: var(--shadow); }
.flip-front .flip-ph { box-shadow: inset 0 0 0 1px #00000010; }

/* Buttons: calmer weight, gentle depth on the primary */
.btn { letter-spacing: .005em; }
.btn.dk:not(.o) { box-shadow: 0 10px 26px #2a352430; }
:root[data-theme="dark"] .btn.dk:not(.o) { box-shadow: 0 10px 26px #00000066; }
.btn.o { box-shadow: var(--shadow-sm); }

/* Bands get a soft bloom instead of a flat fill */
.band { background: radial-gradient(120% 140% at 0% 0%, var(--sage2) 0%, var(--sage) 55%); }


/* Map card */
.findus-sec { padding-top: 40px; }
.mapcard {
  position: relative; margin-top: 40px; border-radius: 32px; overflow: hidden; min-height: 500px;
  border: 1px solid var(--line); background: var(--sage); box-shadow: var(--shadow);
}
.mapcard iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-info {
  position: absolute; right: 24px; top: 24px; width: min(360px, calc(100% - 48px)); padding: 26px;
  border-radius: 24px; background: var(--hd-bg); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.map-info h3 { font-size: 1.3rem; margin: .8rem 0 .4rem; }
.map-info address { font-style: normal; color: var(--muted); }
.map-marks { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.map-marks li { font-size: .8rem; padding: .3rem .7rem; border-radius: 99px; background: var(--tint); border: 1px solid var(--line); }
.ch-map { background: var(--sage); color: var(--green); }
:root[data-theme="dark"] .mapcard iframe { filter: brightness(.82) contrast(1.05) saturate(.9); }

@media (max-width: 860px) {
  section { padding-top: 72px; padding-bottom: 72px; }
  .pintro { padding-top: 128px; }
  .mapcard { min-height: 0; display: flex; flex-direction: column; }
  .mapcard iframe { position: static; height: 320px; }
  .map-info { position: static; width: auto; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--card); }
}

/* ==========================================================================
   Lotus navigation: only the lotus is shown; hovering it slides a glass
   nav bar out to the right (a glass dropdown on small screens).
   ========================================================================== */
.navwrap { position: relative; display: flex; align-items: center; }
.lotus-link {
  position: relative; z-index: 2; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  transition: transform .5s var(--ease), background .35s, box-shadow .35s;
}
.lotus-link img { width: 52px; height: 52px; filter: drop-shadow(0 2px 10px var(--bg)); transition: transform .6s var(--ease); }
.navwrap.open .lotus-link, .lotus-link:hover { background: var(--hd-bg); box-shadow: 0 6px 24px #1c1c1a14; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.navwrap.open .lotus-link img { transform: rotate(-8deg) scale(1.04); }
.glassnav {
  position: absolute; left: 70px; top: 50%; z-index: 1; display: flex; align-items: center; gap: 2px; padding: 6px;
  white-space: nowrap; border-radius: 99px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 12px 40px #1c1c1a1f;
  opacity: 0; visibility: hidden; transform: translate3d(-24px, -50%, 0);
  clip-path: inset(0 100% 0 0 round 99px);
  transition: clip-path .6s var(--ease-out), transform .6s var(--ease-out), opacity .35s ease, visibility 0s linear .6s;
}
.navwrap.open .glassnav {
  opacity: 1; visibility: visible; transform: translate3d(0, -50%, 0); clip-path: inset(0 0 0 0 round 99px);
  transition: clip-path .6s var(--ease-out), transform .6s var(--ease-out), opacity .3s ease, visibility 0s;
}
.glassnav a {
  padding: .55rem .95rem; border-radius: 99px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500;
  transition: background .25s, color .25s;
}
.glassnav a:hover { background: var(--sage); }
.glassnav a[aria-current="page"] { background: var(--btn); color: var(--on-btn); }
.glassnav .gn-doc { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: var(--muted); }
.hd.hid { transform: translateY(calc(-100% - 30px)); }
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .glassnav { background: var(--hd-bg); } }
@media (max-width: 1100px) {
  .glassnav {
    left: 0; top: calc(100% + 10px); flex-direction: column; align-items: stretch; min-width: 240px; padding: 10px; border-radius: 24px;
    transform: translate3d(0, -10px, 0); clip-path: inset(0 0 100% 0 round 24px);
  }
  .navwrap.open .glassnav { transform: none; clip-path: inset(0 0 0 0 round 24px); }
  .glassnav a { padding: .7rem 1rem; font-size: 1rem; border-radius: 14px; }
  .glassnav .gn-doc { width: auto; height: auto; display: flex; gap: .5rem; padding: .7rem 1rem; justify-content: flex-start; }
  .glassnav .gn-doc::after { content: "Doctors Dashboard"; font-size: .95rem; }
}
@media (max-width: 520px) {
  .lotus-link { width: 52px; height: 52px; }
  .lotus-link img { width: 44px; height: 44px; }
  .hd-actions { gap: .4rem; }
}

/* ==========================================================================
   FAQ: numbered cards that open smoothly (no bullet lists)
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 44px; align-items: start; }
.faq-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm);
  transition: background .4s, box-shadow .4s, transform .4s var(--ease), border-color .4s;
}
.faq-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.faq-card.is-open { background: var(--sage); border-color: transparent; }
.faq-h3 { font: inherit; letter-spacing: normal; margin: 0; }
.faq-q {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; text-align: left;
  padding: 22px 22px; background: none; border: 0; color: var(--ink); cursor: pointer;
}
.faq-n { font: italic 400 1.6rem/1 var(--display); color: var(--green); min-width: 2.2rem; }
.faq-t { font: 500 1.03rem/1.4 var(--body); }
.faq-ic {
  position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); border: 1px solid var(--line);
  transition: transform .45s var(--ease), background .3s;
}
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; }
.faq-ic::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .45s var(--ease); }
.faq-q[aria-expanded="true"] .faq-ic { background: var(--card); transform: rotate(180deg); }
.faq-q[aria-expanded="true"] .faq-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a.open { grid-template-rows: 1fr; }
.faq-a-in { padding: 0 22px 22px calc(22px + 2.2rem + 1rem); }
.faq-a-in p { color: var(--ink); opacity: .82; font-size: .96rem; }
.faq-a-in p + p { margin-top: .5rem; }
.faq-more { margin-top: 28px; font-size: .95rem; }
.faq-more .link { font-size: inherit; }
@media (max-width: 760px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-a-in { padding-left: 22px; }
}

/* Contact cards: icon, title and one button – compact and centred */
.channel { aspect-ratio: auto; align-items: center; text-align: center; padding: 34px 26px 28px; gap: .3rem; }
.channel h3 { margin: .9rem 0 .4rem; }
.channel .btn { margin-top: auto; }  /* both cards' buttons line up at the bottom */
.channel > :nth-last-child(2) { margin-bottom: 1.1rem; }

/* ==========================================================================
   Google reviews: hero rating pill + reviews section
   ========================================================================== */
.rating-pill {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding: .45rem .9rem .45rem .7rem;
  border-radius: 99px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); text-decoration: none;
  font-size: .86rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .25s, transform .25s var(--ease);
}
.rating-pill:hover { background: var(--card); transform: translateY(-2px); }
.rating-pill span { color: var(--muted); }
.rating-pill .rp-stars { display: inline-flex; gap: 1px; color: #e8a317; }
.js.ready .hero > .rating-pill.w { animation-delay: .58s; }

.reviews-sec { padding-top: 40px; }
.reviews-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 48px 52px;
  border-radius: 36px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: radial-gradient(120% 140% at 100% 0%, var(--sage) 0%, var(--card) 60%);
}
.reviews-card h2 { margin-bottom: .8rem; }
.reviews-card .lead { margin-bottom: 1.6rem; }
.rv-badge {
  justify-self: center; display: grid; justify-items: center; gap: .6rem; padding: 34px 40px; min-width: 260px;
  border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center;
}
.rv-num { font: 400 4.6rem/1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.rv-stars { display: inline-flex; gap: 4px; color: #e8a317; }
.rv-stars .i { width: 26px; height: 26px; }
.rv-count { font-size: .95rem; color: var(--muted); }
.rv-count b { color: var(--ink); }
.rv-src { display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem; padding: .3rem .75rem; border-radius: 99px; background: var(--tint); font-size: .76rem; color: var(--muted); }
@media (max-width: 860px) {
  .reviews-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; text-align: center; }
  .reviews-card .eyebrow { justify-content: center; }
  .rv-badge { min-width: 0; width: 100%; }
}

/* ==========================================================================
   Inner pages: tidy spacing and alignment
   ========================================================================== */
/* The first section sits closer to the page title instead of floating far below it. */
.pintro { padding-bottom: 8px; }
.pintro + section { padding-top: 56px; }
@media (min-width: 861px) {
  body:not(.is-home):not(.dash) main > section:not(.pintro):not(.pin) { padding-top: 88px; padding-bottom: 88px; }
  body:not(.is-home) main > .pintro + section { padding-top: 56px; }
}
/* Cards in a row share the same height, with their footers on one line. */
.tgrid, .pk-grid { align-items: stretch; }
.tcard p { margin-bottom: .2rem; }

/* Contact cards: both buttons share one size. */
.channel .btn { min-height: 52px; }
.channel .btn.o { padding-left: 1.5rem; padding-right: 1.5rem; }
/* Phones: duration cards two per row instead of four tall stacked cards. */
@media (max-width: 640px) {
  .durs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dur-card { padding: 18px; }
  .dur-card b { font-size: 2.4rem; }
}
