/* ═══════════════════════════════════════════════════════
   Dr. Yasser Masood — Shared Blog / Article Stylesheet
   Re-uses the design tokens, nav, footer & section styles
   from the homepage so every article matches the site.
═══════════════════════════════════════════════════════ */

/* ═══ RESET ═══ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ═══ TOKENS ═══ */
:root {
  --navy:       #0D1B2A;
  --navy-2:     #152334;
  --navy-3:     #1E3350;
  --gold:       #C9A84C;
  --gold-lt:    #DFBA6A;
  --gold-pale:  #FBF6EA;
  --cream:      #FAF7F2;
  --cream-2:    #F1EBE1;
  --white:      #FFFFFF;
  --ink:        #0D1B2A;
  --slate:      #495868;
  --muted:      #7A8899;
  --border:     #DDD5C7;
  --border-lt:  #EDE7DC;
  --shadow-sm:  0 1px 4px rgba(13,27,42,.07);
  --shadow-md:  0 4px 20px rgba(13,27,42,.11);
  --shadow-lg:  0 16px 50px rgba(13,27,42,.18);
}

/* ═══ BASE ═══ */
body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ═══════════════════════════
   NAV
═══════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 76px;
  background: var(--white);
  border-bottom: 1px solid var(--border-lt);
  display: flex; align-items: center;
  padding: 0 5%;
  gap: 2rem;
  transition: box-shadow .25s;
}
.nav.raised { box-shadow: var(--shadow-md); }

.nav-brand {
  display: flex; align-items: center; gap: .75rem;
  flex-shrink: 0;
}
.nav-brand img { height: 70px; width: auto; }
.nav-brand-text { line-height: 1.2; }
.nav-brand-text b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: .95rem; font-weight: 600; color: var(--ink);
}
.nav-brand-text span {
  font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

.nav-links {
  display: flex; align-items: center; gap: .05rem;
  flex: 1; justify-content: center; list-style: none;
}
.nav-links a {
  font-size: .7rem; font-weight: 500; color: var(--slate);
  padding: .5rem .9rem;
  letter-spacing: .09em; text-transform: uppercase;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.nav-phone {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 500; color: var(--slate);
}
.nav-phone svg {
  width: 13px; height: 13px; stroke: var(--gold);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: .62rem 1.4rem;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  white-space: nowrap; transition: background .15s;
}
.nav-cta:hover { background: var(--gold-lt); }

.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; flex-shrink: 0;
}
.hamburger svg {
  width: 22px; height: 22px; stroke: var(--ink);
  fill: none; stroke-width: 1.8; stroke-linecap: round;
}

/* Mobile drawer */
.drawer {
  display: none; position: fixed; inset: 0; z-index: 499;
  background: var(--navy); flex-direction: column;
  padding: 5rem 8% 3rem;
  overflow-y: auto;
}
.drawer.open { display: flex; }
.drawer-close {
  position: absolute; top: 1.25rem; right: 5%;
  background: none; border: none;
  font-size: 2rem; line-height: 1; cursor: pointer;
  color: rgba(255,255,255,.5);
}
.drawer a {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 400;
  color: rgba(255,255,255,.8); padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .15s;
}
.drawer a:hover { color: var(--gold); }
.drawer-cta-m {
  margin-top: 2rem; background: var(--gold) !important;
  color: var(--navy) !important; text-align: center;
  padding: 1rem 1.5rem !important; border-bottom: none !important;
  font-family: 'Inter', sans-serif !important;
  font-size: .75rem !important; font-weight: 600 !important;
  letter-spacing: .09em !important; text-transform: uppercase !important;
}

/* ═══════════════════════════
   BUTTONS
═══════════════════════════ */
.btn-gold {
  background: var(--gold); color: var(--navy);
  padding: .95rem 2.25rem;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  display: inline-block; transition: background .15s;
  border: none; cursor: pointer;
}
.btn-gold:hover { background: var(--gold-lt); }
.btn-line {
  background: transparent; color: var(--slate);
  padding: .95rem 2.25rem;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  border: 1px solid var(--border);
  display: inline-block; transition: border-color .15s, color .15s;
}
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-gold-outline {
  display: inline-block;
  border: 1px solid var(--gold); color: var(--gold);
  padding: .85rem 1.85rem;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  transition: background .15s, color .15s;
}
.btn-gold-outline:hover { background: var(--gold); color: var(--navy); }

/* ═══════════════════════════
   SHARED SECTION
═══════════════════════════ */
.sec { padding: 6rem 7%; }
.sec-cream { background: var(--cream); }
.sec-white { background: var(--white); }
.sec-dark  { background: var(--navy); }

.sec-label {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.1rem;
}
.sec-label-line { width: 26px; height: 1px; background: var(--gold); }
.sec-label-text {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.sec-label-w .sec-label-line { background: rgba(201,168,76,.55); }
.sec-label-w .sec-label-text { color: rgba(201,168,76,.75); }

.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 500; color: var(--ink);
  line-height: 1.18; margin-bottom: 1.1rem;
}
.sec-title-w { color: var(--white); }

.sec-rule { width: 44px; height: 1px; background: var(--gold); margin: 1.1rem 0 2.25rem; }

.about-callout {
  border-left: 2px solid var(--gold);
  padding: 1rem 1.5rem; background: var(--gold-pale);
  margin: 1.75rem 0;
}
.about-callout p {
  font-size: .9rem; color: var(--slate);
  line-height: 1.75; margin: 0;
}
.about-callout p + p { margin-top: .6rem; }
.about-callout a { color: var(--navy-3); font-weight: 600; text-decoration: underline; }

/* ═══════════════════════════
   ANIMATIONS
═══════════════════════════ */
.fu { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.fu.in { opacity: 1; transform: none; }
.fu.d1 { transition-delay: .12s; }
.fu.d2 { transition-delay: .22s; }
.fu.d3 { transition-delay: .32s; }

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
footer {
  background: var(--navy-2);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 2.5rem 7%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.foot-brand { display: flex; align-items: center; gap: .75rem; }
.foot-brand img { height: 32px; width: auto; }
.foot-name {
  font-family: 'Playfair Display', serif; font-size: .9rem;
  color: rgba(255,255,255,.48); font-weight: 400;
}
.foot-socials { display: flex; gap: .45rem; }
.foot-soc {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.foot-soc:hover { border-color: var(--gold); background: rgba(201,168,76,.1); }
.foot-soc svg { width: 13px; height: 13px; fill: rgba(255,255,255,.3); transition: fill .15s; }
.foot-soc:hover svg { fill: var(--gold); }
.foot-copy { font-size: .68rem; color: rgba(255,255,255,.2); }

/* ═══════════════════════════════════════════════════════
   ARTICLE HERO
═══════════════════════════════════════════════════════ */
.article-hero {
  margin-top: 76px;
  background: var(--cream);
  padding: 3.5rem 7% 3rem;
  border-bottom: 1px solid var(--border-lt);
}
.breadcrumb {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.75rem;
}
.breadcrumb a { color: var(--slate); transition: color .15s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span.sep { color: var(--border); }
.breadcrumb span.current { color: var(--gold); font-weight: 600; }

.article-tag {
  display: inline-block;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1rem;
}
.article-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 500; color: var(--navy-3);
  line-height: 1.18; max-width: 880px; margin-bottom: 1.1rem;
}
.article-dek {
  font-size: 1rem; color: var(--slate); line-height: 1.8;
  max-width: 680px; margin-bottom: 1.75rem;
}
.article-meta {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  font-size: .76rem; color: var(--muted);
}
.article-meta b { color: var(--ink); font-weight: 600; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

/* ═══════════════════════════════════════════════════════
   ARTICLE BODY / PROSE
═══════════════════════════════════════════════════════ */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0,760px) 1fr;
  gap: 4rem;
  padding: 4rem 7% 5rem;
  max-width: 1280px; margin: 0 auto;
}
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500; color: var(--ink);
  line-height: 1.3; margin: 2.75rem 0 1.1rem;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 600; color: var(--navy-3);
  line-height: 1.4; margin: 2rem 0 .85rem;
}
.article-body p {
  font-size: .96rem; color: var(--slate); line-height: 1.95;
  margin-bottom: 1.25rem;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.5rem 0; padding-left: 0;
  list-style: none;
}
.article-body ul li, .article-body ol li {
  font-size: .94rem; color: var(--slate); line-height: 1.85;
  margin-bottom: .65rem; padding-left: 1.6rem; position: relative;
}
.article-body ul li::before {
  content: ''; position: absolute; left: 0; top: .75rem;
  width: 7px; height: 7px; background: var(--gold); border-radius: 50%;
}
.article-body ol { counter-reset: art-ol; }
.article-body ol li { counter-increment: art-ol; }
.article-body ol li::before {
  content: counter(art-ol);
  position: absolute; left: 0; top: 0;
  font-family: 'Playfair Display', serif; font-weight: 600;
  color: var(--gold); font-size: .85rem;
  width: 1.3rem; text-align: left;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--navy-3); font-weight: 600; border-bottom: 1px solid var(--gold); }
.article-body a:hover { color: var(--gold); }

.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem;
  font-size: .88rem;
}
.article-body table caption { display: none; }
.article-body th, .article-body td {
  text-align: left; padding: .75rem 1rem;
  border-bottom: 1px solid var(--border-lt);
}
.article-body th {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; background: var(--cream);
}
.article-body td { color: var(--slate); }

/* ═══════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════ */
.article-sidebar { display: flex; flex-direction: column; gap: 2rem; }
.sidebar-card {
  background: var(--cream);
  border: 1px solid var(--border-lt);
  padding: 1.75rem;
}
.sidebar-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600; color: var(--ink);
  margin-bottom: .6rem;
}
.sidebar-card p {
  font-size: .85rem; color: var(--slate); line-height: 1.8; margin-bottom: 1.25rem;
}
.sidebar-card .btn-gold { width: 100%; text-align: center; }
.sidebar-card .btn-line { width: 100%; text-align: center; margin-top: .6rem; }

.sidebar-nav { display: flex; flex-direction: column; gap: 0; }
.sidebar-nav-title {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1rem;
}
.sidebar-nav a {
  display: block; font-size: .84rem; color: var(--slate);
  padding: .65rem 0; border-bottom: 1px solid var(--border-lt);
  transition: color .15s;
}
.sidebar-nav a:hover { color: var(--navy-3); }
.sidebar-nav a:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════ */
.faq-section { padding: 0 7% 5rem; max-width: 1280px; margin: 0 auto; }
.faq-section .inner { max-width: 760px; }
.faq-item {
  border-top: 1px solid var(--border-lt);
  padding: 1.5rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border-lt); }
.faq-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  margin-bottom: .6rem; display: flex; gap: .85rem;
}
.faq-q span.qm {
  color: var(--gold); flex-shrink: 0; font-size: 1.1rem; line-height: 1.4;
}
.faq-a { font-size: .92rem; color: var(--slate); line-height: 1.85; padding-left: 1.95rem; }

/* ═══════════════════════════════════════════════════════
   AUTHOR BOX
═══════════════════════════════════════════════════════ */
.author-box {
  display: flex; gap: 1.5rem; align-items: center;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 2rem; margin-top: 3rem;
}
.author-box img {
  width: 76px; height: 76px; border-radius: 50%;
  object-fit: cover; object-position: center top; flex-shrink: 0;
  border: 1px solid rgba(201,168,76,.35);
}
.author-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--white); font-weight: 500; margin-bottom: .3rem;
}
.author-box p { font-size: .84rem; color: rgba(255,255,255,.55); line-height: 1.7; margin: 0; }
.author-box a { color: var(--gold); font-weight: 600; }

/* ═══════════════════════════════════════════════════════
   RELATED ARTICLES
═══════════════════════════════════════════════════════ */
.related-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: var(--border-lt); border: 1px solid var(--border-lt);
}
.related-card {
  background: var(--white); padding: 1.75rem;
  position: relative; overflow: hidden; transition: background .2s;
}
.related-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .28s ease; transform-origin: left;
}
.related-card:hover { background: var(--cream); }
.related-card:hover::after { transform: scaleX(1); }
.related-card .article-tag { margin-bottom: .75rem; }
.related-card h4 {
  font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   BLOG INDEX / LISTING
═══════════════════════════════════════════════════════ */
.blog-hero {
  margin-top: 76px;
  background: var(--navy);
  padding: 5rem 7%;
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 45%;
  background: radial-gradient(ellipse at 100% 50%, rgba(201,168,76,.1), transparent 70%);
}
.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 500; color: var(--white); line-height: 1.15;
  margin-bottom: 1.1rem; max-width: 820px; position: relative; z-index: 1;
}
.blog-hero p {
  font-size: .98rem; color: rgba(255,255,255,.55);
  line-height: 1.85; max-width: 600px; position: relative; z-index: 1;
}

.blog-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border-lt); border: 1px solid var(--border-lt);
}
.blog-card {
  background: var(--white); padding: 2rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden; transition: background .2s;
}
.blog-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .28s ease; transform-origin: left;
}
.blog-card:hover { background: var(--cream); }
.blog-card:hover::after { transform: scaleX(1); }
.blog-card .article-tag { margin-bottom: .9rem; }
.blog-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 600; color: var(--ink);
  line-height: 1.4; margin-bottom: .75rem;
}
.blog-card p {
  font-size: .87rem; color: var(--slate); line-height: 1.75;
  margin-bottom: 1.5rem; flex: 1;
}
.blog-card .read-more {
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-3); display: inline-flex; align-items: center; gap: .5rem;
}
.blog-card:hover .read-more { color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .article-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .article-sidebar { order: -1; }
  .sidebar-nav { display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 640px) {
  .sec { padding: 4.5rem 6%; }
  .article-hero { padding: 2.5rem 6% 2rem; }
  .article-wrap { padding: 3rem 6% 4rem; }
  .faq-section { padding: 0 6% 4rem; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; text-align: center; }
  footer { flex-direction: column; text-align: center; }
}
