/* ==========================================================================
   Ramah core: fonts, tokens, base, layout, header, footer, shared components,
   scroll motion. Page styles live in assets/css/pages/{key}.css.
   ========================================================================== */

/* ---------- Fonts (IBM Plex Sans Arabic, SIL OFL) ---------- */
@font-face { font-family: "Ramah Plex"; src: url("../fonts/plex-arabic-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Ramah Plex"; src: url("../fonts/plex-arabic-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Ramah Plex"; src: url("../fonts/plex-arabic-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Ramah Plex"; src: url("../fonts/plex-arabic-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Ramah Plex"; src: url("../fonts/plex-arabic-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ramah Plex"; src: url("../fonts/plex-arabic-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ramah Plex"; src: url("../fonts/plex-arabic-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ramah Plex"; src: url("../fonts/plex-arabic-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens (Figma variables + values read from frames) ---------- */
:where(.ramah-site) {
	/* Figma variables */
	--ramah-color-beige: #d8d3cf;
	--ramah-color-red: #941c1e;
	--ramah-color-charcoal: #222325;
	--ramah-color-grey: #6e6a69;
	/* Brand reds used across frames */
	--ramah-red-500: #a6192e;   /* accent text, active nav, eyebrow */
	--ramah-red-600: #8a1520;   /* header CTA */
	--ramah-red-700: #8c1424;   /* ribbon base */
	--ramah-red-900: #5a0b16;   /* ribbon border */
	--ramah-red-multiply: #9e1b2a;
	--ramah-star: #b31b27;
	/* Surfaces */
	--ramah-paper: #eae3db;     /* default light section */
	--ramah-paper-2: #e0dad4;   /* FAQ / alt light section */
	--ramah-paper-3: #ebe7e1;   /* form panel */
	--ramah-card: #f7f4ef;      /* light card */
	--ramah-banner: #e5dfd5;    /* hanging banner */
	--ramah-ink-900: #1e1e1e;   /* footer */
	--ramah-ink-800: #1f1f21;   /* dark panels */
	--ramah-ink-700: #212121;   /* chips */
	--ramah-line-dark: #404040;
	--ramah-text-on-dark: #d1d5db;
	--ramah-muted-on-dark: #9ca3af;
	--ramah-ticker-text: #e0ddd8;

	/* Semantic aliases */
	--ramah-bg: var(--ramah-paper);
	--ramah-text: var(--ramah-color-charcoal);
	--ramah-text-soft: var(--ramah-color-grey);
	--ramah-accent: var(--ramah-red-500);

	/* Type */
	--ramah-font: "Ramah Plex", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--ramah-fs-display: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);   /* 36 → 64 */
	--ramah-fs-h1: clamp(2rem, 1.45rem + 2.4vw, 2.75rem);       /* 32 → 44 */
	--ramah-fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);        /* 28 → 40 */
	--ramah-fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);      /* 20 → 24 */
	--ramah-fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);/* 17 → 20 */
	--ramah-fs-body: 1rem;
	--ramah-fs-sm: 0.875rem;
	--ramah-fs-xs: 0.75rem;

	/* Layout */
	--ramah-container: 1280px;
	--ramah-gutter: clamp(16px, 4vw, 80px);
	--ramah-section-y: clamp(56px, 7vw, 100px);
	--ramah-header-h: 94px;

	/* Shape */
	--ramah-radius-sm: 4px;
	--ramah-radius: 6px;
	--ramah-radius-pill: 30px;
	--ramah-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

	/* Motion */
	--ramah-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ramah-dur: 0.7s;
}

/* ---------- Base (scoped so component classes always win, Lesson 12) ---------- */
:where(.ramah-site) {
	margin: 0;
	background: var(--ramah-bg);
	color: var(--ramah-text);
	font-family: var(--ramah-font);
	font-size: var(--ramah-fs-body);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
:where(.ramah-site) *, :where(.ramah-site) *::before, :where(.ramah-site) *::after { box-sizing: border-box; }
:where(.ramah-site) :where(h1, h2, h3, h4, h5, h6) { margin: 0; font-weight: 700; line-height: 1.3; }
:where(.ramah-site) :where(p, ul, ol, figure, blockquote, address) { margin: 0; }
:where(.ramah-site) :where(ul, ol)[class] { list-style: none; padding: 0; }
:where(.ramah-site) :where(img, svg, video) { display: block; max-inline-size: 100%; block-size: auto; }
:where(.ramah-site) :where(a) { color: inherit; text-decoration: none; }
:where(.ramah-site) :where(address) { font-style: normal; }
:where(.ramah-site) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.ramah-site) :where(:focus-visible) { outline: 2px solid var(--ramah-red-500); outline-offset: 3px; }
:where(.ramah-site) .screen-reader-text { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.ramah-skip { position: absolute; inset-inline-start: 16px; inset-block-start: -60px; z-index: 1000; padding: 10px 16px; background: var(--ramah-red-600); color: #fff; border-radius: var(--ramah-radius); }
.ramah-skip:focus { inset-block-start: 16px; }

.ramah-container { inline-size: 100%; max-inline-size: calc(var(--ramah-container) + 2 * var(--ramah-gutter)); margin-inline: auto; padding-inline: var(--ramah-gutter); }
.ramah-red { color: var(--ramah-red-500); }
.ramah-main { position: relative; display: block; overflow-x: clip; } /* positioned so absolute decor inside cannot escape the clip */

/* Anchor jumps land below the sticky header (phones 76px, desktop 94px, plus the admin bar). */
html { scroll-padding-top: 110px; }
:root:has(body.admin-bar) { scroll-padding-top: 142px; }
@media (max-width: 782px) { :root:has(body.admin-bar) { scroll-padding-top: 156px; } }

/* Logged-in admin bar on small screens stays fixed (Lesson 4). */
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

/* ---------- Buttons ---------- */
.ramah-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-block-size: 44px; padding: 10px 14px;
	border: 1px solid currentColor; border-radius: var(--ramah-radius-pill);
	font-weight: 700; font-size: var(--ramah-fs-body); line-height: 1.25; white-space: nowrap;
	cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, translate 0.25s var(--ramah-ease);
}
.ramah-btn__arrow { inline-size: 20px; block-size: 20px; flex: none; transition: translate 0.25s var(--ramah-ease); }
.ramah-btn:hover .ramah-btn__arrow { translate: -4px 0; }
.ramah-btn--lg { font-size: var(--ramah-fs-lead); }
.ramah-btn--sm { min-block-size: 36px; padding: 6px 14px; font-size: var(--ramah-fs-sm); }
.ramah-btn--outline { color: var(--ramah-color-beige); }
.ramah-btn--outline:hover { background: var(--ramah-color-beige); color: var(--ramah-red-600); border-color: var(--ramah-color-beige); }
.ramah-btn--outline-dark { color: var(--ramah-color-charcoal); }
.ramah-btn--outline-dark:hover { background: var(--ramah-color-charcoal); color: var(--ramah-paper); border-color: var(--ramah-color-charcoal); }
.ramah-btn--outline-red { color: var(--ramah-red-500); }
.ramah-btn--outline-red:hover { background: var(--ramah-red-500); color: #fff; border-color: var(--ramah-red-500); }
.ramah-btn--solid { background: var(--ramah-red-600); border-color: var(--ramah-red-600); color: #fff; border-radius: var(--ramah-radius); padding-inline: 24px; font-size: var(--ramah-fs-sm); box-shadow: var(--ramah-shadow); }
.ramah-btn--solid:hover { background: var(--ramah-red-500); border-color: var(--ramah-red-500); }
.ramah-btn--link { border: 0; padding: 0; min-block-size: 0; color: var(--ramah-red-500); font-size: var(--ramah-fs-sm); border-radius: 0; }
.ramah-btn--link .ramah-btn__arrow { inline-size: 16px; block-size: 16px; }
/* Fill sweep on hover (starts at the start edge: right in RTL) */
.ramah-btn { position: relative; isolation: isolate; overflow: hidden; }
.ramah-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ramah-color-beige); transform: scaleX(0); transform-origin: right center; transition: transform 0.45s var(--ramah-ease); }
.ramah-btn--outline-dark::before { background: var(--ramah-color-charcoal); }
.ramah-btn--outline-red::before, .ramah-btn--solid::before { background: var(--ramah-red-500); }
.ramah-btn--link::before { display: none; }
.ramah-btn:hover::before, .ramah-btn:focus-visible::before { transform: scaleX(1); }
.ramah-btn:hover .ramah-btn__arrow, .ramah-btn:focus-visible .ramah-btn__arrow { translate: -4px 0; }

/* ---------- Eyebrow (red label + arrow rule) ---------- */
.ramah-eyebrow { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--ramah-red-500); font-size: var(--ramah-fs-lead); font-weight: 500; line-height: 1.6; }
.ramah-eyebrow::after { content: ""; inline-size: 64px; block-size: 12px; background: url("../images/shared/nav-arrow.svg") no-repeat center / contain; }
.ramah-eyebrow--light { color: #e05a6a; }

/* Multiply texture: tiled at its native size (a stretched copy would look soft). */
.ramah-tex--multiply { position: absolute; inset: 0; background: url("../images/shared/multiply-tile.webp") repeat 0 0 / 500px 300px; opacity: 0.77; mix-blend-mode: multiply; pointer-events: none; }

/* ---------- Sadu ornament strip (decor) ---------- */
.ramah-sadu { display: block; inline-size: clamp(36px, 7vw, 101px); background: url("../images/shared/sadu-strip.webp") repeat-y center top / 100% auto; }

/* ---------- Header ---------- */
.ramah-header { position: absolute; inset-inline: 0; inset-block-start: 0; z-index: 50; color: var(--ramah-color-beige); }
.admin-bar .ramah-header { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar .ramah-header { inset-block-start: 46px; } }
.ramah-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-block-size: var(--ramah-header-h); padding-block: 16px; }
.ramah-header__logo { display: flex; align-items: center; flex: none; min-block-size: 44px; } /* Lesson 3 */
.ramah-header__logo img { inline-size: 64px; block-size: 62px; object-fit: contain; }
.ramah-nav { flex: 1; display: flex; justify-content: center; }
.ramah-nav__list { display: flex; align-items: center; gap: 28px; }
.ramah-nav__list > li { position: relative; }
.ramah-nav__list a { display: inline-flex; flex-direction: column; align-items: center; padding-block: 6px; font-size: 15px; font-weight: 600; line-height: 1.5; transition: color 0.2s ease; }
@media (min-width: 1024px) { .ramah-header:not(.is-scrolled) .ramah-nav__list > li > a { text-shadow: 0 1px 3px rgb(0 0 0 / 0.6), 0 0 12px rgb(0 0 0 / 0.35); } } /* legible over light hero art (e.g. Geo parchment) */
.ramah-nav__list a:hover { color: #fff; }
.ramah-nav__list > li > a { position: relative; }
.ramah-nav__list > li > a::before { content: ""; position: absolute; inset-inline: 0; inset-block-end: -2px; block-size: 8px; background: url("../images/shared/nav-arrow.svg") no-repeat center / 100% 100%; transform: scaleX(0); transform-origin: right center; transition: transform 0.4s var(--ramah-ease); pointer-events: none; }
.ramah-nav__list > li > a:hover::before, .ramah-nav__list > li > a:focus-visible::before { transform: scaleX(1); }
.ramah-nav__list :is(.current-menu-item, .current_page_item) > a::before { display: none; }
.ramah-nav__list :is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a { color: var(--ramah-red-500); font-weight: 700; }
.ramah-nav__list :is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a::after { content: ""; inline-size: calc(100% + 6px); block-size: 8px; margin-block-start: 2px; background: url("../images/shared/nav-arrow.svg") no-repeat center / 100% 100%; }
.ramah-nav__list .sub-menu { position: absolute; inset-block-start: 100%; inset-inline-start: 0; min-inline-size: 200px; padding: 8px; background: var(--ramah-ink-800); border-radius: var(--ramah-radius); box-shadow: var(--ramah-shadow); opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity 0.2s ease, translate 0.2s ease, visibility 0.2s; }
.ramah-nav__list li:is(:hover, :focus-within) > .sub-menu { opacity: 1; visibility: visible; translate: 0 0; }
.ramah-nav__list .sub-menu a { padding: 8px 12px; align-items: flex-start; }
.ramah-nav__cta { display: none; }
.ramah-header__cta { flex: none; }
.ramah-header__toggle { display: none; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; padding: 0; background: transparent; border: 1px solid rgb(216 211 207 / 0.4); border-radius: var(--ramah-radius); color: inherit; cursor: pointer; }
.ramah-header__toggle svg { inline-size: 24px; block-size: 24px; }
.ramah-header__toggle-close { display: none; }

@media (max-width: 1100px) {
	.ramah-nav__list { gap: 18px; }
}
@media (max-width: 1023px) {
	.ramah-header__inner { min-block-size: 76px; padding-block: 8px; }
	.ramah-header__logo img { inline-size: 52px; block-size: 50px; }
	.ramah-header__toggle { display: inline-flex; }
	.ramah-header__cta { display: none; }
	.ramah-nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: flex-start; gap: 24px; padding: 96px 24px 32px; background: var(--ramah-ink-800) url("../images/shared/ticker-bg.webp") no-repeat bottom / 100% 8px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s; }
	.ramah-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.ramah-nav__list a { display: flex; align-items: flex-start; padding-block: 14px; font-size: 18px; border-block-end: 1px solid rgb(255 255 255 / 0.08); }
	.ramah-nav__list :is(.current-menu-item, .current_page_item) > a::after { inline-size: 64px; }
	.ramah-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; translate: none; background: transparent; box-shadow: none; padding: 0 16px 0 0; }
	.ramah-nav__cta { display: inline-flex; align-self: stretch; min-block-size: 48px; font-size: var(--ramah-fs-body); }
	.ramah-nav-open { overflow: hidden; }
	.ramah-nav-open .ramah-nav { opacity: 1; visibility: visible; }
	.ramah-nav-open .ramah-header__toggle-open { display: none; }
	.ramah-nav-open .ramah-header__toggle-close { display: inline-flex; }
	.ramah-nav-open .ramah-header__toggle { background: var(--ramah-ink-800); }
	.ramah-nav-open .ramah-header__logo { padding: 4px; background: var(--ramah-paper); border-radius: var(--ramah-radius); }
	.ramah-nav::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 22px; background: url("../images/shared/ribbon-tile.svg") repeat-x center / 24px 22px; opacity: 0.9; }
	.ramah-nav__list > li { opacity: 0; translate: 0 14px; transition: opacity 0.4s ease, translate 0.5s var(--ramah-ease); }
	.ramah-nav-open .ramah-nav__list > li { opacity: 1; translate: 0 0; }
	.ramah-nav-open .ramah-nav__list > li:nth-child(2) { transition-delay: 0.06s; }
	.ramah-nav-open .ramah-nav__list > li:nth-child(3) { transition-delay: 0.12s; }
	.ramah-nav-open .ramah-nav__list > li:nth-child(4) { transition-delay: 0.18s; }
	.ramah-nav-open .ramah-nav__list > li:nth-child(5) { transition-delay: 0.24s; }
	.ramah-nav-open .ramah-nav__list > li:nth-child(6) { transition-delay: 0.3s; }
	.ramah-nav-open .ramah-nav__list > li:nth-child(n+7) { transition-delay: 0.36s; }
}

/* ---------- Ticker ---------- */
.ramah-ticker { direction: ltr; /* anchor the track to the physical left so its ±1028px slide never exposes an empty edge */ position: relative; isolation: isolate; overflow: hidden; padding-block: 14px; background: linear-gradient(90deg, #040000 0%, #060000 20%, #0f0000 30%, #230000 40%, #2f0000 50%, #360000 60%, #480000 70%, #530000 80%, #720000 90%, #750000 100%); /* sampled from Figma 64:2513 render */ border-block-start: 1px solid rgb(0 0 0 / 0.4); box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.05); color: var(--ramah-ticker-text); }
/* Track laid out left to right like the Figma frame; each group reads right to left. Default = -1028px (Figma 64:2513),
   Variant2 = 0 (64:2515). Cycle: 0.8s hold, 3s ease-out to Variant2, 0.8s hold, 3s ease-out back. */
.ramah-ticker__track { display: flex; direction: ltr; inline-size: max-content; translate: -1028px 0; animation: ramah-ticker 7.6s infinite; }
.ramah-ticker:hover .ramah-ticker__track { animation-play-state: paused; }
.ramah-ticker__group { display: flex; flex: none; align-items: center; gap: 32px; padding-inline: 16px; direction: rtl; }
.ramah-ticker__group li { display: inline-flex; align-items: center; gap: 32px; direction: ltr; font-size: 15px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.ramah-ticker__group li::before { content: ""; inline-size: 14px; block-size: 14px; background: url("../images/shared/star.svg") no-repeat center / contain; flex: none; visibility: hidden; } /* Figma 64:2513 keeps the 14px star slot but its icon renders off-canvas, so only the gap shows */
.ramah-ticker::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/shared/ticker-grunge.webp") center / cover; mix-blend-mode: soft-light; opacity: 0.55; pointer-events: none; } /* grunge texture over the gradient */
@keyframes ramah-ticker {
	0%, 10.53% { translate: -1028px 0; animation-timing-function: ease-out; }
	50%, 60.53% { translate: 0 0; animation-timing-function: ease-out; }
	100% { translate: -1028px 0; }
}

/* ---------- CTA band ---------- */
.ramah-cta { position: relative; display: grid; place-items: center; min-block-size: 378px; padding: 64px var(--ramah-gutter); overflow: hidden; isolation: isolate; color: var(--ramah-color-beige); text-align: center; background: var(--ramah-red-multiply) url("../images/shared/cta-bg.webp") center bottom / cover; background-blend-mode: multiply; }
.ramah-cta__sadu { position: absolute; inset-block: 0; inset-inline-end: 0; }
.ramah-cta__spear { position: absolute; inset-block-start: 18px; inset-inline-start: calc(50% - 720px + 156px); inline-size: 115px; block-size: 490px; object-fit: contain; pointer-events: none; z-index: -1; }
.ramah-cta__body { display: flex; flex-direction: column; align-items: center; gap: 20px; max-inline-size: 760px; }
.ramah-cta__title { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.3; font-weight: 700; }
.ramah-cta__text { font-size: 20px; font-weight: 500; line-height: 32px; }
/* Dust/ember drift over the canyon (CSS only, paused for reduced motion) */
.ramah-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55; background-image: radial-gradient(circle, rgb(255 196 130 / 0.9) 1px, transparent 1.6px), radial-gradient(circle, rgb(255 230 190 / 0.7) 1px, transparent 1.6px); background-size: 140px 180px, 230px 260px; background-position: 0 0, 60px 90px; }
@media (prefers-reduced-motion: no-preference) { .ramah-cta::after { animation: ramah-ember 24s linear infinite; } }
@keyframes ramah-ember { to { background-position: 0 -360px, 60px -530px; } }
@media (max-width: 1439px) { .ramah-cta__spear { inset-inline-start: 4%; } }
@media (max-width: 767px) { .ramah-cta__spear { opacity: 0.35; inline-size: 70px; block-size: 300px; } .ramah-cta { min-block-size: 320px; padding-inline: 20px calc(clamp(36px, 7vw, 101px) + 16px); } /* clear the Sadu strip, which sits at inline-end (left in RTL) */ }

/* ---------- FAQ ---------- */
.ramah-faq { padding-block: var(--ramah-section-y); background: var(--ramah-paper-2); }
.ramah-faq__inner { max-inline-size: calc(1056px + 2 * var(--ramah-gutter)); }
.ramah-faq__eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--ramah-red-500); font-size: var(--ramah-fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ramah-faq__eyebrow::after { content: ""; inline-size: 32px; block-size: 1px; background: currentColor; }
.ramah-faq__title { margin-block: 8px 32px; font-size: var(--ramah-fs-h2); }
.ramah-faq__list { border-block-start: 1px solid var(--ramah-color-charcoal); }
.ramah-faq__item { border-block-end: 1px solid rgb(34 35 37 / 0.15); }
.ramah-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; font-size: var(--ramah-fs-h3); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); font-weight: 700; cursor: pointer; list-style: none; }
.ramah-faq__item summary::-webkit-details-marker { display: none; }
.ramah-faq__chevron { inline-size: 20px; block-size: 20px; flex: none; color: var(--ramah-red-500); transition: rotate 0.25s ease; }
.ramah-faq__item[open] .ramah-faq__chevron, .ramah-faq__item.is-open .ramah-faq__chevron { rotate: 180deg; }
.ramah-faq__item summary { transition: color 0.25s ease; }
.ramah-faq__answer { padding-block-end: 20px; color: var(--ramah-text-soft); line-height: 1.8; }
.ramah-faq__answer p + p { margin-block-start: 8px; }
.ramah-faq__more { display: inline-flex; align-items: center; min-block-size: 44px; gap: 6px; margin-block-start: 28px; float: inline-end; color: var(--ramah-red-500); font-size: var(--ramah-fs-sm); font-weight: 700; border-block-end: 1px solid currentColor; }
.ramah-faq__inner::after { content: ""; display: table; clear: both; }

/* ---------- Footer ---------- */
.ramah-footer { background: var(--ramah-ink-900); color: var(--ramah-text-on-dark); font-size: var(--ramah-fs-sm); }
.ramah-footer__ribbon { block-size: 22px; border-block-end: 2px solid var(--ramah-red-900); background:
	url("../images/shared/ribbon-tile.svg") no-repeat right center / 24px 22px,
	repeating-linear-gradient(44deg, var(--ramah-red-500) 0 7px, transparent 7px 14px),
	repeating-linear-gradient(-44deg, var(--ramah-red-500) 0 7px, transparent 7px 14px),
	var(--ramah-red-700); }
.ramah-footer__inner { padding-block: 32px 40px; }
.ramah-footer__grid { display: grid; grid-template-columns: 3fr 384px auto 3fr; gap: 32px; align-items: start; }
.ramah-footer__banner { position: relative; min-block-size: 176px; }
.ramah-footer__banner-inner { position: absolute; inset-block-start: -32px; inset-inline-start: 0; display: flex; flex-direction: column; align-items: center; inline-size: 192px; block-size: 240px; padding: 24px 16px 48px; background: #e5dfd5; clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%); filter: drop-shadow(0 4px 10px rgb(0 0 0 / 0.5)); }
.ramah-footer__banner-inner img { inline-size: 112px; block-size: 144px; object-fit: contain; }
.ramah-footer__banner-inner { transform-origin: 50% 0; }
.ramah-footer__banner-name { margin-block-start: 16px; color: #a6192e; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ramah-footer__about { padding-block-start: 8px; color: #d1d5db; font-size: 15px; line-height: 24.38px; }
.ramah-footer__socials { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 24px; }
.ramah-footer__socials a { display: inline-flex; align-items: center; min-block-size: 36px; padding: 6px 16px; background: #212121; border: 1px solid #404040; border-radius: 4px; color: #e5e5e5; font-size: 15.2px; transition: border-color 0.2s ease, color 0.2s ease; }
.ramah-footer__socials a:hover { border-color: var(--ramah-red-500); color: #fff; }
.ramah-footer__title { margin-block-end: 20px; color: #fff; font-size: 16px; line-height: 24px; font-weight: 700; }
.ramah-footer__nav, .ramah-footer__contact { padding-block-start: 8px; }
.ramah-footer__links { display: grid; grid-template-columns: repeat(2, auto); gap: 14px 32px; color: #d1d5db; font-size: 14px; line-height: 20px; } /* row-major, as in Figma */
.ramah-footer__links a, .ramah-footer__contact a { transition: color 0.2s ease; }
.ramah-footer__links a:hover, .ramah-footer__contact a:hover, .ramah-footer__legal a:hover { color: #fff; }
.ramah-footer__links a, .ramah-footer__contact a { background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat; transition: color 0.2s ease, background-size 0.45s var(--ramah-ease); }
.ramah-footer__links a:hover, .ramah-footer__contact a:hover { background-size: 100% 1px; }
.ramah-footer__contact address { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ramah-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-block-start: 56px; padding-block-start: 25px; border-block-start: 1px solid rgb(51 51 51 / 0.7); color: #9ca3af; font-size: 12px; line-height: 16px; }
.ramah-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ramah-footer__legal-links { display: flex; gap: 8px; }
.ramah-footer__legal-links li + li::before { content: "•"; margin-inline-end: 8px; }

@media (max-width: 1100px) {
	.ramah-footer__grid { grid-template-columns: 192px 1fr 1fr; }
	.ramah-footer__contact { grid-column: 2 / -1; }
}
@media (max-width: 1023px) {
	.ramah-footer__links a, .ramah-footer__socials a, .ramah-footer__contact a, .ramah-footer__legal-links a { display: inline-flex; align-items: center; min-block-size: 44px; }
}
@media (max-width: 767px) {
	.ramah-footer__grid { grid-template-columns: 1fr; gap: 40px; }
	.ramah-footer__banner { min-block-size: 210px; }
	.ramah-footer__banner-inner { inset-inline-start: 50%; translate: 50% 0; }
	.ramah-footer__contact { grid-column: auto; }
	.ramah-footer__bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- Generic page hero (derived for pages without a designed hero) ---------- */
.ramah-pagehead { position: relative; padding: calc(var(--ramah-header-h) + 64px) 0 72px; background: var(--ramah-ink-800); color: var(--ramah-color-beige); overflow: hidden; }
.ramah-pagehead::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 8px; background: url("../images/shared/ticker-bg.webp") center / cover; }
.ramah-pagehead__title { font-size: var(--ramah-fs-h1); }
.ramah-pagehead__text { margin-block-start: 12px; max-inline-size: 640px; font-size: var(--ramah-fs-lead); color: var(--ramah-text-on-dark); }

/* ---------- Page hero (derived pages: archives, search, 404, FAQ archive, posts, generic pages) ---------- */
.ramah-page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block-start: calc(var(--ramah-header-h) + 40px); background: #1d1d1f; color: var(--ramah-color-beige); }
.ramah-page-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ramah-page-hero__grain { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; max-inline-size: none; opacity: 0.18; }
.ramah-page-hero__sadu { position: absolute; inset-block: 0; inset-inline-end: 0; z-index: 0; }
.ramah-page-hero__inner { position: relative; z-index: 1; display: grid; justify-items: start; gap: 16px; padding-block: 56px 72px; text-align: start; }
.ramah-page-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #8e8b82; font-size: 14px; line-height: 20px; }
.ramah-page-hero__title { max-inline-size: 22ch; font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--ramah-color-beige); }
.ramah-page-hero__text { max-inline-size: 640px; color: #a3a096; font-size: 17px; line-height: 26px; }
.ramah-page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 8px; }
.ramah-page-hero .ramah-red { color: #c8383b; }
.ramah-page-hero .ramah-eyebrow { color: #c8383b; font-size: 16px; font-weight: 600; }
@media (min-width: 1024px) { .ramah-page-hero__inner { padding-block: 80px 96px; } }

.ramah-crenel { display: block; }
.ramah-crenel__teeth { display: block; block-size: 20px; background: repeating-linear-gradient(90deg, #b8b2a3 0 24.75px, #1d1d1f 24.75px 38.25px); }
.ramah-crenel__wall { position: relative; display: block; block-size: 112px; overflow: hidden; background: #e0dad4; }
.ramah-404__search { padding-block: 56px; }

.ramah-index { padding-block: var(--ramah-section-y); }

/* ---------- Rich text (post content, generic pages) ---------- */
.ramah-prose { max-inline-size: 760px; font-size: 1.0625rem; line-height: 1.9; }
.ramah-prose > * + * { margin-block-start: 1em; }
.ramah-prose :where(h2) { margin-block-start: 1.6em; font-size: var(--ramah-fs-h3); }
.ramah-prose :where(h3) { margin-block-start: 1.4em; font-size: 1.125rem; }
.ramah-prose :where(a) { color: var(--ramah-red-500); text-decoration: underline; text-underline-offset: 3px; }
.ramah-prose :where(ul, ol) { padding-inline-start: 1.4em; }
.ramah-prose :where(blockquote) { padding-inline-start: 16px; border-inline-start: 3px solid var(--ramah-red-500); color: var(--ramah-text-soft); }
.ramah-prose :where(img) { border-radius: var(--ramah-radius); }

/* ---------- Reduced motion (entrance motion lives in motion.css / motion.js) ---------- */
@media (prefers-reduced-motion: reduce) {
	.ramah-ticker__track { animation: none; }
	.ramah-site *, .ramah-site *::before, .ramah-site *::after { transition-duration: 0.01ms !important; }
}
