/* =====================================================================
   Al-Haramain Travels — Blog stylesheet
   Shared by /blog/ and /blog/<slug>/. Tokens, header, footer, buttons and
   reveal animation are copied verbatim from index.html so the blog reads as
   the same site. Blog-specific rules follow the "Blog" divider below.
   ===================================================================== */

:root {
  --gold: #daa260;
  --gold-deep: #c2884a;
  --gold-soft: #f3e3cf;
  --charcoal: #282828;
  --ink: #1c1c1c;
  --cream: #faf6f0;
  --cream-2: #f3ece2;
  --white: #ffffff;
  --muted: #6f6a63;
  --line: #e7ddd0;
  --shadow: 0 18px 50px rgba(40, 40, 40, 0.12);
  --radius: 16px;
  --maxw: 1180px;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, .display { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 24px rgba(218,162,96,0.35); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(194,136,74,0.42); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: rgba(40,40,40,0.25); }
.btn-ghost:hover { border-color: var(--charcoal); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--charcoal); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 12px 0;
}
header.scrolled { background: rgba(250,246,240,0.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); padding: 8px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: flex-start; align-self: flex-start; gap: 12px; transform-origin: top left; }
.nav-logo img { height: 115px; width: auto; transform-origin: top left; transition: height 0.3s ease; }
header.scrolled .nav-logo img { height: 80px; }
.nav-logo .logo-reverse { display: block; }
.nav-logo .logo-color { display: none; }
header.scrolled .nav-logo .logo-reverse { display: none; }
header.scrolled .nav-logo .logo-color { display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.navlink {
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; color: #fff;
  opacity: 0.92; transition: opacity 0.2s ease, color 0.2s; position: relative;
}
header.scrolled .nav-links a.navlink { color: var(--charcoal); }
.nav-links a.navlink:hover { opacity: 1; color: var(--gold); }
.nav-links a.navlink[aria-current="page"] { color: var(--gold); opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: background 0.3s; }
header.scrolled .menu-toggle span { background: var(--charcoal); }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.pad { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 14px 0 16px; color: var(--ink); }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ---------- Footer ---------- */
footer { background: #1f1f1f; color: #cfc7bc; padding: 70px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-brand img { height: 115px; width: auto; margin-bottom: 20px; }
.foot-brand p { font-size: 0.92rem; opacity: 0.8; max-width: 320px; }
.foot-col h4 { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1rem; margin-bottom: 18px; }
.foot-col a, .foot-col p { display: block; font-size: 0.92rem; opacity: 0.82; margin-bottom: 11px; transition: opacity 0.2s, color 0.2s; }
.foot-col a:hover { color: var(--gold); opacity: 1; }
.foot-social { display: flex; gap: 12px; margin-top: 18px; }
.foot-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; }
.foot-social a:hover { background: var(--gold); border-color: var(--gold); }
.foot-social svg { width: 18px; height: 18px; color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: 0.84rem; opacity: 0.7; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   Blog
   ===================================================================== */

/* ---------- Compact page hero (listing + article) ---------- */
.page-hero {
  position: relative; display: flex; align-items: flex-end; color: #fff; overflow: hidden;
  min-height: 420px; padding: 170px 0 56px; background: var(--charcoal);
}
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,28,28,0.92) 0%, rgba(28,28,28,0.62) 50%, rgba(28,28,28,0.35) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin: 14px 0 16px; text-shadow: 0 2px 30px rgba(0,0,0,0.25); max-width: 820px; }
.page-hero p.lead { font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 620px; opacity: 0.94; }
.page-hero.article-hero { min-height: 520px; }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 500; font-size: 0.84rem; opacity: 0.9; margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { opacity: 0.55; }
.crumbs li { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.crumbs .current { opacity: 0.75; max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Post meta row (date / read time / author) */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 0.88rem; font-weight: 500; }
.post-meta .cat { background: var(--gold); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.page-hero .post-meta { margin-top: 22px; opacity: 0.95; }

/* ---------- Listing: featured + grid ---------- */
.blog-list { background: var(--cream); }
.featured {
  display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--gold);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(218,162,96,0.18);
  margin-bottom: 56px; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.featured:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.featured .f-media { position: relative; min-height: 320px; overflow: hidden; }
.featured .f-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.featured:hover .f-media img { transform: scale(1.05); }
.featured .f-body { padding: 42px 40px; display: flex; flex-direction: column; justify-content: center; }
.featured .f-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; color: var(--ink); margin: 14px 0 12px; }
.featured .f-body p { color: var(--muted); font-size: 1.02rem; margin-bottom: 22px; }
.featured .post-meta { color: var(--muted); margin-bottom: 4px; }
.featured .read-more { font-family: var(--font-display); font-weight: 600; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 8px; }
.featured .read-more svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.featured:hover .read-more svg { transform: translateX(4px); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.post-card .pc-media { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.post-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .pc-media img { transform: scale(1.06); }
.post-card .pc-tag {
  position: absolute; top: 14px; left: 14px; background: var(--gold); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.post-card .pc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.post-card h3 a:hover { color: var(--gold-deep); }
.post-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.post-card .post-meta { margin-top: auto; color: var(--muted); font-size: 0.82rem; }

/* ---------- Article body ---------- */
.article-wrap { background: var(--cream); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; align-items: start; }
.prose { max-width: 720px; font-size: 1.04rem; color: #3f3b35; }
.prose > * + * { margin-top: 1.15em; }
.prose p.intro { font-size: 1.16rem; color: var(--charcoal); font-weight: 500; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 700; color: var(--ink); margin-top: 2.1em; }
.prose h3 { font-size: 1.18rem; font-weight: 600; color: var(--ink); margin-top: 1.7em; }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h3 + ul, .prose h2 + ol, .prose h3 + ol { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--gold-deep); font-weight: 600; }
.prose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--charcoal); }
.prose strong { color: var(--charcoal); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--gold); background: #fff; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; color: var(--ink);
}
.prose blockquote cite { display: block; font-family: var(--font-body); font-style: normal; font-weight: 400; font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.prose .callout { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.prose .callout.gold { background: var(--gold-soft); border-color: transparent; }
.prose .callout h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.prose .callout h4 svg { width: 18px; height: 18px; color: var(--gold-deep); flex: none; }
.prose .callout p, .prose .callout li { font-size: 0.97rem; }
.prose .callout ul { margin-top: 0.5em; }
.prose figure { margin-top: 2em; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.prose figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 10px; text-align: center; }
.prose .check-list { list-style: none; padding-left: 0; display: grid; gap: 10px; }
.prose .check-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; }
.prose .check-list li svg { width: 20px; height: 20px; color: var(--gold-deep); flex: none; margin-top: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-display); font-weight: 600; background: var(--cream-2); color: var(--ink); font-size: 0.88rem; }
.prose tr:last-child td { border-bottom: 0; }
.prose .disclaimer { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 2.4em; }
.author-box { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-top: 3em; }
.author-box img { width: 56px; height: 56px; flex: none; }
.author-box .who { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.author-box p { font-size: 0.92rem; color: var(--muted); margin-top: 2px; }

/* Sidebar */
.aside { position: sticky; top: 110px; display: grid; gap: 22px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.aside-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.aside-card.dark { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.aside-card.dark h4 { color: #fff; }
.aside-card.dark p { opacity: 0.85; font-size: 0.94rem; margin-bottom: 18px; }
.aside-card.dark .btn { width: 100%; }
.toc { list-style: none; display: grid; gap: 8px; }
.toc a { font-size: 0.92rem; color: var(--muted); display: block; padding-left: 14px; border-left: 2px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--gold-deep); border-color: var(--gold); }
.aside-links a { display: block; font-size: 0.92rem; color: var(--charcoal); padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.aside-links a:last-child { border-bottom: 0; }
.aside-links a:hover { color: var(--gold-deep); }

/* ---------- Related row ---------- */
.related { background: #fff; border-top: 1px solid var(--line); }
.related .section-head { margin-bottom: 36px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; overflow: hidden; background: var(--charcoal); }
.cta-band .cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .cta-bg::after { content: ""; position: absolute; inset: 0; background: rgba(28,28,28,0.8); }
.cta-band .wrap { position: relative; z-index: 1; padding: 86px 24px; display: grid; grid-template-columns: 1.3fr auto; gap: 30px 50px; align-items: center; }
.cta-band .eyebrow { color: var(--gold); }
.cta-band h2 { font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 12px 0 12px; }
.cta-band p { opacity: 0.88; font-size: 1.04rem; max-width: 560px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured .f-media { min-height: 260px; aspect-ratio: 16/9; }
  .featured .f-body { padding: 30px 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-band .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px); background: var(--charcoal);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 40px;
    transform: translateX(100%); transition: transform 0.35s ease; z-index: 200; }
  .nav-links.open { transform: none; }
  .nav-links a.navlink { color: #fff; font-size: 1.15rem; }
  .nav-links .btn { display: inline-flex; }
  .menu-toggle { display: flex; z-index: 210; }
  .nav-logo img { height: 82px; }
  header.scrolled .nav-logo img { height: 68px; }
  .pad { padding: 70px 0; }
  .page-hero { min-height: 360px; padding: 130px 0 44px; }
  .page-hero.article-hero { min-height: 440px; }
  .post-grid { grid-template-columns: 1fr; }
  .aside { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { padding: 66px 24px; }
  .cta-band .actions .btn { flex: 1; }
  .prose { font-size: 1rem; }
  .prose table { display: block; overflow-x: auto; }
  .author-box { align-items: flex-start; }
}
