/* ==========================================================================
   Dr. Mazin Al Khabouri — Book website
   Tokens pulled from Figma: Ink #0A3835, Panel #0E4743, Deep Teal #072926,
   Gold #C9A227, Gold Deep #A8871B, Cream #F5F1E6, Badge #EEE9DB,
   Secondary Text #5A6B66, Body Text #1E2E2C, Border #BFD9D2
   ========================================================================== */

:root{
  --ink:#0A3835;
  --panel:#0E4743;
  --deep-teal:#072926;
  --gold:#C9A227;
  --gold-deep:#A8871B;
  --cream:#F5F1E6;
  --badge:#EEE9DB;
  --secondary:#5A6B66;
  --body-text:#1E2E2C;
  --border:#BFD9D2;
  --white:#FFFFFF;
  --font-serif:'Fraunces', Georgia, serif;
  --font-sans:'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --edge: clamp(20px, 5vw, 80px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-sans);
  color:var(--body-text);
  background:var(--cream);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-family:var(--font-serif); font-weight:500; }
p{ margin:0; }
:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }
.flex-d-column{
  flex-direction:column;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; }
}

/* ---------- shared ---------- */
.pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  color:var(--gold);
  width:max-content;
}
.pill-dark{ background:var(--deep-teal); }
.pill-light{ background:var(--badge); }

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 24px;
  border-radius:14px;
  font-size:16px;
  font-weight:600;
  white-space:nowrap;
  transition:filter .15s ease, transform .15s ease;
}
.btn:hover{ filter:brightness(1.06); transform:translateY(-1px); }
.btn-gold{ background:var(--gold); color:var(--white); }
.btn-white{ background:var(--white); color:var(--ink); }

.section-pad{ padding:80px var(--edge); }
.cream{ background:var(--cream); }
.ink{ background:var(--ink); }

.h2-ink{ color:var(--ink); font-size:clamp(32px,4vw,48px); line-height:1.17; margin-bottom:16px; }
.h2-white{ color:var(--white); font-size:clamp(32px,4vw,48px); line-height:1.17; margin-bottom:16px; max-width:16ch; }
.h3-ink{ color:var(--ink); font-size:32px; line-height:1.25; }
.h3-white{ color:var(--white); font-size:32px; line-height:1.25; margin:56px 0 24px; }

.body-copy{ color:var(--secondary); font-size:18px; line-height:1.56; margin-bottom:20px; }
.body-copy:last-child{ margin-bottom:0; }
.body-copy-dark{ color:var(--white); font-size:18px; line-height:1.56; max-width:60ch; margin-bottom:32px; }
.col-fixed-text{ max-width:600px; }

/* ---------- nav ---------- */
.nav{
  background:var(--panel);
  border-bottom:1px solid rgba(191,217,210,.5);
  position:sticky;
  top:0;
  z-index:100;
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:24px var(--edge);
  max-width:1600px;
  margin:0 auto;
}
.logo img{ height:20px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:0; flex-wrap:wrap; }
.nav-links a:not(.btn){
  padding:12px 24px;
  color:var(--white);
  font-size:18px;
}
.nav-links a:not(.btn):hover{ color:var(--gold); }
.nav-links .btn{ margin-left:16px; }
.nav-toggle{ display:none; }

/* ---------- hero ---------- */
.hero{
  background: var(--ink);
 background-image: url('../img/background.png');
  overflow:hidden;
  background-repeat:no-repeat;
  background-position:top right;
  background-size:85%;
}
.hero-inner{
  max-width:1600px;
  margin:0 auto;
  padding:80px var(--edge);
  display:flex;
  align-items:center;
  gap:64px;
  flex-wrap:wrap;
  justify-content:space-between;
   
}
.hero-copy{ flex:1 1 480px; max-width:640px; }
.hero-copy h1{
  color:#F3EFE2;
  font-style:italic;
  font-size:clamp(32px,5vw,64px);
  line-height:1.13;
  margin:17px 0 20px;
}
.hero-lede{ color:var(--border); font-size:18px; line-height:1.56; margin-bottom:24px; max-width:56ch; }
.hero-date{
  display:inline-block;
  background:var(--deep-teal);
  color:rgba(191,217,210,.7);
  font-size:14px;
  padding:16px;
  border-radius:16px;
  margin-bottom:24px;
}
.hero-date strong{ color:var(--white); font-weight:700; }
.hero-actions{ display:flex; gap:17px; flex-wrap:wrap; margin-bottom:24px; }

.hero-art{
  position:relative;
  flex:1 1 340px;
  max-width:460px;
  min-height:400px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-portrait{
  width:78%;
  border-radius:44px;
  transform:rotate(3.2deg);
  box-shadow:9px 21px 50px rgba(0,0,0,.25), 37px 83px 60px rgba(0,0,0,.12);
  object-fit:cover;
  aspect-ratio:422/601;
}
.hero-book{
  position:absolute;
  left:0;
  bottom:8%;
  width:42%;
  transform:rotate(-9.6deg);
  box-shadow:-11px 24px 27px rgba(0,0,0,.2);
}

/* ---------- quote bar ---------- */
.quote-bar{ background:var(--panel); padding:64px var(--edge); }
.quote-bar-inner{
  display:flex;
  gap:24px;
  align-items:flex-start;
  max-width:1200px;
  margin:0 auto;
}
.quote-mark{ flex:none; transform:rotate(180deg); margin-top:4px; }
.quote-text{ color:var(--white); font-family:var(--font-serif); font-size:clamp(22px,2.6vw,32px); line-height:1.25; margin-bottom:16px; }
.quote-attr{ color:var(--gold-deep); font-size:20px; }

/* ---------- two-column: inside the book / author ---------- */
.two-col{
  max-width:1440px;
  margin:0 auto;
  display:flex;
  gap:32px;
  flex-wrap:wrap;
}
.col-fixed{ flex:1 1 480px; max-width:600px; }
.col-fixed .pill{ margin-bottom:17px; }
.col-flex{ flex:1 1 480px; }
.col-flex .h3-ink{ margin-bottom:32px; }

.topic-list li{
  display:flex;
  gap:24px;
  padding:24px 0;
  border-top:1px solid rgba(191,217,210,.5);
}
.topic-list li:last-child{ border-bottom:1px solid rgba(191,217,210,.5); }
.icon-badge{
  flex:none;
  width:40px; height:40px;
  border-radius:20px;
  background:var(--ink);
  display:flex; align-items:center; justify-content:center;
}
.topic-list h4{ color:var(--ink); font-size:20px; margin-bottom:8px; }
.topic-list p{ color:var(--secondary); font-size:18px; line-height:1.56; }

/* ---------- awards ---------- */
.ink .pill{ margin-bottom:17px; }
.award-cards{
  display:flex;
  gap:32px;
  flex-wrap:wrap;
  margin:32px 0;
}
.award-card{
  flex:1 1 340px;
  display:flex;
  gap:14px;
  background:var(--panel);
  padding:24px;
  border-radius:24px;
}
.award-icon{
  flex:none;
  width:40px; height:40px;
  border-radius:20px;
  background:var(--gold);
  display:flex; align-items:center; justify-content:center;
}
.award-card h3{ color:var(--white); font-size:20px; margin-bottom:8px; }
.award-card p{ color:var(--white); font-size:16px; opacity:.85; }

.affil-cols{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}
.affil-list{ flex:1 1 340px; }
.affil-list li{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--white);
  font-size:18px;
  padding:6px 0;
}
.affil-list li::before{
  content:'';
  flex:none;
  width:14px; height:14px;
  border-radius:50%;
  background:var(--gold);
}

/* ---------- stats ---------- */
.stats-bar{
  background:var(--panel);
  padding:64px var(--edge);
  display:flex;
  gap:64px;
  flex-wrap:wrap;
  justify-content:center;
  text-align:center;
}
.stat{ flex:1 1 200px; max-width:260px; }
.stat-num{ color:var(--gold); font-family:var(--font-serif); font-size:48px; margin-bottom:16px; }
.stat-label{ color:var(--white); font-size:18px; line-height:1.56; }

/* ---------- expertise ---------- */
.expertise-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:32px;
  max-width:1440px;
  margin:32px 0px;
}
.expertise-card{
  background:var(--white);
  border:1px solid var(--badge);
  border-radius:24px;
  padding:25px;
}
.expertise-icon{
  width:40px; height:40px;
  border-radius:20px;
  background:var(--ink);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.expertise-card h3{ color:#1E2E2C; font-size:20px; margin-bottom:8px; }
.expertise-card p{ color:var(--secondary); font-size:16px; line-height:1.5; }

/* ---------- pull quote ---------- */
.pullquote{
  background:var(--badge);
  padding:80px var(--edge);
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.rule-gold{ width:127px; height:9px; background:var(--gold); margin-bottom:32px; }
.pullquote-text{
  color:var(--ink);
  font-family:var(--font-serif);
  font-size:clamp(22px,2.6vw,32px);
  line-height:1.25;
  max-width:830px;
  margin-bottom:24px;
}
.pullquote-name{ color:var(--ink); font-size:18px; margin-bottom:4px; }
.pullquote-role{ color:var(--body-text); font-size:14px; }

/* ---------- video ---------- */
.video-row{
  display:flex;
  gap:32px;
  flex-wrap:wrap;
  max-width:1440px;
  margin:32px 0px;
}
.video-frame{
  flex:1 1 200px;
  border-radius:16px;
  overflow:hidden;
  aspect-ratio:674/380;
}
.video-frame {
  border: 8px solid #333;       /* Dark border frame */
  border-radius: 12px;          /* Rounded corners */
  padding: 5px;                 /* Inset spacing */
  background: #000;             /* Black background fill */
  box-shadow: 0 10px 20px rgba(0,0,0,0.3); /* Smooth drop shadow */
  display: inline-block;
  line-height: 0;
}

.video-frame iframe {
  display: block;
  width: 100%;    
  height: 100%;              /* Resizes perfectly inside the frame */
  border-radius: 6px;
}
iframe {
  display: block;
  width: 100%;    
  height: 100%;              /* Resizes perfectly inside the frame */
  border-radius: 6px;
}
.video-frame img{ width:100%; height:100%; object-fit:cover; }
.video-list{
  flex:1 1 320px;
  background:var(--panel);
  border-radius:24px;
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.video-list h4{ color:var(--white); font-size:20px; margin-bottom:8px; }
.video-item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
  border-radius:24px;
  background:#1F4A47;
  color:#839991;
  font-size:18px;
  line-height:1.4;
  transition:background .15s ease;
}
.video-item strong{ color:#839991; font-family:var(--font-sans); font-weight:600; font-size:20px; display:block; margin-bottom:2px; }
.video-item.active{ background:var(--deep-teal); }
.video-item.active strong{ color:var(--white); }
.video-item.active{ color:var(--white); }
.video-item:hover{ background:#274f4b; }
.play-btn{
  flex:none;
  width:48px; height:48px;
  border-radius:50%;
  background:#335C58;
  display:flex; align-items:center; justify-content:center;
}
.play-btn.gold{ background:var(--gold); }

/* ---------- author ---------- */
.author-row{
  max-width:1440px;
  margin:0 auto;
  display:flex;
  gap:32px;
  flex-wrap:wrap;
  align-items:flex-start;
}
.author-photo{
  flex:1 1 320px;
  max-width:392px;
  margin:0;
  border-radius:16px;
  overflow:hidden;
}
.author-photo img{ width:100%; aspect-ratio:392/461; object-fit:cover; }
.author-photo figcaption{
  background:var(--panel);
  color:var(--white);
  font-size:16px;
  padding:14px;
  text-align:center;
}
.author-copy{ flex:2 1 500px; max-width:1020px; }
.author-copy .pill{ margin-bottom:17px; }

.credentials{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top:24px;
}
.credentials ul{ flex:1 1 300px; display:flex; flex-direction:column; gap:17px; }
.credentials li{
  display:flex;
  align-items:baseline;
  gap:8px;
  font-size:18px;
  color:var(--body-text);
}
.credentials li::before{
  content:'';
  width:14px; height:14px;
  border-radius:50%;
  background:var(--gold);
  flex:none;
  transform:translateY(2px);
}
.credentials li > *:not(::before){ }

/* ---------- final CTA / press ---------- */
.cta-row{
  max-width:1440px;
  margin:0 auto;
  display:flex;
  gap:32px;
  flex-wrap:wrap;
  align-items:stretch;
}
.cta-copy{ flex:1 1 460px; }
.cta-copy .pill{ margin-bottom:17px; }
.isbn{ color:var(--secondary); font-size:18px; }

.press-card{
  flex:1 1 380px;
  background:var(--panel);
  border-radius:24px;
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:20px;
}
.press-card h3{ color:var(--white); font-size:32px; }
.press-card p{ color:var(--white); font-size:18px; line-height:1.56; }
.press-email{ color:var(--gold); font-size:24px; text-decoration:underline; word-break:break-word; }
.press-card hr{ border:none; border-top:1px solid rgba(191,217,210,.5); margin:0; }
.press-publisher{ color:#A4A4A4; font-size:14px; }
.press-publisher strong{ color:var(--white); font-weight:600; }

/* ---------- footer ---------- */
.footer{
  background:var(--panel);
  padding:24px var(--edge);
 
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  color:var(--white);
  font-size:18px;
}
.footer-section{
      max-width: 1440px;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px){
  .nav-links{
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--panel);
    flex-direction:column;
    align-items:stretch;
    padding:8px var(--edge) 24px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links a:not(.btn){ padding:14px 8px; }
  .nav-links .btn{ margin:12px 8px 0; justify-content:center; }
  .nav-toggle{
    display:flex;
    flex-direction:column;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
    padding:8px;
  }
  .nav-toggle span{ width:22px; height:2px; background:var(--white); border-radius:2px; }

  .hero-inner{ padding-top:56px; padding-bottom:56px; flex-direction:column; align-items:flex-start;}
  .hero-art{ order:-1; max-width:320px; margin:0 auto 24px; }

  .section-pad{ padding:56px var(--edge); }
  .expertise-grid{ grid-template-columns:1fr; }
  .award-cards, .affil-cols, .credentials{ gap:20px; }
}

@media (max-width: 560px){
  .stats-bar{ gap:40px 24px; }
  .hero-date{ font-size:13px; }
  .footer{ text-align:center; justify-content:center; }
  .footer-section{ display:inline}
}
