/* F Mason — main stylesheet. Logical properties throughout so RTL (Arabic) works without a mirrored file. */

/* ---------- Fonts (self-hosted, OFL; see assets/fonts/FONTS.txt) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; 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: "Inter"; src: url("../fonts/inter-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/sourceserif4-latin.woff2") format("woff2"); font-weight: 200 900; font-style: normal; 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: "Source Serif 4"; src: url("../fonts/sourceserif4-cyrillic.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Sans Arabic"; src: url("../fonts/noto-sans-arabic-arabic.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-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: "Noto Naskh Arabic"; src: url("../fonts/noto-naskh-arabic-arabic.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-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: "Noto Sans Bengali"; src: url("../fonts/noto-sans-bengali-bengali.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Noto Serif Bengali"; src: url("../fonts/noto-serif-bengali-bengali.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }

/* ---------- Tokens ---------- */
:root {
	--navy-900: #07132a;
	--navy-800: #0b1b33;
	--navy-700: #13294a;
	--navy-500: #2d4468;
	--brass-500: #b08d57;
	--brass-400: #c4a574;
	--brass-700: #8a6a3a;
	--ivory-50: #fbf9f3;
	--ivory-100: #f7f3ea;
	--ivory-200: #ece5d4;
	--ink: #1b2430;
	--ink-soft: #4a5565;
	--line: #d9d0bc;

	--serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--wrap: 72rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--radius: 2px;
	--shadow: 0 1px 2px rgb(7 19 42 / 6%), 0 8px 24px rgb(7 19 42 / 6%);
}

/* Script-specific stacks */
[data-script="arabic"] { --serif: "Noto Naskh Arabic", "Source Serif 4", "Geeza Pro", "Times New Roman", serif; --sans: "Noto Sans Arabic", "Inter", "Geeza Pro", Tahoma, sans-serif; }
[data-script="bengali"] { --serif: "Noto Serif Bengali", "Source Serif 4", "Kohinoor Bangla", serif; --sans: "Noto Sans Bengali", "Inter", "Kohinoor Bangla", sans-serif; }
[data-script="han"] { --serif: "Source Serif 4", "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", serif; --sans: "Inter", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ivory-100);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
[data-script="arabic"] body { line-height: 1.85; }
[data-script="bengali"] body { line-height: 1.8; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-700); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-700); }
:focus-visible { outline: 2px solid var(--brass-500); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy-800); margin: 0 0 0.6em; letter-spacing: -0.01em; }
[data-script="arabic"] h1, [data-script="arabic"] h2, [data-script="arabic"] h3 { letter-spacing: 0; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--navy-800); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }

.eyebrow { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-700); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.75rem; }
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--brass-400); }
[data-script="arabic"] .eyebrow, [data-script="bengali"] .eyebrow, [data-script="han"] .eyebrow { letter-spacing: 0.04em; text-transform: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: 600 0.9rem/1 var(--sans); letter-spacing: 0.04em; padding: 1rem 1.6rem; border: 1px solid transparent; border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn--brass { background: var(--brass-500); color: var(--navy-900); }
.btn--brass:hover { background: var(--brass-400); color: var(--navy-900); }
.btn--ghost { border-color: rgb(255 255 255 / 45%); color: #fff; }
.btn--ghost:hover { border-color: var(--brass-400); color: var(--brass-400); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }

/* ---------- Brand wordmark ---------- */
.brand { display: inline-block; text-decoration: none; color: var(--navy-800); }
.brand__img { display: block; height: 4.5rem; width: auto; max-width: 100%; }
.brand__img--invert { filter: brightness(0) invert(1); }
.site-footer .brand__img { height: 5.5rem; }
.brand__mark { display: grid; gap: 0.3rem; justify-items: start; }
.brand__name { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 1.55rem; letter-spacing: 0.22em; line-height: 1; padding-inline-end: 0.22em; }
.brand__rule { height: 1px; width: 100%; background: var(--brass-500); }
.brand__tag { font-family: "Inter", system-ui, sans-serif; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; line-height: 1; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(247 243 234 / 94%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; padding-block: 0.6rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list, .langs, .site-footer__nav { list-style: none; margin: 0; padding: 0; }
.site-nav__list { display: flex; gap: 2rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 500; padding-block: 0.4rem; border-bottom: 1px solid transparent; }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--navy-800); border-bottom-color: var(--brass-500); }

.lang-switch { position: relative; padding-inline-start: 1.5rem; border-inline-start: 1px solid var(--line); }
.lang-switch__btn { display: inline-flex; align-items: center; gap: 0.5rem; font: 500 0.85rem/1 var(--sans); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.75rem; cursor: pointer; }
.lang-switch__btn:hover { border-color: var(--brass-500); }
.lang-switch__chev { transition: transform 0.2s; }
.lang-switch__btn[aria-expanded="true"] .lang-switch__chev { transform: rotate(180deg); }
.lang-switch__list { list-style: none; margin: 0; padding: 0.4rem; position: absolute; inset-inline-end: 0; top: calc(100% + 0.5rem); min-width: 12rem; background: var(--ivory-50); border: 1px solid var(--line); border-top: 2px solid var(--brass-500); box-shadow: var(--shadow); z-index: 60; }
.lang-switch__list[hidden] { display: none; }
.lang-switch__list a { display: block; padding: 0.55rem 0.8rem; border: 0; font-size: 0.92rem; color: var(--ink); }
.lang-switch__list a[lang="ar"], .lang-switch__list a[lang="bn"] { font-size: 1.05rem; }
.lang-switch__list a:hover { background: var(--ivory-200); color: var(--navy-800); }
.lang-switch__list a[aria-current="true"] { font-weight: 700; color: var(--navy-800); background: var(--ivory-100); }
.lang-switch__list a[aria-current="true"]::after { content: " ✓"; color: var(--brass-700); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 2.75rem; height: 2.75rem; cursor: pointer; padding: 0; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1.2rem; height: 1.5px; background: var(--navy-800); position: relative; margin-inline: auto; transition: transform 0.2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 62rem) {
	.brand__img { height: 3.5rem; }
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; background: var(--ivory-100); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; }
	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list a { display: block; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
	.lang-switch { padding-inline-start: 0; border-inline-start: 0; }
	.lang-switch__list { position: static; box-shadow: none; border: 0; border-top: 1px solid var(--line); margin-top: 0.5rem; padding-inline: 0; columns: 2; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(to right, rgb(7 19 42 / 94%) 0%, rgb(11 27 51 / 82%) 50%, rgb(11 27 51 / 58%) 100%), url("../img/hero-london.webp") center / cover no-repeat, var(--navy-800); color: #fff; position: relative; overflow: hidden; }
[dir="rtl"] .hero { background: linear-gradient(to left, rgb(7 19 42 / 94%) 0%, rgb(11 27 51 / 82%) 50%, rgb(11 27 51 / 58%) 100%), url("../img/hero-london.webp") center / cover no-repeat, var(--navy-800); }
.hero::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 8%; width: 1px; background: linear-gradient(to bottom, transparent, var(--brass-500), transparent); opacity: 0.6; }
.hero__inner { padding-block: clamp(4.5rem, 12vw, 9rem); max-width: 54rem; margin-inline-start: max(var(--gutter), calc((100% - var(--wrap)) / 2)); width: auto; }
.hero__title { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 500; line-height: 1.12; margin-bottom: 1.25rem; }
.hero__lead { font-size: 1.15rem; color: rgb(255 255 255 / 80%); max-width: 40rem; margin-bottom: 2.25rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--ivory-200); }
.section__title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 2.5rem; max-width: 36rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.card { background: var(--ivory-50); border: 1px solid var(--line); border-top: 2px solid var(--brass-500); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.25rem; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon { color: var(--brass-700); margin-bottom: 1rem; }
.card__title { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }
.card__link { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; color: var(--navy-800); }
.card__link::after { content: " →"; }
[dir="rtl"] .card__link::after { content: " ←"; }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem; }
.principle__n { font-family: var(--serif); font-size: 2.2rem; color: var(--brass-500); display: block; line-height: 1; margin-bottom: 0.75rem; }
.principle h3 { font-size: 1.3rem; }
.principle p { color: var(--ink-soft); }

.band { background: var(--navy-800); color: #fff; padding-block: 3.5rem; }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.band__title { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.4rem; }
.band p { margin: 0; color: rgb(255 255 255 / 75%); }

.teaser__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 52rem) { .teaser__grid { grid-template-columns: 0.8fr 1.2fr; } }
.teaser__photo { margin: 0; aspect-ratio: 4 / 5; max-height: 34rem; overflow: hidden; border-bottom: 2px solid var(--brass-500); background: var(--ivory-200); }
.teaser__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teaser__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 36rem; margin-bottom: 1.75rem; }
.teaser .section__title { margin-bottom: 1.2rem; }

/* ---------- Inner pages ---------- */
.pagehead { background: var(--navy-800); color: #fff; padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 3px solid var(--brass-500); }
.pagehead .eyebrow { color: var(--brass-400); }
.pagehead__title { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 500; max-width: 44rem; margin-bottom: 0.75rem; }
.pagehead__lead { font-size: 1.12rem; color: rgb(255 255 255 / 78%); max-width: 40rem; margin: 0; }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 52rem) { .split { grid-template-columns: 1.3fr 1fr; align-items: start; } .split--form { grid-template-columns: 1fr 1.4fr; } }

.prose { max-width: 44rem; }
.prose--narrow { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink); }

.facts { background: var(--ivory-50); border: 1px solid var(--line); border-top: 2px solid var(--brass-500); padding: 1.75rem; }
.facts__title { font-size: 1.15rem; margin-bottom: 1rem; }
.facts dl { margin: 0; }
.facts__row { display: grid; gap: 0.15rem; padding-block: 0.8rem; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
[data-script="arabic"] .facts dt, [data-script="bengali"] .facts dt, [data-script="han"] .facts dt { letter-spacing: 0.02em; text-transform: none; font-size: 0.82rem; }
.facts dd { margin: 0; }
.facts__addr { font-style: normal; margin-bottom: 1rem; }
.facts__line { margin-bottom: 0.8rem; }

.area { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.5rem; border-top: 1px solid var(--line); scroll-margin-top: 6rem; align-items: center; }
@media (min-width: 52rem) { .area { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } .area:nth-of-type(even) .area__text { order: 2; } }
.area__text { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; }
.area__photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ivory-200); border-bottom: 2px solid var(--brass-500); }
.area__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.area:first-of-type { border-top: 0; padding-top: 0; }
.area__icon { color: var(--brass-700); padding-top: 0.3rem; }
.area__title { font-size: 1.6rem; margin-bottom: 0.4rem; }
.area p { color: var(--ink-soft); max-width: 40rem; margin: 0; }
.note { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }
.field input[type="text"], .field input[type="email"], .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--ivory-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 0.9rem; }
.field input:focus, .field textarea:focus { border-color: var(--brass-500); outline: 2px solid rgb(176 141 87 / 30%); outline-offset: 0; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; }
.field--check label { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
.field--check input { margin-top: 0.3rem; accent-color: var(--navy-800); }
.hp { position: absolute; inset-inline-start: -9999px; }
.notice { padding: 0.9rem 1rem; border-inline-start: 3px solid; margin: 0; background: var(--ivory-50); }
.notice--ok { border-color: #2f7a4b; }
.notice--err { border-color: #a33a3a; }
.form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgb(255 255 255 / 72%); padding-top: 4rem; font-size: 0.93rem; }
.site-footer a { color: rgb(255 255 255 / 85%); text-decoration: none; }
.site-footer a:hover { color: var(--brass-400); }
.site-footer .brand { color: #fff; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); padding-bottom: 3rem; }
.site-footer__legal { margin-top: 1.25rem; font-size: 0.85rem; }
.site-footer__h { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-400); margin-bottom: 1rem; }
[data-script="arabic"] .site-footer__h, [data-script="bengali"] .site-footer__h, [data-script="han"] .site-footer__h { letter-spacing: 0.03em; text-transform: none; font-size: 0.85rem; }
.site-footer__addr { font-style: normal; margin-bottom: 0.75rem; }
.site-footer__nav li { margin-bottom: 0.45rem; }
.site-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgb(255 255 255 / 12%); font-size: 0.8rem; color: rgb(255 255 255 / 55%); }
.site-footer__bar p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .nav-toggle, .band { display: none; } body { background: #fff; } }
