/* The Ayah Garden website. Plain CSS (the student portal has its own styling).
   Calm and unhurried: generous space, one accent, few words. */
:root {
  --cream: #fbfaf6;
  --ivory: #f5f1e8;
  --forest: #2d4f35;
  --night: #172a1d;
  --night-2: #1f3a27;
  --gold: #c39a64;
  --gold-light: #e6cfa3;
  --gold-deep: #8a6532;
  --ink: #2a2e2a;
  --muted: #565d56;
  --line: #e2dccd;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;
  --arabic: 'Amiri', 'Traditional Arabic', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--forest); text-underline-offset: 4px; }
a:hover { color: var(--night); }
h1, h2, h3 { font-family: var(--serif); color: var(--forest); font-weight: 500; line-height: 1.12; margin: 0 0 0.55em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.8rem, 7.5vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.65rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 42rem); margin-inline: auto; }
.eyebrow { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1.1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 1.2rem; min-height: 4.4rem; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 0.7rem; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; color: var(--forest); text-decoration: none; letter-spacing: 0.01em; margin-inline-end: auto; }
.brand svg { width: 1.6rem; height: 1.6rem; flex: none; }
.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav a { padding: 0.5rem 0.95rem; text-decoration: none; color: var(--ink); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.03em; position: relative; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.25rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav a:not(.btn):hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.nav .login { color: var(--muted); }
.menu { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.9rem; font: inherit; font-size: 0.82rem; color: var(--forest); cursor: pointer; }

/* Buttons: one main action, in gold */
.btn { display: inline-block; padding: 0.85rem 1.8rem; border-radius: 999px; background: var(--forest); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; border: 1px solid var(--forest); cursor: pointer; font-family: inherit; transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s; }
.btn:hover { background: var(--night); box-shadow: 0 10px 24px rgba(23, 42, 29, 0.25); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--night) !important; }
.btn.gold:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: 0 10px 28px rgba(195, 154, 100, 0.35); }
.btn.ghost { background: transparent; color: var(--forest) !important; border-color: var(--forest); }
.btn.ghost:hover { background: var(--forest); color: #fff !important; box-shadow: none; }
.on-dark .btn.ghost { color: #fff !important; border-color: rgba(255, 255, 255, 0.5); }
.on-dark .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn.small { padding: 0.55rem 1.25rem; font-size: 0.78rem; }
.arrow { text-decoration: none; font-weight: 600; font-size: 0.86rem; letter-spacing: 0.06em; color: var(--forest); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.arrow::after { content: ' →'; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; margin-top: 2rem; }

/* The dark opening */
.on-dark { color: #d6e0d3; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .eyebrow { color: var(--gold); }
.on-dark .lead { color: #b9c8b5; }
.on-dark a:not(.btn):not(.arrow) { color: #fff; }
.on-dark .arrow { color: #fff; }
.hero { position: relative; padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 9vw, 7rem); background: radial-gradient(50rem 28rem at 80% 0%, rgba(195, 154, 100, 0.2), transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23c39a64' stroke-opacity='.11' stroke-width='1'%3E%3Crect x='17' y='17' width='38' height='38'/%3E%3Crect x='17' y='17' width='38' height='38' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.hero .wrap { display: grid; gap: 4rem; align-items: center; grid-template-columns: 1.15fr 0.85fr; }
.hero h1 { margin-bottom: 0.4em; }
.verse { text-align: center; padding: 2.6rem 1.6rem; border: 1px solid rgba(195, 154, 100, 0.45); border-radius: 0.4rem; position: relative; }
.verse::before, .verse::after { content: '✦'; position: absolute; left: 50%; transform: translateX(-50%); background: var(--night-2); color: var(--gold); padding: 0 0.7rem; font-size: 0.8rem; }
.verse::before { top: -0.7rem; }
.verse::after { bottom: -0.7rem; }
.verse .arabic { font-family: var(--arabic); font-size: clamp(2rem, 4.4vw, 2.8rem); color: var(--gold-light); line-height: 1.9; margin: 0 0 0.8rem; }
.verse .en { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: #e8efe5; margin: 0 0 0.4rem; }
.verse .ref { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin: 0; }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.ivory { background: var(--ivory); }
.night { background: linear-gradient(180deg, var(--night-2), var(--night)); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .actions { justify-content: center; }
.statement { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.3; color: var(--forest); text-align: center; max-width: 46rem; margin: 0 auto; }
.rule { width: 3.5rem; height: 1px; background: var(--gold); margin: 0 auto 1.8rem; border: 0; }

/* Courses on the home page: a quiet list */
.course-list { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.course-list a { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.4rem 0.4rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: padding 0.25s, background 0.25s; }
.course-list a:hover { padding-inline-start: 1.1rem; background: rgba(195, 154, 100, 0.08); }
.course-list .no { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-deep); }
.course-list h3 { margin: 0 0 0.15em; font-size: 1.7rem; }
.course-list p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.course-list .go { color: var(--gold-deep); font-size: 1.3rem; }

/* Three short ideas */
.pillars { display: grid; gap: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 3rem; }
.pillar { border-top: 1px solid var(--gold); padding-top: 1.2rem; }
.pillar .no { font-family: var(--serif); color: var(--gold-deep); font-size: 1.1rem; display: block; margin-bottom: 0.4rem; }
.pillar h3 { font-size: 1.6rem; }
.pillar p { color: var(--muted); margin: 0; }
.on-dark .pillar p { color: #b9c8b5; }
.on-dark .pillar .no { color: var(--gold); }

.people { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 2.5rem; }
.person { display: flex; gap: 1.2rem; align-items: center; }
.person .face { flex: none; width: 4rem; height: 4rem; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.7rem; color: var(--forest); background: #fff; }
.person h3 { margin: 0; font-size: 1.55rem; }
.person p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Pages */
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 4vw, 3rem); background: var(--ivory); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); margin-bottom: 0.3em; }
.page-head .lead { margin-bottom: 0; }

/* A course in full */
.course { display: grid; gap: 1.5rem 3rem; grid-template-columns: 11rem 1fr; padding: 3rem 0; border-bottom: 1px solid var(--line); }
.course:last-of-type { border-bottom: 0; }
.course .side .no { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--gold); display: block; }
.course .side .level { display: inline-block; margin-top: 0.8rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); border: 1px solid var(--gold); border-radius: 999px; padding: 0.25rem 0.8rem; }
.course h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin-bottom: 0.3em; }
.course .blurb { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.course dl { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.5rem 1rem; margin: 1.4rem 0 0; font-size: 0.95rem; }
.course dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); padding-top: 0.3rem; }
.course dd { margin: 0; }
ul.ticks { list-style: none; padding: 0; margin: 1.1rem 0; }
ul.ticks li { padding-inline-start: 1.8rem; position: relative; margin-bottom: 0.5rem; }
ul.ticks li::before { content: '✦'; position: absolute; inset-inline-start: 0; top: 0.1em; color: var(--gold); font-size: 0.75rem; }

.ways { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: 2.5rem; }
.way { border-top: 1px solid var(--gold); padding-top: 1rem; }
.way h3 { font-size: 1.5rem; margin-bottom: 0.25em; }
.way p { color: var(--muted); font-size: 0.97rem; margin: 0; }

.steps { counter-reset: step; display: grid; gap: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 3rem 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; border-top: 1px solid var(--gold); padding-top: 1.1rem; }
.steps li::before { content: '0' counter(step); font-family: var(--serif); font-size: 1.1rem; color: var(--gold-deep); display: block; margin-bottom: 0.4rem; }
.steps h3 { font-size: 1.6rem; margin-bottom: 0.25em; }
.steps p { color: var(--muted); margin: 0; }

/* Questions */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 1.25rem 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--forest); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold-deep); font-size: 1.6rem; line-height: 1; transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 0.4rem; max-width: 36rem; }

/* The request form */
form.enquiry { display: grid; gap: 1.2rem; }
label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.4rem; color: var(--gold-deep); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 0.85rem 0.2rem; border: 0; border-bottom: 1px solid #c9c2b0; border-radius: 0; background: transparent; color: var(--ink); }
select { padding-inline: 0; }
input:focus, select:focus, textarea:focus { outline: 0; border-bottom-color: var(--forest); box-shadow: 0 1px 0 var(--forest); }
textarea { min-height: 8rem; resize: vertical; border: 1px solid #c9c2b0; padding: 0.9rem 1rem; border-radius: 0.3rem; }
textarea:focus { box-shadow: none; border-color: var(--forest); }
.row { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.note { font-size: 0.86rem; color: var(--muted); }
.ok { background: var(--ivory); border-left: 3px solid var(--gold); padding: 1.1rem 1.3rem; color: var(--forest); font-weight: 500; }
.bad { background: #fbe9e7; border-left: 3px solid #b3402f; padding: 1rem 1.3rem; color: #8a2d1f; }

/* Footer */
.footer { background: var(--night); color: #a9b8a6; padding: 4rem 0 2.2rem; font-size: 0.92rem; }
.footer .wrap { display: grid; gap: 2.5rem; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer h3 { color: #fff; font-size: 1.35rem; margin-bottom: 0.6rem; }
.footer .brand { color: #fff; margin-bottom: 0.8rem; }
.footer a { color: #d6e0d3; text-decoration: none; display: block; padding: 0.18rem 0; }
.footer a:hover { color: var(--gold-light); }
.footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.4rem; font-size: 0.8rem; color: #8ea08b; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(16px); animation: rise 0.9s ease forwards; }
  .rise:nth-child(2) { animation-delay: 0.1s; }
  .rise:nth-child(3) { animation-delay: 0.2s; }
  .rise:nth-child(4) { animation-delay: 0.3s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

@media (max-width: 56rem) {
  .hero .wrap { grid-template-columns: 1fr; gap: 3.2rem; }
  .menu { display: inline-block; }
  .header .wrap { gap: 0.7rem; }
  .brand { font-size: 1.35rem; gap: 0.5rem; }
  .brand svg { width: 1.3rem; height: 1.3rem; }
  .header .cta { padding: 0.45rem 0.85rem; font-size: 0.68rem; white-space: nowrap; letter-spacing: 0.03em; }
  .menu { padding: 0.4rem 0.75rem; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--cream); border-bottom: 1px solid var(--line); padding: 0.6rem 1.25rem 1.2rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.95rem 0.2rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .nav a::after { display: none; }
  .course { grid-template-columns: 1fr; padding: 2.4rem 0; }
  .course .side { display: flex; align-items: center; gap: 1rem; }
  .course .side .no { font-size: 2.2rem; }
  .course .side .level { margin-top: 0; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer .wrap > div:first-child { grid-column: 1 / -1; }
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 26rem) {
  .header .brand svg { display: none; }
}
@media (max-width: 30rem) {
  .course dl { grid-template-columns: 1fr; gap: 0; }
  .course dt { padding-top: 0.8rem; }
  .course-list a { grid-template-columns: 2.4rem 1fr; }
  .course-list .go { display: none; }
}

/* Fees, with a choice of currency */
.fee-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.fee { border-top: 1px solid var(--gold); padding-top: 1.1rem; }
.fee .mins { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.3rem; }
.fee .price { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.05; color: var(--forest); }
.fee .price small { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--muted); }
.fee .conv { display: block; min-height: 1.9rem; margin-top: 0.2rem; font-family: var(--serif); font-size: 1.5rem; color: var(--gold-deep); }
.currency { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 1.8rem; }
.currency label { margin: 0; }
.currency select { width: auto; min-width: 14rem; padding: 0.55rem 0.4rem; border: 1px solid #c9c2b0; border-radius: 0.3rem; background: #fff; }
.currency .note { margin: 0; }
.fine-print { max-width: 40rem; margin-top: 1.2rem; }

.fee .price, .fee .conv { font-variant-numeric: lining-nums; }
