/* Sofhu Majlis — main stylesheet. Mobile-first; breakpoints at 640 / 900 / 1200. */

/* ---------- Tokens ---------- */
:root {
  --sand-50: #fbf7f0;
  --sand-100: #f5eddf;
  --sand-200: #eadcc5;
  --sand-300: #d9c5a3;
  --ink: #121c33;
  --ink-2: #1c2b4b;
  --ink-3: #2c3f66;
  --brass: #b3832f;
  --brass-2: #d7b46a;
  --brass-3: #f0dcae;
  --oxblood: #7d2230;
  --emerald: #1d5a4e;
  --text: #2b2823;
  --muted: #6d6557;
  --line: rgba(18, 28, 51, .12);
  --white: #fff;

  --font-display: "Fraunces", "Amiri", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(.875rem, .85rem + .12vw, .94rem); /* 14px floor: key facts, captions, card text and the footer are real reading text */
  --step-0: clamp(1rem, .96rem + .2vw, 1.09rem);
  --step-1: clamp(1.15rem, 1.07rem + .4vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.2rem + .9vw, 1.9rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.7vw, 2.7rem);
  --step-4: clamp(2.2rem, 1.5rem + 3.3vw, 4.1rem);
  --step-5: clamp(2.6rem, 1.5rem + 5.4vw, 5.6rem);

  --gutter: clamp(1rem, .6rem + 2vw, 2rem);
  --section: clamp(3.5rem, 2.4rem + 5vw, 7.5rem);
  --wrap: 1240px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --radius-lg: 26px;
  --arch: 999px 999px var(--radius) var(--radius);
  --shadow-1: 0 1px 2px rgba(18, 28, 51, .06), 0 8px 24px -12px rgba(18, 28, 51, .18);
  --shadow-2: 0 2px 4px rgba(18, 28, 51, .06), 0 28px 60px -28px rgba(18, 28, 51, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--sand-50);
  color: var(--text);
  font: 400 var(--step-0)/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--brass-2); text-underline-offset: .2em; }
a:hover { color: var(--brass); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.012em; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brass-3); color: var(--ink); }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; inset: 8px auto auto 8px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 8px; }

[dir="rtl"] body, body[dir="rtl"] { font-family: "Tajawal", var(--font-body); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: "Amiri", var(--font-display); letter-spacing: 0; line-height: 1.35; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--sand { background: var(--sand-100); }
.section--ink { background: var(--ink); color: #e9e3d6; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.grid { display: grid; gap: clamp(1rem, .6rem + 1.6vw, 2rem); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 var(--step--1)/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.section--ink .eyebrow { color: var(--brass-2); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.section--ink .lede { color: #c9c2b3; }
.section-head { display: grid; gap: .25rem; margin-bottom: clamp(1.75rem, 1rem + 3vw, 3.25rem); max-width: 780px; }
.section-head--center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head--split { max-width: none; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 3rem; } }

:root { --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l3.5 3.5h5v5L24 12l-3.5 3.5v5h-5L12 24l-3.5-3.5h-5v-5L0 12l3.5-3.5v-5h5z'/%3E%3C/svg%3E"); }

/* geometric lattice used as a quiet background */
.pattern { position: absolute; inset: 0; pointer-events: none; opacity: .07; background: var(--lattice) 0 0/72px 72px; }
.section--ink .pattern { opacity: .09; filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg); }
:root { --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72' fill='none' stroke='%23121c33' stroke-width='1'%3E%3Cpath d='M36 6l9 9h12v12l9 9-9 9v12H45l-9 9-9-9H15V45l-9-9 9-9V15h12z'/%3E%3Cpath d='M36 22l14 14-14 14-14-14z'/%3E%3Cpath d='M0 0l15 15M72 0L57 15M0 72l15-15M72 72L57 57'/%3E%3C/svg%3E"); }

.divider { display: flex; align-items: center; gap: 1rem; color: var(--brass); margin-block: 2rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); opacity: .5; }
.divider::after { transform: scaleX(-1); }
.divider i { width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: var(--step-0); line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn:hover::after { transform: translateX(120%); }
.btn--brass { --bg: linear-gradient(135deg, #c8993f, #a87624); --fg: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.section--ink .btn--ghost, .hero .btn--ghost { --fg: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--wa { --bg: #128c4a; }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: var(--step--1); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--brass-2); padding-bottom: .15rem; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
[dir="rtl"] .link-arrow::after { content: "←"; }
.link-arrow:hover::after { transform: translateX(5px); }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-5px); }
.section--ink .link-arrow { color: #fff; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #e8dfca; font-size: var(--step--1); font-weight: 600; overflow: hidden; }
.topbar__track { display: flex; gap: 3rem; width: max-content; padding-block: .55rem; animation: marquee 38s linear infinite; }
.topbar__track span { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; }
.topbar__track span::before { content: ""; width: 10px; height: 10px; background: var(--brass-2); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* In RTL the track is anchored to the right and overflows left, so it has to travel right (reversing the LTR keyframe left the bar empty for half of every loop). */
[dir="rtl"] .topbar__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(251, 247, 240, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, transform .4s var(--ease); }
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(18, 28, 51, .5); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 600 1.55rem/1 var(--font-display); letter-spacing: -.02em; }
.brand__mark { width: 30px; height: 30px; background: linear-gradient(135deg, var(--brass-2), var(--brass)); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand img { max-height: 40px; width: auto; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions .btn { display: none; }
.burger { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink); }

@media (min-width: 1200px) {
  :root { --header-h: 78px; }
  .burger { display: none; }
  .header-actions .btn { display: inline-flex; }
  .nav { display: block; }
  .nav > ul { display: flex; gap: .25rem; }
  .nav > ul > li { position: relative; }
  .nav a { display: block; padding: .7rem .85rem; text-decoration: none; font-weight: 600; font-size: .96rem; color: var(--ink); border-radius: 8px; }
  .nav > ul > li > a { position: relative; }
  .nav > ul > li > a::after { content: ""; position: absolute; inset: auto .85rem .35rem; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .nav > ul > li:hover > a::after, .nav > ul > li.current-menu-item > a::after { transform: scaleX(1); }
  .nav .sub-menu { position: absolute; top: 100%; inset-inline-start: 0; min-width: 260px; padding: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease); }
  .nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
  .nav .sub-menu a { font-weight: 500; }
  .nav .sub-menu a:hover { background: var(--sand-100); color: var(--ink); }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(18, 28, 51, .55); opacity: 0; transition: opacity .35s; }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(88vw, 400px); background: var(--sand-50); padding: 1.25rem var(--gutter) 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; gap: 1rem; }
[dir="rtl"] .drawer__panel { transform: translateX(-100%); }
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { align-self: flex-end; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer nav > ul > li { border-bottom: 1px solid var(--line); }
.drawer nav a { display: block; padding: .95rem 0; text-decoration: none; font: 500 1.35rem/1.2 var(--font-display); color: var(--ink); }
.drawer .sub-menu { padding: 0 0 .75rem; }
.drawer .sub-menu a { font: 500 1rem/1.3 var(--font-body); padding: .5rem 0 .5rem 1rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #efe9dc; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; opacity: .42; animation: kenburns 22s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 80% 10%, rgba(18, 28, 51, .2), rgba(18, 28, 51, .92) 70%), linear-gradient(180deg, rgba(18, 28, 51, .5), var(--ink)); }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1.5%); } }
.hero__inner { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 2rem + 6vw, 7rem) clamp(3rem, 2rem + 5vw, 6rem); align-items: center; }
.hero h1 { color: #fff; font-size: var(--step-5); line-height: 1.02; margin-bottom: .45em; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--brass-2); }
.hero .lede { color: #d5cdbd; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__cta .btn { flex: 1 1 220px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; padding: 0; list-style: none; font-size: var(--step--1); font-weight: 600; color: #cfc7b6; }
.hero__meta li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta li::before { content: ""; width: 12px; height: 12px; background: var(--brass-2); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; }
.hero__art { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 1rem; align-items: end; max-width: 620px; margin-inline: auto; width: 100%; }
.arch { border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow-2); background: var(--ink-2); position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4.2; transition: transform 1.4s var(--ease); }
.arch:hover img { transform: scale(1.06); }
.arch--outline::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(240, 220, 174, .55); border-radius: inherit; pointer-events: none; }
.hero__art .arch:nth-child(2) { transform: translateY(-12%); }
.hero__badge { position: absolute; inset-inline-start: -4%; bottom: 8%; background: var(--sand-50); color: var(--ink); border-radius: 16px; padding: .85rem 1.1rem; box-shadow: var(--shadow-2); display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: var(--step--1); line-height: 1.25; animation: float 6s ease-in-out infinite; }
.hero__badge b { font: 600 1.9rem/1 var(--font-display); color: var(--brass); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.08fr .92fr; gap: 4rem; }
  .hero__cta .btn { flex: 0 0 auto; }
}

/* compact hero for inner pages */
.page-hero { background: var(--ink); color: #e9e3d6; position: relative; overflow: hidden; isolation: isolate; }
.page-hero__inner { display: grid; gap: 2rem; padding-block: clamp(2.25rem, 1.5rem + 4vw, 5rem); align-items: center; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero .lede { color: #cfc7b6; }
/* The photos are landscape room shots: a square arch on desktop and a 4:3 frame on phones keep the
   seating in the picture (the old 4:5 portrait box showed wall and rug) and take a third less height. */
.page-hero__media { border-radius: var(--arch); overflow: hidden; max-width: 460px; width: 100%; margin-inline: auto; box-shadow: var(--shadow-2); background: var(--ink-2); }
.page-hero__media img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
@media (max-width: 899px) {
  .page-hero__inner { gap: 1.5rem; }
  .page-hero__media { max-width: 560px; border-radius: 120px 120px var(--radius) var(--radius); }
  .page-hero__media img { aspect-ratio: 4 / 3; }
}
@media (min-width: 900px) { .page-hero__inner { grid-template-columns: 1.2fr .8fr; gap: 4rem; } }

.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.25rem; }
/* One line, always: the trail never wraps into a block with a stranded "/". The current page gives
   way first (it is the H1 right below) and is dropped on phones once the trail has two links. */
.crumbs ol { list-style: none; display: flex; flex-wrap: nowrap; gap: 0 .6rem; margin: 0; padding: 0; min-width: 0; overflow: hidden; }
.crumbs li { flex: none; white-space: nowrap; }
.crumbs li + li::before { content: "/"; margin-inline-end: .6rem; opacity: .5; }
.crumbs li[aria-current] { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { text-decoration: none; display: inline-block; padding-block: .75rem; margin-block: -.75rem; } /* 44px tap height without moving the text */
@media (max-width: 639px) {
  .crumbs ol { overflow-x: auto; scrollbar-width: none; }
  .crumbs ol::-webkit-scrollbar { display: none; }
  .crumbs li[aria-current]:nth-child(n+3) { display: none; }
}
.page-hero .crumbs { color: #b9b1a0; }

/* ---------- Trust strip ---------- */
.trust { background: var(--sand-100); border-block: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.trust li { padding: 1.25rem .75rem; text-align: center; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust li:nth-child(2n) { border-inline-end: 0; }
.trust li:nth-last-child(-n+2) { border-bottom: 0; }
.trust b { display: block; font: 500 var(--step-2)/1.1 var(--font-display); color: var(--ink); }
.trust span { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(4, 1fr); } .trust li { border-bottom: 0; padding: 1.75rem 1rem; } .trust li:nth-child(2n) { border-inline-end: 1px solid var(--line); } .trust li:last-child { border-inline-end: 0; } }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); text-decoration: none; color: inherit; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); color: inherit; }
.card__media { overflow: hidden; aspect-ratio: 4/3; background: var(--sand-200); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 1.25rem 1.35rem 1.5rem; display: grid; gap: .4rem; }
.card__kicker { font: 700 .8125rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.card__title { font: 500 var(--step-1)/1.2 var(--font-display); color: var(--ink); margin: 0; }
.card__text { font-size: var(--step--1); color: var(--muted); margin: 0; line-height: 1.55; }

/* tall style card with arch */
.style-card { position: relative; display: block; text-decoration: none; color: #fff; border-radius: var(--arch); overflow: hidden; aspect-ratio: 3/4.3; background: var(--ink-2); isolation: isolate; }
.style-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.style-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 52%, rgba(18, 28, 51, .5) 74%, rgba(18, 28, 51, .92)); } /* the seating sits in the lower half: keep it out of the dark */
.style-card:hover img { transform: scale(1.08); }
.style-card:hover { color: #fff; }
.style-card__body { position: absolute; inset: auto 0 0; padding: 1.25rem 1.25rem 1.4rem; }
.style-card__name { font: 500 var(--step-2)/1.1 var(--font-display); margin: 0 0 .2rem; color: #fff; }
.style-card__native { font-family: "Amiri", serif; font-size: 1.15rem; color: var(--brass-2); }
.style-card__go { position: absolute; top: 18%; inset-inline-end: 12%; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease); }
.style-card:hover .style-card__go { transform: none; }

/* horizontal scroller (snap) */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem var(--gutter) 1.5rem; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
.scroller-nav { display: none; gap: .5rem; }
.scroller-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; transition: .25s; }
.scroller-nav button:hover { background: var(--ink); color: #fff; }
.section--ink .scroller-nav button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
@media (min-width: 900px) { .scroller-nav { display: flex; } .scroller { grid-auto-columns: 290px; } }

/* ---------- Split feature ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); } .split--flip > :first-child { order: 2; } }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-2); width: 100%; object-fit: cover; }
.split__media--arch img { border-radius: var(--arch); aspect-ratio: 4/5; }
.split__media .float-card { position: absolute; inset-block-end: -1.25rem; inset-inline-start: -.5rem; background: #fff; border-radius: 16px; padding: 1rem 1.2rem; box-shadow: var(--shadow-2); max-width: 230px; font-size: var(--step--1); line-height: 1.4; }
.float-card b { display: block; font: 600 1.9rem/1 var(--font-display); color: var(--brass); margin-bottom: .2rem; }

.checks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .85rem; }
/* Direct children only: old articles nest plain lists inside a check item, and those must stay plain lists. */
.checks > li { display: grid; grid-template-columns: 28px 1fr; gap: .85rem; align-items: start; }
.checks > li > * { min-width: 0; }
.checks li ul, .checks li ol { margin: .5rem 0 0; padding-inline-start: 1.2em; }
.checks > li::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--brass-3) var(--check) center/14px no-repeat; margin-top: .1rem; }
:root { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5a1c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E"); }
.checks b { color: var(--ink); }

/* foam layers illustration */
.layers { display: grid; gap: 6px; padding: 1.5rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.layers div { border-radius: 10px; padding: .9rem 1.1rem; font-weight: 700; font-size: var(--step--1); display: flex; justify-content: space-between; gap: 1rem; transform-origin: left; }
.layers div:nth-child(1) { background: var(--oxblood); color: #fff; }
.layers div:nth-child(2) { background: var(--sand-200); }
.layers div:nth-child(3) { background: linear-gradient(135deg, #f1d98d, #d7b46a); padding-block: 1.8rem; }
.layers div:nth-child(4) { background: #8a6a45; color: #fff; }
.layers span { font-weight: 500; opacity: .85; }

/* ---------- Stats / counters ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
.stats b { display: block; font: 500 var(--step-4)/1 var(--font-display); color: var(--brass-2); }
.stats span { font-size: var(--step--1); color: #c9c2b3; font-weight: 600; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Gallery ---------- */
.gallery { columns: 2; column-gap: .75rem; }
.gallery > * { break-inside: avoid; margin: 0 0 .75rem; }
@media (min-width: 900px) { .gallery { columns: 3; column-gap: 1rem; } .gallery > * { margin-bottom: 1rem; } .gallery--4 { columns: 4; } }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand-200); cursor: zoom-in; }
.gallery img { width: 100%; transition: transform 1.2s var(--ease), filter .5s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 2rem .9rem .75rem; background: linear-gradient(transparent, rgba(18, 28, 51, .85)); color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; transform: none; }
.filter-bar { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .75rem; margin-bottom: 1.25rem; scrollbar-width: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: var(--step--1); text-decoration: none; color: var(--ink); cursor: pointer; transition: .25s; white-space: nowrap; }
.chip:hover, .chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--ink .chip { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); }
.section--ink .chip:hover, .section--ink .chip.is-active { background: var(--brass-2); color: var(--ink); border-color: var(--brass-2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(10, 15, 28, .95); display: none; grid-template-rows: 1fr auto; place-items: center; padding: 1rem; }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 7rem); border-radius: 8px; object-fit: contain; }
.lightbox p { color: #e8dfca; font-size: var(--step--1); text-align: center; margin: .75rem 0 0; max-width: 70ch; }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.4rem; cursor: pointer; }
.lightbox [data-close] { top: 1rem; inset-inline-end: 1rem; }
.lightbox [data-prev] { inset-inline-start: 1rem; top: 50%; }
.lightbox [data-next] { inset-inline-end: 1rem; top: 50%; }

/* before / after */
.ba { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); --pos: 50%; touch-action: pan-y; user-select: none; }
.ba img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba__after img { height: 100%; }
.ba__handle { position: absolute; inset-block: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); }
.ba__handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 700; box-shadow: var(--shadow-2); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__label { position: absolute; top: 1rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(18, 28, 51, .75); color: #fff; font: 700 .75rem/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.ba__label--b { left: 1rem; } .ba__label--a { right: 1rem; }

/* stories (vertical video) */
.story { position: relative; aspect-ratio: 9/16; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); }
.story video, .story img { width: 100%; height: 100%; object-fit: cover; }
.story__cap { position: absolute; inset: auto 0 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(18, 28, 51, .9)); color: #fff; font-weight: 700; font-size: var(--step--1); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; position: relative; padding: 1.5rem 1.35rem 1.6rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.step::before { content: "0" counter(step); display: block; font: 500 var(--step-3)/1 var(--font-display); color: var(--brass-2); margin-bottom: .75rem; }
.step h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.step p { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* ---------- Locations ---------- */
.region-tabs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1.5rem; }
.region-panel { display: none; }
.region-panel.is-active { display: block; animation: fade-up .5s var(--ease); }
.place-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 640px) { .place-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .place-list { grid-template-columns: repeat(5, 1fr); } }
.place-list a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; font-weight: 600; font-size: var(--step--1); color: #efe9dc; transition: .25s; }
.place-list a::after { content: "→"; opacity: .4; transition: .25s; }
[dir="rtl"] .place-list a::after { content: "←"; }
.place-list a:hover { background: var(--brass-2); color: var(--ink); border-color: var(--brass-2); }
.place-list a:hover::after { opacity: 1; transform: translateX(3px); }
.section:not(.section--ink) .place-list a { border-color: var(--line); color: var(--ink); background: #fff; }
.section:not(.section--ink) .place-list a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; box-shadow: var(--shadow-1); display: grid; gap: 1rem; align-content: start; }
.quote__stars { color: var(--brass); letter-spacing: .2em; }
.quote blockquote { margin: 0; font: 400 var(--step-1)/1.45 var(--font-display); color: var(--ink); }
.quote cite { font-style: normal; font-size: var(--step--1); color: var(--muted); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .6rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow-1); border-color: var(--brass-2); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font: 500 var(--step-1)/1.3 var(--font-display); color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sand-100); display: grid; place-items: center; font: 400 1.3rem/1 var(--font-body); transition: transform .4s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brass-3); }
.faq .faq__a { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq .faq__a > :last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--ink), var(--ink-3)); color: #efe9dc; padding: clamp(2rem, 1.2rem + 4vw, 4.5rem); display: grid; gap: 1.5rem; isolation: isolate; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 0; color: #cfc7b6; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-band__actions .btn { flex: 1 1 200px; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; background: var(--lattice) 0 0/72px 72px; filter: invert(1); }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; inset: -160px -120px auto auto; background: radial-gradient(closest-side, rgba(215, 180, 106, .5), transparent); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr auto; align-items: center; } .cta-band__actions .btn { flex: 0 0 auto; } }

/* ---------- Prose (articles, landing copy) ---------- */
.prose { font-size: var(--step-0); }
.prose > * { max-width: 100%; }
.prose h2 { font-size: var(--step-3); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h4 { margin-top: 1.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brass); font-weight: 700; }
.prose a { color: var(--ink); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 2em 0; padding: 1.25rem 1.5rem; border-inline-start: 3px solid var(--brass); background: var(--sand-100); border-radius: 0 var(--radius) var(--radius) 0; font: 400 var(--step-1)/1.5 var(--font-display); color: var(--ink); }
.prose blockquote > :last-child { margin: 0; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 2.2em 0; }
.prose figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .6rem; text-align: center; }
.prose figure.is-wide { margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 1000px) { .prose figure.is-wide { margin-inline: -110px; } }
/* Tables. Two- and three-column tables fit a phone and simply wrap; only tables with four or more
   columns keep a minimum width and scroll inside their wrapper (main.js fades the edge that has more). */
.prose .table-wrap, .prose .wp-block-table { overflow-x: auto; margin: 2em 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 0; }
.prose table:has(tr > :nth-child(4)) { min-width: 560px; }
/* `border: 0` first: the core block stylesheet draws a 1px currentColor box around every cell and a 3px bar under the header. */
.prose th, .prose td, .prose .wp-block-table th, .prose .wp-block-table td { padding: .85rem 1rem; text-align: start; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; }
.prose .wp-block-table thead { border-bottom: 0; }
.prose thead th, .prose .wp-block-table thead th { background: var(--ink); color: #fff; font-weight: 700; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td a { display: inline-block; padding-block: .3rem; }
@media (max-width: 639px) {
  .prose th, .prose td, .prose .wp-block-table th, .prose .wp-block-table td { padding: .7rem .65rem; }
  .prose tr > :first-child { width: 27%; } /* row labels keep a usable width instead of collapsing to their longest syllable */
}
.prose .is-scrollable:not(.is-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
[dir="rtl"] .prose .is-scrollable:not(.is-end) { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); }
.prose tbody tr:nth-child(even) { background: var(--sand-50); }
.prose .fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 2.2em 0; }
.prose .fig-pair figure { margin: 0; }
.prose .fig-pair img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* the short, citable answer at the top of every landing page */
.answer { position: relative; background: #fff; border: 1px solid var(--brass-2); border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.5rem 1.6rem; box-shadow: var(--shadow-1); margin-bottom: 2.5rem; }
.answer__label { font: 700 .8125rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: .6rem; display: block; }
.answer p { font-size: var(--step-1); line-height: 1.55; color: var(--ink); margin: 0; }

.keyfacts { display: grid; gap: 0; margin: 2em 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.keyfacts div { display: grid; grid-template-columns: minmax(6.5rem, 36%) 1fr; gap: .9rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .9375rem; }
@media (min-width: 640px) { .keyfacts div { grid-template-columns: 220px 1fr; gap: 1rem; padding: .9rem 1.2rem; } }
.keyfacts div:last-child { border-bottom: 0; }
.keyfacts dt { font-weight: 700; color: var(--ink); }
.keyfacts dd { margin: 0; color: #4f483d; } /* these are the facts a buyer scans first: body colour, not footnote grey */

/* Printed closed (main.js opens it from 900px). The summary is a full-height control with a chevron; links are thumb-sized rows. */
.toc { background: var(--sand-100); border-radius: var(--radius-lg); padding: .35rem 1.5rem; margin-bottom: 2.5rem; }
.toc summary { font-weight: 700; cursor: pointer; color: var(--ink); min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-inline-end: .25rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.toc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.toc ol { margin: 0 0 .6rem; padding-inline-start: 1.2em; }
.toc li { margin: 0; }
.toc a { display: block; padding-block: .55rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 900px) { .toc ol { columns: 2; column-gap: 2.5rem; } .toc li { break-inside: avoid; } }

.article-layout { display: grid; gap: 3rem; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; align-items: start; } .article-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card { background: var(--ink); color: #e9e3d6; border-radius: var(--radius-lg); padding: 1.5rem; display: grid; gap: .9rem; }
.aside-card h3 { color: #fff; font-size: var(--step-1); margin: 0; }
.aside-card p { font-size: var(--step--1); margin: 0; color: #c9c2b3; }
.aside-card .btn { width: 100%; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: var(--step--1); color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.page-hero .post-meta { color: #b9b1a0; }
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, var(--brass), var(--brass-2)); transform-origin: left; transform: scaleX(0); z-index: 100; }
[dir="rtl"] .progress { transform-origin: right; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination .page-numbers { min-width: 46px; height: 46px; padding: 0 .8rem; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; background: #fff; }
.pagination .current, .pagination .page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: var(--step--1); font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(179, 131, 47, .15); }
.shape-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.shape-pick label { position: relative; display: grid; place-items: center; gap: .4rem; padding: 1rem .5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 700; font-size: var(--step--1); transition: .25s; }
.shape-pick input { position: absolute; opacity: 0; }
.shape-pick label:has(input:checked) { border-color: var(--brass); background: var(--brass-3); box-shadow: 0 0 0 3px rgba(179, 131, 47, .18); }
.shape-pick svg { width: 54px; height: 44px; stroke: var(--ink); fill: none; stroke-width: 6; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c2b3; padding-top: var(--section); position: relative; overflow: hidden; font-size: var(--step--1); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--brass-2); }
.site-footer h4 { color: #fff; font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .footer-grid > :first-child { grid-column: auto; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.footer-bottom { margin-top: 3.5rem; padding-block: 1.5rem calc(1.5rem + 76px); border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
@media (min-width: 900px) { .footer-bottom { padding-bottom: 1.5rem; } }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; transition: .25s; }
.social a:hover { background: var(--brass-2); color: var(--ink); border-color: var(--brass-2); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* sticky mobile action bar */
.actionbar { position: fixed; inset: auto 0 0; z-index: 70; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(251, 247, 240, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .45s var(--ease); }
.actionbar.is-visible { transform: none; }
.actionbar .btn { min-height: 50px; padding-inline: .75rem; font-size: .95rem; }
@media (min-width: 900px) { .actionbar { display: none; } }
.wa-fab { display: none; }
@media (min-width: 900px) { .wa-fab { position: fixed; inset: auto 24px 24px auto; z-index: 70; width: 60px; height: 60px; border-radius: 50%; background: #128c4a; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-2); transition: transform .35s var(--ease); } .wa-fab:hover { transform: scale(1.08); color: #fff; } .wa-fab svg { width: 30px; height: 30px; fill: currentColor; } [dir="rtl"] .wa-fab { inset: auto auto 24px 24px; } }

/* ---------- Motion ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal="left"] { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal="arch"] { opacity: 1; transform: none; }
.js [data-reveal="arch"] > img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease), transform 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
.js [data-reveal="arch"].is-in > img { clip-path: inset(0 0 0 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .layers div { transform: scaleX(.2); opacity: 0; transition: transform .9s var(--ease), opacity .6s; transition-delay: calc(var(--i, 0) * 120ms); }
.js .layers.is-in div { transform: none; opacity: 1; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .18em; margin-bottom: -.18em; }
.js .split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--w) * 60ms + 150ms); }
.js .split-words.is-in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal] > img, .js .layers div, .js .split-words .w > span { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- WordPress bits ---------- */
.alignwide { margin-inline: calc(var(--gutter) * -1); }
.aligncenter { margin-inline: auto; text-align: center; }
.wp-caption, .wp-block-image { max-width: 100%; }
.wp-block-image img { border-radius: var(--radius); }
.wp-block-embed iframe, .prose iframe { max-width: 100%; border-radius: var(--radius); }
.legacy-content img { border-radius: var(--radius); margin-block: 1.25rem; }
.legacy-content .legacy-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-block: 1.5rem; }
@media (min-width: 900px) { .legacy-content .legacy-gallery { grid-template-columns: repeat(3, 1fr); } }
.legacy-content .legacy-gallery img { margin: 0; aspect-ratio: 1; object-fit: cover; width: 100%; }

@media print { .site-header, .topbar, .actionbar, .wa-fab, .site-footer, .cta-band, .drawer { display: none !important; } body { background: #fff; } }

/* ==========================================================================
   Template additions — small helpers used by the PHP templates.
   Everything above this line is the design system; keep this block short.
   ========================================================================== */
.section-head__aside { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.section-head__aside .lede { margin: 0; }
.section-head__link { margin: 0; justify-self: end; }
.section-more { text-align: center; margin: 2rem 0 0; }
.pattern--light { filter: invert(1); }
.article-main { min-width: 0; }

/* inner-page hero */
.page-hero .pattern { z-index: -1; opacity: .09; filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg); }
.page-hero .btn--ghost { --fg: #fff; border-color: rgba(255, 255, 255, .35); }
.page-hero__inner--solo { grid-template-columns: minmax(0, 1fr); }
.page-hero__inner--solo > div { max-width: 860px; }
.page-hero__native { font-size: 1.5rem; margin: -.2rem 0 1rem; }

/* place lists: names without a page yet, and grouped lists on location pages */
.place-list span { display: flex; align-items: center; padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; font-size: var(--step--1); color: #efe9dc; }
.section:not(.section--ink) .place-list span { border-color: var(--line); color: var(--ink); background: #fff; }
.place-group + .place-group, .place-group__all { margin-top: 2rem; }
.place-group h3 { font-size: var(--step-1); }

/* search, empty states */
.search-form { display: flex; align-items: end; gap: .75rem; }
.search-form .field { flex: 1; }
.search-block { max-width: var(--wrap-narrow); margin-bottom: 2.5rem; }
.quick-links { margin-top: 1.5rem; }
.empty-state { margin-inline: 0; }

/* quote form */
.field--group { border: 0; padding: 0; margin: 0; min-width: 0; }
.field--group legend { padding: 0; margin-bottom: .35rem; font-size: var(--step--1); font-weight: 700; color: var(--ink); }
.field__hint { font-size: var(--step--1); color: var(--muted); margin: 0; }
.form__row--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .form__row--4 { grid-template-columns: repeat(4, 1fr); } }
.form > .btn { justify-self: start; }
.quote-intro { margin-bottom: 2rem; }

/* comments */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments__list, .comments__list .children { list-style: none; padding: 0; margin: 0 0 2rem; }
.comments__list .children { padding-inline-start: 1.5rem; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-form label { display: block; font-size: var(--step--1); font-weight: 700; color: var(--ink); }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; }

/* WooCommerce: only what is needed to sit inside the design */
.woocommerce ul.products li.product a img, .woocommerce div.product div.images img { border-radius: var(--radius); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 500 var(--step-1)/1.2 var(--font-display); color: var(--ink); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--brass); font-weight: 700; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt { border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; padding: .85rem 1.4rem; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--ink-3); color: #fff; }
.checks li > div > :last-child, .legacy-content .checks p:last-child { margin-bottom: 0; }
.legacy-block + .legacy-block { margin-top: 1.5rem; }
.legacy-content h2 { font-size: var(--step-2); margin-top: 1.8em; }
.legacy-video video { width: 100%; border-radius: var(--radius-lg); }
.legacy-figure { margin: 1.5rem 0; }
.scroller--stories { grid-auto-columns: min(62vw, 250px); }
.scroller--stories .story { margin: 0; }

/* Header safety: the bar never wraps or grows, whatever menu is assigned. */
.nav > ul { flex-wrap: nowrap; white-space: nowrap; }
.site-header__inner { flex-wrap: nowrap; }
.nav { min-width: 0; overflow: hidden; }
.nav:hover, .nav:focus-within { overflow: visible; }

/* Brand logo: the artwork has generous padding, so it is shown larger and pulled in. */
/* The side padding inside the artwork is only a few pixels: the old -10px / -14px pull put the logo left of the content edge. */
.brand img { max-height: 76px; width: auto; margin-block: -14px; margin-inline-start: -2px; }
@media (min-width: 1200px) { .brand img { max-height: 96px; margin-block: -18px; } }
.site-footer .brand img { max-height: 110px; margin: -18px 0 -10px; margin-inline-start: -3px; }
.card .link-arrow { justify-self: start; margin-top: .5rem; }
#families .card__title { font-size: var(--step-2); }
#families .card__text { font-size: var(--step-0); }
.aside-card__title { color: #fff; font-size: var(--step-1); margin: 0; }
.aside-card p a { color: #fff; font-weight: 700; text-decoration: none; font-size: var(--step-0); }
.card__title--contact { font-size: var(--step-1); overflow-wrap: anywhere; }

/* Hero text must never depend on JavaScript timing: it animates with CSS alone. */
.js .hero [data-reveal]:not([data-reveal="arch"]), .js .page-hero [data-reveal]:not([data-reveal="arch"]) { opacity: 1; transform: none; animation: fade-up .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
.js .hero .split-words .w > span, .js .page-hero .split-words .w > span { transform: none; animation: word-up 1s var(--ease) both; animation-delay: calc(var(--w) * 60ms + 80ms); }
@keyframes word-up { from { transform: translateY(105%); } }
.js .hero [data-reveal="arch"] > img, .js .page-hero [data-reveal="arch"] > img { clip-path: none; animation: arch-in 1.4s var(--ease) both; }
@keyframes arch-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Legacy (pre-redesign) posts and pages: calmer rhythm and framed media. */
.legacy-content { display: grid; gap: 1.35rem; }
.legacy-content > p:empty { display: none; }
.legacy-block { display: grid; gap: 1rem; }
.legacy-block + .legacy-block { margin-top: 0; }
/* The old builder picked heading levels for their looks, so h2–h6 were a random mix of sizes.
   They all read as one section-heading size; a heading directly under another becomes its sub-line. */
.legacy-content :is(h2, h3, h4, h5, h6) { font: 500 var(--step-2)/1.2 var(--font-display); color: var(--ink); margin: .75rem 0 0; }
.legacy-content :is(h2, h3, h4, h5, h6) + :is(h2, h3, h4, h5, h6) { font-size: var(--step-1); margin-top: -.6rem; color: var(--ink-3); }
.legacy-content p { margin: 0; }
.legacy-figure, .prose .legacy-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); background: var(--sand-200); }
.legacy-figure a { display: block; }
/* Whole picture on phones (tall photos and infographics were being cropped); the height cap is for wide screens only. */
.legacy-figure img, .legacy-content .legacy-figure img { display: block; width: 100%; margin: 0; border-radius: 0; }
@media (min-width: 900px) { .legacy-figure img, .legacy-content .legacy-figure img { max-height: 560px; object-fit: cover; } }
/* A grid, not CSS columns: photos run left to right in reading order (which is also the lightbox order),
   and `.prose figure` margins can no longer push the two columns out of step. */
.legacy-content .gallery { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-block: 0; }
@media (min-width: 900px) { .legacy-content .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.legacy-content .gallery > figure, .prose .legacy-content .gallery > figure { margin: 0; }
.legacy-content .gallery img { margin: 0; border-radius: 0; aspect-ratio: 1 / 1; object-fit: cover; height: 100%; }
.legacy-content .gallery.is-clipped > figure:nth-child(n+9) { display: none; }
.gallery__more { justify-self: center; }
/* No card around old checklists: on a phone the card padding plus the icon column left ~30 characters per line. */
.legacy-content .checks { margin: 0; padding: 0; gap: 1rem; }
.legacy-content .checks p + p, .legacy-content .faq__a p + p { margin-top: .75em; }
.checks > li.checks__qa { display: block; }
.checks > li.checks__qa::before { content: none; }
.legacy-content .ba, .legacy-content .legacy-video { margin-block: 0; }
/* `.legacy-content img` adds margins and rounded corners to every image, which broke the before/after slider in two. */
.legacy-content .ba img { margin: 0; border-radius: 0; }
.legacy-video, .prose .legacy-video { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); }
.legacy-video video { display: block; width: 100%; min-height: 200px; max-height: 70vh; border-radius: 0; background: var(--ink); }
.legacy-stat { display: flex; align-items: baseline; gap: .6rem; }
.legacy-stat b { font: 500 var(--step-3)/1.1 var(--font-display); color: var(--brass); }
.legacy-stat span { font-weight: 700; color: var(--ink); }
.legacy-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.legacy-cta .btn { flex: 1 1 200px; }
@media (min-width: 1100px) { .has-legacy-content .article-main .legacy-figure, .has-legacy-content .article-main .legacy-content .gallery { margin-inline: 0; } }

/* Mobile menu: full-screen sheet with collapsible groups and pinned actions. */
.drawer__panel { width: 100%; max-width: 520px; padding: 0; gap: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem var(--gutter); border-bottom: 1px solid var(--line); min-height: 64px; }
.drawer__head .brand img { max-height: 76px; }
.drawer__close { align-self: center; flex: none; width: 48px; height: 48px; display: grid; place-items: center; }
.drawer__body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: .25rem var(--gutter) 1.5rem; }
.drawer nav > ul > li { position: relative; }
.drawer nav > ul > li > a { padding: 1.05rem 0; font-size: 1.3rem; min-height: 56px; display: flex; align-items: center; }
.drawer li.has-sub > a { padding-inline-end: 64px; }
.drawer__toggle { position: absolute; inset-block-start: 4px; inset-inline-end: -8px; width: 56px; height: 48px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.drawer__toggle::before { content: ""; width: 11px; height: 11px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease); }
.drawer li.is-open > .drawer__toggle::before { transform: rotate(-135deg) translate(-2px, -2px); }
.js .drawer li.has-sub > .sub-menu { display: none; }
.js .drawer li.has-sub.is-open > .sub-menu { display: grid; animation: fade-up .3s var(--ease); }
.drawer .sub-menu { padding: 0 0 .9rem; gap: 0; border-inline-start: 2px solid var(--brass-3); margin-inline-start: .15rem; }
.drawer .sub-menu a { padding: .7rem 0 .7rem 1rem; font-size: 1.02rem; min-height: 46px; display: flex; align-items: center; color: var(--text); }
[dir="rtl"] .drawer .sub-menu a { padding: .7rem 1rem .7rem 0; }
.drawer__contact { display: grid; gap: .35rem; margin: 1.5rem 0 0; font-weight: 700; }
.drawer__contact a { text-decoration: none; color: var(--ink); min-height: 40px; display: flex; align-items: center; }
.drawer__foot { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--sand-100); }
.drawer__foot .btn { min-height: 52px; padding-inline: .75rem; }
body.drawer-open .actionbar, body.drawer-open .wa-fab { display: none; }
.admin-bar .drawer { top: 32px; } @media (max-width: 782px) { .admin-bar .drawer { top: 46px; } }

/* UX audit pass */
/* ==========================================================================
   Fixes from the 20-reviewer mobile audit (audit/FIXES.md lists them by finding).
   Rules that were simply wrong were corrected in place above; what follows are
   additions. Low specificity, logical properties, phone-first.
   ========================================================================== */

/* ---- Text sizes and tap targets ---- */
[dir="rtl"] { --step--1: clamp(.94rem, .9rem + .14vw, 1rem); } /* Tajawal runs smaller than Manrope at the same size */
[dir="rtl"] .answer__label, [dir="rtl"] .card__kicker, [dir="rtl"] .site-footer h4, [dir="rtl"] .ba__label { letter-spacing: 0; font-size: .85rem; } /* tracking breaks Arabic letter joining */
.card__text { color: #5c5548; }
.faq .faq__a { color: #4f483d; }
a.link-arrow { min-height: 44px; padding-block: .6rem .3rem; }
.place-list a::after { opacity: .7; }
.prose em, .prose i { padding-inline-end: .1em; } /* the italic is synthesised and leaned into the next word */
.prose li:has(> a:nth-of-type(4)) { line-height: 2.3; } /* lists that are rows of links (50 states) */
.prose li:has(> a:nth-of-type(4)) > a { display: inline-block; line-height: 1.3; padding: .4rem .1rem; }
html:not([dir="rtl"]) .page-hero__native { text-align: left; } /* dir="auto" would push an Arabic name to the far right of a left-aligned title */
@media (max-width: 639px) {
  .answer { padding: 1.25rem; margin-bottom: 1.5rem; }
  .answer p { font-size: 1.06rem; line-height: 1.6; }
  .keyfacts { margin: 1.5rem 0; }
  .toc { padding-inline: 1.25rem; margin-bottom: 2rem; }
  .faq summary { font-size: 1.06rem; padding: 1rem 1.1rem; }
  .faq .faq__a { padding: 0 1.1rem 1.1rem; }
  .faq summary::after { width: 36px; height: 36px; }
}
.cta-band > div:first-child { display: grid; gap: .6rem; justify-items: start; }
.cta-band .eyebrow { margin-bottom: .4rem; }

/* ---- Breadcrumb: room for the 44px link targets inside the clipped row ---- */
.crumbs ol { padding: .75rem 4px; margin: -.75rem -4px; } /* 4px: room for the focus ring */

/* ---- Reveal animations: shorter on phones, never in the way of information ---- */
@media (max-width: 639px) {
  .js [data-reveal]:not([data-reveal="arch"]) { transform: translateY(14px); transition-duration: .45s; }
}
.js .faq details[data-reveal], .js .cta-band[data-reveal] { opacity: 1; transform: none; }

/* ---- Images that fail or are slow ---- */
/* Alt text of a failed image is not painted over arches and cards; main.js then removes the tile or figure. */
.arch img, .style-card img, .card__media img, .gallery img, .ba img, .split__media img, .page-hero__media img, .prose figure img { color: transparent; }
img.is-broken { visibility: hidden; }
.gallery figure.is-broken, .prose figure.is-broken, .legacy-figure.is-broken { display: none; }
/* A tile can never balloon: taller than any real photo in these column widths, far below the 1,500px of a failed one. */
.gallery figure { max-height: 720px; }
@media (max-width: 899px) { .gallery figure { max-height: 88vw; } }
.prose figure img { background: var(--sand-100); }
/* The before/after box holds its 4:3 shape on its own instead of borrowing it from the photos. */
.ba { aspect-ratio: 4 / 3; background: var(--sand-200); }
.ba > img, .ba__after img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Portrait photos inside an article stay shorter than the screen. */
.prose > .wp-block-image img { display: block; margin-inline: auto; max-height: min(72vh, 680px); object-fit: contain; background: none; }

/* ---- Galleries ---- */
.prose .gallery figure { margin: 0 0 .75rem; } /* `.prose figure` margins put the two masonry columns out of step */
@media (min-width: 900px) { .prose .gallery figure { margin-bottom: 1rem; } }
@media (hover: none) {
  /* no hover on touch: captions are always shown (two lines), and a tapped tile does not stay zoomed */
  .gallery figure:hover img { transform: none; }
  .gallery figcaption { opacity: 1; transform: none; padding: 1.5rem .6rem 0; border-bottom: .5rem solid transparent; font-size: .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.js .gallery [data-reveal] { transition-duration: .35s; }
/* gallery pages: the photos follow the hero directly */
.section--gallery-first { padding-top: 0; }
.section--gallery-first .section-head { margin-bottom: 1.25rem; }
.filter-bar, .region-tabs { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } /* chip rows run to the screen edge, so a cut-off chip reads as "more" */
.filter-bar::-webkit-scrollbar, .region-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .filter-bar, .region-tabs { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; } }
.topic-chips, .shop-chips { margin-bottom: 1.75rem; }
.chip--brass, .chip--brass:hover { background: var(--brass); border-color: var(--brass); color: #fff; }

/* ---- Lightbox ---- */
.lightbox { overscroll-behavior: contain; padding: 4.25rem 1rem calc(5rem + env(safe-area-inset-bottom)); }
.lightbox img { max-height: calc(100dvh - 12.5rem); touch-action: pinch-zoom; transition: opacity .25s; }
.lightbox.is-loading img { opacity: .35; }
.lightbox.is-loading::after { content: ""; position: absolute; inset-block-start: calc(50% - 17px); inset-inline-start: calc(50% - 17px); width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: lb-spin .8s linear infinite; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lightbox [data-close] { top: calc(.75rem + env(safe-area-inset-top)); }
/* phones: previous / next sit under the photo, side by side, instead of on top of it */
.lightbox [data-prev], .lightbox [data-next] { top: auto; bottom: calc(1rem + env(safe-area-inset-bottom)); }
.lightbox [data-prev] { inset-inline-start: calc(50% - 58px); }
.lightbox [data-next] { inset-inline-end: calc(50% - 58px); }
[dir="rtl"] .lightbox [data-prev], [dir="rtl"] .lightbox [data-next] { transform: scaleX(-1); }
.lightbox.is-single [data-prev], .lightbox.is-single [data-next] { display: none; }
@media (min-width: 900px) {
  .lightbox { padding: 1.5rem 5.5rem; }
  .lightbox img { max-height: calc(100dvh - 7rem); }
  .lightbox [data-prev], .lightbox [data-next] { top: 50%; bottom: auto; margin-top: -25px; }
  .lightbox [data-prev] { inset-inline-start: 1rem; }
  .lightbox [data-next] { inset-inline-end: 1rem; }
}

/* ---- Card lists on phones ---- */
.scroller { scroll-padding-inline: var(--gutter); } /* without it the snap pulled the first card flush to the screen edge */
@media (max-width: 639px) {
  /* Related pages and search results: compact rows (photo left, title right) instead of a full card per screen */
  .grid--compact { gap: .75rem; }
  .grid--compact .card { flex-direction: row; align-items: stretch; border-radius: var(--radius); }
  .grid--compact .card__media { position: relative; flex: 0 0 112px; aspect-ratio: auto; min-height: 104px; }
  .grid--compact .card__media img { position: absolute; inset: 0; }
  .grid--compact .card__body { flex: 1; min-width: 0; padding: .8rem .95rem; gap: .25rem; align-content: center; }
  .grid--compact .card__title { font-size: 1.02rem; line-height: 1.25; }
  .grid--compact .card__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  /* Home: the layout and journal rows swipe sideways like the styles row; the four steps sit two by two */
  .grid--swipe { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: .25rem var(--gutter) 1.25rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .grid--swipe::-webkit-scrollbar { display: none; }
  .grid--swipe > * { scroll-snap-align: start; }
  .steps { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .step { padding: 1rem 1rem 1.1rem; }
  .step::before { font-size: var(--step-2); margin-bottom: .4rem; }
  /* Styles index: two arches per row, so 25 styles are a few screens instead of one screen each */
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .style-grid .style-card { aspect-ratio: 3 / 4.6; }
  .style-grid .style-card__body { padding: .8rem .8rem .9rem; }
  .style-grid .style-card__name { font-size: var(--step-0); line-height: 1.15; }
  .style-grid .style-card__native { font-size: .95rem; }
  /* Contact channels: two per row, the long e-mail address on its own row */
  .contact-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .contact-grid .card__body { padding: 1rem 1.05rem 1.1rem; }
  .contact-grid .card--contact:nth-child(3) { grid-column: 1 / -1; }
  .contact-grid .card__text { display: none; }
  .contact-grid .card--contact:first-child .card__text, .contact-grid .card--contact:nth-child(3) .card__text { display: block; }
}
@media (min-width: 640px) and (max-width: 899px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .style-grid .style-card__name { font-size: var(--step-1); }
  .scroller { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } /* the phone edge-bleed put the row 32px left of its heading on desktop */
}
a.card--contact .card__title::after { content: "→"; margin-inline-start: .4rem; color: var(--brass); font-family: var(--font-body); }
[dir="rtl"] a.card--contact .card__title::after { content: "←"; }
.steps--plain .step::before { content: ""; width: 26px; height: 26px; margin-bottom: .7rem; background: var(--brass-2); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; }
.search-count { font-size: var(--step--1); color: var(--muted); margin: .75rem 0 0; }
.search-form input { text-overflow: ellipsis; }
@media (max-width: 359px) { .search-form { flex-direction: column; align-items: stretch; } }
.pagination .dots, .pagination .dots:hover { border: 0; background: none; min-width: 24px; padding: 0; color: var(--muted); } /* the ellipsis is not a button */

/* ---- Places ---- */
.place-list li { display: flex; }
.place-list a, .place-list span { flex: 1; min-width: 0; }
.place-list li:only-child, .place-list li.is-country { grid-column: 1 / -1; }
.place-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) { .place-list li:last-child:nth-child(odd), .place-list li:only-child { grid-column: auto; } }
.section:not(.section--ink) .place-list .is-country a { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--ink .place-list .is-country a { background: rgba(255, 255, 255, .1); }
.place-group__all .link-arrow, .section-more .link-arrow { padding-block: .75rem .4rem; }

/* ---- Home ---- */
@media (max-width: 899px) {
  .hero__meta { display: none; } /* the same three claims are in the top bar and in the strip right below */
  .hero__inner { gap: 2rem; }
  .hero__badge { inset-inline-start: .5rem; }
  .split__media .float-card { inset-inline-start: .5rem; }
  .split__media { margin-bottom: 1rem; }
  .section-head__link { justify-self: start; }
}
.story::before { content: ""; position: absolute; inset-block-start: calc(50% - 26px); inset-inline-start: calc(50% - 26px); width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 6.5v11l9-5.500z'/%3E%3C/svg%3E") center/26px no-repeat; pointer-events: none; z-index: 0; } /* an unloaded clip still reads as a video */
.story video { position: relative; z-index: 1; }
.story__cap { z-index: 2; }

/* ---- Articles and landing pages ---- */
@media (max-width: 899px) { .article-aside--cta { display: none; } } /* the sticky bar shows the same two buttons there */
@media (min-width: 1100px) { .article-main .prose > :where(p, ul, ol, h2, h3, h4, blockquote) { max-width: 72ch; } }
.prose .fig-pair figcaption { text-align: start; line-height: 1.45; }
/* Figure captions come from the English media catalogue; under native-language copy they are hidden
   until the content importer can supply translated ones (the translated alt text stays). */
.is-native-lang .prose figcaption { display: none; }
[dir="rtl"] .prose figcaption { unicode-bidi: plaintext; }
.aside-steps { margin: 0; padding-inline-start: 1.2em; display: grid; gap: .5rem; font-size: var(--step--1); color: #c9c2b3; }
.aside-steps li::marker { color: var(--brass-2); font-weight: 700; }
.prose a.btn, .prose a.button { color: var(--fg, #fff); text-decoration: none; } /* `.prose a` painted button labels navy on navy */
.article-main > .quick-links { margin-top: 2rem; }

/* ---- Forms ---- */
#quote-form { scroll-margin-top: calc(var(--header-h) + 16px); }
.field__opt { font-weight: 500; color: var(--muted); }
.field input::placeholder, .field textarea::placeholder { color: #8b8374; opacity: 1; text-overflow: ellipsis; }
.field select { -webkit-appearance: none; appearance: none; padding-inline-end: 2.75rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121c33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 18px; }
[dir="rtl"] .field select { background-position: left 1rem center; }
.field__hint a { font-weight: 700; }
@media (max-width: 639px) { .form > .btn { justify-self: stretch; width: 100%; } }
/* while someone is typing in the quote form, the bar is not needed and the keyboard needs the room */
body:has(form[data-quote] :is(input, select, textarea):focus) .actionbar { transform: translateY(110%); }

/* ---- Header, drawer, footer, action bar ---- */
@media (min-width: 640px) { .header-actions .btn { display: inline-flex; } .header-actions { gap: .75rem; } } /* tablets had no quote button at all between 900 and 1199px */
@media (min-width: 1200px) {
  .nav > ul > li.current-menu-ancestor > a::after, .nav > ul > li.current-menu-parent > a::after { transform: scaleX(1); }
  .nav .sub-menu .current-menu-item > a { background: var(--sand-100); }
  /* every message fits on one line here: no marquee, no clipped first word */
  .topbar__track:not(:has(span:nth-child(11))) { animation: none; width: auto; justify-content: center; }
  .topbar__track:not(:has(span:nth-child(11))) span[aria-hidden] { display: none; }
}
.drawer .current-menu-item > a, .drawer .current-menu-ancestor > a { color: var(--brass); }
.drawer .sub-menu .current-menu-item > a { font-weight: 700; }
body.drawer-open .progress { display: none; }
.drawer__contact { gap: .5rem; }
.drawer__contact a { min-height: 48px; padding-inline: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.site-footer ul { gap: 0; }
.site-footer ul a { display: flex; align-items: center; min-height: 44px; padding-block: .3rem; line-height: 1.35; }
.site-footer h4 { margin-bottom: .5rem; }
.footer-contact { display: grid; gap: 0; margin: 0; justify-items: start; }
.footer-contact a, .footer-contact span { display: flex; align-items: center; min-height: 44px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.footer-bottom span { display: inline-flex; align-items: center; }
@media (max-width: 899px) { .site-footer ul a, .footer-contact { font-size: .95rem; } }
@media (min-width: 900px) {
  .site-footer ul a, .footer-contact a, .footer-contact span { min-height: 34px; }
  .footer-bottom { padding-inline-end: 84px; } /* keeps the bottom row clear of the WhatsApp button */
  [dir="rtl"] .footer-bottom { padding-inline-end: 0; padding-inline-start: 84px; }
}
@media (min-width: 640px) { .actionbar { grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; } }

/* ---- WooCommerce ---- */
.woocommerce div.product p.price:empty { display: none; }
.product-cta { display: grid; gap: .6rem; margin: 1.25rem 0; }
@media (min-width: 600px) { .product-cta { grid-template-columns: 1fr 1fr; } }
.woocommerce div.product .related, .woocommerce div.product .upsells, .woocommerce div.product .woocommerce-tabs { clear: both; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.woocommerce div.product .related > h2 { font-size: var(--step-3); margin-bottom: 1.5rem; }
/* Catalogue grid: CSS grid instead of WooCommerce's percentage floats, so rows line up and never leave an orphan. */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; margin: 0 0 2rem; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after, .woocommerce-page ul.products::before, .woocommerce-page ul.products::after { content: none; display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto !important; float: none !important; clear: none !important; margin: 0 !important; display: flex; flex-direction: column; }
.woocommerce ul.products li.product a img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: .75rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.05rem; padding: 0; }
.woocommerce ul.products li.product .button { margin-top: auto; align-self: flex-start; }
@media (max-width: 699px) { .woocommerce ul.products li.product .button:not(.add_to_cart_button) { display: none; } } /* "Read more": the whole card is already that link */
@media (min-width: 900px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; }
  .woocommerce .related ul.products, .woocommerce .upsells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: var(--step-1); }
}
.woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; border: 0; margin: 1rem 0 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; float: none; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 46px; height: 46px; padding: 0 .8rem; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; }
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.woocommerce .woocommerce-result-count { float: none; margin: 0 0 .75rem; color: var(--muted); font-size: var(--step--1); }
.woocommerce .woocommerce-ordering { float: none; margin: 0 0 1.5rem; }
.woocommerce .woocommerce-ordering select { width: 100%; min-height: 48px; padding: .6rem 1rem; border-radius: 12px; border: 1px solid var(--line); background-color: #fff; font-size: 16px; } /* 16px: no zoom on focus in iOS */
@media (min-width: 700px) {
  .woocommerce .woocommerce-result-count { float: left; margin-top: .8rem; }
  .woocommerce .woocommerce-ordering { float: right; }
  .woocommerce .woocommerce-ordering select { width: auto; }
  [dir="rtl"] .woocommerce .woocommerce-result-count { float: right; }
  [dir="rtl"] .woocommerce .woocommerce-ordering { float: left; }
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { width: 44px; height: 44px; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: .5rem; overflow-x: auto; margin-top: .6rem; scrollbar-width: none; }
.woocommerce div.product div.images .flex-control-thumbs li { flex: 0 0 72px; width: 72px; float: none; }
.woocommerce div.product div.images .flex-control-thumbs li img { opacity: 1; border: 2px solid transparent; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { border-color: var(--brass); }
.woocommerce div.product .product_meta { font-size: var(--step--1); color: var(--muted); }
.woocommerce div.product .product_meta a { display: inline-block; padding-block: .65rem; margin-inline-end: .35rem; }
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link { font-size: .95rem; min-height: 44px; padding: .7rem 1.3rem; border-radius: 999px; background: var(--ink); color: #fff; }
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before { width: 64px; height: 64px; }

/* Arabic edition and language switch */
/* ---- Language switch: a pill in the header and in the drawer head, a text link in the footer ---- */
.lang-switch { flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; font: 700 .92rem/1 var(--font-body); text-decoration: none; color: var(--ink); white-space: nowrap; transition: border-color .25s, background .25s; }
.lang-switch svg { width: 18px; height: 18px; flex: none; }
.lang-switch:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.lang-switch[lang="ar"] { font-family: "Tajawal", "Amiri", system-ui, sans-serif; font-size: 1rem; }
.lang-switch[lang="en"] { font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; }
.header-actions .lang-switch { display: none; }
@media (min-width: 640px) { .header-actions .lang-switch { display: inline-flex; } }
.drawer__head .lang-switch { margin-inline-start: auto; }
.lang-switch--text { min-height: 44px; padding: 0; border: 0; border-radius: 0; color: inherit; font-weight: 600; }
.lang-switch--text:hover { background: none; color: var(--brass-2); }

/* The pill needs about 120px of the bar. Measured with the nine-item menu: it only fits when the
   menu items sit a little closer, and below 1440px when the pill drops its icon as well. */
@media (min-width: 1200px) {
  .nav > ul { gap: 0; }
  .nav a { padding-inline: .7rem; }
  .nav > ul > li > a::after { inset-inline: .7rem; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  .nav a { padding-inline: .5rem; font-size: .93rem; }
  .nav > ul > li > a::after { inset-inline: .5rem; }
  .header-actions .lang-switch { padding-inline: .75rem; }
  .header-actions .lang-switch svg { display: none; }
  .header-actions .btn--sm { padding-inline: .9rem; }
}

/* ---- Menu: "New" badge, label-only parents ---- */
.nav-badge { display: inline-block; margin-inline-start: .45rem; padding: .12rem .5rem; border-radius: 999px; background: var(--brass); color: #fff; font: 700 .68rem/1.5 var(--font-body); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.nav a[href="#"] { cursor: default; }

/* ---- Home: the sunbed ---- */
.sunbed__media img { aspect-ratio: 4 / 3; }
.sunbed__links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.5rem; }
@media (max-width: 639px) { .sunbed__links .btn { flex: 1 1 100%; } }

/* A long last breadcrumb (or a long word) must shrink inside its column, not widen the page. */
.page-hero__inner > *, .hero__inner > * { min-width: 0; }
/* A table that ends up in both wrappers (figure + .table-wrap) gets one frame, not two. */
.prose .wp-block-table .table-wrap { margin: 0; border: 0; border-radius: 0; }

/* ---- Right-to-left polish ---- */
/* Arabic has no capitals and its letters join: no tracking, no uppercase, anywhere. */
[dir="rtl"] :is(.eyebrow, .card__kicker, .answer__label, .ba__label, .nav-badge, .chip, .btn, .trust span, .site-footer h4, .hero__meta, .post-meta) { letter-spacing: 0; text-transform: none; }
[dir="rtl"] :is(.card__kicker, .answer__label, .eyebrow) { font-size: .9rem; }
[dir="rtl"] .nav-badge { font-size: .74rem; }
[dir="rtl"] .hero h1 em { font-style: normal; } /* no italic in Arabic type */
[dir="rtl"] .hero h1 { line-height: 1.25; }
[dir="rtl"] .prose blockquote { border-radius: var(--radius) 0 0 var(--radius); }
[dir="rtl"] .nav > ul > li > a::after { transform-origin: right; }
[dir="rtl"] .layers div { transform-origin: right; }
[dir="rtl"] .cta-band::after { inset: -160px auto auto -120px; }
[dir="rtl"] .style-card__go { scale: -1 1; } /* the arrow glyph points the reading way */
[dir="rtl"] .hero::before { background: radial-gradient(120% 90% at 20% 10%, rgba(18, 28, 51, .2), rgba(18, 28, 51, .92) 70%), linear-gradient(180deg, rgba(18, 28, 51, .5), var(--ink)); }
/* The before/after slider is a physical left-to-right control (its range input and clip are in step only that way). */
.ba { direction: ltr; }
.card__title--contact { unicode-bidi: plaintext; }
