/*
Theme Name: Bhartiya Nivas
Theme URI: https://bhartiyanivas.com
Author: Bhartiya Nivas
Description: A custom theme for Bhartiya Nivas, a premium later-living residence. Includes a full home page, enquiry form and Customizer settings for images and contact details.
Version: 2.6.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bhartiyanivas
*/

:root {
  --ink: #124052;
  --ink-2: #184B5F;
  --stone: #F3EFE8;
  --white: #FFFFFF;
  --muted: #9DB2BA;
  --muted-dark: #4F6B77;
  --accent: #7EBEC5;
  --accent-hover: #A2D3D8;
  --line-dark: rgba(255, 255, 255, .28);
  --line-light: rgba(18, 64, 82, .35);
  --serif: "Zilla Slab", "Rockwell", Georgia, serif;
  --sans: "Montserrat", "Gotham", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1440px;
  --gutter: 40px;
  --space: 160px;
  --header-h: 96px;
  --fs: 1;
}
html[data-text-size="large"] { --fs: 1.125; }
html[data-text-size="larger"] { --fs: 1.25; }
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html.smooth-scroll { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: calc(17px * var(--fs));
  font-weight: 400;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}
body:not(.home) main { padding-top: var(--header-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px;
}
.band-light, .band-white { --focus: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0 0 24px; letter-spacing: 0; }
h1, h2 { font-size: 60px; line-height: 1.2; }
h3 { font-size: calc(25px * var(--fs)); line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.kicker {
  display: block; margin-bottom: 24px;
  font: 700 calc(12px * var(--fs))/1 var(--sans); text-transform: uppercase; letter-spacing: .02em; color: var(--muted);
}
.muted { color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; background: var(--white); padding: 10px 16px; z-index: 1000; }

/* Colour bands */
.band-dark { background: var(--ink); color: var(--white); }
.band-light, .band-white { --muted: var(--muted-dark); }
.band-light { background: var(--stone); color: var(--ink); }
.band-white { background: var(--white); color: var(--ink); }
.band-dark p { color: var(--muted); }
.band-light p, .band-white p { color: var(--muted); }

/* Buttons */
.btn {
  --fill: var(--accent); --fill-text: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 calc(12px * var(--fs))/16px var(--sans); text-transform: uppercase; text-decoration: none; letter-spacing: .02em;
  padding: 16px 24px; border: 0; border-radius: 0; cursor: pointer;
  transition: color .35s ease, border-color .35s ease;
}
/* Hover: colour wipes in from the left and an arrow slides in */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill);
  transform: scaleX(0); transform-origin: right center; transition: transform .5s cubic-bezier(.7,0,.2,1);
}
.btn::after {
  content: ""; width: 0; height: 10px; opacity: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: width .35s ease, margin .35s ease, opacity .35s ease;
}
.btn:hover, .btn:focus-visible { color: var(--fill-text); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover::after, .btn:focus-visible::after { width: 14px; margin-left: 10px; opacity: 1; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--accent { background: var(--accent); color: var(--ink); --fill: var(--white); }
.btn--outline { background: transparent; color: var(--ink); border: 2px solid var(--muted); padding: 14px 22px; --fill: var(--ink); --fill-text: var(--white); }
.btn--outline:hover, .btn--outline:focus-visible { border-color: var(--ink); }
.band-dark .btn--outline { color: var(--white); --fill: var(--white); --fill-text: var(--ink); }
.band-dark .btn--outline:hover, .band-dark .btn--outline:focus-visible { border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; color: var(--white);
  transition: background-color .3s, transform .5s cubic-bezier(.2,.7,.2,1);
}
.site-header.is-hidden { transform: translateY(-100%); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.site-header.is-scrolled .scroll-progress { opacity: 1; }
.scroll-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(var(--progress, 0)); }
.text-size {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; color: var(--white);
  font: 700 12px/1 var(--sans); cursor: pointer; transition: background-color .25s, border-color .25s, color .25s;
}
.text-size span span { font-size: 17px; margin-left: 1px; }
.text-size:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
html[data-text-size] .text-size { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--header-h) + 16px); transform: translate(-50%, -8px);
  padding: 12px 20px; background: var(--white); color: var(--ink); box-shadow: 0 12px 32px rgba(8,36,48,.18);
  font: 700 13px/1 var(--sans); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.site-header.is-scrolled, body:not(.home) .site-header, .menu-open .site-header { background: var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); max-width: none; padding: 0 30px; }
.brand { text-decoration: none; color: var(--white); display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-name { font: 400 24px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.brand-sub { font: 400 12px/1 var(--serif); letter-spacing: .18em; margin-top: 7px; opacity: .85; }
.custom-logo { max-height: 56px; width: auto; }
.brand-logo { display: block; height: 72px; width: auto; filter: brightness(0) invert(1); }
.footer-brand .brand-logo { height: 96px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.primary-nav a {
  text-decoration: none; color: var(--white);
  font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .02em;
  padding: 8px 0; border-bottom: 1px solid transparent;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { border-color: var(--accent); }
.primary-nav .sub-menu { display: none; }
.header-cta { display: flex; align-items: center; gap: 24px; }
.header-phone { text-decoration: none; color: var(--white); font: 700 12px/1 var(--sans); white-space: nowrap; }
.header-cta .btn { height: 48px; padding: 0 40px; font-size: 12px; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--white); }
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }

.brand-name, .primary-nav a, .header-cta .btn { white-space: nowrap; }
@media (max-width: 1340px) {
  .header-phone { display: none; }
  .primary-nav ul { gap: 22px; }
  .header-cta .btn { padding: 0 24px; }
}
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .header-cta .btn { display: none; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink);
    padding: 32px var(--gutter); transform: translateX(100%); transition: transform .3s;
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: none; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { display: block; font: 300 30px/1.2 var(--serif); text-transform: none; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Image frames and placeholders */
.frame { position: relative; overflow: hidden; background: #1C4A5C; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; align-items: flex-end; padding: 20px;
  background-color: #285668;
  background-image:
    linear-gradient(160deg, rgba(255,255,255,.06), rgba(0,0,0,.25)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%237EBEC5' stroke-opacity='.2' stroke-width='1'%3E%3Cpath d='M28 3 53 28 28 53 3 28Z'/%3E%3Ccircle cx='28' cy='28' r='9'/%3E%3C/g%3E%3C/svg%3E");
  color: rgba(255,255,255,.6); font-size: 13px;
}
.band-light .placeholder, .band-white .placeholder {
  background-color: #DCD6CB; color: rgba(18,64,82,.6);
  background-image:
    linear-gradient(160deg, rgba(255,255,255,.2), rgba(0,0,0,.08)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23124052' stroke-opacity='.1' stroke-width='1'%3E%3Cpath d='M28 3 53 28 28 53 3 28Z'/%3E%3Ccircle cx='28' cy='28' r='9'/%3E%3C/g%3E%3C/svg%3E");
}

/* Hero */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media .frame, .hero-media .placeholder { height: 100%; }
.hero-media .placeholder { background-color: #1C4A5C; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(8,36,48,.5), rgba(8,36,48,.42) 40%, rgba(8,36,48,.55)); pointer-events: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-video-toggle { position: absolute; z-index: 2; left: var(--gutter); bottom: 32px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(0,0,0,.25); color: var(--white); cursor: pointer; transition: background .2s ease; }
.hero-video-toggle[hidden] { display: none; }
.hero-video-toggle:hover, .hero-video-toggle:focus-visible { background: rgba(0,0,0,.55); }
.hero-video-toggle svg { width: 14px; height: 14px; }
.hero-video-toggle .icon-play, .hero-video-toggle.is-paused .icon-pause { display: none; }
.hero-video-toggle.is-paused .icon-play { display: block; }
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 0 var(--gutter); }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero p { font-size: calc(17px * var(--fs)); color: var(--white); max-width: 600px; margin: 0 auto; }
.hero .actions { justify-content: center; }

/* Intro: offset images on dark */
.intro { position: relative; padding: 120px 0; }
.intro-grid { display: grid; grid-template-columns: 40% 1fr 20%; align-items: center; }
.intro-main .frame { aspect-ratio: 4 / 5; }
.intro-copy { padding: 0 50px 0 90px; max-width: 600px; }
.intro-copy p { max-width: 360px; }
.intro-side { align-self: end; margin-bottom: -40px; }
.intro-side .frame { aspect-ratio: 3 / 4; }

/* At a glance */
.glance-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; }
.glance-intro p { max-width: 330px; }
.glance-list { list-style: none; margin: 0; padding: 0; }
.glance-list li { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.glance-title { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.glance-title h3 { margin: 0; }
.glance-list svg { width: 28px; height: 28px; flex: none; color: var(--ink); }
.glance-list p { margin: 0; }

/* Philosophy tabs */
.pillars-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 64px; }
.pillars-head h2 { margin: 0; }
.pillars-head p { margin: 0; }
.pillars-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-dark); margin-bottom: 56px; }
.pillars-tabs button {
  background: transparent; border: 0; padding: 16px; cursor: pointer;
  font: 700 12px/16px var(--sans); text-transform: uppercase; letter-spacing: .02em; color: var(--white);
  position: relative;
}
.pillars-tabs button + button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-dark); }
.pillars-tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); }
.pillars-tabs button[aria-selected="true"]::before, .pillars-tabs button[aria-selected="true"] + button::before { display: none; }
.pillar-panel { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
.pillar-panel[hidden] { display: none; }
.pillar-panel h3 { font-size: 42px; line-height: 1.2; }
.pillar-panel p { max-width: 330px; }
.pillar-panel .frame { aspect-ratio: 16 / 11; }

/* Life + quotes */
.life-grid { display: grid; grid-template-columns: 56% 1fr; align-items: center; }
.life-media .frame { aspect-ratio: 16 / 11; }
.life-copy { padding: 0 0 0 110px; max-width: 560px; }
.quotes { position: relative; margin-top: 120px; }
.quote-slide { display: grid; grid-template-columns: 1fr 260px; gap: 100px; align-items: center; max-width: 1120px; margin: 0 auto; padding-left: 28px; }
.quote-slide[hidden] { display: none; }
.quote-slide blockquote { margin: 0; }
.quote-slide blockquote p {
  font: 300 42px/1.2 var(--serif); color: var(--ink); margin: 0 0 32px; position: relative;
}
.quote-slide blockquote p::before { content: "\201C"; color: var(--accent); position: absolute; left: -28px; top: -6px; font-size: 48px; }
.quote-slide blockquote p::after { content: "\201D"; color: var(--accent); }
.quote-slide cite { font-style: normal; font-size: calc(14px * var(--fs)); color: var(--muted); }
.quote-slide .frame { aspect-ratio: 4 / 5; }
.quote-dots { display: flex; justify-content: center; gap: 14px; margin-top: 32px; }
.quote-dots button { width: 9px; height: 9px; padding: 0; border: 0; background: var(--muted); opacity: .45; transform: rotate(45deg); cursor: pointer; }
.quote-dots button[aria-selected="true"] { background: var(--ink); opacity: 1; }

/* Care carousel */
.care-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 0 40px; }
.care-intro { padding-top: 54px; padding-right: 40px; }
.care-intro h2 { margin-bottom: 40px; }
.care-intro p { max-width: 300px; }
.care-rail { position: relative; min-width: 0; }
.care-arrows { display: flex; justify-content: flex-end; gap: 14px; margin-bottom: 20px; }
.care-arrows button {
  width: 32px; height: 32px; border: 1px solid var(--muted); background: transparent; color: var(--muted);
  transform: rotate(45deg); cursor: pointer; display: grid; place-items: center; margin: 4px;
}
.care-arrows button span { transform: rotate(-45deg); font: 400 16px/1 var(--sans); }
.care-arrows button:not(:disabled):hover, .care-arrows .is-next { background: var(--muted-dark); border-color: var(--muted-dark); color: var(--white); }
.care-arrows button:disabled { opacity: .4; cursor: default; }
.care-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 2); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.care-track::-webkit-scrollbar { display: none; }
.care-card { scroll-snap-align: start; }
.care-card .frame { aspect-ratio: 16 / 10; margin-bottom: 24px; }
.care-card h3 { margin-bottom: 14px; }

/* Category of one */
.category-grid { display: grid; grid-template-columns: 56% 1fr; align-items: center; }
.category-media .frame { aspect-ratio: 16 / 11; }
.category-copy { padding: 0 0 0 110px; max-width: 560px; }

/* Questions */
.questions-top { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; margin-bottom: 140px; }
.questions-top p { max-width: 330px; }
.collage { position: relative; height: 560px; }
.collage .c1 { position: absolute; right: 0; top: 0; width: 72%; height: 470px; }
.collage .c2 { position: absolute; left: 0; top: 120px; width: 28%; height: 360px; z-index: 1; }
.collage .frame { height: 100%; }
.q-feature { display: grid; grid-template-columns: 1.7fr 1fr; gap: 110px; align-items: center; margin-bottom: 80px; }
.q-feature .frame { aspect-ratio: 16 / 11; }
.q-feature h3 { font-size: 42px; }
.q-feature p { max-width: 330px; }
.q-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.q-card a.q-title { text-decoration: none; color: var(--ink); }
.q-card h3 { min-height: 2.4em; }
.q-card .frame { aspect-ratio: 16 / 11; margin-bottom: 24px; }
.q-card .btn { margin-top: 8px; }

/* Residences */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; }
.res-card .frame { aspect-ratio: 16 / 10; margin-bottom: 28px; }
.res-card h3 { margin-bottom: 12px; }
.res-card p { margin-bottom: 18px; }

/* Visit CTA: boxed image straddling two bands */
.cta { position: relative; background: linear-gradient(var(--ink) 0 25%, var(--stone) 25% 100%); padding: 0 0 var(--space); }
.cta-box { position: relative; min-height: 640px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.cta-box > .frame { position: absolute; inset: 0; }
.cta-box > .frame .placeholder { height: 100%; }
.cta-box::after { content: ""; position: absolute; inset: 0; background: rgba(8,36,48,.4); pointer-events: none; }
.cta-content { position: relative; z-index: 1; max-width: 560px; padding: 0 24px; color: var(--white); }
.cta-content h2 { color: var(--white); }
.cta-content p { color: var(--white); }
.cta-content .actions { justify-content: center; }

/* Enquiry */
.enquire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.enquire h2 { margin-bottom: 32px; }
.enquire-copy p { color: rgba(255,255,255,.82); max-width: 440px; }
.enquire-contact { list-style: none; padding: 0; margin: 32px 0 0; max-width: 440px; }
.enquire-contact li { padding: 12px 0; border-top: 1px solid var(--line-dark); color: rgba(255,255,255,.82); }
.enquire-contact a { color: var(--white); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font: 700 calc(12px * var(--fs))/1.3 var(--sans); text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: calc(15px * var(--fs)); color: var(--white);
  background: transparent; border: 1px solid var(--muted-dark); border-radius: 0; padding: 14px 18px; height: 50px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 22px) 22px, calc(100% - 17px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { min-height: 120px; height: auto; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--white); outline: none; }
.form-note { font-size: calc(13px * var(--fs)); line-height: 1.5; color: var(--muted); margin-top: 18px; }
.notice { padding: 14px 18px; margin-bottom: 20px; background: var(--white); color: var(--ink); border-left: 4px solid var(--accent); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); border-top: 1px solid var(--line-dark); padding: 90px 0 24px; border-bottom: 3px solid var(--accent); }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-grid h2, .footer-follow h2 { font: 700 14px/1 var(--sans); text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 0; line-height: 1.75; }
.footer-grid p { color: rgba(255,255,255,.8); line-height: 1.75; }
.footer-grid .tel { text-decoration: underline; }
.footer-middle { display: grid; grid-template-columns: 3fr 1fr; gap: 40px; align-items: end; margin-top: 80px; }
.badges { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.badge {
  display: flex; align-items: center; min-height: 64px; padding: 12px 20px;
  border: 1px solid var(--line-dark); color: rgba(255,255,255,.75);
  font: 700 11px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .06em; max-width: 220px;
}
.badge--logo { border: 0; padding: 0; }
.badge--logo img { max-height: 64px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .75; }
.footer-note { font-size: calc(13px * var(--fs)); line-height: 1.6; color: var(--muted) !important; max-width: 520px; margin: 0; }
.footer-follow h2 { margin-bottom: 16px; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.social-links a { display: grid; place-items: center; width: 28px; height: 28px; color: var(--white); transition: color .2s, transform .2s; }
.social-links a:hover { color: var(--accent); transform: translateY(-2px); }
.footer-base { margin-top: 64px; padding: 28px 72px 0 0; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer-brand .brand { align-items: flex-start; }
.legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font: 400 calc(12px * var(--fs))/1.4 var(--sans); text-transform: uppercase; color: var(--muted); }
.legal-links li + li::before { content: "|"; margin: 0 12px; color: var(--muted-dark); }
.site-footer .legal-links a { color: var(--muted); }
.site-footer .legal-links a:hover { color: var(--white); }

/* Back to top */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background-color .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent-hover); }

/* Motion: content rises in as it scrolls into view */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0s); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Photos uncover upwards like a curtain, settling from a slight zoom */
html.js .frame.reveal { opacity: 1; transform: none; }
html.js .frame.reveal > * { clip-path: inset(100% 0 0 0); transition: clip-path .8s cubic-bezier(.77,0,.18,1); transition-delay: var(--delay, 0s); }
html.js .frame.reveal.is-visible > * { clip-path: inset(0); }
html.js .frame.reveal img { transform: scale(1.12); transition: clip-path .8s cubic-bezier(.77,0,.18,1), transform 1.1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0s); }
html.js .frame.reveal.is-visible img { transform: none; }
.frame img { transition: transform .8s ease; }
.care-card:hover .frame img, .q-card:hover .frame img, .res-card:hover .frame img, .q-feature:hover .frame img, .video-card:hover .frame img { transform: scale(1.05); }

/* Headings rise word by word from behind a mask */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 45ms + var(--delay, 0s)); }
.split.is-visible .w > span { transform: none; }

/* Hero */
.hero-media { will-change: transform; }
.hero-media img { animation: hero-zoom 18s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
html.js .hero-content > :not(h1) { opacity: 0; transform: translateY(24px); animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; }
html.js .hero-content > :nth-child(2) { animation-delay: .55s; }
html.js .hero-content > :nth-child(3) { animation-delay: .75s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--white); text-decoration: none; font: 700 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
}
.scroll-cue i { position: relative; display: block; width: 1px; height: 52px; background: rgba(255,255,255,.3); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: var(--white); animation: cue 2.2s cubic-bezier(.7,0,.3,1) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(200%); } }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .hero-content > * { opacity: 1; transform: none; }
  html.js .frame.reveal > * { clip-path: none; }
  html.js .frame.reveal img, .hero-media img, .split .w > span { transform: none; }
  .scroll-cue i::after { display: none; }
}

/* Stats */
.stats { list-style: none; margin: 0 0 120px; padding: 0 0 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; border-bottom: 1px solid var(--line-light); }
.stats li { display: flex; flex-direction: column; gap: 14px; }
.stat-num { font: 300 76px/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { font-size: calc(15px * var(--fs)); line-height: 1.5; color: var(--muted); max-width: 220px; }

/* Videos */
.videos-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.videos-head h2 { margin: 0; }
.videos-head p { margin: 0; max-width: 420px; justify-self: end; }
.video-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.video-card { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.video-card .frame { display: block; aspect-ratio: 9 / 16; }
.video-card .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(8,36,48,.55)); transition: opacity .4s; }
.video-card:hover .frame::after { opacity: .6; }
.video-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), background-color .3s;
}
.video-play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card:hover .video-play, .video-card:focus-visible .video-play { transform: scale(1.12); background: var(--accent); }
.video-caption { display: block; margin-top: 16px; font-size: calc(15px * var(--fs)); line-height: 1.45; color: rgba(255,255,255,.85); }
.video-dialog { width: min(420px, 90vw, 48vh); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.video-dialog[open] { animation: pop .45s cubic-bezier(.2,.7,.2,1); }
.video-dialog::backdrop { background: rgba(6,28,38,.9); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.video-player { aspect-ratio: 9 / 16; background: #000; }
.video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-close {
  position: absolute; top: -56px; right: 0; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: transparent; color: var(--white); cursor: pointer;
  transition: background-color .25s, color .25s;
}
.video-close:hover { background: var(--white); color: var(--ink); }

/* FAQs */
.cta + .faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
.faq-intro p { max-width: 330px; }
.faq-list { border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0;
  list-style: none; cursor: pointer; font: 300 calc(25px * var(--fs))/1.3 var(--serif); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 40px; height: 40px; border: 1px solid var(--line-light); border-radius: 50%; transition: background-color .3s, border-color .3s; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px;
  background: var(--ink); transition: transform .4s cubic-bezier(.2,.7,.2,1), background-color .3s;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item summary:hover .faq-icon { border-color: var(--ink); }
.faq-item[open]:not(.is-closing) .faq-icon { background: var(--ink); border-color: var(--ink); }
.faq-item[open]:not(.is-closing) .faq-icon::before, .faq-item[open]:not(.is-closing) .faq-icon::after { background: var(--white); }
.faq-item[open]:not(.is-closing) .faq-icon::after { transform: rotate(0deg); }
.faq-answer { overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 64px 32px 0; max-width: 680px; }

/* Visit form in steps */
.tour-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.tour-form legend { padding: 0; margin-bottom: 24px; font: 300 calc(28px * var(--fs))/1.25 var(--serif); color: var(--white); }
.tour-form .form-step + .form-step { margin-top: 48px; }
.tour-form.is-stepped .form-step + .form-step { margin-top: 0; }
.tour-form.is-stepped .form-step:not(.is-current) { display: none; }
.tour-form .form-step.is-current { animation: step-in .5s cubic-bezier(.2,.7,.2,1); }
@keyframes step-in { from { opacity: 0; transform: translateX(var(--from, 24px)); } }
.form-progress { margin-bottom: 36px; }
.form-progress-label { margin: 0 0 12px; font: 700 calc(12px * var(--fs))/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted) !important; }
.form-progress-bar { height: 2px; background: var(--line-dark); }
.form-progress-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(var(--p, .3333)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.choice-grid { display: grid; gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice-box { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 24px 20px 64px; border: 1px solid var(--muted-dark); transition: border-color .25s, background-color .25s; }
.choice-box::before { content: ""; position: absolute; left: 24px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 1px solid var(--muted); border-radius: 50%; transition: background-color .25s, border-color .25s; }
.choice-box::after { content: ""; position: absolute; left: 30px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.choice-box strong { font: 400 calc(17px * var(--fs))/1.3 var(--sans); color: var(--white); }
.choice-box > span { font-size: calc(14px * var(--fs)); line-height: 1.4; color: var(--muted); }
.choice:hover .choice-box { border-color: var(--muted); }
.choice input:checked + .choice-box { border-color: var(--accent); background: rgba(126,190,197,.08); }
.choice input:checked + .choice-box::before { border-color: var(--accent); background: var(--accent); }
.choice input:checked + .choice-box::after { transform: scale(1); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.field input[type="date"] { color-scheme: dark; }
.field.is-invalid input { border-color: #F0A8A0; }
.form-nav { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.form-success { padding: 56px 48px; border: 1px solid var(--line-dark); }
.form-success h3 { font-size: calc(42px * var(--fs)); color: var(--white); margin-bottom: 16px; }
.form-success p { margin-bottom: 32px; }
.form-success-check { width: 64px; height: 64px; margin-bottom: 28px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-success-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s ease forwards; }
.form-success-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .5s .7s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Floating "Book a visit" (desktop) and Call / Book bar (phones) */
.action-bar {
  position: fixed; z-index: 45; right: 84px; bottom: 24px; display: flex; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .35s, transform .35s, visibility .35s;
}
.action-bar.is-visible { opacity: 1; visibility: visible; transform: none; }
.action-bar a {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  font: 700 calc(12px * var(--fs))/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  transition: background-color .25s, color .25s;
}
.action-call { display: none !important; }
.action-book { background: var(--ink); color: var(--white); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 12px 32px rgba(8,36,48,.28); }
.action-book:hover { background: var(--white); color: var(--ink); }

/* Inner pages */
.page-hero { padding: 110px 0 56px; background: var(--ink); color: var(--white); }
.page-hero .kicker { color: var(--muted); }
.page-hero p { color: var(--muted); }
.entry { padding: 80px 0 var(--space); }
.entry-content { max-width: 760px; }
.entry-content p, .entry-content li { color: #3D5560; }
.entry-content h2 { font-size: 42px; margin-top: 1.4em; }
.entry-content img { margin: 2rem 0; }
.archive-list { list-style: none; padding: 0; margin: 0; max-width: 860px; }
.archive-list li { padding: 40px 0; border-bottom: 1px solid var(--line-light); }
.archive-list h2 { font-size: 36px; }
.archive-list a { color: var(--ink); text-decoration: none; }
.archive-list p { color: var(--muted); }
.pagination { margin-top: 40px; display: flex; gap: 16px; }

/* Responsive */
@media (max-width: 1100px) {
  :root { --space: 110px; }
  h1, h2 { font-size: 48px; }
  .intro-copy, .life-copy, .category-copy { padding-left: 60px; }
  .quote-slide blockquote p, .pillar-panel h3, .q-feature h3 { font-size: 34px; }
}
@media (max-width: 860px) {
  :root { --space: 80px; --gutter: 24px; --header-h: 76px; }
  h1, h2 { font-size: 38px; }
  .header-inner { padding: 0 var(--gutter); }
  .brand-logo { height: 58px; }
  .footer-brand .brand-logo { height: 80px; }
  .intro { padding: var(--space) 0; }
  .intro-grid, .glance-grid, .pillars-head, .pillar-panel, .life-grid, .quote-slide,
  .care-grid, .category-grid, .questions-top, .q-feature, .q-cards, .res-grid, .enquire-grid, .footer-grid, .footer-middle { grid-template-columns: 1fr; gap: 40px; }
  .back-to-top { right: 16px; bottom: 16px; }
  .footer-base { padding-right: 0; padding-bottom: 56px; }
  .intro-main .frame { aspect-ratio: 4 / 3; }
  .intro-copy, .life-copy, .category-copy { padding: 0; max-width: none; }
  .quote-slide { padding-left: 0; }
  .quote-slide .frame { max-width: 260px; }
  .intro-side { display: none; }
  .pillars-tabs { grid-template-columns: 1fr 1fr; }
  .pillars-tabs button + button::before { display: none; }
  .quote-slide blockquote p { padding-left: 24px; }
  .quote-slide blockquote p::before { left: 0; }
  .care-intro { padding: 0; }
  .care-track { grid-auto-columns: 85%; }
  .collage { height: 380px; }
  .collage .c1 { height: 320px; }
  .collage .c2 { top: 90px; height: 240px; }
  .questions-top { margin-bottom: 80px; }
  .q-feature { gap: 32px; }
  .cta-box { min-height: 520px; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 40px 24px; margin-bottom: 80px; padding-bottom: 48px; }
  .stat-num { font-size: 52px; }
  .videos-head, .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .videos-head p { justify-self: start; }
  .video-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
  .video-grid::-webkit-scrollbar { display: none; }
  .video-card { scroll-snap-align: start; }
  .faq-answer p { padding-right: 0; }
  .form-success { padding: 40px 28px; }
  .scroll-cue { display: none; }
  .text-size { width: 38px; height: 38px; }
  .header-cta { gap: 12px; }
  .action-bar { left: 0; right: 0; bottom: 0; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid var(--line-dark); transform: translateY(100%); }
  .action-bar a { flex: 1; }
  .action-call { display: inline-flex !important; color: var(--white); border: 1px solid var(--line-dark); }
  .action-book { background: var(--accent); color: var(--ink); border: 0; box-shadow: none; }
  .back-to-top { bottom: 84px; }
  .site-footer { padding-bottom: 96px; }
}
