/* ==========================================================================
   THOWJEEH — public site
   A warm, classical madrassa aesthetic: emerald, gold, cream and geometry.
   ========================================================================== */

:root {
  --brand: #0c3b32;
  --brand-deep: #072720;
  --brand-mid: #115648;
  --gold: #c39b52;
  --gold-soft: #e6cf9a;
  --gold-dark: #9a7433;
  --cream: #f8f3e8;
  --cream-2: #f1e9d7;
  --sand: #ece1ca;
  --ink: #122720;
  --muted: #5d6f67;
  --white: #fffdf8;
  --line: rgba(18, 39, 32, 0.12);
  --line-gold: rgba(195, 155, 82, 0.38);
  --shadow: 0 26px 64px -32px rgba(7, 39, 32, 0.5);
  --shadow-soft: 0 16px 40px -26px rgba(7, 39, 32, 0.45);
  --radius: 22px;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23c39b52' stroke-width='.75'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='5'/%3E%3Cpath d='M0 48h20M76 48h20M48 0v20M48 76v20'/%3E%3C/g%3E%3C/svg%3E");
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, p, blockquote, figure {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--gold);
  color: var(--brand-deep);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  background: var(--gold);
  color: var(--brand-deep);
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

.container.narrow {
  width: min(880px, 100% - 3rem);
}

/* --------------------------------------------------------------------------
   Type & shared bits
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--gold-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.eyebrow.solo::before {
  display: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 1rem;
}

.section-title.light {
  color: var(--cream);
}

.section-intro {
  max-width: 640px;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.section-intro.light {
  color: rgba(248, 243, 232, 0.68);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.3rem auto 1.5rem;
  color: var(--gold);
}

.ornament span {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold));
}

.ornament span:last-child {
  background: linear-gradient(90deg, var(--line-gold), transparent);
}

.ornament svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section.tinted {
  background: var(--sand);
}

.section.tinted::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 96px;
  opacity: 0.05;
  pointer-events: none;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(2.6rem, 5vw, 4.2rem);
  text-align: center;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head .ornament {
  margin: 1.15rem auto 1.35rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.btn .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.35s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 60%, var(--gold-dark));
  color: #2b2008;
  box-shadow: 0 14px 34px -16px rgba(195, 155, 82, 0.8);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -16px rgba(195, 155, 82, 0.85);
}

.btn-ghost {
  border-color: rgba(248, 243, 232, 0.35);
  color: var(--cream);
  background: rgba(248, 243, 232, 0.03);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border-color: rgba(18, 39, 32, 0.3);
  color: var(--ink);
}

.btn-outline-dark:hover {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}

.btn-small {
  padding: 0.68rem 1.25rem;
  font-size: 0.72rem;
}

.btn-wide {
  width: 100%;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  padding: 1.15rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
    box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195, 155, 82, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.site-header.scrolled {
  padding: 0.6rem 0;
  background: rgba(6, 30, 25, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 18px 46px -30px rgba(0, 0, 0, 0.8);
}

.site-header.scrolled::after {
  opacity: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--cream);
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 7px;
  border: 1px solid rgba(195, 155, 82, 0.55);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(195, 155, 82, 0.06);
  transition: transform 0.6s var(--ease), border-color 0.4s;
}

.brand:hover .brand-mark {
  transform: rotate(45deg);
  border-color: var(--gold);
}

.brand-mark .mark,
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand:has(img) .brand-mark {
  width: auto;
  min-width: 46px;
  max-width: 190px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.brand:has(img) .brand-mark img {
  width: auto;
  max-width: 190px;
  height: 100%;
  border-radius: 0;
}

.brand .brand-mark.logo-light,
.footer-brand .brand-mark.logo-light {
  padding: 4px;
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: 9px;
  background: var(--cream);
}

.brand .brand-mark.logo-dark,
.footer-brand .brand-mark.logo-dark {
  padding: 4px;
  border: 1px solid rgba(195, 155, 82, 0.45);
  border-radius: 9px;
  background: var(--brand-deep);
}

.brand .brand-mark.logo-none,
.footer-brand .brand-mark.logo-none {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--cream);
}

.brand-sub {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(230, 207, 154, 0.72);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.nav a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(248, 243, 232, 0.82);
  padding: 0.35rem 0;
  transition: color 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s var(--ease);
}

.nav a:hover {
  color: var(--gold-soft);
}

.nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(248, 243, 232, 0.28);
  border-radius: 50%;
  background: transparent;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--cream);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 9.5rem 0 7.5rem;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(120% 100% at 50% -20%, #135849 0%, var(--brand) 46%, var(--brand-deep) 100%);
  isolation: isolate;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 104px;
  opacity: 0.09;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 42%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 42%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(195, 155, 82, 0.16), transparent 62%);
  pointer-events: none;
}

.hero-rosette {
  position: absolute;
  width: min(88vw, 780px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  opacity: 0.1;
  pointer-events: none;
  animation: rosette 210s linear infinite;
}

@keyframes rosette {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-frame {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(230, 207, 154, 0.16);
  pointer-events: none;
}

.hero-frame .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(230, 207, 154, 0.55);
  border-style: solid;
  border-width: 0;
}

.hero-frame .tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.hero-frame .tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.hero-frame .bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.hero-frame .br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--gold-soft);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-kicker::before,
.hero-kicker::after {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 207, 154, 0.6));
}

.hero-kicker::after {
  background: linear-gradient(90deg, rgba(230, 207, 154, 0.6), transparent);
}

.hero-title {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.6vw, 6.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-title .line {
  display: block;
  color: var(--cream);
}

.hero-title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--gold-soft) 0%, var(--gold) 55%, #a87f3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.hero-arabic {
  margin-top: 2.2rem;
  font-family: var(--font-arabic);
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  line-height: 1.7;
  color: var(--gold-soft);
}

.hero-arabic-note {
  margin-top: 0.2rem;
  color: rgba(248, 243, 232, 0.5);
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

.hero-sub {
  max-width: 660px;
  margin: 1.7rem auto 0;
  color: rgba(248, 243, 232, 0.74);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  font-weight: 300;
  line-height: 1.85;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-note {
  margin-top: 1.5rem;
  color: rgba(230, 207, 154, 0.62);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 780px;
  margin: 3.4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(230, 207, 154, 0.18);
}

.stat {
  padding: 0.2rem 1rem;
  border-left: 1px solid rgba(230, 207, 154, 0.14);
}

.stat:first-child {
  border-left: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-soft);
}

.stat span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 243, 232, 0.48);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  z-index: 3;
  color: rgba(230, 207, 154, 0.55);
}

.scroll-cue span {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
}

.scroll-cue small {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.about-copy .eyebrow::before {
  display: none;
}

.about-copy .ornament {
  justify-content: flex-start;
  margin: 1.2rem 0 1.6rem;
}

.about-copy .ornament span:last-child {
  display: none;
}

.prose p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.95;
  margin-bottom: 1.05rem;
}

.prose p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.78;
  padding: 0.06em 0.12em 0 0;
  color: var(--gold-dark);
}

.about-quote {
  position: relative;
  margin-top: 2rem;
  padding: 0.2rem 0 0.2rem 1.5rem;
  border-left: 2px solid var(--gold);
}

.about-quote .quote-glyph {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 600;
  line-height: 0.55;
  color: var(--gold);
}

.about-quote p {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

.about-quote cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(195, 155, 82, 0.2), transparent 60%),
    linear-gradient(165deg, var(--brand-mid), var(--brand-deep));
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 90px;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.25));
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.25));
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(230, 207, 154, 0.24);
  border-radius: inherit;
  pointer-events: none;
}

.about-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-frame {
  position: relative;
  z-index: 1;
  padding: 2rem;
  text-align: center;
  color: var(--gold-soft);
}

.visual-frame .visual-mark {
  width: 46px;
  height: 46px;
  margin: 0 auto 1.2rem;
  color: var(--gold);
  opacity: 0.85;
}

.visual-frame .visual-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(3.4rem, 6vw, 5rem);
  line-height: 1.2;
  color: var(--gold-soft);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.visual-frame .visual-name {
  margin-top: 0.6rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(248, 243, 232, 0.6);
}

.visual-frame .visual-caption {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(230, 207, 154, 0.22);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 243, 232, 0.55);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.feature {
  position: relative;
  padding: 1.7rem 1.5rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: 1.1rem;
  color: var(--gold-dark);
  background: linear-gradient(145deg, var(--cream), var(--sand));
  border: 1px solid var(--line-gold);
}

.feature-icon .icon {
  width: 21px;
  height: 21px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
}

.feature p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Courses
   -------------------------------------------------------------------------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem 1.7rem;
  background: var(--white);
  border: 1px solid rgba(18, 39, 32, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-soft), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.course-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow);
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.course-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--brand);
  background: linear-gradient(145deg, var(--cream), var(--sand));
  border: 1px solid var(--line-gold);
}

.course-icon .icon {
  width: 26px;
  height: 26px;
}

.course-arabic {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--gold-dark);
  text-align: right;
}

.course-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.15;
}

.course-desc {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.05rem;
}

.chip {
  padding: 0.32rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.course-features {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 1.4rem;
}

.course-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(18, 39, 32, 0.82);
}

.course-features .icon {
  width: 14px;
  height: 14px;
  margin-top: 0.22rem;
  color: var(--gold-dark);
  stroke-width: 2.2;
}

.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--line-gold);
}

.price {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--brand);
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-dark);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.course-link .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.35s var(--ease);
}

.course-link:hover .icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Teachers
   -------------------------------------------------------------------------- */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.teacher-card {
  text-align: center;
}

.teacher-photo {
  position: relative;
  aspect-ratio: 4 / 4.7;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  background:
    radial-gradient(80% 60% at 50% 10%, rgba(195, 155, 82, 0.24), transparent 65%),
    linear-gradient(165deg, var(--brand-mid), var(--brand-deep));
  border: 1px solid var(--line-gold);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.teacher-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 74px;
  opacity: 0.15;
}

.teacher-card:hover .teacher-photo {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.teacher-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.teacher-initials {
  position: relative;
  z-index: 0;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

.teacher-body {
  padding: 1.25rem 0.5rem 0;
}

.teacher-card h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.2;
}

.teacher-role {
  margin-top: 0.4rem;
  color: var(--gold-dark);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.teacher-arabic {
  margin-top: 0.3rem;
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  color: var(--muted);
}

.teacher-bio {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Journey
   -------------------------------------------------------------------------- */
.journey {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(195, 155, 82, 0.14), transparent 65%),
    linear-gradient(165deg, var(--brand) 0%, var(--brand-deep) 100%);
}

.journey-pattern {
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 100px;
  opacity: 0.1;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 75%, transparent);
  pointer-events: none;
}

.journey .container {
  position: relative;
  z-index: 1;
}

.journey .section-head .eyebrow {
  color: var(--gold-soft);
}

.journey .section-head .eyebrow::before,
.journey .section-head .eyebrow::after {
  background: linear-gradient(90deg, transparent, var(--gold));
}

.journey .section-head .eyebrow::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.steps::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195, 155, 82, 0.55), rgba(195, 155, 82, 0.55), transparent);
}

.step {
  position: relative;
  text-align: center;
  padding: 0 0.6rem;
}

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 1.35rem;
  border: 1px solid rgba(195, 155, 82, 0.6);
  border-radius: 50%;
  background: var(--brand-deep);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  box-shadow: 0 0 0 8px rgba(7, 39, 32, 0.9);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cream);
}

.step p {
  margin-top: 0.6rem;
  color: rgba(248, 243, 232, 0.6);
  font-size: 0.84rem;
  line-height: 1.75;
}

.journey-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(230, 207, 154, 0.16);
}

.journey-cta p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gold-soft);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.3rem 1.9rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.45rem;
  left: 1.4rem;
  font-family: var(--font-display);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
}

.testimonial-stars {
  display: flex;
  gap: 0.22rem;
  margin-bottom: 0.9rem;
  color: var(--gold);
}

.testimonial-stars .icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke-width: 1;
}

.testimonial blockquote p {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-style: italic;
  line-height: 1.62;
  color: rgba(18, 39, 32, 0.9);
}

.testimonial-author {
  margin-top: auto;
  padding-top: 1.4rem;
}

.testimonial-author strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.testimonial-author span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 1.4rem;
  transition: border-color 0.35s, background 0.35s, box-shadow 0.35s;
}

.faq-item[open] {
  background: var(--white);
  border-color: var(--line-gold);
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.35s;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--gold);
  color: var(--brand-deep);
  border-color: var(--gold);
}

.faq-item p {
  padding: 0 2.6rem 1.35rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(80% 70% at 10% 0%, rgba(195, 155, 82, 0.16), transparent 60%),
    linear-gradient(155deg, var(--brand) 0%, var(--brand-deep) 100%);
}

.contact-pattern {
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 104px;
  opacity: 0.09;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 20% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 20% 30%, #000, transparent 75%);
  pointer-events: none;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.contact-copy .eyebrow {
  color: var(--gold-soft);
}

.contact-copy .ornament {
  justify-content: flex-start;
  margin: 1.2rem 0 1.6rem;
}

.contact-copy .ornament span:last-child {
  display: none;
}

.contact-copy .section-intro {
  margin: 0;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 2.2rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.contact-list .contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(230, 207, 154, 0.28);
  border-radius: 50%;
  color: var(--gold-soft);
}

.contact-list .icon {
  width: 17px;
  height: 17px;
}

.contact-list .contact-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 207, 154, 0.55);
}

.contact-list a,
.contact-list .contact-value {
  display: block;
  margin-top: 0.15rem;
  color: rgba(248, 243, 232, 0.92);
  font-size: 0.92rem;
  transition: color 0.3s;
}

.contact-list a:hover {
  color: var(--gold-soft);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2.2rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.95rem;
  border: 1px solid rgba(230, 207, 154, 0.25);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 243, 232, 0.75);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.socials a:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(195, 155, 82, 0.08);
}

.contact-form-card {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  background: var(--cream);
  border: 1px solid var(--line-gold);
  border-radius: 24px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
  color: var(--ink);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.field > span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field > span small {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.7;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(18, 39, 32, 0.16);
  border-radius: 10px;
  background: var(--white);
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(93, 111, 103, 0.55);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 155, 82, 0.16);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6f67' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: italic;
  margin: 0.15rem 0 1rem;
}

.form-error {
  min-height: 1.2em;
  margin-top: 0.7rem;
  color: #a23434;
  font-size: 0.8rem;
}

.form-success {
  text-align: center;
  padding: 2.4rem 0.5rem;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  color: var(--brand-deep);
}

.success-mark .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
}

.form-success p {
  max-width: 320px;
  margin: 0.6rem auto 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: 4.5rem 0 2rem;
  background: var(--brand-deep);
  color: var(--cream);
  border-top: 1px solid rgba(195, 155, 82, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
}

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
}

.footer-brand:has(img) .brand-mark {
  width: auto;
  max-width: 170px;
}

.footer-brand:has(img) .brand-mark img {
  width: auto;
  max-width: 170px;
  height: 100%;
  border-radius: 0;
}

.footer-brand .brand-name {
  font-size: 1.12rem;
}

.footer-brand > p {
  max-width: 330px;
  margin-top: 1.3rem;
  color: rgba(248, 243, 232, 0.55);
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-arabic {
  margin-top: 1.2rem;
  font-family: var(--font-arabic);
  font-size: 1.45rem;
  color: rgba(230, 207, 154, 0.75);
}

.footer-col h3 {
  margin-bottom: 1.1rem;
  color: var(--gold-soft);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col > span {
  display: block;
  margin-bottom: 0.6rem;
  color: rgba(248, 243, 232, 0.6);
  font-size: 0.86rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.footer-socials a {
  margin: 0;
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(230, 207, 154, 0.2);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 243, 232, 0.1);
  color: rgba(248, 243, 232, 0.42);
  font-size: 0.76rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom a {
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: var(--gold-soft);
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 120;
  transform: translate(-50%, 14px);
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(230, 207, 154, 0.35);
  border-radius: 999px;
  background: rgba(7, 39, 32, 0.96);
  color: var(--cream);
  font-size: 0.82rem;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav {
    gap: 1.35rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teacher-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 1000px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 70;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 6rem 2rem;
    background:
      radial-gradient(80% 60% at 50% 20%, rgba(195, 155, 82, 0.12), transparent 60%),
      var(--brand-deep);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--cream);
  }

  .nav a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
    z-index: 90;
  }

  .header-actions .btn-gold {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    max-width: 620px;
    width: 100%;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem 1.5rem;
  }

  .steps::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .container,
  .container.narrow {
    width: min(1180px, 100% - 2.2rem);
  }

  .hero {
    padding: 8rem 0 6rem;
  }

  .hero-frame {
    inset: 14px;
  }

  .hero-rosette {
    width: 130vw;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat strong {
    font-size: 1.9rem;
  }

  .scroll-cue {
    display: none;
  }

  .course-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .course-grid {
    max-width: 460px;
    margin: 0 auto;
  }

  .testimonial-grid {
    max-width: 520px;
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 2rem;
  }

  .step {
    display: grid;
    grid-template-columns: 62px 1fr;
    column-gap: 1.1rem;
    text-align: left;
    align-items: start;
  }

  .step-num {
    margin: 0;
    grid-row: span 2;
    box-shadow: none;
  }

  .step p {
    grid-column: 2;
  }

  .journey-cta {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(2.7rem, 12vw, 3.6rem);
  }

  .hero-arabic {
    font-size: 1.75rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .brand-sub {
    display: none;
  }

  .brand:has(img) .brand-mark,
  .brand:has(img) .brand-mark img {
    max-width: 118px;
  }

  .about-quote p {
    font-size: 1.2rem;
  }

  .teacher-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
