/* ==========================================================================
   Crownsmere Estate — site stylesheet
   Mobile first. Warm white and sand surfaces, navy ink, gold accents.
   Cormorant Garamond for headings, Inter for reading and controls, Cinzel for
   the wordmark only. All fonts are self-hosted (see fonts/OFL.txt).
   Page-specific styles for the student page are in student.css.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); 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: "Cormorant Garamond"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("fonts/cormorant-garamond.woff2") format("woff2"); 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: "Cormorant Garamond"; font-style: italic; font-weight: 300 500; font-display: swap; src: url("fonts/cormorant-garamond-italic.woff2") format("woff2"); 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: "Cinzel"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/cinzel.woff2") format("woff2"); 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; }

:root {
  /* Surfaces */
  --bg: #faf7f1;          /* the page */
  --bg-alt: #f2ebdf;      /* alternate sections */
  --sand: #ebe2d1;        /* footer */
  --card: #fffdf9;        /* cards and forms */
  /* Ink (contrast on --bg / --bg-alt) */
  --ink: #0e1b2e;         /* 16:1 / 14:1 */
  --ink-2: #4a5263;       /* body text: 7.4:1 / 6.6:1 */
  --ink-3: #5c6270;       /* small notes: 5.9:1 / 5.2:1 */
  /* Gold */
  --gold: #b08d57;        /* rules, rings and borders only, never small text */
  --gold-ink: #80612f;    /* gold text: 5.3:1 / 4.8:1 */
  --gold-light: #f0dcb4;  /* gold text on the dark photo overlay */
  --error: #8e2f2f;
  --line: rgba(14, 27, 46, 0.11);
  --line-strong: rgba(14, 27, 46, 0.24);
  --shadow: 0 1px 2px rgba(14, 27, 46, 0.04), 0 12px 32px -12px rgba(14, 27, 46, 0.14);

  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wordmark: "Cinzel", "Trajan Pro", var(--serif);
  --arabic: "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --max: 1200px;
  --gutter: 20px;
  --section: 56px;
  --hd-h: 64px;
  --tab-h: 58px;          /* the tab bar on phones and tablets, without the home-indicator area */
  --r: 6px;
  --r-lg: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 700px) { :root { --gutter: 40px; --section: 88px; } }
@media (min-width: 1000px) { :root { --gutter: 56px; --section: 112px; --hd-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Anchors and keyboard focus stop clear of the sticky header (and the tab bar on phones and tablets). */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 16px); }
@media (max-width: 999px) { html { scroll-padding-bottom: calc(var(--tab-h) + 22px + env(safe-area-inset-bottom)); } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 1000px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: #e8d6b2; color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--r);
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.ic { width: 24px; height: 24px; flex: none; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--gold-ink); }
h1 { font-size: clamp(42px, 5.6vw + 14px, 80px); line-height: 1.02; }
h2 { font-size: clamp(32px, 2.6vw + 20px, 52px); }
.eyebrow {
  margin: 0 0 12px;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
/* Text blocks that colour their paragraphs grey keep their eyebrow gold. */
:is(.split-copy, .story-text) .eyebrow { color: var(--gold-ink); }
.lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 40em; text-wrap: pretty; }
@media (min-width: 1000px) { .lede { font-size: 19px; } }
.fine { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r);
  font: 600 15px/1.15 var(--sans); letter-spacing: 0.01em; text-align: center; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn .ic-arrow { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(3px); }
[dir="rtl"] .btn .ic-arrow { transform: scaleX(-1); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #24344d; }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 599px) { .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Header ---------- */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.hd.is-scrolled { border-bottom-color: var(--line); }
.hd-in { display: flex; align-items: center; gap: 28px; height: var(--hd-h); }
.hd-mark { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; }
.hd-mark img { width: auto; height: 38px; }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm b { font: 500 16px/1 var(--wordmark); letter-spacing: 0.2em; }
.wm small { margin-top: 4px; font: italic 400 15px/1 var(--serif); color: var(--ink-2); }
/* Phones and tablets navigate with the tab bar at the bottom of the screen. */
.hd-nav, .hd-in > .btn { display: none; }
@media (min-width: 1000px) {
  .hd-mark img { height: 44px; }
  .wm b { font-size: 18px; }
  .hd-nav { display: flex; gap: 32px; }
  .hd-nav a { position: relative; padding: 8px 0; font-weight: 500; font-size: 15px; color: var(--ink-2); text-decoration: none; }
  .hd-nav a:hover, .hd-nav a[aria-current] { color: var(--ink); }
  .hd-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--gold); }
  .hd-in > .btn { display: inline-flex; min-height: 44px; padding: 0 20px; font-size: 14px; }
}

/* ---------- Sections ---------- */
.sec { padding-block: var(--section); }
.sec-tight { padding-block: calc(var(--section) * 0.55); }
.sec-alt { background: var(--bg-alt); }
.sec-first { padding-top: 28px; }
.sec-head { max-width: 680px; margin-bottom: 28px; }
.sec-head .lede { margin-top: 14px; }
@media (min-width: 1000px) { .sec-head { margin-bottom: 48px; } .sec-first { padding-top: 64px; } }

.page-hero { padding: 36px 0 8px; }
.page-hero h1 { max-width: 14em; }
.page-hero .lede { margin-top: 16px; }
@media (min-width: 1000px) { .page-hero { padding: 88px 0 16px; } }
.notfound { padding-bottom: var(--section); }
.notfound .btn-row { margin-top: 32px; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  /* On phones the photo leaves room for the first row of tiles on the opening screen. */
  min-height: min(440px, calc(100vh - var(--hd-h) - 200px));
  min-height: min(440px, calc(100svh - var(--hd-h) - 200px));
  background: var(--ink); color: #fff;
}
.hero-media, .hero-media img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 35%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.15) 0%, rgba(8, 17, 31, 0.72) 14%, rgba(8, 17, 31, 0.8) 26%, rgba(8, 17, 31, 0.85) 42%, rgba(8, 17, 31, 0.92) 100%);
}
.hero-in { padding-top: 88px; padding-bottom: 32px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { max-width: 11em; color: #fff; }
.hero h1 em { color: var(--gold-light); }
.hero-sub { max-width: 34em; margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 28px; }
@media (max-width: 599px) { .hero-actions .btn { width: 100%; } }
@media (min-width: 800px) {
  .hero { min-height: min(760px, calc(100vh - var(--hd-h))); min-height: min(760px, calc(100svh - var(--hd-h))); }
  .hero::after { background: linear-gradient(90deg, rgba(8, 17, 31, 0.9) 0%, rgba(8, 17, 31, 0.78) 38%, rgba(8, 17, 31, 0.3) 68%, rgba(8, 17, 31, 0.06) 100%); }
  .hero-in { padding-bottom: 88px; }
  .hero-sub { font-size: 19px; }
}

/* ---------- Home: the neighbourhoods, under the tiles ---------- */
.home-areas { max-width: 46em; margin: 22px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.home-areas a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Tiles: the way into each part of the site (home and services) ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* An odd last tile (the fifth service) spans the row rather than sitting alone. */
.tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 14px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: inherit; text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.3s var(--ease);
}
.tile-ic { width: 28px; height: 28px; margin-bottom: 10px; color: var(--gold-ink); }
.tile :is(h2, h3) { padding-right: 18px; font-size: 24px; text-wrap: initial; }
.tile p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tile-go { position: absolute; top: 18px; right: 14px; width: 18px; height: 18px; color: var(--gold-ink); }
.tile:hover { border-color: rgba(176, 141, 87, 0.55); box-shadow: var(--shadow); }
@media (min-width: 700px) {
  .tiles { gap: 16px; }
  .tile { padding: 24px 24px 26px; }
  .tile-go { top: 26px; right: 22px; }
}
@media (min-width: 1000px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tiles > .tile:last-child:nth-child(odd) { grid-column: auto; }
  .tile { padding: 30px 28px 32px; }
  .tile :is(h2, h3) { font-size: 28px; }
  .tile p { font-size: 15px; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--gold); border-radius: 50%;
  font: 500 15px/1 var(--sans); color: var(--gold-ink);
}
.steps h3 { margin: 7px 0 4px; font-size: 23px; }
.steps p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (min-width: 800px) {
  .steps:not(.steps-sm) { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps:not(.steps-sm) li { grid-template-columns: 1fr; padding: 28px 0 0; border-top-color: var(--line-strong); border-bottom: 0; }
  .steps:not(.steps-sm) h3 { margin-top: 16px; font-size: 27px; }
}
.steps-sm li { padding: 14px 0; }
.steps-sm h3 { margin-top: 2px; font: 600 16px/1.35 var(--sans); letter-spacing: 0; }
.steps-sm .step-n { width: 32px; height: 32px; font-size: 14px; }
.steps-sm li { grid-template-columns: 32px 1fr; gap: 14px; }

/* ---------- Split and signature ---------- */
.split { display: grid; gap: 32px; }
.split h2 { margin-bottom: 16px; }
.split-copy p { color: var(--ink-2); max-width: 36em; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; } }
.sig { display: flex; flex-direction: column; margin-top: 24px; }
.sig b { font: italic 500 27px/1.1 var(--serif); color: var(--gold-ink); }
.sig span { margin-top: 6px; font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Cards (About) ---------- */
.cards { display: grid; gap: 12px; }
.card {
  display: grid; grid-template-columns: 28px 1fr; gap: 6px 14px;
  padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.card .ic { width: 28px; height: 28px; color: var(--gold-ink); }
.card h3 { align-self: center; font-size: 24px; }
.card p { grid-column: 1 / -1; margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .card { grid-template-columns: 1fr; gap: 0; padding: 32px; }
  .card h3 { margin-top: 18px; font-size: 27px; }
  .card p { margin-top: 8px; }
}

/* ---------- Story (About) ---------- */
.story { display: grid; gap: 28px; }
.story-media { margin: 0; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; }
.story-media picture, .story-media img { width: 100%; height: 100%; }
.story-media img { object-fit: cover; object-position: 50% 30%; }
.story-copy p { color: var(--ink-2); }
.story-copy .lead { font: 500 24px/1.35 var(--serif); color: var(--ink); }
@media (min-width: 900px) {
  .story { grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
  .story-media { aspect-ratio: 433 / 610; }
  .story-copy .lead { font-size: 30px; }
}

/* ---------- Profile (About Alaa) ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.profile-hero { padding: 32px 0 8px; }
.profile { display: grid; gap: 28px; }
.profile-copy .lede { margin-top: 16px; }
.profile-copy .tags { margin: 22px 0 26px; }
.profile-media { margin: 0; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 16 / 10; }
.profile-media picture, .profile-media img { width: 100%; height: 100%; }
.profile-media img { object-fit: cover; object-position: 50% 30%; }
@media (min-width: 900px) {
  .profile-hero { padding: 72px 0 24px; }
  .profile { grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
  .profile-media { aspect-ratio: 4 / 5; }
}
.story-text { max-width: calc(760px + 2 * var(--gutter)); }
.story-text h2 { margin-bottom: 20px; }
.story-text p { color: var(--ink-2); }
.story-text .lead { font: 500 24px/1.4 var(--serif); color: var(--ink); }
@media (min-width: 1000px) { .story-text .lead { font-size: 30px; } }
@media (max-width: 699px) {
  .cards-3 { gap: 8px; }
  .cards-3 .card { padding: 16px; }
  .cards-3 .card h3 { font-size: 21px; }
  .cards-3 .card p { margin-top: 4px; }
}
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.checks-lg { gap: 14px; }
.checks-lg li { font-size: 16px; }
.split .fine a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.whos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 699px) {
  .whos .who { padding: 14px; }
  .whos .who b { font-size: 19px; }
  .whos .who span { font-size: 13px; line-height: 1.4; }
  .who-go { display: none; }
}
.who {
  position: relative; display: grid; gap: 2px; padding: 16px 44px 16px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: inherit; text-decoration: none; transition: border-color 0.2s, box-shadow 0.3s var(--ease);
}
.who b { font: 500 22px/1.2 var(--serif); }
.who span { font-size: 14px; color: var(--ink-2); }
.who-go { position: absolute; top: 50%; right: 16px; width: 18px; height: 18px; margin-top: -9px; color: var(--gold-ink); }
.who:hover { border-color: rgba(176, 141, 87, 0.55); box-shadow: var(--shadow); }
@media (min-width: 700px) { .whos { gap: 16px; } }
@media (min-width: 1000px) { .whos { grid-template-columns: repeat(3, 1fr); } }
.stats { display: grid; gap: 12px; margin: 0; }
.stats div { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.stats dd { margin: 0 0 4px; font: 500 40px/1 var(--serif); color: var(--gold-ink); }
.stats dt { font-size: 14px; color: var(--ink-2); }
.stats div { display: flex; flex-direction: column-reverse; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } }
.more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px;
  font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--gold); text-underline-offset: 5px;
}
.more .ic-arrow { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.more:hover .ic-arrow { transform: translateX(3px); }

/* ---------- Areas ---------- */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.tags-sm li { padding: 6px 12px; font-size: 14px; }
.tags .tags-more { background: transparent; border-style: dashed; border-color: var(--line-strong); color: var(--ink-2); }

/* Heading beside the content on wide screens (areas, questions) */
@media (min-width: 1000px) {
  .sec-split { display: grid; grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; }
  .sec-split .sec-head { position: sticky; top: calc(var(--hd-h) + 32px); margin-bottom: 0; }
  .sec-split .tags { padding-top: 8px; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; list-style: none; cursor: pointer;
  font: 500 21px/1.3 var(--serif);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { width: 20px; height: 20px; color: var(--gold-ink); transition: transform 0.3s var(--ease); }
.faq-item[open] .faq-ic { transform: rotate(45deg); }
.faq-a p { max-width: 62ch; margin: 0; padding: 0 0 20px; color: var(--ink-2); }
@media (min-width: 1000px) { .faq-item summary { padding: 22px 0; font-size: 24px; } }

/* ---------- Service pages ---------- */
/* Breadcrumb back to Services, in place of the eyebrow. */
.crumbs ol {
  list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px;
  font: 600 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-3); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--gold-ink); text-underline-offset: 3px; }
.svc-groups { display: grid; gap: 36px; }
.svc-group { max-width: 760px; }
.svc-group h2 { margin-bottom: 14px; font-size: clamp(28px, 1.6vw + 20px, 38px); }
.svc-group p { color: var(--ink-2); }
@media (min-width: 900px) { .svc-groups { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 72px; } }
/* All services, and the next service, before the closing invitation. */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: calc(var(--section) * 0.55);
}
.pager .more { margin-top: 0; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; }
.checks .ic { width: 20px; height: 20px; margin-top: 1px; color: var(--gold-ink); }
@media (min-width: 900px) { .checks { padding-top: 26px; } }
.callout {
  display: grid; gap: 20px; padding: 28px 24px;
  background: var(--bg-alt); border: 1px solid rgba(176, 141, 87, 0.4); border-radius: var(--r-lg);
}
.callout h2 { margin: 0 0 8px; font-size: clamp(28px, 1.8vw + 20px, 40px); }
.callout p { color: var(--ink-2); }
@media (min-width: 800px) { .callout { grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 40px 48px; } }

/* ---------- Closing call to action ---------- */
.cta { background: var(--bg-alt); text-align: center; }
.cta .wrap { max-width: calc(780px + 2 * var(--gutter)); }
.cta .lede { margin: 16px auto 0; }
.cta .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Enquiry layout (contact) ---------- */
.enquiry { display: grid; gap: 28px; grid-template-areas: "intro" "form" "aside"; }
.enquiry-intro { grid-area: intro; }
.enquiry-intro .lede { margin-top: 16px; }
.form-card {
  grid-area: form; min-width: 0;
  padding: 22px 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.enquiry-aside { grid-area: aside; }
.aside-title { margin: 0 0 8px; font: 600 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.contact-list { display: grid; gap: 14px; margin: 24px 0 0; }
.contact-list dt { font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.contact-list dd { margin: 2px 0 0; }
@media (min-width: 600px) { .form-card { padding: 32px; } }
@media (min-width: 1000px) {
  .enquiry { grid-template-columns: 5fr 7fr; grid-template-areas: "intro form" "aside form"; gap: 40px 72px; align-items: start; }
  .enquiry-intro { padding-top: 16px; }
  .form-card { padding: 40px; }
}

/* ---------- Forms (contact and students) ---------- */
.form-card :is(input:not([type="radio"], [type="checkbox"], [type="hidden"]), select, textarea) {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: #fff; color: var(--ink);
  font: 400 16px/1.4 var(--sans);
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-card select {
  padding-right: 42px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1b2e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
[dir="rtl"] .form-card select { padding-right: 14px; padding-left: 42px; background-position: left 14px center; }
.form-card textarea { min-height: 116px; resize: vertical; }
.form-card ::placeholder { color: #767c87; opacity: 1; }
.form-card :is(input, select, textarea):focus { outline: none; border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.28); }
.form-card input[type="checkbox"], .form-card input[type="radio"] { accent-color: var(--ink); }

.steps-nav { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps-nav li {
  padding-top: 10px; border-top: 3px solid var(--line);
  font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
  transition: border-color 0.3s, color 0.3s;
}
.steps-nav li.on, .steps-nav li.done { border-top-color: var(--gold); color: var(--ink); }
/* Announced to screen readers; the bar above shows the same progress visually. */
.step-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.steps-nav { margin-bottom: 22px; }
.letter-form:not(.stepped) .steps-nav { display: none; }
.letter-form.stepped .step:not(.on) { display: none; }
.step + .step { margin-top: 32px; }
.letter-form.stepped .step + .step { margin-top: 0; }
.step-title { margin: 0 0 20px; font-size: 28px; }
.step-title:focus { outline: none; }

.field { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.field > label, .field > legend { display: block; margin: 0 0 8px; padding: 0; font: 600 14px/1.35 var(--sans); color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-3); }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices > legend { width: 100%; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 15px; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 6px 0 22px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; }
.invalid :is(input, select, textarea), .choices.invalid .choice span { border-color: var(--error); }
.consent.invalid, .choices.invalid > legend { color: var(--error); }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.step-actions .btn-primary { flex: 1 1 auto; max-width: 260px; margin-left: auto; }
.form-status { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.form-status:empty { display: none; }
.form-status.error { color: var(--error); }
.contact-mail-backup { margin-top: 16px; padding: 20px; background: var(--bg-alt); border-radius: var(--r); }
.contact-mail-backup h3 { margin-bottom: 8px; font-size: 24px; }
.contact-mail-backup p { font-size: 15px; color: var(--ink-2); }
.contact-mail-backup .btn-row { margin: 16px 0 8px; }
.contact-copy-label { display: grid; gap: 8px; margin-top: 12px; font-weight: 600; font-size: 14px; }
.hp, .std-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Webmail alternatives for computers, where mailto: links often open nothing. Touch screens
   (phones, tablets) open their own mail app, so they skip these. */
.webmail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 8px; font-size: 14px; color: var(--ink-2); }
.webmail span { flex-basis: 100%; }
.webmail .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
@media (pointer: coarse) { .webmail { display: none; } }

/* ---------- Fees and client comments (shown once filled in, see tools/build.py) ---------- */
.fee-list { display: grid; margin: 0; border-top: 1px solid var(--line-strong); }
.fee-list div { display: grid; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fee-list dt { font-weight: 600; }
.fee-list dd { margin: 0; color: var(--ink-2); }
@media (min-width: 700px) { .fee-list div { grid-template-columns: 1fr 1.4fr; } }
.quotes { display: grid; gap: 16px; }
.quote { margin: 0; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.quote blockquote { margin: 0; font: italic 500 22px/1.4 var(--serif); }
.quote figcaption { margin-top: 14px; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; } }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: calc(760px + 2 * var(--gutter)); }
.prose h2 { margin: 40px 0 12px; font-size: 30px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.updated { font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Footer ---------- */
.ft { background: var(--sand); padding-bottom: 24px; }
.ft-skyline img {
  width: min(100%, 760px); margin: 0 auto; opacity: 0.5; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.ft-in { display: grid; gap: 20px; padding-top: 24px; }
.ft-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.ft-mark img { width: auto; height: 40px; }
.ft-brand p { max-width: 30em; margin: 12px 0 6px; font-size: 15px; color: var(--ink-2); }
.ft-mail { font-weight: 600; text-underline-offset: 4px; }
/* Two columns of links: the services, and the rest of the site. */
.ft-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.ft-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.ft-h { display: flex; align-items: center; min-height: 32px; margin: 0 0 2px; font: 600 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.ft-nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.ft-nav .ft-h a { min-height: 32px; font: inherit; color: inherit; }
.ft-nav a[lang="ar"] { font-family: var(--arabic); }
.ft-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.ft-legal { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.ft-reg { grid-column: 1 / -1; margin: -8px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
@media (min-width: 900px) {
  .ft-in { grid-template-columns: 1fr auto; align-items: end; gap: 28px 64px; }
  .ft-nav { gap: 0 64px; }
  .ft-legal { grid-column: 1 / -1; }
}

/* ---------- Tab bar: the main navigation on phones and tablets, always on screen ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 4px max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
  background: rgba(250, 247, 241, 0.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transition: transform 0.3s var(--ease);
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 0; min-height: var(--tab-h); padding: 4px 2px;
  font: 600 11px/1.15 var(--sans); letter-spacing: 0.02em; color: var(--ink-2); text-align: center; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.tabbar .ic { width: 22px; height: 22px; }
.tabbar a:hover, .tabbar a[aria-current] { color: var(--ink); }
.tabbar a[aria-current] .ic { color: var(--gold-ink); }
/* A short gold line on top of the current tab, as in the desktop navigation. */
.tabbar a[aria-current]::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 28px; height: 2px; margin-left: -14px;
  border-radius: 2px; background: var(--gold);
}
.tabbar[dir="rtl"] a { font: 600 12px/1.2 var(--arabic); letter-spacing: 0; }
/* Out of the way while the visitor fills in a form field (the phone keyboard needs the room). */
body:has(:is(input, select, textarea):focus) .tabbar { transform: translateY(110%); }
@media (max-width: 999px) { .ft { padding-bottom: calc(var(--tab-h) + 32px + env(safe-area-inset-bottom)); } }
@media (min-width: 1000px) { .tabbar { display: none; } }

/* ---------- Reveal (only when motion is welcome; content is visible without JavaScript) ---------- */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }

/* Pages cross-fade into each other in browsers that support it; the header and tab bar stay put. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .hd { view-transition-name: site-header; }
  .tabbar { view-transition-name: tab-bar; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
  .hd, .tabbar, .ft-skyline { display: none !important; }
  .hero { min-height: 0; color: var(--ink); background: none; }
  .hero::after, .hero-media { display: none; }
  .hero h1, .hero-sub { color: var(--ink); }
}


/* ==========================================================================
   November 2026: whole-site editorial refinement, informed by Mobbin's
   property, consultancy, contact and navigation references.
   Preserves Crownsmere's own typography, brand and reduced-motion preferences.
   ========================================================================== */
:root {
  --r: 9px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(14, 27, 46, .035), 0 18px 42px -16px rgba(14, 27, 46, .14);
}
h1, h2, h3 { letter-spacing: -.025em; }
.lede { text-wrap: pretty; }
.btn { border-radius: 10px; }
.btn-primary { box-shadow: 0 5px 16px rgba(14, 27, 46, .1); }
.btn:active { transform: translateY(1px); }
.hd { border-bottom-color: rgba(14,27,46,.045); }
@media (min-width: 1000px) {
  .hd-nav { gap: clamp(16px,2.1vw,26px); }
  .hd-nav a { font-size: 14px; }
}
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.62); background: rgba(8,17,31,.22); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.tile, .card, .who, .quote { box-shadow: 0 6px 26px rgba(14,27,46,.025); }
.tile, .who { transition: transform .25s var(--ease), border-color .25s, box-shadow .3s var(--ease); }
.tile:hover, .who:hover { transform: translateY(-2px); }
.tile-go { color: var(--gold-ink); }
.page-hero { border-bottom: 1px solid rgba(14,27,46,.045); }
.sec-head h2 { max-width: 18ch; }
.sec-alt { background: #f5eee3; }
.callout { border-radius: 22px; box-shadow: 0 10px 35px rgba(14,27,46,.045); }
.form-card { border-radius: 22px; box-shadow: 0 16px 54px rgba(14,27,46,.075); }
.form-card :is(input:not([type="radio"],[type="checkbox"],[type="hidden"]),select,textarea) { border-radius: 9px; }
.faq-item summary { border-radius: 6px; }
.profile-media,.story-media { border-radius: 22px; }
.profile-media img,.story-media img { transition: transform .75s var(--ease); }
@media (hover: hover) {
  .profile-media:hover img,.story-media:hover img { transform: scale(1.018); }
}
.cta { background: radial-gradient(circle at 90% 15%, rgba(176,141,87,.11),transparent 31%), #f4eee3; }
.cta .btn-row { gap: 12px; }
.ft { border-top: 1px solid rgba(14,27,46,.09); }
.ft-nav a { transition: color .2s; }
.tabbar a { transition: color .2s; }
@media (max-width: 599px) {
  .tile { border-radius: 14px; }
  .tile:hover,.who:hover { transform: none; }
  .hero .btn-ghost { border-color: rgba(255,255,255,.6); }
}
@media (prefers-reduced-motion: reduce) {
  .tile,.who,.profile-media img,.story-media img,.btn { transition: none !important; }
  .tile:hover,.who:hover,.profile-media:hover img,.story-media:hover img,.btn:active { transform: none; }
}
