:root {
  --green-900: #073529;
  --green-800: #0b4d3a;
  --green-700: #11624b;
  --green-100: #e8f3ee;
  --gold-600: #b58a2a;
  --gold-100: #f4ead2;
  --ink: #202724;
  --muted: #64706b;
  --line: #dfe6e2;
  --paper: #fbfaf6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(12, 33, 27, 0.11);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

p,
ul,
ol,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  color: var(--green-900);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.85rem);
  max-width: 900px;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3.15rem);
}

h3 {
  font-size: 1.1rem;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
  position: relative;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--green-900);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 230, 226, 0.82);
}

.site-header.scrolled {
  box-shadow: 0 10px 28px rgba(12, 33, 27, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(181, 138, 42, 0.28), rgba(255, 255, 255, 0) 52%),
    var(--green-800);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--green-900);
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.site-nav a {
  text-decoration: none;
  color: #35423d;
  padding: 9px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--green-900);
  background: var(--green-100);
}

.site-nav .nav-cta {
  background: var(--green-800);
  color: var(--white);
  padding-inline: 14px;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
  background: var(--green-900);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-900);
  margin: auto;
  content: "";
}

.menu-bars::before {
  transform: translateY(-7px);
}

.menu-bars::after {
  transform: translateY(5px);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(181, 138, 42, 0.16), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
}

.pattern {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(30deg, rgba(11, 77, 58, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(11, 77, 58, 0.08) 87.5%),
    linear-gradient(150deg, rgba(11, 77, 58, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(11, 77, 58, 0.08) 87.5%),
    linear-gradient(30deg, rgba(11, 77, 58, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(11, 77, 58, 0.08) 87.5%),
    linear-gradient(150deg, rgba(11, 77, 58, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(11, 77, 58, 0.08) 87.5%);
  background-size: 96px 168px;
  background-position: 0 0, 0 0, 48px 84px, 48px 84px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold-600);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 740px;
  color: #40504a;
  font-size: 1.14rem;
}

.hero-actions,
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--green-800);
  color: var(--white);
}

.button.primary:hover {
  background: var(--green-900);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-900);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
}

.hero-proof div {
  border-left: 3px solid var(--gold-600);
  padding-left: 13px;
}

.hero-proof dt {
  color: var(--green-900);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 800;
}

.hero-proof dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  min-height: 620px;
  position: relative;
}

.photo-panel,
.image-placeholder {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-color: var(--green-800);
  isolation: isolate;
}

.photo-panel img,
.image-placeholder img,
.pilot-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-panel::before,
.image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7, 53, 41, 0.12), rgba(7, 53, 41, 0.68)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #d8e5df, #f6efe0 48%, #7fa996);
  z-index: -2;
}

.photo-panel::after,
.image-placeholder::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  z-index: -1;
}

.masjid-photo::before,
.image-placeholder.masjid::before {
  background:
    linear-gradient(135deg, rgba(7, 53, 41, 0.12), rgba(7, 53, 41, 0.74)),
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.74) 0 9%, transparent 9.5%),
    linear-gradient(to top, rgba(7, 53, 41, 0.78) 0 32%, transparent 32%),
    linear-gradient(135deg, #b7cfc4, #f3ead6 50%, #6f9d88);
}

.tahfiz-photo::before,
.image-placeholder.tahfiz::before {
  background:
    linear-gradient(135deg, rgba(7, 53, 41, 0.16), rgba(7, 53, 41, 0.62)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 32px),
    linear-gradient(145deg, #f3ead6, #89b1a0 58%, #184f41);
}

.advisory-photo::before,
.image-placeholder.documentation::before {
  background:
    linear-gradient(135deg, rgba(7, 53, 41, 0.1), rgba(7, 53, 41, 0.7)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 22px),
    linear-gradient(145deg, #e9d6a7, #dce8e0 45%, #2d6b58);
}

.photo-panel figcaption,
.image-placeholder figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--white);
  background: rgba(7, 53, 41, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.photo-panel figcaption.sr-only,
.image-placeholder figcaption.sr-only,
.pilot-image figcaption.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.photo-panel.large {
  position: absolute;
  inset: 18px 36px 112px 0;
}

.photo-panel.small {
  position: absolute;
  width: 44%;
  height: 190px;
}

.tahfiz-photo {
  right: 0;
  bottom: 44px;
}

.advisory-photo {
  left: 34px;
  bottom: 0;
}

.intro-band {
  padding: 54px 0;
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.82);
}

.intro-band h2 {
  color: var(--white);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}

.split > p,
.statement-list {
  font-size: 1.05rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: 48px;
  align-items: start;
}

.section-copy p,
.section-head p,
.detail-section p,
.pilot p,
.contact-section p {
  color: var(--muted);
}

.principles {
  display: grid;
  gap: 14px;
}

.principles article,
.focus-card,
.process article,
.service-grid article,
.pilot-card,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.principles article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0 18px;
}

.principles article p {
  grid-column: 2;
  margin-bottom: 0;
  color: var(--muted);
}

.mini-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--gold-100);
  color: var(--green-900);
  font-weight: 900;
  font-size: 0.82rem;
}

.muted {
  background: var(--paper);
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head.narrow {
  max-width: 720px;
  text-align: center;
  margin-inline: auto;
}

.focus-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.focus-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
}

.focus-card.accent {
  border-color: rgba(181, 138, 42, 0.45);
  background: linear-gradient(180deg, var(--white), #fffaf0);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 6px;
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 900;
}

.focus-card p {
  color: var(--muted);
  flex: 1;
}

.focus-card a {
  color: var(--green-800);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.why {
  background: var(--green-800);
  color: rgba(255, 255, 255, 0.84);
}

.why h2 {
  color: var(--white);
}

.statement-list {
  display: grid;
  gap: 16px;
}

.statement-list p {
  margin: 0;
  padding: 18px 0 18px 22px;
  border-left: 3px solid var(--gold-600);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process article {
  position: relative;
}

.process span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--white);
  font-weight: 900;
}

.process p,
.service-grid p,
.pilot-card li,
.site-footer p,
.site-footer li {
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.88fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.detail-grid.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.88fr);
}

.detail-grid.reverse figure {
  order: 2;
}

.image-placeholder {
  min-height: 430px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #37453f;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--gold-600);
  box-shadow: inset 0 0 0 3px var(--gold-100);
}

.compliance-note {
  border: 1px solid rgba(181, 138, 42, 0.42);
  border-left: 4px solid var(--gold-600);
  border-radius: 6px;
  background: #fffaf0;
  padding: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-grid article {
  min-height: 190px;
}

.pilot {
  background:
    linear-gradient(135deg, rgba(7, 53, 41, 0.96), rgba(17, 98, 75, 0.94)),
    var(--green-900);
  color: rgba(255, 255, 255, 0.84);
}

.pilot h2,
.pilot h3 {
  color: var(--white);
}

.pilot p {
  color: rgba(255, 255, 255, 0.78);
}

.pilot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 34px;
  align-items: center;
}

.pilot-card {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.pilot-image {
  margin: -8px -8px 22px;
  height: 220px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pilot-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.pilot-card li {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 10px;
}

.partners {
  padding: 72px 0;
}

.partner-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.partner-list span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 11px 14px;
  color: #36433e;
  font-weight: 700;
}

.contact-section {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 46px;
  align-items: start;
}

.contact-methods {
  display: grid;
  margin-bottom: 18px;
}

.contact-methods a {
  width: fit-content;
  color: var(--green-800);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.placeholder-text,
.form-note {
  font-size: 0.9rem;
}

.contact-form {
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--green-900);
  font-weight: 800;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 56px 0;
  background: #101916;
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr) minmax(260px, 0.85fr);
  gap: 34px;
}

.footer-brand strong,
.site-footer h2 {
  color: var(--white);
}

.site-footer h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

@media (max-width: 1040px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 86px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    white-space: normal;
  }

  .hero-grid,
  .content-grid,
  .split,
  .detail-grid,
  .detail-grid.reverse,
  .pilot-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid.reverse figure {
    order: 0;
  }

  .hero-visual {
    min-height: 460px;
  }

  .photo-panel.large {
    inset: 0 92px 84px 0;
  }

  .focus-cards,
  .process,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .brand small {
    display: none;
  }

  .hero-proof,
  .focus-cards,
  .process,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 390px;
  }

  .photo-panel.large {
    inset: 0 32px 122px 0;
  }

  .photo-panel.small {
    width: 52%;
    height: 156px;
  }

  .tahfiz-photo {
    bottom: 46px;
  }

  .advisory-photo {
    left: 8px;
  }

  .principles article {
    grid-template-columns: 1fr;
  }

  .principles article p {
    grid-column: auto;
  }

  .image-placeholder {
    min-height: 310px;
  }

  .hero-actions,
  .hero-actions .button,
  .contact-form .button {
    width: 100%;
  }

  .section-head.narrow {
    text-align: left;
  }
}
