/* Alanazi Group — design tokens */
:root {
  --green-900: #062a20;
  --green-800: #0a3d2e;
  --green-700: #0f5a44;
  --green-500: #1a8e6c;
  --gold-500: #c9a449;
  --gold-300: #e7cf91;
  --sand-50: #faf7f1;
  --sand-100: #f3ede1;
  --ink-900: #0d1814;
  --ink-700: #2a3833;
  --ink-500: #586762;
  --ink-300: #aab4af;
  --line: #e6e0d2;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(6, 42, 32, 0.06);
  --shadow-md: 0 12px 32px rgba(6, 42, 32, 0.1);
  --shadow-lg: 0 28px 60px rgba(6, 42, 32, 0.18);
  --container: 1180px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--sand-50);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-500); }
.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;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-800); color: var(--white);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-900); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green-800), var(--green-500));
  color: var(--gold-300);
  font-family: var(--serif); font-weight: 700; font-size: 24px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--serif); font-size: 22px; letter-spacing: .5px; }
.brand-text em { font-style: normal; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-500); margin-top: 3px; }

.nav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 26px; align-items: center;
}
.nav-list a { color: var(--ink-700); font-weight: 500; font-size: 15px; }
.nav-list a:hover { color: var(--green-700); }
.nav-list a.cta {
  background: var(--green-800); color: var(--white);
  padding: 9px 16px; border-radius: 999px;
}
.nav-list a.cta:hover { background: var(--green-700); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 0;
  position: relative;
}
.nav-toggle span:not(.sr-only) {
  display: block; height: 2px; background: var(--ink-700);
  margin: 6px auto; width: 22px; transition: transform .25s ease, opacity .25s ease;
}

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px;
  border-radius: 999px; font-weight: 600; font-size: 15px;
  letter-spacing: .2px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-800); color: var(--white); }
.btn-primary:hover { background: var(--green-700); color: var(--white); }
.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-ghost:hover { background: var(--green-800); color: var(--white); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(201,164,73,0.25), transparent 60%),
    radial-gradient(700px 600px at 0% 110%, rgba(26,142,108,0.35), transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 55%, #08372a 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 14px);
  opacity: .6;
}
.hero-inner { padding: 96px 0 110px; max-width: 880px; }
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(231,207,145,0.4);
  color: var(--gold-300);
  font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 24px; line-height: 1.02;
  font-family: var(--serif);
  font-weight: 600;
}
.hero h1 .lead {
  display: block; font-size: clamp(64px, 11vw, 132px);
  letter-spacing: -1px; color: var(--white);
}
.hero h1 .follow {
  display: block; font-size: clamp(22px, 3vw, 34px);
  color: var(--gold-300); font-style: italic; margin-top: 8px;
  max-width: 720px;
}
.hero-sub {
  font-size: 17px; max-width: 700px; color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas .btn-ghost { color: var(--gold-300); border-color: var(--gold-300); }
.hero-ctas .btn-ghost:hover { background: var(--gold-300); color: var(--green-900); }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin: 56px 0 0; padding: 0;
}
.hero-stats div {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 18px 18px;
}
.hero-stats dt { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-300); }
.hero-stats dd { margin: 6px 0 0; font-family: var(--serif); font-size: 36px; color: var(--white); }

/* Sections */
.section { padding: 96px 0; }
.section.about { background: var(--white); }
.section.sectors { background: var(--sand-100); }
.section.legacy { background: var(--green-900); color: var(--white); }
.section.leadership { background: var(--white); }
.section.news { background: var(--sand-50); }
.section.faq { background: var(--white); }
.section.contact { background: var(--sand-100); }

.kicker {
  display: inline-block; margin: 0 0 12px;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--green-700); font-weight: 600;
}
.section.legacy .kicker { color: var(--gold-300); }

h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.1; margin: 0 0 24px;
  letter-spacing: -.5px;
}
.section-sub { color: var(--ink-500); max-width: 640px; margin: 0 0 40px; font-size: 17px; }

.two-col {
  display: grid; grid-template-columns: 1.2fr .9fr; gap: 56px; align-items: start;
}

/* About card */
.about-card {
  background: var(--sand-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.about-card h3 { margin: 0 0 18px; font-family: var(--serif); font-size: 22px; color: var(--green-800); }
.about-card ul { list-style: none; padding: 0; margin: 0; }
.about-card li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.about-card li:last-child { border-bottom: 0; }
.about-card li span { color: var(--ink-500); }

/* Lineage chain */
.lineage-wrap { margin-top: 56px; }
.lineage-heading {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 32px);
  color: var(--green-800); margin: 0 0 8px;
}
.lineage {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px;
  counter-reset: line;
}
.lineage li {
  display: flex; flex-direction: column; align-items: center;
  background: var(--sand-50); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 22px;
  position: relative; min-width: 140px; flex: 1 1 140px;
  transition: transform .2s ease, border-color .2s ease;
}
.lineage li:hover { transform: translateY(-2px); border-color: var(--gold-300); }
.lineage li strong {
  font-family: var(--serif); font-size: 22px; color: var(--green-800);
  letter-spacing: .3px;
}
.lineage li span {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-500); margin-top: 4px; text-align: center;
}
.lineage li:not(:last-child)::after {
  content: "→"; position: absolute; right: -16px; top: 50%;
  transform: translateY(-50%); color: var(--gold-500);
  font-size: 18px; font-weight: 700;
}
@media (max-width: 720px) {
  .lineage li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -16px; transform: translateX(50%); }
}

/* Hamdan profile links */
.hamdan-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.hamdan-links a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--sand-100); color: var(--green-800);
  font-weight: 600; font-size: 14px; border: 1px solid var(--line);
}
.hamdan-links a:hover { background: var(--green-800); color: var(--white); border-color: var(--green-800); }

/* Cards */
.cards {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-300);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--white);
  display: grid; place-items: center;
  font-size: 26px; margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 24px; color: var(--green-800); }
.card p { margin: 0; color: var(--ink-700); font-size: 15.5px; }

/* Timeline */
.timeline {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
  counter-reset: tl;
}
.timeline li {
  display: grid; grid-template-columns: 110px 1fr; gap: 24px;
  align-items: baseline;
  padding: 22px 26px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(231,207,145,0.18);
  border-radius: var(--radius);
}
.timeline li span {
  font-family: var(--serif); font-size: 32px; color: var(--gold-300);
}
.timeline li p { margin: 0; color: rgba(255,255,255,0.85); font-size: 16px; }

/* Leadership */
.people {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.people figure {
  margin: 0; text-align: center;
  padding: 28px 18px; background: var(--sand-50);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.avatar {
  width: 86px; height: 86px; border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--green-800), var(--green-500));
  color: var(--gold-300); font-family: var(--serif); font-weight: 700; font-size: 26px;
  display: grid; place-items: center;
}
.people figcaption strong {
  display: block; font-family: var(--serif); font-size: 20px; color: var(--green-800);
}
.people figcaption span { color: var(--ink-500); font-size: 14px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-grid article {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-grid time { color: var(--green-700); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.news-grid h3 {
  margin: 10px 0 10px; font-family: var(--serif); color: var(--green-800);
  font-size: 22px; line-height: 1.25;
}
.news-grid p { margin: 0; color: var(--ink-700); font-size: 15px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 880px; }
.faq-list details {
  background: var(--sand-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; color: var(--green-800);
  font-size: 17px; list-style: none;
}
.faq-list summary::after {
  content: "+"; float: right; color: var(--gold-500); font-size: 22px; line-height: 1;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 12px 0 0; color: var(--ink-700); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.contact-list li { color: var(--ink-700); }
.contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
  display: grid; gap: 14px;
}
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--ink-700); font-weight: 500; }
.contact-form input,
.contact-form textarea {
  font: inherit; color: var(--ink-900);
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--sand-50);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0; border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(15,90,68,0.15);
  background: var(--white);
}
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 20px; font-size: 14px; color: var(--green-700); }

/* Footer */
.site-footer {
  background: var(--green-900); color: rgba(255,255,255,0.8);
  padding: 56px 0 32px;
}
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.brand-footer .brand-mark {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: var(--green-900);
}
.brand-footer .brand-text strong { color: var(--white); }
.brand-footer .brand-text em { color: var(--gold-300); }
.site-footer nav ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { color: rgba(255,255,255,0.78); }
.site-footer nav a:hover { color: var(--gold-300); }
.copy { grid-column: 1 / -1; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: rgba(255,255,255,0.6); }

/* Responsive */
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .cards, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; right: 16px; top: 64px;
    background: var(--white); padding: 18px; border-radius: var(--radius);
    flex-direction: column; align-items: flex-start; gap: 14px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    display: none; min-width: 220px;
  }
  .nav-list.open { display: flex; }
  .cards, .news-grid, .people { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .hero-inner { padding: 72px 0 84px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
