/* Jozi Dates: Sky and Sand. Outfit 600 headings, DM Sans 400/600 body (self-hosted).
   Signature: a thin sky-blue rule above every H2, H2 set in small caps with letter-spacing. Pill corners. */

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #fbf8f2;        /* sand page */
  --surface: #ffffff;
  --ink: #1f1c1a;
  --muted: #57504a;
  --blue: #2a7ab0;      /* Join Now + accent rule */
  --blue-h: #1f5f8a;    /* Join hover */
  --link: #1f5f8a;
  --sand: #f3ebdc;      /* tint band */
  --sand-2: #ede2cd;    /* join band */
  --sky: #e6f0f7;       /* pull-quote band, pills */
  --line: #e3d9c6;
  --deep: #173a52;      /* table head, footer, cookie */
  --deep-text: #dbe7f0;
  --deep-link: #bfe0f5;
  --head: 'Outfit', 'Trebuchet MS', Arial, sans-serif;
  --body: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --wrap: 1140px;
  --hdr-m: 62px;   /* closed header height on phones */
  --ck-m: 64px;    /* room kept for the cookie banner on phones */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.7; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 999px; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3, .hero-heading { font-family: var(--head); font-weight: 600; color: var(--ink); line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -0.01em; margin: 0 0 0.55em; }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); font-variant-caps: small-caps; letter-spacing: 0.05em; margin: 2.3em 0 0.6em; }
h2::before { content: ""; display: block; width: 56px; height: 3px; border-radius: 999px; background: var(--blue); margin: 0 0 0.75em; }
h3 { font-size: 1.22rem; margin: 1.9em 0 0.45em; }
p { margin: 0 0 1.05em; }
.lead { font-size: 1.12rem; }
strong { font-weight: 600; }

.seo-content a:not(.btn) { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.seo-content a:not(.btn):hover { text-decoration-thickness: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; font-family: var(--body); font-weight: 600; text-decoration: none; border-radius: 999px; border: 2px solid transparent; line-height: 1.2; max-width: 100%; white-space: nowrap; cursor: pointer; }
.btn-primary { background: var(--blue); color: #ffffff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-h); border-color: var(--blue-h); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--muted); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { font-size: 0.95rem; padding: 8px 18px; min-height: 40px; }
.btn-lg { font-size: 1.08rem; padding: 14px 34px; min-height: 52px; }

/* ---------- header: minimal bar, logo left, Log In and Join Now right ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: inline-flex; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 176px; height: auto; }
.mainnav { display: flex; align-items: center; justify-content: flex-end; gap: 6px 26px; flex: 1 1 auto; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-link:hover { border-bottom-color: var(--line); }
.nav-link.active { border-bottom-color: var(--blue); }
.nav-actions { display: inline-flex; align-items: center; gap: 10px; margin-left: 10px; }
.header-cta { display: none; align-items: center; gap: 10px; margin-left: auto; }
.menu-toggle { width: 44px; height: 40px; background: var(--surface); border: 2px solid var(--muted); border-radius: 999px; padding: 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }

/* ---------- hero: split screen, photo left (pill-ended), copy right on sand ---------- */
.hero { display: grid; grid-template-columns: 56% 44%; min-height: clamp(480px, 72vh, 660px); background: var(--bg); }
.hero-media { position: relative; overflow: hidden; border-radius: 0 330px 330px 0; background: var(--sand); }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { position: absolute; inset: 0; object-fit: cover; object-position: 60% 40%; }
.hero-copy { align-self: center; padding: 48px clamp(24px, 5vw, 72px) 48px clamp(28px, 4vw, 56px); max-width: 560px; }
.hero-copy::before { content: ""; display: block; width: 56px; height: 3px; border-radius: 999px; background: var(--blue); margin-bottom: 20px; }
.hero-heading { font-size: clamp(2.2rem, 3.6vw, 3.2rem); letter-spacing: -0.01em; margin: 0 0 0.4em; }
.hero-strapline { font-size: 1.14rem; color: var(--ink); margin: 0 0 1.5em; }

/* ---------- sections ---------- */
.section { padding: 8px 0 8px; }
.section--first { padding-top: 60px; }
.section .prose > h2:first-child { margin-top: 1.9em; }
.prose { max-width: 740px; }
.band { padding: 60px 0; margin-top: 52px; }
.band h2 { margin-top: 0; }
.band + .section { margin-top: 12px; }
.band--sand { background: var(--sand); }
.band--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-intro { max-width: 760px; margin-bottom: 28px; }
.band-outro { max-width: 760px; margin-top: 28px; }
.band-outro p:last-child, .band-intro p:last-child { margin-bottom: 0; }

/* comparison table (home centrepiece) */
.table-frame { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.98rem; line-height: 1.55; }
.compare thead th { background: var(--deep); color: #ffffff; font-family: var(--head); font-weight: 600; text-align: left; padding: 14px 18px; font-size: 1rem; letter-spacing: 0.02em; }
.compare tbody th, .compare td { padding: 14px 18px; vertical-align: top; text-align: left; border-top: 1px solid var(--line); }
.compare tbody th { font-family: var(--head); font-weight: 600; color: var(--link); width: 24%; }
.compare tbody tr:nth-child(even) { background: #fdfaf5; }

/* three-feature row */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px 24px 20px; }
.trio .card h3 { margin: 0 0 0.5em; }
.trio .card h3::before { content: ""; display: block; width: 34px; height: 34px; border-radius: 999px; background: var(--sky); margin-bottom: 14px;
  background-image: radial-gradient(circle at 50% 50%, var(--blue) 0 5px, transparent 6px); }
.trio--pins .card h3::before { border-radius: 999px 999px 999px 0; transform: rotate(-45deg); background-image: radial-gradient(circle at 50% 50%, #ffffff 0 5px, transparent 6px); background-color: var(--blue); width: 28px; height: 28px; margin-left: 3px; }
.trio .card p:last-child { margin-bottom: 0; }

/* definitions (home, five words) */
.defs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; }
.defs .def { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 20px 22px; }
.defs .def:last-child { grid-column: 1 / -1; }
.defs dt { display: inline-block; font-family: var(--head); font-weight: 600; color: var(--link); background: var(--sky); border-radius: 999px; padding: 3px 14px; margin-bottom: 10px; }
.defs dd { margin: 0; }

/* numbered golden-hour cards (separate cards, no joining line) */
.hours { list-style: none; counter-reset: hour; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 0; padding: 0; }
.hours li { counter-increment: hour; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px; }
.hours li::before { content: counter(hour); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--blue); color: #ffffff; font-family: var(--head); font-weight: 600; margin-bottom: 12px; }
.hours li strong { display: block; font-family: var(--head); font-size: 1.12rem; margin-bottom: 4px; }

/* after-dark rows: heading left, words right */
.rows { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: minmax(180px, 1fr) 2.4fr; gap: 8px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 26px; }
.row h3 { margin: 0; color: var(--link); }
.row p { margin: 0; }

/* pull-quote band */
.band--quote { background: var(--sky); }
.pull { margin: 0 auto; max-width: 820px; text-align: center; }
.pull::before { content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 18px; background: var(--blue);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.pull p { font-family: var(--head); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; margin: 0; color: var(--ink); }

/* final Join band */
.band--join { background: var(--sand-2); }
.join-panel { background: var(--surface); border-radius: 32px; padding: 44px clamp(22px, 5vw, 60px); max-width: 860px; margin: 0 auto; text-align: center; }
.join-panel h2::before { margin-left: auto; margin-right: auto; }
.join-panel p { max-width: 640px; margin-left: auto; margin-right: auto; }
.join-panel .btn { margin-top: 8px; }

.notfound { padding-bottom: 60px; }

/* ---------- footer ---------- */
.footer { background: var(--deep); color: var(--deep-text); padding: 52px 0 calc(28px + var(--ck-pad, 0px)); margin-top: 0; font-size: 0.96rem; }
.footer .brand { color: #ffffff; --logo-pin: #6fb3e0; --logo-accent: #bfe0f5; --logo-spark: #173a52; }
.footer .brand-logo { width: 180px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-title { font-family: var(--head); font-weight: 600; color: #ffffff; margin: 0 0 10px; letter-spacing: 0.04em; font-variant-caps: small-caps; font-size: 1.08rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 6px; }
.footer a { color: var(--deep-text); text-decoration: none; }
.footer a:hover { color: var(--deep-link); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(219, 231, 240, 0.25); margin-top: 30px; padding-top: 18px; }

/* ---------- cookie banner ---------- */
.cookie { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--deep); color: #ffffff; border-top: 3px solid var(--blue); }
.cookie.show { display: block; }
.cookie-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 0.95rem; }
.cookie a { color: var(--deep-link); }
.cookie-accept { background: var(--sand); color: var(--deep); border: 0; border-radius: 999px; font-family: var(--body); font-weight: 600; font-size: 0.95rem; padding: 9px 20px; min-height: 40px; cursor: pointer; }

/* ---------- tablet ---------- */
@media (max-width: 1023.98px) {
  .hero { grid-template-columns: 52% 48%; }
  .header-inner { gap: 18px; }
  .mainnav { gap: 6px 16px; }
  .nav-actions { margin-left: 4px; }
  .brand-logo { width: 150px; }
  .trio { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) and (min-width: 768px) {
  .nav-link { font-size: 0.9rem; }
  .nav-actions .btn-sm { padding: 7px 13px; font-size: 0.9rem; }
}

/* ---------- phones ---------- */
@media (max-width: 767.98px) {
  body { font-size: 16.5px; }
  .container { padding: 0 18px; }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .brand img, .brand svg, .brand-logo { width: clamp(110px, 33vw, 240px); }
  .header-cta { display: inline-flex; }
  .header-cta .btn-sm { padding: 8px 16px; }
  .mainnav { display: none; order: 3; width: 100%; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; margin-top: 10px; padding: 4px 0 8px; border-top: 1px solid var(--line); }
  .mainnav.open { display: flex; }
  .nav-link { padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .nav-link.active { border-bottom-color: var(--line); color: var(--link); }
  .nav-actions { margin: 12px 0 0; gap: 10px; }
  .nav-actions .btn { flex: 1 1 0; }

  .hero { display: flex; flex-direction: column; height: calc(100vh - var(--hdr-m) - var(--ck-m)); height: calc(100svh - var(--hdr-m) - var(--ck-m)); min-height: 430px; }
  .hero-media { flex: 1 1 auto; min-height: 140px; border-radius: 0 0 28px 28px; }
  .hero-media img { object-position: 50% 35%; }
  .hero-copy { flex: 0 0 auto; max-width: none; padding: 14px 18px 14px; }
  .hero-copy::before { width: 40px; margin-bottom: 10px; }
  .hero-heading { font-size: clamp(1.6rem, 7.4vw, 2rem); margin-bottom: 0.3em; }
  .hero-strapline { font-size: 1rem; line-height: 1.5; margin-bottom: 0.85em; }
  .hero-btn { display: flex; width: 100%; }

  .section--first { padding-top: 40px; }
  .band { padding: 44px 0; margin-top: 40px; }
  .defs, .hours { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; padding: 20px; }

  /* table stacks to cards */
  .table-frame { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 6px 0; margin-bottom: 14px; }
  .compare tbody tr:nth-child(even) { background: var(--surface); }
  .compare tbody th, .compare td { border-top: 0; padding: 8px 18px; }
  .compare tbody th { width: 100%; }
  .compare [data-label]::before { content: attr(data-label); display: block; font-family: var(--body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

  .join-panel { padding: 34px 20px; border-radius: 26px; }
  .join-panel .btn { display: flex; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .brand-logo { width: 160px; }
  .cookie-inner { padding: 8px 14px; gap: 12px; font-size: 0.9rem; justify-content: space-between; }
  .cookie-accept { padding: 8px 16px; min-height: 40px; }
}

/* hero focus (bulk runner v15) */
@media (min-width: 768px) {
  picture img { object-position: 64% 1% !important; }
}
@media (max-width: 767px) {
  picture img { object-position: 50% 50% !important; }
}
