/* ============================================================
   AMANAH CAPITAL — amanahcapital.uk
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* === BASE === */
body {
  background: #080808;
  color: #F0EDE6;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === VARIABLES === */
:root {
  --bg:          #080808;
  --bg-surface:  #0F0F0F;
  --bg-elevated: #161616;
  --border:      rgba(255,255,255,0.06);
  --border-mid:  rgba(255,255,255,0.10);
  --text-1:      #F0EDE6;
  --text-2:      #C8C3BA;
  --text-3:      #96918A;
  --text-4:      #5E5B57;
  --gold:        #C8A96A;
  --gold-light:  #E2C98A;
  --gold-dim:    rgba(200,169,106,0.3);
  --max-w:       1100px;
  --narrow:      720px;
}

/* === LAYOUT === */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
.container--narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 48px; }

/* === TYPOGRAPHY === */
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

h1, h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; line-height: 1.15; color: var(--text-1); }
h3      { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 16px; color: var(--text-1); }
p       { font-size: 17px; line-height: 1.85; color: var(--text-2); }
strong  { font-weight: 500; color: var(--text-1); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); display: block;
}

.body-text { font-size: 17px; line-height: 1.9; color: var(--text-2); margin-bottom: 22px; max-width: 68ch; }
.body-text + .body-text { }
.lead { font-size: 20px; line-height: 1.7; color: var(--text-2); font-weight: 300; max-width: 58ch; }

/* === NAVIGATION === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 18px 48px;
  background: rgba(8,8,8,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.nav-logo {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-1); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-1); }
.nav-cta {
  font-size: 10px !important; letter-spacing: 0.18em !important;
  color: var(--gold) !important; border: 1px solid var(--gold-dim) !important;
  padding: 8px 18px; transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: #080808 !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 200;
}
.ham-line {
  display: block; width: 22px; height: 1px;
  background: var(--text-1); transition: all 0.3s ease;
}
.nav-toggle.open .ham-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open .ham-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* === HOME HERO === */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 140px 48px 80px; text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200,169,106,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow { margin-bottom: 52px; }
.hero-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(80px, 13vw, 160px);
  font-weight: 300; letter-spacing: 0.16em;
  line-height: 0.9; color: var(--text-1);
  margin-bottom: 52px; display: block;
}
.hero-entities {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 400;
  letter-spacing: 0.1em; color: var(--text-4);
  margin-bottom: 44px; max-width: 600px; line-height: 2;
}
.hero-rule {
  width: 40px; height: 1px; background: var(--gold);
  margin: 0 auto 44px;
}
.hero-tagline {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 80px;
}
.hero-scroll {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-4); text-decoration: none; transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-scroll:hover { color: var(--gold); }
.hero-scroll::after { content: '↓'; font-size: 14px; }

/* === PAGE HERO (inner pages) === */
.page-hero {
  padding: 160px 48px 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { margin-bottom: 28px; }
.page-hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  letter-spacing: 0.02em; margin-bottom: 28px;
}
.page-hero .lead { color: var(--text-3); }

/* === CONTENT SECTIONS === */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }

.section-eyebrow { margin-bottom: 20px; }
.section-title {
  font-size: clamp(28px, 3.5vw, 44px); letter-spacing: 0.02em;
  margin-bottom: 36px;
}
.section-subtitle {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-1); margin-bottom: 14px; margin-top: 48px;
}
.section-rule { width: 32px; height: 1px; background: var(--gold); margin-bottom: 48px; }

/* Two-column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

/* === HOME ENTITY CARDS === */
.entity-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border); margin-top: 0;
}
.entity-card {
  background: var(--bg); padding: 52px 44px;
  text-decoration: none; display: block;
  transition: background 0.3s;
  position: relative; overflow: hidden;
}
.entity-card:hover { background: var(--bg-surface); }
.entity-card::after {
  content: '↗'; position: absolute; top: 44px; right: 44px;
  font-size: 16px; color: var(--gold); opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translate(-4px, 4px);
}
.entity-card:hover::after { opacity: 1; transform: translate(0, 0); }
.entity-card__rule { width: 24px; height: 1px; background: var(--gold); margin-bottom: 28px; transition: width 0.3s; }
.entity-card:hover .entity-card__rule { width: 40px; }
.entity-card__num { font-size: 10px; letter-spacing: 0.2em; color: var(--text-4); margin-bottom: 16px; display: block; }
.entity-card__name { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 300; color: var(--text-1); margin-bottom: 12px; letter-spacing: 0.03em; }
.entity-card__desc { font-size: 14px; color: var(--text-3); line-height: 1.65; max-width: 36ch; }

/* === STAT BLOCKS === */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); margin: 64px 0; }
.stat-block { background: var(--bg); padding: 48px 40px; }
.stat-block__num {
  font-family: 'Cormorant Garamond', serif; font-size: 56px;
  font-weight: 300; color: var(--text-1); line-height: 1;
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.stat-block__label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-4); margin-bottom: 8px; font-family: 'Inter', sans-serif; }
.stat-block__note { font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* === FOCUS AREAS (Investments) === */
.focus-list { margin: 48px 0; }
.focus-item {
  display: flex; gap: 48px; align-items: flex-start;
  padding: 32px 0; border-top: 1px solid var(--border);
}
.focus-item:last-child { border-bottom: 1px solid var(--border); }
.focus-item__num { font-size: 11px; color: var(--gold); letter-spacing: 0.1em; min-width: 24px; margin-top: 2px; font-family: 'Inter', sans-serif; }
.focus-item__content { flex: 1; }
.focus-item__name { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; color: var(--text-1); margin-bottom: 8px; }
.focus-item__desc { font-size: 15px; color: var(--text-3); line-height: 1.75; }

/* === SERVICE GRID (Advisory) === */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); margin: 48px 0; }
.service-item { background: var(--bg); padding: 40px 36px; transition: background 0.2s; }
.service-item:hover { background: var(--bg-surface); }
.service-item__name { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: var(--text-1); margin-bottom: 10px; }
.service-item__desc { font-size: 14px; color: var(--text-3); line-height: 1.7; }
.service-item__icon { font-size: 10px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 20px; display: block; font-family: 'Inter', sans-serif; }

/* === AUDIENCE STATS (Global Markets) === */
.audience-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); margin: 64px 0; }
.audience-stat { background: var(--bg); padding: 52px 40px; }
.audience-stat__num { font-family: 'Cormorant Garamond', serif; font-size: 64px; font-weight: 300; color: var(--text-1); line-height: 1; margin-bottom: 10px; }
.audience-stat__label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-4); font-family: 'Inter', sans-serif; }

/* === PULL QUOTE === */
.pull-quote {
  border-left: 1px solid var(--gold); padding: 8px 0 8px 44px;
  margin: 56px 0;
}
.pull-quote p {
  font-family: 'Cormorant Garamond', serif; font-size: 26px;
  font-weight: 300; line-height: 1.45; color: #D8D4CC;
  max-width: 54ch;
}

/* === CONTACT ITEMS === */
.contact-list { margin: 48px 0; }
.contact-item { padding: 44px 0; border-top: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 1px solid var(--border); }
.contact-item__label { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block; font-family: 'Inter', sans-serif; }
.contact-item__title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 300; color: var(--text-1); margin-bottom: 12px; letter-spacing: 0.02em; }
.contact-item__desc { font-size: 15px; color: var(--text-3); margin-bottom: 20px; max-width: 58ch; line-height: 1.75; }
.contact-item__email { font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.06em; color: var(--gold); text-decoration: none; transition: color 0.2s; }
.contact-item__email:hover { color: var(--gold-light); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 32px;
  border: 1px solid rgba(200,169,106,0.35);
  color: var(--gold); background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: all 0.25s;
}
.btn:hover { background: var(--gold); color: #080808; border-color: var(--gold); }
.btn--ghost { border-color: rgba(255,255,255,0.12); color: var(--text-3); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); color: var(--text-1); border-color: rgba(255,255,255,0.25); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 40px; }

/* === CTA SECTION === */
.cta-section { padding: 96px 0; text-align: center; }
.cta-section .eyebrow { margin-bottom: 24px; display: block; }
.cta-section h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 20px; }
.cta-section p { font-size: 17px; color: var(--text-3); max-width: 46ch; margin: 0 auto 44px; }
.cta-section .btn-row { justify-content: center; }

/* === INVESTMENT NOTICE === */
.notice {
  border: 1px solid rgba(255,255,255,0.05);
  padding: 28px 32px; margin-top: 48px;
  background: rgba(255,255,255,0.02);
}
.notice p { font-size: 13px; color: var(--text-3); line-height: 1.7; max-width: 100%; }

/* === BIOGRAPHY ASIDE === */
.bio-aside {
  border-top: 1px solid var(--border); padding-top: 32px; margin-top: 48px;
}
.bio-aside__item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bio-aside__label { font-size: 12px; color: var(--text-4); letter-spacing: 0.08em; font-family: 'Inter', sans-serif; }
.bio-aside__value { font-size: 12px; color: var(--text-2); text-align: right; font-family: 'Inter', sans-serif; }

/* === ENTITY LIST (The Firm page) === */
.entity-list { margin: 48px 0; }
.entity-list-item { padding: 36px 0; border-top: 1px solid var(--border); display: flex; gap: 48px; }
.entity-list-item:last-child { border-bottom: 1px solid var(--border); }
.entity-list-item__name-block { min-width: 220px; }
.entity-list-item__name { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 300; color: var(--text-1); margin-bottom: 6px; }
.entity-list-item__location { font-size: 11px; color: var(--text-4); letter-spacing: 0.08em; font-family: 'Inter', sans-serif; }
.entity-list-item__desc { font-size: 15px; color: var(--text-3); line-height: 1.75; flex: 1; }

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 48px;
  margin-top: 0;
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; margin-bottom: 56px; flex-wrap: wrap; }
.footer-logo { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-1); text-decoration: none; display: block; margin-bottom: 10px; }
.footer-tagline { font-size: 10px; letter-spacing: 0.2em; color: var(--text-4); font-family: 'Inter', sans-serif; }
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 40px; }
.footer-nav a { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.04); padding-top: 32px; }
.footer-bottom p { font-size: 11px; color: var(--text-4); line-height: 1.9; max-width: 900px; }
.footer-bottom p + p { margin-top: 6px; }

/* === SCROLL FADE === */
.fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .audience-stats { grid-template-columns: 1fr 1fr; }
  .entity-list-item { flex-direction: column; gap: 16px; }
  .entity-list-item__name-block { min-width: auto; }
}

@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav-links {
    display: none; flex-direction: column; gap: 28px; align-items: center; justify-content: center;
    position: fixed; inset: 0; background: rgba(8,8,8,0.98);
    backdrop-filter: blur(24px); z-index: 150; text-align: center;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; letter-spacing: 0.2em; color: var(--text-2); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 100px 24px 64px; }
  .hero-wordmark { font-size: clamp(56px, 14vw, 80px); }
  .page-hero { padding: 120px 24px 56px; }
  .container, .container--narrow { padding: 0 24px; }
  .section { padding: 64px 0; }
  .entity-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 1px; }
  .audience-stats { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .focus-item { flex-direction: column; gap: 8px; }
  .footer-top { flex-direction: column; }
  .footer-nav { grid-template-columns: 1fr; gap: 8px; }
  .pull-quote { padding-left: 24px; }
  .pull-quote p { font-size: 22px; }
}
