/* ======================================================================
   STRATA RESEARCH & ADVISORY — Design System
   Brand direction: D — "Ice Core"
   ====================================================================== */

:root{
  /* ---- Color tokens ---- */
  --color-bg:          #f8f7f4; /* Crisp off-white — page background */
  --color-bg-alt:      #f1efe9; /* Warm off-white — alternating section / card bg */
  --color-ink:         #12191d; /* Deep Basalt    — dark sections (header, hero, footer) */
  --color-ink-alt:     #1b262c; /* Deep Basalt, slightly lifted (cards on dark) */
  --color-text:        #1f2e34; /* Slate Ink, deepened — body text on light backgrounds */
  --color-text-inverse:#eef2f1; /* body text on dark backgrounds */
  --color-muted:       #3d4d54; /* Steel, darkened for contrast — secondary text, borders, captions */
  --color-muted-inverse:#9fb0b5;/* secondary text on dark backgrounds */
  --color-accent:      #4f8f92; /* Meltwater Teal — links, CTAs, interactive elements */
  --color-accent-dark: #3c6f72; /* hover/active state for accent */
  --color-accent-soft: #dcebea; /* tinted teal for subtle backgrounds/badges */
  --color-gold:        #ad8a4e; /* Brushed Brass — luxury/exclusivity accent, used sparingly, non-interactive */
  --color-gold-soft:   #f1e9d8; /* tinted gold for subtle premium backgrounds */
  --color-navy:        #1e3a5c; /* Navy — wordmark and nav hover/current state only */
  --color-hero-ink:    #0a1728; /* Hero-specific, incredibly dark navy — matches wordmark navy hue but very deep */
  --color-hero-text:   #f3ede0; /* Hero heading/eyebrow cream */
  --color-hero-body:   #c7d4d1; /* Hero body copy */
  --color-line:        #ddd0b3; /* warm hairline borders on light backgrounds (matches uploaded design system) */
  --color-line-inverse:#2c3e46; /* hairline borders on dark backgrounds */

  /* ---- Type ---- */
  --font-display: "Newsreader", Cambria, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Public Sans", -apple-system, "Seravek", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* ---- Scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --max-width: 1180px;
  --content-width: 68ch;

  --shadow-card: 0 1px 2px rgba(18,25,29,0.06), 0 12px 28px -18px rgba(18,25,29,0.22);
}

/* ---------------------------------------------------------------------
   Reset & base
   --------------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
button{ font: inherit; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1{ font-size: clamp(34px, 4.6vw, 56px); }
h2{ font-size: clamp(26px, 3.2vw, 36px); }
h3{ font-size: clamp(20px, 2.2vw, 24px); }
p{ margin: 0 0 var(--space-4); max-width: var(--content-width); }

/* ---------------------------------------------------------------------
   Layout helpers
   --------------------------------------------------------------------- */
.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.section{ padding: var(--space-9) 0; }
.section-tight{ padding: var(--space-7) 0; }
.section-dark{ background: var(--color-ink); color: var(--color-text-inverse); }
.section-dark p{ color: var(--color-muted-inverse); }
.section-alt{ background: var(--color-bg-alt); }

.grid{ display: grid; gap: var(--space-6); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.stack{ display: flex; flex-direction: column; gap: var(--space-4); }
.cluster{ display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   Type utilities
   --------------------------------------------------------------------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.eyebrow::before{
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}
.muted{ color: var(--color-muted); }
.section-dark .muted{ color: var(--color-muted-inverse); }

.stat{ font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.stat-num{ font-size: 28px; font-weight: 700; color: var(--color-gold); display: block; }
.stat-label{ font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }
.section-dark .stat-label{ color: var(--color-muted-inverse); }

/* ---------------------------------------------------------------------
   Buttons & links
   --------------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary{ background: var(--color-accent); color: #eef2f1; }
.btn-primary:hover{ background: var(--color-accent-dark); }
.btn-ghost{ border-color: currentColor; color: inherit; }
.btn-ghost:hover{ background: var(--color-accent-soft); }
.section-dark .btn-ghost:hover{ background: rgba(79,143,146,0.18); }

.link-arrow{ color: var(--color-accent); font-weight: 600; }
.link-arrow:hover{ color: var(--color-accent-dark); }

/* ---------------------------------------------------------------------
   Site header
   --------------------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #eef1f6;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-navy);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.nav-item{ position: relative; padding-bottom: 16px; margin-bottom: -16px; }
.nav-item > a::after{ content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 5px; margin-bottom: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.nav-dropdown{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 12px 28px rgba(18,25,29,.12);
  z-index: 60;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown, .nav-item.open .nav-dropdown{ display: block; }
.nav-dropdown a{
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--color-muted);
}
.nav-dropdown a:hover, .nav-dropdown a[aria-current="page"]{ color: var(--color-navy); background: var(--color-bg-alt); }
.brand{ display: flex; align-items: center; gap: 6px; }
.brand svg, .brand img{ width: 54px; height: 54px; flex: none; }
.brand-name{ font-family: var(--font-display); font-size: 18px; letter-spacing: .05em; font-weight: 600; color: var(--color-navy); line-height: 1.1; }
.brand-sub{ font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-gold); line-height: 1.1; margin-top: 1px; }

.site-nav{ display: flex; align-items: center; gap: var(--space-6); }
.site-nav a{ font-size: 14px; color: var(--color-muted); }
.site-nav a:hover, .site-nav a[aria-current="page"]{ color: var(--color-navy); }

.nav-toggle{ display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 0; flex: none; }
.nav-toggle span{ display: block; width: 100%; height: 2px; background: var(--color-navy); border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px){
  .nav-toggle{ display: flex; }
  .site-nav{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #eef1f6;
    border-bottom: 2px solid var(--color-navy);
    padding: var(--space-2) var(--space-5) var(--space-5);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .site-nav.open{ display: flex; }
  .site-nav a{ font-size: 16px; }
  .site-nav > a{ padding: 14px 0; border-top: 1px solid var(--color-line); }
  .nav-item{ padding-bottom: 0; margin-bottom: 0; border-top: 1px solid var(--color-line); }
  .nav-item > a{ padding: 14px 0; border-top: none; }
  .nav-dropdown{ display: block; position: static; box-shadow: none; border: none; margin-top: 0; padding: 0 0 10px var(--space-4); background: transparent; min-width: 0; }
  .nav-dropdown a{ padding: 8px 0; font-size: 15px; }
  .nav-dropdown a:hover, .nav-dropdown a[aria-current="page"]{ background: none; }
  .site-nav .btn-primary{ margin-top: var(--space-4); justify-content: center; }
  .lang-switch{ margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-line); }
}

/* ---------------------------------------------------------------------
   Page header (interior pages)
   --------------------------------------------------------------------- */
.breadcrumb{ font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); margin-bottom: var(--space-4); }
.breadcrumb a{ color: var(--color-accent); }
.breadcrumb a:hover{ color: var(--color-accent-dark); }
.page-header{ background: var(--color-bg-alt); padding: var(--space-8) 0 var(--space-7); border-bottom: 1px solid var(--color-line); }
.page-header p{ font-size: 18px; color: var(--color-text); }

/* ---------------------------------------------------------------------
   Hero (ice-core banding motif)
   --------------------------------------------------------------------- */
.hero{
  background: var(--color-bg-alt);
  color: var(--color-text);
  padding: var(--space-9) 0;
  position: relative;
  overflow: hidden;
}
.hero .container{ position: relative; z-index: 1; }
.hero-lines{
  position: absolute;
  inset: 0;
  opacity: .45;
  pointer-events: none;
}
.hero p{ color: var(--color-text); font-size: 18px; }

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */
.card{
  background: #fff;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}
.section-dark .card{
  background: var(--color-ink-alt);
  border-color: var(--color-line-inverse);
}
.card-gold{ border-top: 3px solid var(--color-gold); }
.case-card{ transition: transform .18s ease, box-shadow .18s ease; min-height: 190px; }
.case-card:hover{ transform: translateY(-4px); box-shadow: 0 16px 32px rgba(31,46,52,.08); }
.case-card-icon{ width: 20px; height: 20px; color: var(--color-gold); }
.case-card-icon svg{ width: 20px; height: 20px; }

/* ---------------------------------------------------------------------
   Leadership profiles
   --------------------------------------------------------------------- */
.leader-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-7); align-items: start; }
@media (max-width: 700px){ .leader-grid{ grid-template-columns: 1fr; } }
.leader-office{ font-size: 13px; color: var(--color-muted); margin-bottom: var(--space-4); }
.leader-avatar{
  position: relative;
  width: 88px; height: 88px; border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-gold);
  background: var(--color-bg-alt); /* Frost Mist — shows through if a photo has a transparent cutout background */
  margin-bottom: var(--space-4);
}
.leader-avatar img{ width: 100%; height: 100%; object-fit: cover; }
.leader-avatar::after{
  content: ""; position: absolute; inset: 0;
  background: var(--color-accent);
  mix-blend-mode: color;
  opacity: 0.55;
  pointer-events: none;
}
.leader-avatar .avatar-fallback{
  display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
  background: var(--color-bg-alt); color: var(--color-ink);
}
.leader-avatar.leader-avatar-lg{
  width: 100%; max-width: 340px; height: auto; border-radius: 0; border: none; overflow: visible; background: none; position: static;
}
.leader-avatar.leader-avatar-lg img{ width: 100%; height: auto; object-fit: contain; display: block; }
.leader-avatar.leader-avatar-lg::after{ display: none; content: none; }
.leader-name{ font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 2px; }
.leader-title{ font-size: 13px; color: var(--color-gold); font-weight: 600; margin-bottom: var(--space-4); }
.placeholder-text{ color: var(--color-muted); font-style: italic; }

/* ---------------------------------------------------------------------
   Trust bar
   --------------------------------------------------------------------- */
.trust-bar{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6) var(--space-7); margin-top: var(--space-5); }
.trust-bar span{ font-family: var(--font-display); font-size: 17px; color: var(--color-muted); white-space: nowrap; }

/* ---------------------------------------------------------------------
   Theme / topic cards
   --------------------------------------------------------------------- */
.theme-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5); }
.theme-icon-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4); }
.theme-icon-tile{
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-md);
  background: var(--color-bg-alt); border: 1px solid var(--color-line);
  transition: border-color .15s ease, transform .15s ease;
}
.theme-icon-tile:hover{ border-color: var(--color-accent); transform: translateY(-2px); }
.theme-icon-tile span{ font-size: 13px; font-weight: 600; line-height: 1.3; }

/* Practice area rows */
.practice-row{ display: flex; align-items: flex-start; gap: var(--space-4); padding: 22px 0; border-top: 1px solid var(--color-line); }
.practice-row:last-child{ border-bottom: 1px solid var(--color-line); }
.practice-row-icon{ flex: none; width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; }
.practice-row-icon svg{ width: 20px; height: 20px; }
.practice-row h3{ font-size: 19px; margin: 0 0 4px; }
.practice-row p{ margin: 0; color: var(--color-muted); font-size: 14px; }

/* Circular research-area tiles (homepage teaser) */
.theme-circle-grid{ display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-5); }
@media (max-width: 900px){ .theme-circle-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px){ .theme-circle-grid{ grid-template-columns: repeat(2, 1fr); } }
.theme-circle-tile{ display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; transition: transform .18s ease; }
.theme-circle-tile:hover{ transform: translateY(-3px); }
.theme-circle-chip{ width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.theme-circle-chip svg{ width: 26px; height: 26px; }
.theme-circle-tile span{ color: var(--color-text-inverse); font-size: 12.5px; font-weight: 600; }
.practice-tile-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.practice-tile{ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; text-decoration: none; aspect-ratio: 1 / 1; padding: 16px; border-radius: var(--radius-sm); transition: transform .18s ease, box-shadow .18s ease; }
.practice-tile:hover{ transform: translateY(-5px); box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.practice-tile:nth-child(3n+2){ margin-top: 24px; }
.practice-tile:nth-child(3n+3){ margin-top: -24px; }
.practice-tile-icon{ display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.practice-tile-icon svg{ width: 40px; height: 40px; }
.practice-tile span{ color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
@media (max-width: 720px){
  .practice-tile-grid{ grid-template-columns: repeat(2, 1fr); }
  .practice-tile:nth-child(3n+2), .practice-tile:nth-child(3n+3){ margin-top: 0; }
}
@media (max-width: 480px){ .practice-tile-grid{ grid-template-columns: 1fr; } }
.theme-icon-media{
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--color-bg);
}
.theme-icon-media img{ width: 100%; height: 100%; object-fit: cover; }
.theme-icon-fallback{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.theme-icon-fallback svg{ width: 30px; height: 30px; color: var(--color-accent); }
.pill-list{ display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.pill{ font-size: 12px; padding: 4px 10px; border-radius: 100px; background: var(--color-bg); color: var(--color-muted); border: 1px solid var(--color-line); }

/* ---------------------------------------------------------------------
   Numbered process steps
   --------------------------------------------------------------------- */
.step-list{ display: flex; flex-direction: column; }
.step{ padding: var(--space-6) 0; border-top: 1px solid var(--color-line); }
.step:last-child{ border-bottom: 1px solid var(--color-line); }
.step-num{ font-family: var(--font-mono); font-size: 14px; color: var(--color-gold); font-weight: 700; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer{
  background: var(--color-bg-alt);
  color: var(--color-muted);
  border-top: 2px solid var(--color-navy);
  padding: var(--space-8) 0 var(--space-6);
}
.site-footer a:hover{ color: var(--color-text); }
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
@media (max-width: 780px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
.footer-col h4{
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}
.footer-col li{ margin-bottom: var(--space-2); font-size: 14px; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
  font-size: 13px;
}

/* ---------------------------------------------------------------------
   RTL / Arabic support
   --------------------------------------------------------------------- */
html[dir="rtl"] body{ font-family: 'Tajawal', var(--font-body); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] .brand-name{
  font-family: 'Noto Naskh Arabic', var(--font-display);
}
html[dir="rtl"] .eyebrow{ letter-spacing: 0; }
html[dir="rtl"] .breadcrumb{ letter-spacing: 0; }
.lang-switch{ font-size: 13px; color: var(--color-muted); margin-inline-start: 8px; }
.lang-switch a{ color: var(--color-muted); }
.lang-switch a[aria-current="page"], .lang-switch .lang-current{ color: var(--color-navy); font-weight: 600; }

/* ---------------------------------------------------------------------
   Collapsible bio
   --------------------------------------------------------------------- */
.bio-details{ margin-top: var(--space-3); }
.bio-details summary{ cursor: pointer; font-weight: 600; list-style: none; }
.bio-details summary::-webkit-details-marker{ display: none; }
.bio-details[open] summary{ margin-bottom: var(--space-3); }
.bio-details p{ margin: 0 0 var(--space-4); }
