*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Colour palette — unchanged from the current Dar Bassidi site */
:root {
  --teal: #00A896;
  --teal-dark: #007A6E;
  --teal-deep: #005A51;   /* darker shade of the same teal, for large dark surfaces */
  --teal-light: #E6F7F5;
  --teal-mid: #80D4CB;
  --cream: #F2EFE8;
  --cream-dark: #E8E4DB;
  --brown: #5A4E44;
  --brown-light: #8A7A6E;
  --white: #FAFAF8;
  --text: #1E1E1C;
  --text-muted: #7A7268;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-sans: 'Figtree', system-ui, sans-serif;
  --radius: 18px;
}

html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── TYPE ── */
.display { font-family: var(--font-display); font-weight: 300; line-height: 1.05; letter-spacing: -0.03em; }
.display em { font-weight: 400; }
.h-xl { font-weight: 200 !important; letter-spacing: -0.04em; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.2rem; }
.h-xl { font-size: clamp(3.4rem, 10vw, 9rem); }
.h-lg { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.h-md { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
.lead { font-size: 1.08rem; line-height: 1.75; }

/* ── BUTTONS (pill style) ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 0.95rem 1.7rem; border-radius: 300px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--teal-mid); color: var(--text); }
.btn-accent:hover { background: #fff; }
.btn-solid { background: var(--teal-dark); color: #fff; }
.btn-solid:hover { background: var(--teal-deep); }
.btn-outline { background: transparent; color: var(--teal-dark); border-color: var(--teal-dark); }
.btn-outline:hover { background: var(--teal-dark); color: #fff; }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(242,239,232,.55); }
.btn-outline-light:hover { border-color: var(--cream); background: rgba(255,255,255,.08); }
/* ── NAV: links left · logo centre · CTA right ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1.3rem 3rem; color: var(--cream); transition: background .3s, padding .3s, box-shadow .3s; }
nav.scrolled { background: var(--teal-deep); padding: .8rem 3rem; box-shadow: 0 6px 30px rgba(0,0,0,.18); }
.nav-links { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; list-style: none; max-width: 420px; }
.nav-links a { text-decoration: none; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .9; transition: opacity .2s, color .2s; }
.nav-links a:hover { color: var(--teal-mid); opacity: 1; }
.nav-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--cream); }
.nav-logo svg { width: 30px; height: 30px; }
.nav-logo span { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); cursor: pointer; }
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--teal-deep); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.4rem; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: var(--font-display); font-weight: 300; letter-spacing: .06em; color: var(--cream); font-size: 2rem; text-decoration: none; text-transform: uppercase; }
/* ── FOOTER ── */
footer { background: var(--teal-deep); color: var(--cream); padding: 5rem 3rem 2.2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.f-logo { width: 74px; height: 74px; }
.footer-col h4 { font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col a, .footer-col p { display: block; font-size: .9rem; color: rgba(242,239,232,.75); text-decoration: none; margin-bottom: .55rem; transition: color .2s; }
.footer-col a:hover { color: var(--teal-mid); }
.f-badge { border: 1.5px solid rgba(242,239,232,.3); border-radius: 14px; padding: 1.2rem; text-align: center; max-width: 170px; }
.f-badge .n { font-family: var(--font-display); font-weight: 200; font-size: 2.6rem; line-height: 1; color: var(--teal-mid); }
.f-badge .l { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-top: .4rem; }
.footer-word { max-width: 1280px; margin: 4rem auto 0; font-family: var(--font-display); font-weight: 200; letter-spacing: .02em; font-size: clamp(3rem, 13vw, 12.5rem); line-height: .85; text-transform: uppercase; color: rgba(242,239,232,.08); text-align: center; white-space: nowrap; overflow: hidden; }
.footer-bottom { max-width: 1280px; margin: 1.5rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .78rem; color: rgba(242,239,232,.5); }

/* ── BLOG (shared by /blog/ and every article) ── */
nav { background: var(--teal-deep); padding: .9rem 3rem; }
.page-head { background: var(--teal-deep); color: var(--cream); padding: 9.5rem 3rem 4.5rem; }
.page-head .inner { max-width: 1280px; margin: 0 auto; }
.page-head .eyebrow { color: var(--teal-mid); }
.page-head h1 { color: var(--cream); max-width: 900px; }
.page-head p.lead { color: rgba(242,239,232,.85); max-width: 640px; margin-top: 1.4rem; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 5rem 3rem; }

/* overview: article cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { background: var(--white); border: 1px solid var(--cream-dark); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(30,30,28,.08); }
.post-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--cream-dark); }
.post-card .body { padding: 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-card .cat { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brown-light); }
.post-card h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.3; color: var(--text); }
.post-card p { font-size: .93rem; color: var(--brown); }
.post-card .more { margin-top: auto; padding-top: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.empty { text-align: center; max-width: 560px; margin: 0 auto; padding: 3rem 0; color: var(--brown); }
.empty h2 { font-family: var(--font-display); font-weight: 300; font-size: 1.8rem; color: var(--text); margin-bottom: .8rem; }
.post-grid:not(:empty) + .empty { display: none; }

/* call-to-action band */
.cta-band { background: var(--white); border-top: 1px solid var(--cream-dark); }
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.1; }
.cta-band p { color: var(--brown); margin-top: .8rem; }
.cta-band .btns { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
.btn-dark { background: var(--text); color: var(--white); }
.btn-dark:hover { background: var(--brown); }
.btn-line { background: transparent; color: var(--text); border-color: var(--text); }
.btn-line:hover { background: var(--text); color: var(--white); }

/* article */
.crumbs { font-size: .8rem; color: rgba(242,239,232,.7); margin-bottom: 1.4rem; }
.crumbs a { color: inherit; }
.meta { font-size: .85rem; color: rgba(242,239,232,.7); margin-top: 1.2rem; }
.article { max-width: 760px; margin: 0 auto; padding: 4.5rem 1.5rem 5rem; }
.article .cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 2.5rem; }
.article .quick { background: var(--white); border: 1px solid var(--cream-dark); border-left: 4px solid var(--text); border-radius: 12px; padding: 1.4rem 1.6rem; font-size: 1.05rem; margin-bottom: 1.6rem; }
.article .quick strong:first-child { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .4rem; }
.article .facts { background: var(--cream-dark); border-radius: 12px; padding: 1.4rem 1.6rem; margin-bottom: 2.4rem; }
.article .facts h2 { font-family: var(--font-sans); font-size: .78rem !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .7rem !important; }
.article .facts ul { margin: 0; padding-left: 1.2rem; }
.prose { font-size: 1.06rem; line-height: 1.8; color: var(--text); }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; margin: 2.8rem 0 1rem; }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin: 2rem 0 .6rem; }
.prose p, .prose ul, .prose ol, .prose table, .prose figure { margin-bottom: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--teal-dark); }
.prose img { border-radius: 12px; }
.prose figcaption { font-size: .85rem; color: var(--text-muted); margin-top: .5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--cream-dark); }
.prose th { font-weight: 700; background: var(--white); }
.faq-list details { border-bottom: 1px solid var(--cream-dark); padding: 1rem 0; }
.faq-list summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::after { content: '+'; font-weight: 400; }
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p { margin: .7rem 0 0; color: var(--brown); }
.author { display: flex; gap: 1.2rem; align-items: center; background: var(--white); border: 1px solid var(--cream-dark); border-radius: var(--radius); padding: 1.4rem; margin-top: 3rem; }
.author svg { width: 48px; height: 48px; flex: none; color: var(--teal-deep); }
.author p { margin: 0; font-size: .95rem; color: var(--brown); }
.sources { font-size: .88rem; color: var(--text-muted); }

@media (max-width: 1050px) { .post-grid { grid-template-columns: 1fr 1fr; } .footer-inner { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px) {
  nav, nav.scrolled { padding: 1rem 1.25rem; grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
  .nav-logo { justify-self: start; }
  .nav-right .btn { display: none; }
  .nav-toggle { display: block; }
  .page-head { padding: 7.5rem 1.25rem 3.5rem; }
  .wrap { padding: 3.5rem 1.25rem; }
  .cta-band .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .cta-band .btns { justify-content: flex-start; }
  footer { padding: 4rem 1.25rem 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } .footer-inner { grid-template-columns: 1fr; } }
