/* ============================================================
   DonteDimanche.com — Design System
   Subtle editorial foundation with restrained Haitian-flag accents.
   Palette: warm white + charcoal base; deep navy (from flag blue
   #00209F) primary accent; flag red #D21034 used sparingly.
   ============================================================ */

:root {
  /* Brand — Haitian flag colors (used with restraint) */
  --haiti-blue: #00209F;   /* flag blue — accents, links */
  --haiti-red:  #D21034;   /* flag red  — sparing accent only */

  /* Neutral editorial foundation */
  --ink:        #1a1d23;   /* charcoal — primary type */
  --ink-soft:   #3a3f47;
  --paper:      #faf9f6;   /* warm white — page background */
  --paper-2:    #f2f0ea;   /* warm gray tint — alt sections */
  --gray:       #6b7280;   /* warm gray — muted type */
  --line:       #e4e1d9;   /* hairline borders */

  /* Dark sections (hero / contrast) */
  --navy-900:   #001852;   /* deepened flag blue for dark grounds */
  --navy-800:   #00209F;
  --on-dark:    #eef1fa;
  --on-dark-mut:#aab4d6;

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --maxw: 1140px;
  --maxw-prose: 720px;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(16,18,30,.04), 0 8px 28px rgba(16,18,30,.06);
  --shadow-lg: 0 10px 40px rgba(16,18,30,.12);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--haiti-blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--haiti-blue); outline-offset: 3px; border-radius: 3px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--navy-900); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.prose { max-width: var(--maxw-prose); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--haiti-blue); margin: 0 0 .9rem;
}
.section--dark .eyebrow { color: var(--on-dark-mut); }

/* Thin flag accent rule */
.flag-rule { height: 3px; width: 56px; border-radius: 3px; border: 0; margin: 0 0 1.4rem;
  background: linear-gradient(90deg, var(--haiti-blue) 0 50%, var(--haiti-red) 50% 100%); }

/* ---------- Flag stripe (top of header / footer) ---------- */
.flag-stripe { height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--haiti-blue) 0 50%, var(--haiti-red) 50% 100%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: .7rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: all .2s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--haiti-blue); color: #fff; }
.btn--primary:hover { background: #001a85; box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--haiti-blue); color: var(--haiti-blue); }
.section--dark .btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,.28); }
.section--dark .btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--on-dark { background: #fff; color: var(--navy-900); }
.btn--on-dark:hover { background: var(--on-dark); }

/* Inline text link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.link-arrow::after { content: "\2192"; transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,249,246,.88);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: .02em;
  color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark:hover { text-decoration: none; color: var(--haiti-blue); }
.wordmark .dot { color: var(--haiti-red); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-size: .93rem; font-weight: 500; padding: .5rem .8rem;
  border-radius: 6px; text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--haiti-blue); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 3px;
  border-radius: 2px; background: var(--haiti-red); }
.nav-cta { margin-left: 10px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 7px;
  width: 42px; height: 38px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: .2s var(--ease); }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px clamp(20px,5vw,40px) 24px; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .28s var(--ease); max-height: calc(100vh - 68px); overflow:auto;
  }
  .nav[data-open="true"] .nav-links { transform: translateY(0); }
  .nav-links a { padding: .85rem .4rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display:none; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { background: radial-gradient(1200px 600px at 75% -10%, #0a2db0 0%, var(--navy-900) 55%); color: var(--on-dark); }
.hero .container { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(56px, 9vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .descriptors { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: 0 0 1.3rem; padding: 0; list-style: none; }
.hero .descriptors li { font-size: .9rem; font-weight: 600; color: var(--on-dark); letter-spacing: .02em; }
.hero .descriptors li + li { padding-left: .9rem; border-left: 1px solid rgba(255,255,255,.22); }
.hero .role { color: var(--on-dark-mut); font-size: 1.05rem; margin-bottom: 1.1rem; }
.hero .positioning { font-size: 1.18rem; color: var(--on-dark); max-width: 36ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-photo { aspect-ratio: 4/5; border-radius: var(--radius); background:
  linear-gradient(160deg, #0e36c0, #001852); border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-photo .ph-note { font-family: var(--sans); font-size: .78rem; color: var(--on-dark-mut);
  padding: 12px 14px; background: rgba(0,8,40,.45); width: 100%; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { max-width: 320px; } }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* Timeline (horizontal on desktop, stacked on mobile) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 2rem; }
.tl-item { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.tl-item .num { font-family: var(--serif); font-size: .85rem; color: var(--haiti-blue); font-weight: 600;
  position: absolute; top: -12px; background: var(--paper); padding-right: 8px; }
.section--tint .tl-item .num { background: var(--paper-2); }
.tl-item h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.tl-item p { margin: 0; color: var(--gray); font-size: .92rem; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; gap: 0; }
  .tl-item { border-top: 0; border-left: 2px solid var(--line); padding: 4px 0 24px 20px; }
  .tl-item .num { position: static; background: none; display:block; margin-bottom: 4px; } }

/* Card grid */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--4 { grid-template-columns: repeat(2,1fr); } .grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }
.card .card-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--haiti-blue); display: block; margin-bottom: .5rem; }

/* Expertise card with top accent */
.card--accent { border-top: 3px solid var(--haiti-blue); }

/* Content / insight card */
.content-card { overflow: hidden; padding: 0; }
.content-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--paper-2), #e7e4dc);
  display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: .8rem; }
.content-card .cc-body { padding: 18px 20px 22px; }
.content-card .meta { font-size: .74rem; color: var(--gray); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.content-card .meta .cat { color: var(--haiti-blue); font-weight: 700; }
.content-card h3 { font-size: 1.08rem; }

/* Credential card */
.cred { background:#fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.cred .status { display:inline-block; font-size:.7rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  padding: 3px 9px; border-radius: 999px; }
.status--active { background: rgba(0,32,159,.08); color: var(--haiti-blue); }
.status--past { background: #ece9e2; color: var(--gray); }
.cred h3 { font-size: 1.05rem; margin: .7rem 0 .15rem; }
.cred .issuer { color: var(--ink-soft); font-size: .92rem; margin: 0 0 .8rem; }
.cred .dates { display:flex; gap: 1.5rem; font-size: .82rem; color: var(--gray); margin-bottom: .6rem; }
.cred .dates b { display:block; color: var(--ink); font-weight: 600; font-size:.9rem; }

/* Entelijan feature block */
.feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px,4vw,48px); align-items: center; }
.feature .logo-slot { aspect-ratio: 1/1; max-width: 240px; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; display: flex; align-items: center; justify-content: center; color: var(--gray);
  font-family: var(--serif); font-size: 1.1rem; box-shadow: var(--shadow); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

/* Experience entry */
.exp { border-left: 2px solid var(--line); padding: 0 0 2.4rem 26px; position: relative; }
.exp::before { content:""; position:absolute; left:-7px; top:4px; width:12px; height:12px; border-radius:50%;
  background: var(--paper); border: 2px solid var(--haiti-blue); }
.exp:last-child { padding-bottom: 0; }
.exp .org { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 0; }
.exp .pos { color: var(--haiti-blue); font-weight: 600; margin: .1rem 0 .3rem; }
.exp .when { font-size: .82rem; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .7rem; }
.exp ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.exp ul li { margin-bottom: .35rem; color: var(--ink-soft); }

/* Tag pills */
.pills { display:flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; padding:0; list-style:none; }
.pills li { font-size: .82rem; background: var(--paper-2); border: 1px solid var(--line);
  color: var(--ink-soft); padding: .3rem .7rem; border-radius: 999px; }

/* Filter bar */
.filter-bar { display:flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2.2rem; }
.filter-bar button { font-family: var(--sans); font-size: .9rem; font-weight: 600; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft); padding: .5rem 1rem; border-radius: 999px; transition: .15s; }
.filter-bar button[aria-pressed="true"] { background: var(--haiti-blue); color:#fff; border-color: var(--haiti-blue); }
.filter-bar button:hover { border-color: var(--haiti-blue); }

/* Forms */
.form { max-width: 620px; }
.form .row { margin-bottom: 1.1rem; }
.form label { display:block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.form input, .form select, .form textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background:#fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--haiti-blue); box-shadow: 0 0 0 3px rgba(0,32,159,.12); }
.form textarea { min-height: 140px; resize: vertical; }
.form .note { font-size: .82rem; color: var(--gray); }

/* Newsletter */
.newsletter { background: var(--navy-900); color: var(--on-dark); border-radius: var(--radius); padding: clamp(28px,4vw,48px); }
.newsletter h2 { color:#fff; }
.newsletter form { display:flex; gap: .7rem; margin-top: 1.2rem; max-width: 460px; }
.newsletter input { flex:1; border:1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color:#fff; padding:.7rem .85rem; border-radius: var(--radius-sm); }
.newsletter input::placeholder { color: var(--on-dark-mut); }
@media (max-width: 520px){ .newsletter form { flex-direction: column; } }

/* Social links */
.socials { display:flex; flex-wrap:wrap; gap: .8rem; list-style:none; padding:0; margin: 1.2rem 0 0; }
.socials a { display:inline-flex; align-items:center; gap:.5rem; font-weight:600; border:1px solid var(--line);
  padding:.55rem 1rem; border-radius: var(--radius-sm); color: var(--ink); background:#fff; }
.socials a:hover { border-color: var(--haiti-blue); color: var(--haiti-blue); text-decoration:none; }

/* Note / disclosure callout (for placeholders & sensitivity reminders) */
.note-box { border-left: 3px solid var(--haiti-red); background: #fff6f6; color: #7a2630;
  padding: .9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .9rem; margin: 1.2rem 0; }

/* Page intro header */
.page-head { padding: clamp(48px,7vw,88px) 0 clamp(28px,4vw,44px); }
.page-head .container { max-width: var(--maxw-prose); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #111319; color: #c7ccd6; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: clamp(44px,6vw,72px) 0 32px; }
.site-footer h4 { color:#fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer ul { list-style:none; margin:0; padding:0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #c7ccd6; font-size: .93rem; }
.site-footer a:hover { color:#fff; }
.footer-brand .wordmark { color:#fff; font-size: 1.1rem; }
.footer-brand p { color: #949aa6; font-size: .9rem; margin: .9rem 0 0; max-width: 34ch; }
.footer-bottom { border-top: 1px solid #23262f; padding: 18px 0; display:flex; flex-wrap:wrap; gap:10px;
  justify-content: space-between; font-size: .82rem; color: #868c98; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }

/* Utility */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.center{text-align:center}
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--gray); }
@media (prefers-reduced-motion: reduce){ * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
