/* Abdulsalam Mohammed Daaru  */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color */
  --teal-950: #0a2b28;
  --teal-800: #0e433d;
  --teal-700: #145951;
  --teal-600: #1c6f65;
  --gold-600: #a8792f;
  --gold-500: #c69648;
  --gold-300: #e3c589;
  --paper: #f5f3ec;
  --paper-dim: #ece8dc;
  --ink: #1d2321;
  --ink-soft: #4a524e;
  --line: #d9d2c0;
  --white: #fffdf8;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --teal-900: #133f39;

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: px;
}

* { box-sizing: border-box; }
html, body {
  scroll-behavior: smooth;
  height: auto;
  min-height: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin:0 ;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--teal-950);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--teal-950);
  display: inline-flex;
  gap: 0.6rem;
  font-weight: 600;
  align-items: center;
  margin-bottom: 0.9em;
}
.eyebrow__highlight { 
    color: var(--gold-500);
 }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}
@media (max-width: 780px) {
  .section { padding: clamp(2rem, 6vw, 3rem) 0; }
}
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--dark {
  background: var(--teal-950);
  color: var(--paper);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #c7d3cf; }
.section--dim { background: var(--paper-dim); }

.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 1.8rem;
  border-radius:20px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold-500);
  color: var(--teal-950);
}
.btn-primary:hover { background: var(--gold-300); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.section:not(.section--dark) .btn-ghost:hover { background: rgba(10,43,40,0.06); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
    display: flex;
    align-items: center;
}
.logo:hover{
    transform: scale(1.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--teal-950);
  letter-spacing: 0.01em;
}
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 20%;
  margin-right: 0.5rem;
}
.nav__brand span { color: var(--gold-500); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-950);
  position: relative;
  padding: 0.4em 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width 0.25s ease;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }

.nav__item { position: relative; }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 240px;
  padding: 0.5rem;
  box-shadow: 0 14px 30px rgba(10,43,40,0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 0.6em 0.8em;
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: 2px;
}
.nav__dropdown a:hover { background: var(--paper-dim); }
.nav__dropdown a::after { display: none; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-950);
  margin: 5px 0;
  transition: 0.25s ease;
}

@media (max-width: 880px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    z-index: 99;
  }
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav__links:not(.is-open) {
    display: none;
  }
  .nav__links a { display: block; width: 100%; padding: 0.9em 0; border-bottom: 1px solid var(--line); }
  .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1; visibility: visible;
    box-shadow: none; border: none;
    display: none;
    width: 100%;
    padding: 0 0 0 1rem;
  }
  .nav__item.is-open .nav__dropdown { display: block; }
}

/* Ensure content scrolls properly on mobile */
@media (max-width: 780px) {
  html, body {
    height: auto;
    overflow-x: hidden;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--teal-950);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 5vw, 8rem) 0 clamp(3rem, 5vw, 5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}
@media (max-width: 780px) {
  .hero__grid { grid-template-columns: 1fr; }

  .hero__grid > .photo-frame {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
    padding: 1rem;
  }
  .hero { padding: clamp(0.75rem, 2.5vw, 1.25rem) 0 clamp(0.5rem, 2vw, 0.75rem);
        }
}
.hero__tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1rem;
}
.hero h1 { color: white; margin-bottom: 0.4em; }
.hero__role {
   margin-top: 1.2rem;
   color:white;
}
.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 780px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 100%; }
}
.timeline__eyebrow {
  margin-left: 400px;
  text-align: left;
}
@media (max-width: 780px) {
  .timeline__eyebrow {
    margin-left: 0;
    text-align: center;
  }
}
/* ---------- Photo frame ----------
   A document/plaque-style placeholder, not an abstract gradient texture.
   Corner marks reference the clinical-audit, record-keeping side of the
   subject's career rather than being decoration for its own sake. */
.photo-frame {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--teal-900);
  border: 1px solid rgba(198,150,72,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: 15px;
}
.photo-frame img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
}
.photo-frame img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* ---------- Highlight cards (homepage) ---------- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .highlight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .highlight-grid { grid-template-columns: 1fr; } }
.highlight-card {
  background: var(--white);
  border-radius:15px;
  padding: 2rem 1.6rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.highlight-card:hover { background: var(--paper-dim); }
.highlight-card__mark {
  font-family: var(--font-mono);
  padding-bottom: 0.8rem;
  font-size: 1.5rem;
  color: var(--gold-600);
  margin-bottom: 0.9em;
}
.highlight-card h3 { 
    font-size: 1.5rem;
     margin-bottom: 0.35em;
     }
.highlight-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Pull quote ---------- */
.pull-quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1.45;
  margin: 0 0 1.4rem;
  color: var(--teal-950);
}
.pull-quote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

/* ---------- Timeline / Continuum Line ---------- */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 2.2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold-500), var(--teal-600));
  border-radius: 2px;
}
.timeline__item {
  position: relative;
  padding-bottom: 2.6rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.2rem;
  top: 4px;
  width: 12px; height: 12px;
  background: var(--paper);
  border: 2px solid var(--gold-500);
  border-radius: 50%;
}
.timeline__date {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--gold-600);
  margin-bottom: 0.3em;
  display: block;
}
.timeline__item h3 { margin-bottom: 0.25em; }
.timeline__role {
     font-size: 1rem; 
     color: var(--ink-soft);
      font-weight: 600;
       margin-bottom: 0.5em; 
       display: block; 
    }

/* ---------- Venture sections ---------- */
.venture-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}
.venture-nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.6em 1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-800);
  transition: all 0.2s ease;
}
.venture-nav a:hover {
     border-color: var(--gold-500);
     background: var(--gold-300); }

.venture {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.venture:first-of-type { border-top: none; }
.venture__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.venture__role {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gold-600);
  white-space: nowrap;
}
.venture__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 780px) { .venture__grid { grid-template-columns: 1fr; } }
.venture__facts {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem 1.6rem;
  border-radius: 20px;
  align-self: start;

}

.venture__facts:hover{
    transform: scale(1.02);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.venture__facts dt {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.01rem;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1em;
}
.venture__facts dt:first-child {
     margin-top: 0; 
    }
.venture__facts dd { 
    margin: 0.2em 0 0;
     font-weight: 600;
      color: var(--teal-950);
     }
.venture__link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--teal-700);
  border-bottom: 1px solid var(--gold-500);
}

/* ---------- Article / Writing cards ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 1rem;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.55em 1.1em;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
}
.filter-btn.is-active { background: var(--teal-950); color: var(--white); border-color: var(--teal-950); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
@media (max-width: 780px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.6rem;
  border-radius: 20px;
  transition: border-color 0.2s ease;
}
.article-card:hover {
     border-color: var(--gold-500);
     background: var(--gold-300);
  }
.article-card__cat {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--gold-600);
}
.article-card h3 {
   font-size: 1.4rem;
    margin: 0.5em 0 0.4em; 
  }
.article-card__source {
   font-size: 0.9rem; 
   color: var(--ink-soft); 
  }
.article-card[hidden] { display: none; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  color: var(--gold-600);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 15px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
}
.contact-info dt {
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: 1.3em;
}
.contact-info dt:first-child { 
    margin-top: 0;
 }
 
.contact-info dd { 
    margin: 0.25em 0 0;
    font-size: 1rem;
     font-weight: 600; 
  
  }
.contact-icons {
  padding-top: 0.8rem;
   padding-bottom:0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.contact-icons__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  color: var(--white);
  font-size: 0.92rem;
}
a.contact-icons__item:hover {
  opacity: 0.75;
  color: var(--gold-300);
}

/* ---------- Featured-in strip ---------- */
.press-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.press-chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  border: 1px solid var(--line);
  padding: 0.5em 0.9em;
  border-radius: 15px;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--teal-950);
  color: #b9c7c2;
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
}
.footer__copyright {
  opacity: 1;
  padding-left: 0;
  text-align: center;
}
@media (min-width: 768px) {
  .footer__copyright { padding-left: 350px; text-align: left; }
}
.email a{
  color: var(--gold-500);
  text-decoration: none;
  font-size: 1rem;
}
.footer__grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__brand { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }

/* ---------- Scroll reveal ---------- */
[data-animate] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

.page-head {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
@media (max-width: 780px) {
  .page-head {
    padding-top: clamp(1rem, 3vw, 1.5rem);
    padding-bottom: clamp(0.75rem, 2vw, 1rem);
  }
}
.about__head, .ventures__head {
  min-height: auto;
}
@media (max-width: 780px) {
  .about__head, .ventures__head {
    min-height: auto;
    padding: clamp(1rem, 3vw, 1.5rem) 0;
  }
}
