/*!
 * Wisdom Cowork — theme stylesheet
 * Warm editorial system built on the brand's own colours: the green vessel,
 * the bark of the tree, the gold of its leaves, on paper.
 * Self-hosted fonts, zero third-party requests.
 */

/* ============================================================ 1. Fonts */

/*
 * Display face: Plus Jakarta Sans.
 *
 * Replaced Fraunces, whose old-style figures made prices genuinely hard to
 * read — "13,000" and "24x7" came out with mismatched, quirky numerals. This
 * has lining figures, an open aperture and a real italic for the green accent
 * word, and it reads as modern workspace rather than literary.
 */
@font-face {
	font-family: 'Jakarta';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url('../fonts/jakarta-var.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Jakarta';
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url('../fonts/jakarta-italic-var.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'InterVar';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-var.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ============================================================ 2. Tokens */

:root {
	/* Colour — drawn from the logo, not invented */
	--paper:        #FBF8F2;
	--paper-2:      #F3EDE1;
	--paper-3:      #EAE2D2;
	--ink:          #16130E;
	--ink-2:        #2A2419;
	--ink-soft:     #554D3E;
	--muted:        #7E7565;
	--line:         #E0D7C5;
	--line-strong:  #CFC3AB;

	--forest:       #1E4D3A;
	--forest-2:     #2E6B50;
	--forest-wash:  #EAF0EB;
	--bark:         #6B4423;
	--gold:         #C08A22;
	--gold-2:       #E3AE45;
	--gold-wash:    #FBF1DC;

	/* Logo mark inherits these */
	--mark-forest:  var(--forest);
	--mark-bark:    var(--bark);
	--mark-gold:    var(--gold);
	--mark-gold-2:  var(--gold-2);

	/* Type */
	--ff-display: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--ff-text:    'InterVar', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--ff-rupee:   'Segoe UI', system-ui, -apple-system, 'Noto Sans', Roboto, sans-serif;

	--fs-display: clamp(2.5rem, 1.2rem + 5.2vw, 5.25rem);
	--fs-h2:      clamp(1.85rem, 1.1rem + 3vw, 3.2rem);
	--fs-h3:      clamp(1.3rem, 1.05rem + 1vw, 1.75rem);
	--fs-lead:    clamp(1.02rem, 0.95rem + 0.42vw, 1.22rem);
	--fs-body:    1rem;
	--fs-sm:      0.875rem;
	--fs-xs:      0.78rem;

	/* Space */
	--gutter:     clamp(1.15rem, 0.6rem + 2.6vw, 3rem);
	--section:    clamp(3.75rem, 2.2rem + 6.1vw, 7rem);
	--maxw:       78rem;
	--maxw-text:  46rem;

	--r-sm: 10px;
	--r:    16px;
	--r-lg: 24px;
	--r-xl: 34px;

	--shadow:    0 1px 2px rgba(22,19,14,.04), 0 8px 24px -12px rgba(22,19,14,.14);
	--shadow-lg: 0 2px 4px rgba(22,19,14,.05), 0 28px 60px -28px rgba(22,19,14,.28);

	--ease: cubic-bezier(.22,.61,.36,1);

	/* Drives the fixed header, the hero's top padding and scroll-padding-top,
	   so anchor targets always clear the header at every breakpoint. */
	--header-h: 68px;
}

@media (min-width: 48rem) { :root { --header-h: 78px; } }
@media (min-width: 64rem) { :root { --header-h: 88px; } }

/* ============================================================ 3. Reset */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	/*
	 * `scroll-behavior: smooth` is deliberately NOT set here. JavaScript owns
	 * in-page anchor scrolling (see app.js) so the offset under the fixed
	 * header is exact and the smoothness is explicit. Declaring it in CSS too
	 * means every programmatic scroll silently becomes animated, including
	 * fallbacks meant to snap instantly — which makes failures unrecoverable.
	 * scroll-padding-top stays, so native anchor jumps still clear the header
	 * if JavaScript never runs.
	 */
	scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--ff-text);
	font-size: var(--fs-body);
	line-height: 1.62;
	letter-spacing: -0.011em;
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/*
 * Deliberately no `overflow-x: hidden` on html or body.
 *
 * On several mobile browsers that rule silently breaks in-page anchors and
 * smooth scrolling — which is exactly what went wrong with "See plans &
 * pricing" on mobile. Nothing on the page overflows horizontally any more
 * (every decorative element that used to is clipped by its own section), so
 * the hack is not needed. If you ever add something wide, clip it on its own
 * container with `overflow: hidden`, never on the document.
 */

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.024em; line-height: 1.06; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
	outline: 2.5px solid var(--forest);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--gold-2); color: var(--ink); }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; top: 0; left: 50%; transform: translate(-50%, -140%);
	z-index: 200; padding: .7rem 1.3rem; background: var(--ink); color: var(--paper);
	border-radius: 0 0 var(--r-sm) var(--r-sm); font-size: var(--fs-sm); font-weight: 600;
	transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ============================================================ 4. Type helpers */

/* A sans display face needs more weight than a serif to hold the same
   presence at large sizes, hence 700 where Fraunces used 500. */
.display {
	font-family: var(--ff-display);
	font-weight: 700;
	letter-spacing: -0.032em;
	line-height: 1.02;
}

.eyebrow {
	display: inline-flex; align-items: center; gap: .55rem;
	font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
	letter-spacing: .16em; color: var(--gold);
}
.eyebrow::before {
	content: ''; width: 26px; height: 1px; background: currentColor; opacity: .6;
}
.eyebrow--plain::before { display: none; }

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--muted); }
.rupee { font-family: var(--ff-rupee); font-weight: inherit; }

/* The green accent word. Class name kept so templates need no churn. */
.serif-em {
	font-family: var(--ff-display);
	font-style: italic;
	font-weight: 600;
	color: var(--forest);
}

/* ============================================================ 5. Layout */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .62); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--paper2 { background: var(--paper-2); }

/* Sections alternate tone, but any one of them can be hidden (no reviews
   entered, no FAQs). When two same-toned sections end up adjacent, a hairline
   keeps the seam legible instead of merging into one endless block. */
.section--paper2 + .section--paper2 { border-top: 1px solid var(--line); }

/* ...and the seam also needs to be *shorter*. Where the tone changes, the
   colour does the separating work and the full double padding reads as a
   deliberate break. Where it does not, the two paddings just stack into dead
   space. The front page has two same-tone seams — about → pricing, and
   testimonials → FAQ — and the second was the widest unbroken void on the
   page: 273px of nothing above "05 — Questions", with no hairline either,
   because the rule above only ever covered the paper-2 pair.

   Take down the top half of any same-tone seam. Keyed on tone rather than on
   #faq, so it still holds when a section is hidden and a new pair becomes
   adjacent — which is the whole reason the hairline rule exists. */
.section--paper2 + .section--paper2,
.section--ink + .section--ink,
.section:not(.section--paper2):not(.section--ink) + .section:not(.section--paper2):not(.section--ink) {
	padding-top: calc(var(--section) * .55);
}

.section-head {
	display: grid; gap: 1.4rem 3rem; align-items: end;
	grid-template-columns: minmax(0, 1fr);
	margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
}
@media (min-width: 62rem) {
	.section-head--split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
.section-head h2 { font-size: var(--fs-h2); margin-top: .8rem; }
.section-head .lead { max-width: 40ch; }

.index-tag {
	font-family: var(--ff-display);
	font-size: var(--fs-sm); font-weight: 700; color: var(--gold);
	letter-spacing: .04em;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/*
 * `content-visibility: auto` used to live here to skip layout for off-screen
 * sections. It was removed because it breaks in-page anchors: the browser
 * estimates the height of unrendered sections, jumps to the wrong offset, and
 * then the real heights land underneath you. On mobile that made "See plans
 * & pricing" scroll to the wrong place. The class is kept as a no-op so the
 * markup does not need churning; the layout saving was negligible on a page
 * this size, and a link that works beats a micro-optimisation.
 */
.cv-auto { content-visibility: visible; }

/* ============================================================ 6. Buttons */

.btn {
	position: relative; display: inline-flex; align-items: center; gap: .6rem;
	padding: .9rem 1.5rem; border-radius: 100px;
	font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.005em;
	white-space: nowrap; cursor: pointer;
	transition: background .22s var(--ease), color .22s var(--ease),
		border-color .22s var(--ease), transform .22s var(--ease);
}
.btn .ico { transition: transform .28s var(--ease); flex: none; }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--forest); }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); }

.btn--ghost { border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-2); }

.btn--onink { border: 1.5px solid rgba(251,248,242,.28); color: var(--paper); }
.btn--onink:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--lg { padding: 1.1rem 1.9rem; font-size: 1rem; }
.btn--sm { padding: .62rem 1.05rem; font-size: var(--fs-xs); }

.link-arrow {
	display: inline-flex; align-items: center; gap: .45rem;
	font-weight: 600; font-size: var(--fs-sm);
	border-bottom: 1.5px solid var(--line-strong); padding-bottom: 2px;
	transition: border-color .2s var(--ease), color .2s var(--ease);
}
.link-arrow:hover { border-color: var(--forest); color: var(--forest); }
.link-arrow .ico { transition: transform .28s var(--ease); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ============================================================ 7. Header */

.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--header-h);
	display: flex; align-items: center;
	transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
	border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; }

.site-header.is-stuck {
	background: rgba(251,248,242,.86);
	-webkit-backdrop-filter: saturate(150%) blur(14px);
	backdrop-filter: saturate(150%) blur(14px);
	border-bottom-color: var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
	.site-header.is-stuck { background: var(--paper); }
}

.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; min-width: 0; }
.brand-mark { flex: none; }

/*
 * The real brand lockup. Sized by height so the aspect ratio is fixed and
 * nothing shifts while it loads; it shrinks on narrow screens so the logo
 * and the menu button always fit on one line.
 */
.brand-logo,
.brand .custom-logo {
	width: auto; height: 56px; max-width: min(62vw, 340px); object-fit: contain;
}
@media (max-width: 48rem) { .brand-logo, .brand .custom-logo { height: 46px; } }
@media (max-width: 30rem) { .brand-logo, .brand .custom-logo { height: 40px; } }
@media (max-width: 22.5rem) { .brand-logo, .brand .custom-logo { height: 34px; } }
/* The mark's tree and trunk are dark brown, which vanishes on the dark
   footer. A light chip keeps the real logo artwork legible instead of
   recolouring or silhouetting it. */
.brand--footer .brand-mark {
	flex: none;
	background: var(--paper);
	border-radius: 14px;
	padding: 7px;
	box-sizing: content-box;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
	font-family: var(--ff-display);
	font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em;
	text-transform: uppercase; color: var(--ink);
}
.brand-tag {
	font-size: .615rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--muted); margin-top: .3rem; font-weight: 500;
}
/* Only the header drops the tagline on very narrow screens — the footer
   keeps it, since that is where the brand line is meant to be read. */
@media (max-width: 26rem) { .site-header .brand-tag { display: none; } }

.nav { display: none; }
@media (min-width: 64rem) {
	.nav { display: flex; align-items: center; gap: .35rem; }
}
.nav a {
	padding: .5rem .8rem; border-radius: 100px;
	font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft);
	transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); background: var(--paper-3); }

.header-cta { display: none; align-items: center; gap: .6rem; }
@media (min-width: 48rem) { .header-cta { display: flex; } }

.nav-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 100px; border: 1.5px solid var(--line-strong);
}
@media (min-width: 64rem) { .nav-toggle { display: none; } }
.nav-toggle .ico-close, .nav-toggle[aria-expanded='true'] .ico-menu { display: none; }
.nav-toggle[aria-expanded='true'] .ico-close { display: block; }

/* Mobile drawer */
.mobile-nav {
	position: fixed; inset: var(--header-h) 0 0; z-index: 99;
	background: var(--paper); padding: 1.5rem var(--gutter) 2.5rem;
	display: flex; flex-direction: column; gap: .25rem;
	overflow-y: auto;
	transform: translateY(-8px); opacity: 0; visibility: hidden;
	transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
}
.mobile-nav.is-open { transform: none; opacity: 1; visibility: visible; }
@media (min-width: 64rem) { .mobile-nav { display: none; } }
/* Covers both the fallback links and a WordPress menu assigned to the
   primary location, whose markup the theme does not control. */
.mobile-nav a.m-link,
.mobile-nav li > a {
	display: block;
	font-family: var(--ff-display);
	font-size: 2rem; font-weight: 700; letter-spacing: -0.03em;
	padding: .5rem 0; border-bottom: 1px solid var(--line);
}
.mobile-nav a.m-link:hover,
.mobile-nav li > a:hover { color: var(--forest); }
.mobile-nav .m-actions { display: grid; gap: .7rem; margin-top: 1.6rem; }
.mobile-nav .btn { justify-content: center; }
body.nav-open { overflow: hidden; }

/* ============================================================ 8. Hero */

.hero {
	position: relative;
	padding-top: calc(var(--header-h) + clamp(1.6rem, 0.8rem + 3.2vw, 3.6rem));
	padding-bottom: clamp(2rem, 1.2rem + 3.2vw, 4rem);
	overflow: hidden;
}
.hero::before {
	content: ''; position: absolute; z-index: 0; pointer-events: none;
	inset: -20% -10% auto -30%; height: 130%;
	background:
		radial-gradient(46% 42% at 12% 18%, rgba(224,174,69,.20), transparent 68%),
		radial-gradient(40% 46% at 88% 8%, rgba(30,77,58,.13), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
	display: grid; gap: clamp(2rem, 0.8rem + 4vw, 3.6rem);
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
}
@media (min-width: 66rem) {
	.hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); }
}

.hero h1 {
	font-family: var(--ff-display);
	font-size: var(--fs-display);
	font-weight: 700; letter-spacing: -0.032em; line-height: 1.03;
	margin: 1.1rem 0 0;
	text-wrap: balance;
}
.hero h1 em {
	font-style: italic; font-weight: 600; color: var(--forest);
}
.hero .lead { margin-top: 1.5rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.locus {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .42rem .9rem .42rem .6rem; border-radius: 100px;
	background: var(--forest-wash); color: var(--forest);
	border: 1px solid rgba(30,77,58,.16);
	font-size: var(--fs-xs); font-weight: 600; letter-spacing: -0.005em;
}
.locus .dot {
	width: 7px; height: 7px; border-radius: 50%; background: var(--forest-2); flex: none;
	box-shadow: 0 0 0 3px rgba(46,107,80,.18);
}

/* Hero visual: photograph in a vessel-shaped frame with floating vector cards */
.hero-visual { position: relative; }
.hero-frame {
	position: relative; border-radius: var(--r-xl); overflow: hidden;
	aspect-ratio: 4 / 5; background: var(--paper-3);
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--line);
}
@media (min-width: 40rem) { .hero-frame { aspect-ratio: 5 / 4; } }
@media (min-width: 66rem) { .hero-frame { aspect-ratio: 4 / 5; } }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(22,19,14,.5), rgba(22,19,14,.06) 45%, transparent 70%);
}

/* The shipped SVG illustration needs no scrim over it. */
.hero-frame--art { background: var(--paper-2); }
.hero-frame--art::after { display: none; }
.hero-art { width: 100%; height: 100%; }

.float-card {
	position: absolute; z-index: 2;
	display: flex; align-items: center; gap: .7rem;
	padding: .7rem .95rem; border-radius: var(--r);
	background: rgba(251,248,242,.94);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border: 1px solid var(--line); box-shadow: var(--shadow);
	font-size: var(--fs-xs); font-weight: 600; line-height: 1.25;
}
.float-card .ico { color: var(--forest); flex: none; }
.float-card span small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.float-card--a { left: -.5rem; bottom: 18%; }
.float-card--b { right: -.5rem; top: 8%; }
.float-card--link {
	color: inherit; text-decoration: none;
	transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.float-card--link:hover, .float-card--link:focus-visible {
	transform: translateY(-2px);
	border-color: var(--line-strong);
	box-shadow: var(--shadow-lg);
}
@media (min-width: 40rem) {
	.float-card--a { left: -1.6rem; }
	.float-card--b { right: -1.6rem; }
}

/* ============================================================ 9. Marquee */

.marquee {
	border-block: 1px solid var(--line);
	background: var(--paper-2);
	overflow: hidden; padding-block: .95rem;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
/* Two identical halves, each padded by exactly one gap, so translating the
   track by -50% lands seamlessly on the start of the second copy. */
.marquee-track {
	display: flex; width: max-content; gap: 0;
	animation: slide 38s linear infinite;
}
.marquee-half { display: flex; gap: 2.6rem; padding-right: 2.6rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
	display: inline-flex; align-items: center; gap: .7rem;
	font-family: var(--ff-display);
	font-size: 1.02rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.marquee-item .ico { color: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================ 10. Stat band */

.stats { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 34rem) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper); padding: 1.9rem clamp(1rem,3vw,1.9rem); }
.stat b {
	display: block; font-family: var(--ff-display);
	font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.75rem); font-weight: 700;
	letter-spacing: -0.03em; line-height: 1;
}
.stat span { display: block; margin-top: .55rem; font-size: var(--fs-sm); color: var(--muted); }

/* ============================================================ 11. Cards / spaces */

.grid { display: grid; gap: clamp(1rem, .6rem + 1.2vw, 1.6rem); }
.grid--2 { grid-template-columns: minmax(0, 1fr); }
.grid--3 { grid-template-columns: minmax(0, 1fr); }
.grid--4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 34rem) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 62rem) {
	.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
	position: relative; display: flex; flex-direction: column;
	--card-pad: clamp(1.35rem, 1rem + 1vw, 1.9rem);
	padding: var(--card-pad);
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
	transition: border-color .26s var(--ease), transform .26s var(--ease), box-shadow .26s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }

/* The photo bleeds to the card edge, so it cancels the card's own padding on
   three sides and picks the border radius back up on the top two corners. */
.space-card .space-media {
	position: relative;
	margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--forest-wash);
	border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
}
.space-card .space-media img {
	display: block; width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .5s var(--ease);
}
.space-card:hover .space-media img { transform: scale(1.04); }

.space-card .space-ico {
	position: absolute; left: .85rem; bottom: .85rem;
	width: 42px; height: 42px; border-radius: 12px;
	display: grid; place-items: center;
	background: rgba(255,255,255,.93); color: var(--forest);
	border: 1px solid rgba(30,77,58,.14);
	transition: background .26s var(--ease), color .26s var(--ease);
}
.space-card:hover .space-ico { background: var(--forest); color: var(--paper); }
.space-card h3 { font-size: var(--fs-h3); margin: 1.3rem 0 .55rem; letter-spacing: -0.026em; }
.space-card p { font-size: var(--fs-sm); color: var(--ink-soft); }
.space-card .space-foot {
	display: flex; align-items: center; justify-content: space-between;
	gap: .85rem 1rem; flex-wrap: wrap;
	margin-top: auto; padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}
.space-card .space-meta {
	font-size: var(--fs-xs); color: var(--muted);
	min-width: 0; flex: 1 1 9rem; line-height: 1.5;
}
.space-card .space-foot .btn { flex: none; }

/* ============================================================ 12. Amenities */

.amenity-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 30rem) { .amenity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .amenity-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 68rem) { .amenity-grid { grid-template-columns: repeat(5, 1fr); } }

.amenity {
	background: var(--paper); padding: 1.7rem 1.15rem;
	display: flex; flex-direction: column; gap: .85rem;
	transition: background .24s var(--ease);
}
.amenity:hover { background: var(--gold-wash); }
.amenity .ico { color: var(--forest); transition: color .24s var(--ease), transform .35s var(--ease); }
.amenity:hover .ico { color: var(--bark); transform: translateY(-2px) scale(1.04); }
.amenity span { font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; }

/* ============================================================ 13. Pricing */

.price-grid { display: grid; gap: clamp(.9rem, .5rem + 1vw, 1.3rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.plan {
	position: relative; display: flex; flex-direction: column;
	padding: clamp(1.5rem, 1.1rem + 1.1vw, 2.1rem);
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
	transition: border-color .26s var(--ease), transform .26s var(--ease), box-shadow .26s var(--ease);
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }

.plan-kicker {
	display: flex; align-items: center; justify-content: space-between; gap: .75rem;
	font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
	letter-spacing: .13em; color: var(--muted);
}
.plan h3 {
	font-family: var(--ff-display);
	font-size: 1.55rem; font-weight: 700; margin: .85rem 0 0; letter-spacing: -0.028em;
}
.plan-price { display: flex; align-items: baseline; gap: .4rem; margin: 1rem 0 .1rem; flex-wrap: wrap; }
.plan-amount {
	font-family: var(--ff-display);
	font-size: clamp(2.5rem, 2rem + 2vw, 3.35rem); font-weight: 700;
	letter-spacing: -0.04em; line-height: 1;
}
.plan-unit { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.plan-note { font-size: var(--fs-xs); color: var(--muted); }

.plan-list { margin: 1.5rem 0 1.9rem; display: grid; gap: .68rem; }
.plan-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.plan-list .ico { color: var(--forest); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; justify-content: center; }

.plan--featured {
	background: var(--ink); color: var(--paper); border-color: var(--ink);
	--mark-forest: var(--gold-2);
}
.plan--featured .plan-kicker { color: var(--gold-2); }
.plan--featured .plan-unit,
.plan--featured .plan-note { color: rgba(251,248,242,.62); }
.plan--featured .plan-list li { color: rgba(251,248,242,.86); }
.plan--featured .plan-list .ico { color: var(--gold-2); }
.plan--featured:hover { border-color: var(--ink); }

.plan-flag {
	display: inline-flex; align-items: center; gap: .35rem;
	padding: .28rem .6rem; border-radius: 100px;
	background: var(--gold-2); color: var(--ink);
	font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}

.price-foot {
	margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem;
	align-items: center; justify-content: space-between;
	padding-top: 1.6rem; border-top: 1px solid var(--line);
	font-size: var(--fs-sm); color: var(--muted);
}

/* ============================================================ 14. About / split */

.split { display: grid; gap: clamp(1.6rem, 0.8rem + 3.2vw, 3.2rem); align-items: center; }
@media (min-width: 62rem) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split--wide { align-items: start; }
.split h2 { font-size: var(--fs-h2); }
.split-media {
	border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
	background: var(--paper-3); aspect-ratio: 4 / 3; box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.tick-list { display: grid; gap: .9rem; margin-top: 1.75rem; }
.tick-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); }
.tick-list .ico { color: var(--forest); flex: none; margin-top: 3px; }

/* ============================================================ 15. Testimonials */

.quote-grid { display: grid; gap: clamp(1rem, .6rem + 1.2vw, 1.5rem); }
@media (min-width: 48rem) { .quote-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 68rem) { .quote-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.quote {
	display: flex; flex-direction: column;
	padding: clamp(1.4rem, 1rem + 1vw, 1.9rem);
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.quote > .ico { color: var(--gold); margin-bottom: 1rem; }
.quote blockquote {
	margin: 0; font-family: var(--ff-display);
	font-size: 1.15rem; line-height: 1.5; font-weight: 500; letter-spacing: -0.014em;
}
.quote figcaption {
	margin-top: auto; padding-top: 1.4rem; display: flex; align-items: center; gap: .75rem;
	font-size: var(--fs-sm);
}
.quote .avatar {
	width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
	background: var(--forest-wash); color: var(--forest);
	font-weight: 700; font-size: .85rem; letter-spacing: -0.01em;
}
.quote figcaption b { display: block; font-weight: 600; }
.quote figcaption small { color: var(--muted); }

.quote--empty { border-style: dashed; background: transparent; }
.quote--empty blockquote { color: var(--muted); font-style: italic; }

/* ============================================================ 16. Location + map facade */

.map-facade {
	position: relative; width: 100%; aspect-ratio: 16 / 10;
	border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
	background:
		repeating-linear-gradient(0deg, transparent 0 38px, rgba(30,77,58,.07) 38px 39px),
		repeating-linear-gradient(90deg, transparent 0 38px, rgba(30,77,58,.07) 38px 39px),
		linear-gradient(150deg, var(--forest-wash), var(--paper-2));
	display: grid; place-items: center; cursor: pointer;
}
@media (min-width: 48rem) { .map-facade { aspect-ratio: 16 / 8; } }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade-inner { text-align: center; padding: 1.5rem; }
.map-facade .pin-badge {
	width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 50%;
	display: grid; place-items: center; background: var(--forest); color: var(--paper);
	box-shadow: 0 0 0 8px rgba(30,77,58,.12);
}
.map-facade b { display: block; font-weight: 600; }
.map-facade small { color: var(--muted); font-size: var(--fs-xs); }

.info-list { display: grid; gap: 1.15rem; margin-top: 1.9rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ico { color: var(--forest); flex: none; margin-top: 3px; }
.info-list .k { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.info-list .v { display: block; margin-top: .2rem; font-weight: 500; letter-spacing: -0.014em; }
.info-list a.v:hover { color: var(--forest); }

/* ============================================================ 17. FAQ */

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	padding: 1.35rem 0; text-align: left;
	font-family: var(--ff-display);
	font-size: clamp(1.05rem, .98rem + .4vw, 1.28rem); font-weight: 700; letter-spacing: -0.02em;
	transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--forest); }
.faq-q .ico {
	flex: none; color: var(--gold); transition: transform .3s var(--ease);
}
.faq-q[aria-expanded='true'] .ico { transform: rotate(45deg); }
.faq-a {
	display: grid; grid-template-rows: 0fr;
	transition: grid-template-rows .32s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding-bottom: 1.4rem; max-width: 62ch; color: var(--ink-soft); font-size: var(--fs-sm); }

/* ============================================================ 18-19. Footer

   The map and the footer proper are one block. They were always the same
   colour; splitting them across two elements only bought a second copy of the
   address. Three tiers now: map + contact, brand + socials, legal bar.

   Tier 1 held a closing call to action until 2026-08-06. The map replaced it
   because the front page never rendered template-parts/location.php, so the
   address was the only "where are we" the site had. The class name
   .footer-cta is kept: it is referenced by the print rules and by nothing
   that would read better renamed. */

.site-footer {
	position: relative; overflow: hidden;
	background: var(--ink); color: var(--paper);
	padding-top: var(--section);
}
.site-footer::before {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(50% 70% at 82% 20%, rgba(224,174,69,.20), transparent 70%),
		radial-gradient(45% 60% at 8% 90%, rgba(46,107,80,.28), transparent 72%);
}
.site-footer .wrap { position: relative; }
.site-footer a:hover { color: var(--gold-2); }

/* Tier 1 — the map, with the single set of contact details beside it. */
.footer-cta {
	display: grid; gap: 2.5rem clamp(1.5rem, 1rem + 3vw, 4rem);
	grid-template-columns: minmax(0, 1fr);
	padding-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
}
@media (min-width: 56rem) {
	.footer-cta { grid-template-columns: 1fr 1fr; align-items: start; }
}
/* The contact page renders its own map, so the footer there is one column. */
@media (min-width: 56rem) {
	.footer-cta--nomap { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/*
 * The map panel: the embed, then the name-and-address plate, inside one
 * rounded border so they read as a single object.
 *
 * Capped at 30rem rather than filling its grid column. At full column width
 * the map dominated the footer and pulled the eye away from the contact
 * details it is meant to support.
 */
.footer-map { max-width: 30rem; }

.map-panel {
	border-radius: var(--r-lg); overflow: hidden;
	border: 1px solid rgba(251,248,242,.16);
	box-shadow: 0 18px 46px rgba(0,0,0,.34);
}

/*
 * The facade stays light on the dark footer rather than being repainted to
 * match it. The Google embed that replaces it on click is light, so a dark
 * placeholder would flash white the moment it loaded. It reads as an inset
 * paper panel instead.
 *
 * The ink colour is not optional: .site-footer sets colour to --paper, and
 * .map-facade b inherits it, so without this the "Tap to load the map" line
 * is near-white on a near-white card.
 *
 * The corners and the border move to .map-panel — the facade is now the top
 * half of a larger object, so rounding its own bottom corners would cut a
 * notch above the plate.
 */
.footer-map .map-facade {
	color: var(--ink);
	border: 0; border-radius: 0; box-shadow: none;
	aspect-ratio: 16 / 10;
}
@media (min-width: 48rem) { .footer-map .map-facade { aspect-ratio: 16 / 9; } }
.footer-map .map-facade small { color: var(--ink-soft); }
.footer-map .map-facade .pin-badge {
	width: 46px; height: 46px; margin-bottom: .7rem;
	box-shadow: 0 0 0 6px rgba(30,77,58,.12);
}

/*
 * The plate. A link, because the whole strip navigating to directions is more
 * useful than a separate small link underneath, and it gives the address a
 * target big enough to hit on a phone.
 */
.map-plate {
	display: flex; align-items: center; gap: .8rem;
	padding: .85rem 1rem;
	background: var(--ink-2);
	border-top: 1px solid rgba(251,248,242,.12);
	transition: background .2s var(--ease);
}
.map-plate:hover { background: #332c1f; }
.map-plate-pin {
	flex: none; width: 32px; height: 32px; border-radius: 50%;
	display: grid; place-items: center;
	background: rgba(224,174,69,.14); color: var(--gold-2);
}
.map-plate-text { min-width: 0; }
.map-plate-text strong {
	display: block; font-weight: 700; letter-spacing: -0.01em;
	color: var(--paper); font-size: var(--fs-sm);
}
.map-plate-text span {
	display: block; margin-top: .15rem;
	font-size: var(--fs-xs); line-height: 1.45;
	color: rgba(251,248,242,.66);
}
.map-plate-go { flex: none; margin-left: auto; color: var(--gold-2); }
.map-plate-go .ico { display: block; transition: transform .2s var(--ease); }
.map-plate:hover .map-plate-go .ico { transform: translateX(3px); }
.site-footer a.map-plate:hover { color: inherit; }

.footer-contact { font-style: normal; }
.footer-contact .info-list { margin-top: 0; }
.footer-contact .info-list .ico { color: var(--gold-2); }
.footer-contact .info-list .k { color: rgba(251,248,242,.5); }
.footer-contact .info-list .v { color: var(--paper); }
/* The address and the email are links, the opening hours are not — give the two
   that navigate a visible affordance rather than leaving them to be discovered. */
.footer-contact .info-list a.v {
	text-decoration: underline;
	text-decoration-color: rgba(224,174,69,.5);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.footer-contact .info-list a.v:hover { color: var(--gold-2); text-decoration-color: currentColor; }

/* Tier 2 — brand on the left, socials pinned bottom-right on desktop. */
.footer-grid {
	display: grid; gap: 2rem clamp(1.5rem, 1rem + 2vw, 3rem);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) 2.25rem;
	border-top: 1px solid rgba(251,248,242,.13);
}
@media (min-width: 52rem) {
	.footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
	.footer-social { text-align: right; }
	.footer-social .socials { justify-content: flex-end; }
}

.site-footer .brand-name { color: var(--paper); }
.site-footer .brand-tag { color: rgba(251,248,242,.55); }
.site-footer .footer-about {
	color: rgba(251,248,242,.62); font-size: var(--fs-sm);
	margin-top: 1.1rem; max-width: 62ch;
}
.f-title {
	font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
	letter-spacing: .14em; color: var(--gold-2); margin-bottom: 1.15rem;
}
.f-list { display: grid; gap: .72rem; font-size: var(--fs-sm); color: rgba(251,248,242,.74); }
.f-list a { transition: color .18s var(--ease); }
.f-list li.with-ico { display: flex; align-items: flex-start; gap: .6rem; }
.f-list .ico { flex: none; margin-top: 3px; color: rgba(251,248,242,.5); }

.f-title { margin-bottom: .9rem; }
.socials { display: flex; flex-wrap: wrap; gap: .55rem; }
.socials a {
	width: 40px; height: 40px; border-radius: 100px; display: grid; place-items: center;
	border: 1px solid rgba(251,248,242,.18); color: rgba(251,248,242,.8);
	transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { background: var(--gold-2); color: var(--ink); border-color: var(--gold-2); transform: translateY(-2px); }

.footer-bottom {
	border-top: 1px solid rgba(251,248,242,.13);
	padding-block: 1.35rem 1.85rem;
	display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; align-items: center; justify-content: space-between;
	font-size: var(--fs-xs); color: rgba(251,248,242,.55);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; align-items: center; }
.footer-bottom .f-doc { display: inline-flex; align-items: center; gap: .35rem; }
.footer-bottom .f-doc .ico { opacity: .7; flex: none; }

/* ============================================================ 20. Mobile action bar */

.action-bar {
	position: fixed; inset: auto 0 0; z-index: 90;
	display: grid; grid-template-columns: 1fr 1fr;
	background: rgba(22,19,14,.95);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom)); gap: .5rem;
	transform: translateY(110%); transition: transform .3s var(--ease);
}
.action-bar.is-in { transform: none; }
@media (min-width: 48rem) { .action-bar { display: none; } }
.action-bar a {
	display: flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .8rem; border-radius: 100px; font-size: var(--fs-sm); font-weight: 600;
}
.action-bar .ab-call { background: rgba(251,248,242,.12); color: var(--paper); }
.action-bar .ab-wa { background: var(--gold-2); color: var(--ink); }
body.has-action-bar { padding-bottom: 4.5rem; }
@media (min-width: 48rem) { body.has-action-bar { padding-bottom: 0; } }

/* ============================================================ 21. Page / prose */

.page-hero {
	padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 4vw, 5rem));
	padding-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem);
	border-bottom: 1px solid var(--line);
	background: var(--paper-2);
}
.page-hero h1 {
	font-family: var(--ff-display);
	font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.8rem); font-weight: 700;
	letter-spacing: -0.036em; margin-top: .9rem;
}
.crumbs { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: .5rem; }
.crumbs a:hover { color: var(--forest); }

.prose { max-width: var(--maxw-text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
	font-family: var(--ff-display);
	font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.05rem); margin-top: 2.4em; letter-spacing: -0.03em;
}
.prose h3 { font-size: var(--fs-h3); margin-top: 1.9em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3em; margin-top: 1em; }
.prose ul li { list-style: disc; margin-bottom: .5em; }
.prose ol li { list-style: decimal; margin-bottom: .5em; }
.prose ul li::marker, .prose ol li::marker { color: var(--gold); }
.prose a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--bark); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
	border-left: 3px solid var(--gold); padding-left: 1.25rem; margin-left: 0;
	font-family: var(--ff-display); font-size: 1.15rem; font-style: italic; color: var(--ink);
}
.prose img { border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--paper-2); }
.table-scroll { overflow-x: auto; }

/* ============================================================ 22. Contact form */

.form-card {
	padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
	box-shadow: var(--shadow);
}
.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
.field label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.field input, .field textarea, .field select {
	width: 100%; padding: .82rem 1rem; border-radius: var(--r-sm);
	border: 1.5px solid var(--line); background: var(--paper-2);
	transition: border-color .2s var(--ease), background .2s var(--ease);
	font-size: var(--fs-sm);
}
.field input:focus, .field textarea:focus, .field select:focus {
	outline: none; border-color: var(--forest); background: var(--paper);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 34rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-card .btn { width: 100%; justify-content: center; }

/* ============================================================ 23. Pagination, comments */

.pagination { margin-top: 3rem; display: flex; justify-content: center; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.page-numbers {
	min-width: 42px; height: 42px; padding: 0 .8rem;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 100px; border: 1px solid var(--line);
	font-size: var(--fs-sm); font-weight: 600;
	transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.page-numbers:hover { border-color: var(--ink); }
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-numbers.dots { border-color: transparent; }

.page-links { margin-top: 2rem; display: flex; gap: .5rem; font-size: var(--fs-sm); }

.comment-list { margin-top: 2rem; display: grid; gap: 1.25rem; }
.comment-list li { border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; }
.comment-list .children { margin-top: 1rem; margin-left: 1.25rem; display: grid; gap: 1rem; }
.comment-meta { font-size: var(--fs-xs); color: var(--muted); margin-bottom: .5rem; }
.comment-respond { margin-top: 2.5rem; }
.comment-form p { display: grid; gap: .45rem; margin-bottom: 1rem; }
.comment-form input:not([type='submit']), .comment-form textarea {
	width: 100%; padding: .8rem 1rem; border-radius: var(--r-sm);
	border: 1.5px solid var(--line); background: var(--paper-2); font-size: var(--fs-sm);
}
.comment-form input[type='submit'] {
	padding: .9rem 1.6rem; border-radius: 100px; background: var(--ink); color: var(--paper);
	font-weight: 600; font-size: var(--fs-sm); border: 0; cursor: pointer;
}

/* ============================================================ 24. Motion */

/*
 * Reveal-on-scroll is opt-in, not opt-out. The hidden state is scoped to
 * .js, which a tiny inline script in <head> adds. No JavaScript, a script
 * error, or a blocked file therefore leaves the content plainly visible
 * rather than stranding whole sections at opacity 0.
 */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
	opacity: 1; transform: none;
	transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-d1.is-in { transition-delay: .07s; }
.reveal-d2.is-in { transition-delay: .14s; }
.reveal-d3.is-in { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.js .reveal { opacity: 1; transform: none; }
	.marquee-track { animation: none; }
}

/* ============================================================ 25. Print */

@media print {
	/*
	 * .footer-cta used to be dropped whole — it was a headline and two buttons,
	 * neither of any use on paper. It now carries the address, so only the map
	 * itself goes and the contact details print.
	 *
	 * The whole `.footer-map` block goes — heading, map and name plate. None of
	 * it survives paper usefully, and the contact column carries the address.
	 *
	 * This is safe *only* while that column renders the address. If the plate
	 * is ever given the address back and the column's row removed, this rule
	 * must narrow to `.map-facade` — otherwise a printed page carries no
	 * address at all, and nothing on screen would show it.
	 */
	.site-header, .action-bar, .mobile-nav, .marquee, .footer-map, .map-facade { display: none !important; }
	body { background: #fff; color: #000; }
	.section { padding-block: 1.5rem; }
}


/* ---- Carried over from the WordPress Customizer's Additional CSS.
 * These were live overrides on wisdomcowork.in and are part of the shipped
 * design, not leftovers. Appended last so they keep the same cascade position. */
@media (max-width: 30rem) {
    .brand-logo, .brand .custom-logo {
        height: 70px;
    }
}

.cv-auto {
    padding: 30px;
}

.site-footer{padding-top:80px; 
}
.footer-contact .info-list {
    margin-top: 30px;
}

/* ---- Koenig editor width classes -------------------------------------------
 * Ghost requires .kg-width-wide and .kg-width-full to be styled or gscan errors
 * and wide/full images render unstyled. The prose column is --maxw-text, so
 * "wide" steps out to the page container and "full" goes edge to edge.
 * Clamped to the viewport so neither can introduce horizontal overflow. */
.kg-width-wide {
	max-width: min(var(--maxw), 100%);
	margin-inline: auto;
}
.kg-width-full {
	max-width: 100vw;
	width: 100vw;
	margin-inline: calc(50% - 50vw);
}
.kg-width-wide img,
.kg-width-full img { width: 100%; height: auto; display: block; }

.kg-card figcaption,
.kg-image-card figcaption {
	margin-top: .6rem;
	font-size: var(--fs-sm, .875rem);
	color: var(--ink-soft);
	text-align: center;
}

/* ============================================================ 26. Contact page
 *
 * Card grid + hours/map split for /contact-us/. Built from the same tokens as the
 * rest of the site (--paper, --line, --ink, --gold-2) so it reads as one design;
 * the icons are the theme's own artwork, lifted from the existing set.
 */
.page-hero-sub {
	margin-top: 1rem;
	max-width: 52ch;
	color: var(--ink-soft);
	font-size: var(--fs-lead, 1.05rem);
}

.c-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 1rem;
}

.c-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .3rem;
	padding: 1.6rem 1.5rem 1.4rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-lg, 18px);
	color: inherit;
	text-decoration: none;
	transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
a.c-card:hover,
a.c-card:focus-visible {
	border-color: var(--ink);
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(34, 26, 12, .09);
}

.c-card-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	margin-bottom: .55rem;
	border-radius: 50%;
	background: var(--paper-2);
	border: 1px solid var(--line);
	color: var(--forest);
}
a.c-card:hover .c-card-ico { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }

.c-card-label {
	font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--muted); font-weight: 600;
}
.c-card-value { font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.c-card-note  { font-size: var(--fs-sm); color: var(--muted); }
.c-card-go {
	display: inline-flex; align-items: center; gap: .4rem;
	margin-top: .9rem; padding-top: .8rem;
	width: 100%; border-top: 1px solid var(--line);
	font-size: var(--fs-sm); font-weight: 600; color: var(--forest);
}
.c-card-go .ico { transition: transform .2s var(--ease); }
a.c-card:hover .c-card-go .ico { transform: translateX(3px); }

/* --- hours + map ------------------------------------------------------------ */
.c-split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) {
	.c-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; }
}

.c-hours-list { margin-top: 1.6rem; display: grid; gap: .1rem; }
.c-hours-list li {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem;
	padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.c-hours-list .k { color: var(--muted); }
.c-hours-list .v { font-weight: 600; }

.c-address {
	display: flex; gap: .7rem; align-items: flex-start;
	margin-top: 1.6rem; font-style: normal; color: var(--ink-soft);
	line-height: 1.55;
}
.c-address .ico { flex: none; margin-top: .18rem; color: var(--forest); }

.c-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

/* 🚨 NEVER give .map-facade a min-height. It carries `aspect-ratio: 16/10`, so a
 * min-height of 320px silently becomes a min-WIDTH of 512px — which forced the
 * whole contact page's layout viewport to 534px on a 390px phone. The page still
 * reported "no overflow", because the viewport itself had been widened. Control
 * the shape with aspect-ratio only, and let width stay fluid. */
.c-map .map-panel { width: 100%; }
/* Height comes from aspect-ratio ONLY — see the warning above. Shortened from
 * 4/3 and 1/1: the square desktop map was 564px tall next to a much shorter
 * hours panel. Now ~233px on a phone and ~451px on desktop. */
.c-map .map-facade { aspect-ratio: 3 / 2; }
@media (min-width: 60rem) { .c-map .map-facade { aspect-ratio: 5 / 4; } }
.c-map .map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* The contact page renders its own map, so the footer's would be the second one on
 * the same screen. The WordPress theme solved this in footer.php with an
 * is_page_template() check; Ghost has no such hook in a partial, and {{body_class}}
 * gives `page-contact-us`, which is a cleaner seam anyway.
 * Safe for print: this page carries its own .c-address, so hiding the footer map
 * cannot leave the printed page with no address on it. */
body.page-contact-us .site-footer .footer-map { display: none; }

/* ============================================================ 27. Review slider
 *
 * Replaces the old .quote-grid. On a phone the grid put one tall card per row and
 * the cards did not fill their column cleanly; a scroll-snap track shows exactly
 * one review at a time, is swipeable, and needs no JavaScript to be usable —
 * autoplay is an enhancement layered on top.
 */
.quote-slider { margin-top: 2.5rem; position: relative; }

.quote-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	gap: 1rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	/* Room for the card's hover lift and shadow, which a plain overflow clips. */
	padding: .35rem .35rem 1rem;
	margin-inline: -.35rem;
}
.quote-track::-webkit-scrollbar { display: none; }
.quote-track:focus-visible { outline: 2.5px solid var(--forest); outline-offset: 4px; }

@media (min-width: 48rem) { .quote-slider .quote-track { grid-auto-columns: calc(50% - .5rem); } }
@media (min-width: 68rem) { .quote-slider .quote-track { grid-auto-columns: calc(33.333% - .67rem); } }

.quote-slider .quote {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: .85rem;
	height: 100%;
	margin: 0;
	padding: 1.75rem 1.6rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow);
}
.quote-slider .quote > .ico { color: var(--gold-2); flex: none; }

.q-stars { color: var(--gold); letter-spacing: .12em; font-size: 1rem; line-height: 1; }

/* Review copy at 14px, per request (was 16px). */
.quote-slider blockquote {
	margin: 0;
	font-size: 14px;
	line-height: 1.62;
	color: var(--ink-soft);
	/* Push the attribution to the bottom so cards of different text lengths still
	   line their footers up — the ragged-bottom look was the "not proper covering". */
	flex: 1 1 auto;
}
/* The reviewer sits at the TOP of the card, above the quote.
 * Done with `order` rather than by moving the markup: inside a <figure>, the
 * <figcaption> belongs after the <blockquote> it describes, and reordering the DOM
 * to suit the visual would break that association for assistive tech.
 * The rating now lives INSIDE the figcaption (see build-testimonials.mjs), so it
 * travels with the name instead of needing an order of its own. */
.quote-slider figcaption { order: -2; }

/* Name, company, then the stars underneath them. */
.q-who { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.q-who .q-stars { font-size: .875rem; margin-top: .15rem; }

.quote-slider figcaption {
	display: flex; align-items: center; gap: .75rem;
	/* Border flips to the bottom now that this block leads the card. */
	margin-top: 0; padding-top: 0;
	margin-bottom: .35rem; padding-bottom: 1rem;
	border-top: 0;
	border-bottom: 1px solid var(--line);
}
.quote-slider figcaption b { display: block; font-size: 1rem; line-height: 1.3; }
.quote-slider figcaption small { display: block; font-size: .8125rem; color: var(--muted); }
.quote-slider .avatar {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--forest-wash); color: var(--forest);
	font-weight: 700; font-size: .9rem; letter-spacing: .02em;
}

/* --- controls ---------------------------------------------------------------- */
.quote-controls {
	display: flex; align-items: center; justify-content: center; gap: 1rem;
	margin-top: 1.25rem;
}
.q-arrow {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--line); background: var(--paper); color: var(--ink);
	transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.q-arrow:hover, .q-arrow:focus-visible { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }

.q-dots { display: flex; align-items: center; gap: .5rem; }
.q-dot {
	/* 24x24 hit area around a 9px visual dot — WCAG 2.5.8 without a chunky UI. */
	width: 24px; height: 24px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 0;
}
.q-dot::before {
	content: ''; width: 9px; height: 9px; border-radius: 50%;
	background: var(--line-strong);
	transition: background .2s var(--ease), transform .2s var(--ease);
}
.q-dot.is-on::before { background: var(--forest); transform: scale(1.25); }

@media (prefers-reduced-motion: reduce) {
	.quote-track { scroll-behavior: auto; }
}

/* Reviewer profile picture. Falls back to the initials monogram when a review has
 * no photo (see build-testimonials.mjs), so the two must occupy the same box. */
.avatar--photo { padding: 0; overflow: hidden; background: var(--paper-2); }
.avatar--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* NOTE: this block MUST stay last in the file. It overrides base rules using the
 * same selectors, so it wins on source order, not specificity. Anything appended
 * after it will silently beat it — which is exactly how `.quote-slider .quote
 * { gap }` ended up doing nothing. Add new sections ABOVE this line. */

/* ============================================================ 28. Mobile refinements
 *
 * Everything below is scoped to phone widths. The desktop and tablet layouts are
 * deliberately untouched — they were measured before and after and are identical.
 *
 * These fix real faults that existed on the WordPress site too; the migration
 * preserved them faithfully, and this is where they get corrected.
 */
@media (max-width: 40rem) {

	/* --- 1. Horizontal space.
	 * The Customizer's `.cv-auto { padding: 30px }` applies 30px on EVERY side, on
	 * top of .wrap's own gutter. On a 390px screen that left the space cards
	 * 290px wide — a quarter of the viewport spent on nested padding. The vertical
	 * 30px is the section rhythm and is kept; only the horizontal half is dropped,
	 * so .wrap's gutter is the single source of the page inset. */
	.cv-auto { padding-inline: 0; }

	/* --- 1b. Stats: two per row on phones.
	 * The base sheet only goes 2-up at 34rem and 4-up at 60rem, so a phone got
	 * four full-width bands — 122px each and a lot of scrolling for four short
	 * facts. Two columns halves that. The padding comes down with it so the
	 * numbers still breathe in a ~160px column at 320px. */
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stat { padding: 1.35rem 1rem; }

	/* --- 1c. Hero buttons: both on one row.
	 * `.hero-actions` is a wrapping flex row and the two buttons at their desktop
	 * padding do not fit a phone, so "Book a free tour" and "See plans & pricing"
	 * stacked. Stop the wrap and let them share the row, trimmed slightly so the
	 * longer label still fits at 320px. `white-space: nowrap` on .btn means the
	 * labels cannot reflow, so the padding is what has to give. */
	/* Hero CTAs: as large as will genuinely fit on ONE row.
	 *
	 * `.btn` is white-space: nowrap, so these two buttons cannot reflow — if they
	 * do not fit they widen the layout viewport instead (hit twice on this theme).
	 * The sizes below are MEASURED, not chosen: at each width this is the largest
	 * font whose pair still fits inside the wrap with real headroom.
	 *
	 *   width   available   17px needs   verdict
	 *   320px       283          —       far too small; compact tier below
	 *   360px       322        >322      does not fit at any padding
	 *   390px       351         349      fits by 2px — NOT enough margin
	 *   412px       371         359      fits comfortably
	 *
	 * So 17px is applied from 25rem (400px) up, where the margin is real, and the
	 * sizes step down below that rather than overflowing. */
	/* 17px on ONE row at every phone width — requested explicitly.
	 *
	 * On a single line 17px does not fit below ~412px: measured, the pair needs
	 * more than the wrap provides, and because `.btn` is `white-space: nowrap` it
	 * does not overflow, it makes Chrome WIDEN the layout viewport (400 -> 406),
	 * which no overflow check can see.
	 *
	 * So the labels are allowed to wrap instead. `white-space: normal` plus
	 * `flex: 1 1 0` gives the two buttons half the row each; "See plans & pricing"
	 * takes two lines on a narrow phone while both buttons stay side by side at
	 * the full 17px. Wrapping the TEXT is what makes not wrapping the ROW possible. */
	.hero-actions { flex-wrap: nowrap; gap: .5rem; align-items: stretch; }
	.hero-actions .btn {
		flex: 1 1 0;
		min-width: 0;
		padding: .8rem .7rem;
		font-size: 13px;
		gap: .35rem;
		/* Wrapping stays enabled even though 14px fits on one line at every phone
		 * width today. It costs nothing when the label fits, and it is the only
		 * thing standing between a longer label (or a fallback font) and the
		 * viewport-widening failure this rule hit at 17px. */
		white-space: normal;
		text-align: center;
		justify-content: center;
		line-height: 1.25;
	}
	.hero-actions .btn .ico { width: 17px; height: 17px; }

	/* 🚨 At 320px the two nowrap buttons needed 326px, and Chrome answered by
	 * WIDENING THE LAYOUT VIEWPORT to 326 rather than overflowing — so every
	 * overflow check still reported "ok" while the page was no longer 320 wide.
	 * (Proved by hiding .hero-actions: scrollWidth fell 326 -> 320.)
	 * `.btn` sets white-space: nowrap, so the labels cannot reflow and the padding
	 * is the only thing that can give. */
	/* Narrow phones keep the same 17px — only the padding tightens. This block used
	 * to drop the font to .76rem, which is what left 320-375px still rendering at
	 * 12px after the 17px rule went in. With the labels free to wrap, 17px fits
	 * here too; the buttons simply become taller. */
	@media (max-width: 23.5rem) {
		.hero-actions { gap: .4rem; }
		.hero-actions .btn { padding: .7rem .5rem; font-size: 13px; gap: .3rem; }
		.hero-actions .btn .ico { width: 15px; height: 15px; }
	}

	/* --- 1d. Workspace cards stay ONE per row on phones.
	 * A two-up variant was tried and reverted by request: at 390px each card fell
	 * to ~169px wide, which is too narrow for the workspace photo to read. The
	 * base `.grid--4` single column is the intended mobile layout, so nothing is
	 * overridden here — this note exists so the two-up idea is not re-attempted. */

	/* --- 1d1. Amenity cards: two per row.
	 * Wi-Fi + power backup on one row, parking + CCTV on the next. `.grid--2` is
	 * used exactly once in the theme (this block), so overriding it here cannot
	 * reach anything else — the workspace cards are `.grid--4` and stay one-up.
	 *
	 * `!important` is unusual and deliberate: these cards carry INLINE
	 * `style="font-size:…"` on their h3 and p, and an inline style beats any
	 * selector. Without it the type stays at the full-width size and the two-up
	 * cards overflow their column. */
	.grid.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
	.grid.grid--2 .card { padding: 1rem .85rem 1.1rem; }
	.grid.grid--2 .card h3 { font-size: .97rem !important; margin: .7rem 0 .35rem !important; }
	.grid.grid--2 .card p  { font-size: .8125rem !important; }
	.grid.grid--2 .space-ico { width: 38px; height: 38px; }
	.grid.grid--2 .space-ico .ico { width: 19px; height: 19px; }

	/* --- 1d2. Pricing cards: tighter on phones.
	 * Six full-width cards at desktop padding made the pricing section the longest
	 * scroll on the page. Everything comes down proportionally — padding, the price
	 * figure, the feature list and its gaps — so the cards read as the same design,
	 * just smaller. The CTA keeps a 44px tap height. */
	.price-grid { gap: .7rem; }
	.plan { padding: 1.15rem 1.1rem 1.25rem; }
	.plan h3 { font-size: 1.15rem; }
	.plan-price { margin: .6rem 0 .1rem; gap: .3rem; }
	.plan-amount { font-size: 2rem; }
	.plan-unit { font-size: .8125rem; }
	.plan-note { font-size: .78rem; }
	.plan-list { margin: .95rem 0 1.15rem; gap: .45rem; }
	.plan-list li { font-size: .8125rem; gap: .5rem; }
	.plan-list .ico { width: 15px; height: 15px; }
	.plan-kicker { margin-bottom: .1rem; }
	.plan .btn { padding: .72rem 1rem; font-size: .8125rem; min-height: 44px; }

	/* --- 1d3. Review cards: tighter on phones.
	 * Padding, internal gaps, the avatar and the decorative quote glyph all come
	 * down so the card is a smaller object; the copy itself stays at its set size
	 * so nothing becomes harder to read. */
	.quote-track { gap: .6rem; padding: .3rem .3rem .7rem; margin-inline: -.3rem; }
	.quote-slider .quote { padding: 1.15rem 1.05rem 1.2rem; gap: 5px; }
	.quote-slider .quote > .ico { width: 21px; height: 21px; }
	.quote-slider figcaption { gap: .6rem; margin-bottom: .25rem; padding-bottom: .75rem; }
	.quote-slider .avatar { width: 38px; height: 38px; font-size: .8rem; }
	.quote-slider figcaption b { font-size: .9375rem; }
	.quote-slider figcaption small { font-size: .78rem; }
	.q-who .q-stars { font-size: .8125rem; }
	.quote-controls { margin-top: .9rem; gap: .8rem; }
	.q-arrow { width: 40px; height: 40px; }

	/* --- 1d4. Footer social icons: slightly smaller.
	 * 40px -> 34px. Held at 34 rather than going smaller: these are icon-only
	 * links with no text label, so they get no help from an inline-text exemption
	 * and must stay above WCAG 2.5.8's 24x24 minimum with room to spare. */
	.socials { gap: .45rem; }
	.socials a { width: 34px; height: 34px; }
	.socials a .ico { width: 16px; height: 16px; }

	/* --- 1e. FAQ: tighter rows on phones.
	 * The row height came almost entirely from .faq-q's 1.35rem of vertical
	 * padding (43px of the ~64px row), so that is what comes down. Kept at .9rem
	 * rather than lower because the question is the tap target for the accordion
	 * and has to stay comfortably above 44px — measured at ~48px after this. */
	.faq-q {
		font-size: 15px;
		font-weight: 500;
		gap: .75rem;
		padding: .9rem 0;
	}
	.faq-q .ico { width: 18px; height: 18px; }
	.faq-a p { padding-bottom: 1rem; }

	/* --- 1f. Sticky action bar: slightly smaller. */
	.action-bar { padding: .4rem .4rem calc(.4rem + env(safe-area-inset-bottom)); gap: .4rem; }
	.action-bar a { padding: .6rem; font-size: .8125rem; gap: .4rem; }
	.action-bar a .ico { width: 15px; height: 15px; }
	/* The bar is fixed, so the body padding that reserves room for it must shrink
	 * with it or the page ends in a band of dead space. */
	body.has-action-bar { padding-bottom: 3.8rem; }

	/* --- 2. Minimum readable label size.
	 * Four labels rendered below 12px on a phone: the footer brand tagline at
	 * 9.84px, the "Popular" plan flag at 10.88px, the hero-art captions at
	 * 11.52px and the testimonial attributions at 11.67px. None is decorative —
	 * they all carry information — so each is lifted to at least 12px. */
	.site-footer .brand-tag { font-size: .75rem; letter-spacing: .08em; }
	.plan-flag { font-size: .75rem; }
	/* `.float-card span small` — NOT `.float-card small`. The base rule is
	 * `.float-card span small` at (0,1,2); a (0,1,1) override loses to it no
	 * matter how late it appears in the sheet, and the label silently stayed at
	 * 11.52px while the rule looked correct. Both hero labels ("24x7 power
	 * backup" and "Pune 411048") are float-cards. */
	.quote figcaption small,
	.float-card span small,
	.map-plate small { font-size: .75rem; }

	/* --- 3. Footer bottom bar.
	 * It was a single wrapping flex row, so six links ragged across three lines
	 * with no clear grouping, and every one measured 15-20px tall — under the
	 * WCAG 2.5.8 AA 24x24 minimum. Now a two-column grid with real hit areas:
	 * the tap target grows without the text moving, because the padding is
	 * vertical and the row gap absorbs it. */
	.footer-bottom {
		display: block;
		padding-block: 1.25rem 1.5rem;
	}
	.footer-bottom > p { margin-bottom: .9rem; }
	.footer-bottom ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .15rem .9rem;
		align-items: stretch;
	}
	.footer-bottom li { display: flex; }
	.footer-bottom li > a {
		display: inline-flex;
		align-items: center;
		gap: .35rem;
		min-height: 24px;
		padding-block: .3rem;
		line-height: 1.3;
	}

	/* --- 3b. Breadcrumb links.
	 * "Home" in the page-hero breadcrumb measured 34x20 — under the 24px minimum.
	 * The three other sub-24px links on that page are inline inside a sentence,
	 * which WCAG 2.5.8 explicitly exempts, so they are left alone. */
	.crumbs a {
		display: inline-flex;
		align-items: center;
		min-height: 24px;
	}

	/* --- 4. The legal links sit alone on the last row.
	 * With an odd number of items the grid leaves a hole; letting the final item
	 * span both columns keeps the block rectangular. */
	.footer-bottom li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Very small phones (Galaxy Fold outer screen and similar). The two-column
   footer grid stops being readable once each column is under ~130px. */
@media (max-width: 22.5rem) {
	.footer-bottom ul { grid-template-columns: 1fr; }
}

/* ============================================================ 29. UPI payment sheet
 *
 * Opened by the Day Pass card's [data-pay-open] button. Every selector below is
 * namespaced `.pay-*` and appears nowhere else in this stylesheet, so -- unlike
 * section 28, which MUST stay last because it re-uses live selectors -- sitting
 * after it cannot silently outrank an earlier rule. Its own phone overrides are
 * at the bottom of THIS section for the same reason: keep the pair together.
 *
 * Marker for the deploy verifier: 29. UPI payment sheet
 */

/* The sheet is display:flex, and an author `display` beats the UA's [hidden]
   rule at any specificity, so `hidden` has to be re-asserted here or the sheet
   ships visible on every page load. */
.pay-sheet[hidden] { display: none !important; }

.pay-sheet {
	position: fixed; inset: 0; z-index: 150;
	display: flex; align-items: center; justify-content: center;
	padding: var(--gutter);
}

.pay-veil {
	position: absolute; inset: 0;
	background: rgba(22,19,14,.55);
	backdrop-filter: blur(2px);
	animation: pay-fade .2s var(--ease);
}

.pay-card {
	position: relative;
	width: min(26rem, 100%);
	max-height: calc(100dvh - 2 * var(--gutter));
	overflow-y: auto;
	/* Stops a flick inside the card from scrolling the page behind it. The page
	   itself is deliberately NOT locked: locking `html` reserves the scrollbar
	   away and shifts the fixed header, which this theme has been bitten by. */
	overscroll-behavior: contain;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-lg);
	padding: 1.9rem 1.7rem 1.6rem;
	text-align: center;
	animation: pay-rise .26s var(--ease);
}

@keyframes pay-fade { from { opacity: 0; } }
@keyframes pay-rise { from { opacity: 0; transform: translateY(14px); } }

.pay-close {
	position: absolute; top: .55rem; right: .55rem;
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 100px; color: var(--muted);
	transition: background .2s var(--ease), color .2s var(--ease);
}
.pay-close:hover { background: var(--paper-2); color: var(--ink); }

.pay-card h3 {
	font-family: var(--ff-display);
	font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
	margin: .3rem 0 .5rem;
}
.pay-sub { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0 0 1.25rem; }

/* Revealed by app.js only on a UA that can actually open a UPI app. On desktop
   the same href resolves to nothing at all, so it must never be shown there. */
.pay-app { display: none; width: 100%; justify-content: center; margin-bottom: 1.25rem; }
.is-upi-app .pay-app { display: inline-flex; }

.pay-on-phone { display: none; }
.is-upi-app .pay-on-desktop { display: none; }
.is-upi-app .pay-on-phone { display: inline; }

.pay-qr { margin: 0 0 1.15rem; }
.pay-qr img {
	display: block; margin: 0 auto;
	width: 196px; height: 196px;
	/* White, not paper: a QR wants the highest contrast it can get, and every
	   scanner is calibrated against a white quiet zone. */
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	padding: 10px;
}
.pay-qr-note {
	font-size: var(--fs-xs); color: var(--muted);
	margin: .7rem auto 0; max-width: 20rem; line-height: 1.5;
}

.pay-vpa {
	display: flex; align-items: center; justify-content: center; gap: .55rem;
	flex-wrap: wrap;
	background: var(--paper-2);
	border-radius: 100px;
	padding: .45rem .5rem .45rem 1rem;
	margin-bottom: 1.1rem;
}
.pay-vpa-label {
	font-size: var(--fs-xs); font-weight: 600; color: var(--muted);
	text-transform: uppercase; letter-spacing: .06em;
}
.pay-vpa-id {
	font-family: var(--ff-text);
	font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
	word-break: break-all;
}
.pay-copy {
	min-height: 32px; padding: .35rem .85rem;
	border-radius: 100px;
	background: var(--ink); color: var(--paper);
	font-size: var(--fs-xs); font-weight: 600;
	transition: background .2s var(--ease);
}
.pay-copy:hover { background: var(--forest); }
.pay-copy.is-done { background: var(--forest); }

.pay-fine {
	font-size: var(--fs-xs); color: var(--muted);
	line-height: 1.55; margin: 0 0 1rem;
}
.pay-fine strong { color: var(--ink-soft); font-weight: 600; }

.pay-wa {
	display: inline-flex; align-items: center; gap: .4rem;
	min-height: 24px;
	font-size: var(--fs-sm); font-weight: 600; color: var(--forest);
}
.pay-wa:hover { color: var(--forest-2); }
.pay-wa .ico { transition: transform .28s var(--ease); }
.pay-wa:hover .ico { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
	.pay-veil, .pay-card { animation: none; }
}

/* --- Phones. Kept inside section 29 on purpose (see the header note). */
@media (max-width: 40rem) {
	.pay-card { padding: 1.5rem 1.15rem 1.25rem; border-radius: var(--r); }
	.pay-card h3 { font-size: 1.3rem; }
	.pay-sub { font-size: .8125rem; margin-bottom: 1rem; }
	.pay-qr img { width: 168px; height: 168px; }
	/* The pass is bought on a phone, in the UPI app -- the QR is the fallback
	   there, not the headline, so it gives up the space first. */
	.pay-qr { margin-bottom: .95rem; }
	.pay-vpa { padding: .4rem .4rem .4rem .8rem; gap: .4rem; }
	.pay-vpa-id { font-size: .8125rem; }
	.pay-copy { min-height: 32px; }
}
