/* ==================== AMANA CONSULTING. SHARED STYLES. ==================== */

:root {
  --navy: #1B2A4A;
  --navy-dark: #141E36;
  --gold: #C5A55A;
  --gold-pale: #F0E6CC;
  --teal: #2D7A7A;
  --cream: #FAF8F3;
  --cream-warm: #FEFDFB;
  --text-dark: #1A1A1A;
  --text-mid: #4A4A4A;
  --text-light: #7A7A7A;
  --border: rgba(27, 42, 74, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-mid);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.arabic {
  font-family: 'Amiri', serif;
  color: var(--gold);
  direction: rtl;
  font-weight: 400;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ==================== NAVIGATION ==================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.18em;
}

.nav-brand a {
  color: var(--navy);
}

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

.nav-brand .arabic {
  font-size: 18px;
  margin-left: 8px;
  letter-spacing: 0;
}

.nav-brand .division-tag {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--navy);
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
}

.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-size: 14px !important;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--navy) !important;
}

.nav-cta.active::after { display: none; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  background: var(--cream-warm);
  color: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(197, 165, 90, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(45, 122, 122, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px 80px;
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.hero-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--navy);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 1.2s 0.2s forwards;
}

.hero-mark .arabic {
  font-size: 0.7em;
  margin-left: 14px;
  letter-spacing: 0;
  vertical-align: middle;
}

.hero-division {
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.36em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1.2s 0.4s forwards;
}

.hero-statement {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
  max-width: 720px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 1s 0.6s forwards;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 1s 0.8s forwards;
}

.hero-positioning {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== SECTIONS ==================== */
section {
  padding: 120px 40px;
  position: relative;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-narrow {
  max-width: 780px;
  margin: 0 auto;
}

.section-label {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.15;
}

.section-title .arabic {
  font-size: 0.7em;
  display: block;
  margin-top: 12px;
}

.section-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 40px;
}

.section-prose p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text-mid);
}

.section-prose p strong {
  color: var(--navy);
  font-weight: 500;
}

/* ==================== PHILOSOPHY ==================== */
.philosophy {
  background: var(--cream);
}

.philosophy .pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
  padding: 32px 0 32px 28px;
  border-left: 3px solid var(--gold);
  margin: 40px 0;
}

/* ==================== DARK SECTION (used for "why now", contact, methodology highlight) ==================== */
.dark-section {
  background: var(--navy);
  color: var(--cream);
}

.dark-section .section-label { color: var(--gold); }
.dark-section .section-title { color: var(--cream); }
.dark-section .section-rule { background: var(--gold); }
.dark-section .section-prose p { color: rgba(250, 248, 243, 0.88); }
.dark-section .section-prose p strong { color: var(--gold); }

.dark-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(197, 165, 90, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(45, 122, 122, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.dark-section .section-inner,
.dark-section .section-narrow { position: relative; z-index: 2; }

.horizon-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--gold);
  padding: 32px 0 0;
  margin-top: 32px;
  border-top: 1px solid rgba(197, 165, 90, 0.3);
}

/* ==================== TWO DIVISIONS (homepage doors) ==================== */
.divisions {
  background: var(--cream-warm);
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.division-card {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 56px 48px;
  border-radius: 2px;
  transition: all 0.4s ease;
  position: relative;
  text-decoration: none;
  display: block;
}

.division-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 50px rgba(27, 42, 74, 0.08);
}

.division-card .division-label {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
}

.division-card h3 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.2;
}

.division-card p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.division-card .division-link {
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.3s ease;
}

.division-card:hover .division-link {
  gap: 16px;
  color: var(--gold);
}

/* ==================== METHODOLOGY ==================== */
.methodology {
  background: var(--cream);
}

.method-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 60px;
}

.method-pillar {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}

.method-pillar:first-child { border-top: none; padding-top: 0; }

.method-pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.method-pillar h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.25;
}

.method-pillar p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.method-pillar p:last-child { margin-bottom: 0; }

.method-anchor {
  background: var(--cream-warm);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin: 24px 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
}

.method-clocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0 12px;
}

.method-clock {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 2px;
}

.method-clock .clock-name {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
}

.method-clock h4 {
  font-size: 19px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
}

.method-clock p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 0;
}

/* ==================== WHAT WE DO ==================== */
.capabilities {
  background: var(--cream-warm);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 60px;
}

.cap-card {
  padding: 40px 36px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.cap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(27, 42, 74, 0.06);
  border-color: rgba(197, 165, 90, 0.3);
}

.cap-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
}

.cap-card h3 {
  font-size: 26px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.25;
}

.cap-card p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 0;
}

/* ==================== STATUS PANEL ==================== */
.status {
  background: var(--cream);
}

.status-inner {
  max-width: 780px;
  margin: 0 auto;
}

.status-panel {
  background: var(--cream-warm);
  border: 1px solid var(--gold);
  padding: 56px 48px;
  margin-top: 40px;
  border-radius: 2px;
  position: relative;
}

.status-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 1px solid var(--gold);
  opacity: 0.3;
  transform: translate(6px, 6px);
  z-index: -1;
  border-radius: 2px;
  pointer-events: none;
}

.status-panel p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.status-panel p:last-child { margin-bottom: 0; }

.status-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(197, 165, 90, 0.12);
  border: 1px solid rgba(197, 165, 90, 0.35);
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 24px;
  border-radius: 2px;
}

/* ==================== TEAM ==================== */
.team {
  background: var(--cream-warm);
}

.team-lead-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.team-lead-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
}

.team-lead-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.team-lead-card {
  text-align: left;
}

.team-lead-card h3 {
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-lead-card .team-role {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.team-lead-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ==================== HERITAGE / FOOTPRINT ==================== */
.heritage {
  background: var(--cream);
}

.heritage-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin: 48px 0;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.heritage-number {
  text-align: center;
}

.heritage-number .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 12px;
}

.heritage-number .num .suffix {
  color: var(--gold);
  font-size: 0.7em;
  vertical-align: baseline;
}

.heritage-number .label {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ==================== CONTACT ==================== */
.contact {
  background: var(--navy);
  color: var(--cream);
}

.contact .section-label { color: var(--gold); }
.contact .section-title { color: var(--cream); }
.contact .section-rule { background: var(--gold); }
.contact .section-prose p { color: rgba(250, 248, 243, 0.85); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.contact-card h3 {
  color: var(--cream);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 4px;
}

.contact-card .role {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.contact-card a {
  display: block;
  color: rgba(250, 248, 243, 0.85);
  font-size: 16px;
  margin-bottom: 8px;
}

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

/* ==================== FOOTER ==================== */
footer {
  background: var(--navy-dark);
  color: rgba(250, 248, 243, 0.55);
  padding: 48px 40px 36px;
  text-align: center;
}

footer .footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

footer .footer-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  letter-spacing: 0.2em;
  color: var(--cream);
  margin-bottom: 8px;
}

footer .footer-mark .arabic {
  font-size: 18px;
  margin-left: 10px;
  letter-spacing: 0;
}

footer .footer-tag {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

footer .footer-meta {
  font-size: 13px;
  line-height: 1.8;
}

footer .footer-meta a {
  color: rgba(250, 248, 243, 0.7);
}

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

footer .footer-divisions {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

footer .footer-divisions a {
  color: rgba(250, 248, 243, 0.7);
  margin: 0 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: block; }

  .divisions-grid { grid-template-columns: 1fr; gap: 24px; }
  .division-card { padding: 40px 28px; }

  .method-pillar { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .method-clocks { grid-template-columns: 1fr; gap: 16px; }

  .cap-grid { grid-template-columns: 1fr; gap: 24px; }
  .team-lead-grid,
  .team-lead-grid.cols-2,
  .team-lead-grid.cols-4 { grid-template-columns: 1fr; gap: 40px; max-width: 100%; }
  .heritage-numbers { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  section { padding: 80px 28px; }
  .hero-inner { padding: 60px 28px 60px; }
  .hero-mark { font-size: 44px; letter-spacing: 0.2em; }

  nav { padding: 16px 24px; }

  .cap-card { padding: 32px 28px; }
  .status-panel { padding: 40px 28px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .section-title { font-size: 32px; }
  .hero-statement { font-size: 20px; }
  .section-prose p { font-size: 16px; }
  .hero-mark { font-size: 36px; letter-spacing: 0.16em; }
}
