/* ===========================================================
   TOTALLY MARRAKECH — design tokens
   Palette drawn from the brand mark: aubergine arch, terracotta
   red, marigold sun, zellige teal, warm sand.
   =========================================================== */
:root{
  --plum-950: #2A0E1D;
  --plum-900: #3B1526;
  --plum-800: #4E1E33;
  --red-600:  #C2372B;
  --red-700:  #A32B21;
  --gold-500: #D98A2B;
  --gold-400: #E7A94F;
  --teal-600: #12878C;
  --teal-700: #0E6E72;
  --sand-50:  #FBF6EC;
  --sand-100: #F6EEDD;
  --sand-200: #EDE0C6;
  --ink-900:  #2A1A14;
  --ink-700:  #4B372E;
  --ink-500:  #75625A;
  --white:    #FFFFFF;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-card: 0 12px 30px -14px rgba(42,14,29,0.35);
  --shadow-pop: 0 20px 45px -16px rgba(42,14,29,0.45);
  --wrap: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--sand-50);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--red-700); text-decoration-thickness:1.5px; text-underline-offset:3px; }
a:hover{ color:var(--gold-500); }
h1,h2,h3,h4{ font-family:var(--font-display); color:var(--plum-900); line-height:1.15; margin:0 0 .5em; font-weight:600; }
h1{ font-size:clamp(2.2rem,4.5vw,3.4rem); font-weight:700; }
h2{ font-size:clamp(1.6rem,3vw,2.3rem); }
h3{ font-size:1.3rem; }
p{ margin:0 0 1.1em; }
ul,ol{ padding-left:1.2em; }
.wrap{ max-width:var(--wrap); margin-inline:auto; padding-inline:24px; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--plum-900); color:#fff; padding:10px 16px; z-index:200; }
.skip-link:focus{ left:8px; top:8px; }

/* ---------- buttons & tags ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.5em;
  font-family:var(--font-body); font-weight:600; font-size:.98rem;
  padding:.85em 1.5em; border-radius:100px; text-decoration:none;
  border:2px solid transparent; transition:transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn--primary{ background:var(--red-600); color:#fff; }
.btn--primary:hover{ background:var(--red-700); color:#fff; }
.btn--ghost{ border-color:rgba(255,255,255,.6); color:#fff; }
.btn--ghost:hover{ background:rgba(255,255,255,.12); color:#fff; }
.btn--outline{ border-color:var(--plum-900); color:var(--plum-900); }
.btn--outline:hover{ background:var(--plum-900); color:#fff; }
.eyebrow{
  font-family:var(--font-script); font-size:1.5rem; color:var(--gold-500);
  display:inline-block; margin-bottom:.1em; line-height:1;
}
.pill{
  display:inline-block; font-size:.78rem; font-weight:600; letter-spacing:.03em;
  text-transform:uppercase; background:var(--teal-600); color:#fff;
  padding:.3em .8em; border-radius:100px;
}

/* ---------- header ---------- */
.site-header{ background:var(--plum-900); position:sticky; top:0; z-index:100; box-shadow:0 2px 12px rgba(0,0,0,.15); }
.site-header__row{ display:flex; align-items:center; justify-content:space-between; padding-block:12px; gap:16px; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand__mark{ width:44px; height:44px; object-fit:contain; }
.brand__text{ display:flex; flex-direction:column; line-height:1; }
.brand__totally{ font-family:var(--font-script); color:var(--gold-400); font-size:1.15rem; }
.brand__marrakech{ font-family:var(--font-display); color:#fff; font-weight:700; font-size:1.25rem; letter-spacing:.01em; }
.primary-nav ul{ list-style:none; display:flex; gap:2px; margin:0; padding:0; flex-wrap:wrap; }
.primary-nav a{
  display:block; color:#F1E4D6; text-decoration:none; font-weight:500; font-size:.95rem;
  padding:.6em .85em; border-radius:100px; transition:background .15s ease, color .15s ease;
}
.primary-nav a:hover{ background:rgba(255,255,255,.1); color:#fff; }
.primary-nav a.is-active{ background:var(--red-600); color:#fff; }
.primary-nav a.lang-switch{ font-weight:700; border:1px solid rgba(255,255,255,.35); padding:.5em .75em; }
.nav-toggle{ display:none; background:none; border:0; width:40px; height:34px; flex-direction:column; justify-content:center; gap:6px; cursor:pointer; }
.nav-toggle span{ height:2px; background:#fff; border-radius:2px; }

/* ---------- hero ---------- */
.hero{
  position:relative; overflow:hidden; color:#fff;
  background:radial-gradient(120% 160% at 15% 0%, var(--plum-800) 0%, var(--plum-900) 45%, var(--plum-950) 100%);
  padding:76px 0 96px;
}
.hero::after{
  content:""; position:absolute; inset:0; opacity:.16; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23E7A94F' stroke-width='1.2'%3E%3Cpath d='M60 6 L84 30 L60 54 L36 30 Z M60 66 L84 90 L60 114 L36 90 Z M6 30 L30 6 L54 30 L30 54 Z M66 30 L90 6 L114 30 L90 54 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner{ position:relative; display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; }
.hero__eyebrow{ font-family:var(--font-script); color:var(--gold-400); font-size:1.6rem; }
.hero h1{ color:#fff; }
.hero p.lede{ font-size:1.15rem; color:#E9DCCF; max-width:46ch; }
.hero__cta{ display:flex; gap:14px; flex-wrap:wrap; margin-top:1.6em; }
.hero__art{
  aspect-ratio:4/3; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-pop);
  background:linear-gradient(160deg,var(--gold-500),var(--red-600) 60%,var(--teal-700));
  display:flex; align-items:center; justify-content:center;
}
.hero__art img{ width:100%; height:100%; object-fit:cover; }
.hero__stats{ display:flex; gap:28px; margin-top:2.2em; flex-wrap:wrap; }
.hero__stats div{ min-width:100px; }
.hero__stats strong{ display:block; font-family:var(--font-display); font-size:1.6rem; color:var(--gold-400); }
.hero__stats span{ font-size:.85rem; color:#D9C9BA; }

/* page header (non-home) */
.page-hero{
  background:linear-gradient(160deg,var(--plum-800),var(--plum-950));
  color:#fff; padding:56px 0 68px; position:relative; overflow:hidden;
}
.page-hero::after{
  content:""; position:absolute; inset:0; opacity:.14; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%2312878C' stroke-width='1.2'%3E%3Cpath d='M60 6 L84 30 L60 54 L36 30 Z M60 66 L84 90 L60 114 L36 90 Z M6 30 L30 6 L54 30 L30 54 Z M66 30 L90 6 L114 30 L90 54 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .wrap{ position:relative; }
.page-hero h1{ color:#fff; max-width:22ch; }
.page-hero p.lede{ color:#E9DCCF; max-width:60ch; font-size:1.08rem; }
.breadcrumbs{ font-size:.85rem; color:#CBB9AA; margin-bottom:1em; }
.breadcrumbs a{ color:#E9DCCF; }
.breadcrumbs a:hover{ color:#fff; }

/* ---------- sections ---------- */
.section{ padding:64px 0; }
.section--tight{ padding:40px 0; }
.section--sand{ background:var(--sand-100); }
.section--plum{ background:var(--plum-900); color:#fff; }
.section--plum h2{ color:#fff; }
.section-head{ max-width:64ch; margin-bottom:2.2em; }
.section-head h2{ margin-bottom:.3em; }

/* ---------- card grids ---------- */
.grid{ display:grid; gap:26px; }
.grid--3{ grid-template-columns:repeat(3,1fr); }
.grid--4{ grid-template-columns:repeat(4,1fr); }
.grid--2{ grid-template-columns:repeat(2,1fr); }

.card{
  background:#fff; border-radius:var(--radius-md); overflow:hidden;
  box-shadow:var(--shadow-card); display:flex; flex-direction:column;
  transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-pop); }
.card__media{ aspect-ratio:4/3; background:linear-gradient(135deg,var(--teal-600),var(--plum-800)); position:relative; }
.card__media--gold{ background:linear-gradient(135deg,var(--gold-500),var(--red-700)); }
.card__media--teal{ background:linear-gradient(135deg,var(--teal-600),var(--plum-900)); }
.card__media--red{ background:linear-gradient(135deg,var(--red-600),var(--plum-900)); }
.card__body{ padding:20px 22px 24px; flex:1; display:flex; flex-direction:column; }
.card__body h3{ margin-bottom:.35em; }
.card__body p{ color:var(--ink-700); font-size:.96rem; margin-bottom:1em; }
.card__link{ margin-top:auto; font-weight:600; font-size:.92rem; text-decoration:none; }

.tile-link{
  display:block; padding:22px; border-radius:var(--radius-md); background:var(--sand-100);
  text-decoration:none; color:var(--ink-900); border:1px solid var(--sand-200);
  transition:background .15s ease, border-color .15s ease;
}
.tile-link:hover{ background:#fff; border-color:var(--gold-500); }
.tile-link h3{ margin-bottom:.25em; font-size:1.1rem; color:var(--plum-900); }
.tile-link p{ font-size:.9rem; color:var(--ink-500); margin:0; }

/* ---------- info / practical list ---------- */
.info-list{ list-style:none; padding:0; margin:0; display:grid; gap:14px; }
.info-list li{
  display:flex; gap:14px; align-items:flex-start; background:#fff; border-radius:var(--radius-sm);
  padding:16px 18px; box-shadow:var(--shadow-card);
}
.info-list .ico{
  flex:none; width:38px; height:38px; border-radius:50%; background:var(--gold-500); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700;
}

/* ---------- divider ---------- */
.zellige-divider{
  height:34px; margin:0; background-repeat:repeat-x; background-size:34px 34px; opacity:.5;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cg fill='none' stroke='%23C2372B' stroke-width='1.4'%3E%3Cpath d='M17 2 L26 9 L17 16 L8 9 Z M17 18 L26 25 L17 32 L8 25 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- quote / callout ---------- */
.callout{
  background:var(--sand-100); border-left:4px solid var(--gold-500); border-radius:var(--radius-sm);
  padding:20px 24px; margin:1.6em 0;
}
.callout p:last-child{ margin-bottom:0; }
.callout--teal{ border-color:var(--teal-600); }

/* ---------- newsletter / cta band ---------- */
.cta-band{
  background:linear-gradient(120deg,var(--red-600),var(--gold-500));
  color:#fff; border-radius:var(--radius-lg); padding:44px; display:flex; align-items:center;
  justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-band h2{ color:#fff; margin-bottom:.2em; }
.cta-band p{ margin:0; color:#FFF3E6; }

/* ---------- prose / article pages ---------- */
.prose{ max-width:74ch; }
.prose h2{ margin-top:1.6em; }
.prose h3{ margin-top:1.3em; }
.prose img{ border-radius:var(--radius-md); margin:1.4em 0; }
.article-meta{ color:var(--ink-500); font-size:.9rem; margin-bottom:2em; }
.toc{ background:var(--sand-100); border-radius:var(--radius-md); padding:20px 24px; margin:1.6em 0; }
.toc h2{ font-size:1rem; text-transform:uppercase; letter-spacing:.04em; margin-bottom:.6em; }
.toc ul{ margin:0; padding-left:1.1em; }

/* ---------- blog list ---------- */
.post-row{
  display:grid; grid-template-columns:220px 1fr; gap:22px; padding:20px 0; border-bottom:1px solid var(--sand-200);
  align-items:start;
}
.post-row__media{ aspect-ratio:4/3; border-radius:var(--radius-sm); background:linear-gradient(135deg,var(--teal-600),var(--plum-900)); }
.post-row time{ font-size:.82rem; color:var(--ink-500); }

/* ---------- footer ---------- */
.site-footer{ background:var(--plum-950); color:#E9DCCF; padding:56px 0 0; margin-top:60px; }
.site-footer__grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:32px; padding-bottom:40px; }
.site-footer__brand{ display:flex; gap:14px; }
.site-footer__brand img{ width:40px; height:40px; }
.site-footer__tagline{ font-size:.92rem; color:#C9B7A8; }
.site-footer h2{ color:#fff; font-family:var(--font-body); font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; margin-bottom:1em; }
.site-footer__nav ul{ list-style:none; padding:0; margin:0; display:grid; gap:.6em; }
.site-footer__nav a{ color:#D9C9BA; text-decoration:none; font-size:.92rem; }
.site-footer__nav a:hover{ color:#fff; }
.site-footer__newsletter p{ font-size:.88rem; color:#C9B7A8; }
.site-footer__bottom{ border-top:1px solid rgba(255,255,255,.08); padding:18px 0; font-size:.82rem; color:#9C8B7E; }

/* ---------- responsive ---------- */
@media (max-width:920px){
  .hero__inner{ grid-template-columns:1fr; }
  .hero__art{ order:-1; }
  .grid--4{ grid-template-columns:repeat(2,1fr); }
  .grid--3{ grid-template-columns:repeat(2,1fr); }
  .site-footer__grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:720px){
  .nav-toggle{ display:flex; }
  .primary-nav{
    position:absolute; top:100%; left:0; right:0; background:var(--plum-900);
    max-height:0; overflow:hidden; transition:max-height .25s ease;
  }
  .primary-nav.is-open{ max-height:600px; }
  .primary-nav ul{ flex-direction:column; padding:10px 24px 20px; gap:2px; }
  .primary-nav a{ padding:.75em .5em; }
  .grid--3,.grid--2{ grid-template-columns:1fr; }
  .post-row{ grid-template-columns:1fr; }
  .site-footer__grid{ grid-template-columns:1fr; }
  .cta-band{ flex-direction:column; text-align:center; }
}
