/* ==========================================================================
   Zorway International — Design System v2
   Palette : Brand Red #D81324 / Deep Maroon #4A0E14 / Warm Ink #241E1C
             Paper #FFFFFF / Bone #FAF6F3 / Blush #FDEDE8 / Slate #6E6663
   Type    : Fraunces (display) + Inter (body) + IBM Plex Mono (labels)
   Motif   : radiating sunburst from the Zorway mark, used as light texture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  /* Prevent browser/OS auto-dark-mode from inverting this light design */
  color-scheme: only light;

  /* Reds: brand red for fills, deep red for small text (contrast-safe) */
  --red: #E91720;
  --red-ink: #C00E19;          /* small text / labels on light backgrounds */
  --red-dark: #A50B14;         /* hover states */
  --maroon: #4A0E14;           /* dark sections — warm, brand-related, not black */
  --maroon-soft: #5E1720;

  --ink: #241E1C;              /* body text */
  --slate: #6E6663;            /* secondary text */
  --paper: #FFFFFF;
  --bone: #FAF6F3;             /* warm section background */
  --blush: #FDEDE8;            /* tint background */
  --line: #EBE3DE;
  --line-dark: rgba(255,255,255,0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max-w: 1200px;
  --gutter: 32px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(36,30,28,0.05);
  --shadow-md: 0 4px 20px rgba(36,30,28,0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: only light; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ============================ Type scale ============================ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.14; }
h1 { font-size: clamp(2.15rem, 1.35rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.45rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
p  { max-width: 68ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 500;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--red); flex-shrink: 0; }

/* ============================ Top bar ============================ */
.topbar {
  background: var(--maroon);
  color: #F0E2DF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.topbar .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  min-height: 38px;
}
.topbar a { white-space: nowrap; opacity: 0.92; transition: opacity .15s, color .15s; }
.topbar a:hover { opacity: 1; color: #FFC9C0; }

/* ============================ Header ============================ */
header.site-header {
  background: rgba(255,255,255,0.93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
header.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 44px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.14rem; line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-word span {
  display: block; font-family: var(--font-display); font-style: italic;
  font-weight: 500; font-size: 0.86rem; letter-spacing: 0.01em;
  color: var(--red-ink); margin-top: 1px; text-transform: none;
}
nav.main-nav { display: flex; align-items: center; gap: 34px; }
nav.main-nav a {
  font-size: 0.94rem; font-weight: 600; padding: 6px 0; position: relative;
  transition: color .15s;
}
nav.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red); transition: width .22s ease;
}
nav.main-nav a:hover { color: var(--red-ink); }
nav.main-nav a:hover::after { width: 100%; }
nav.main-nav a.active { color: var(--red-ink); }
nav.main-nav a.active::after { width: 100%; }
.nav-cta {
  background: var(--red); color: #fff !important;
  padding: 11px 22px !important; border-radius: var(--radius);
  font-weight: 700 !important; box-shadow: var(--shadow-sm);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-dark); color: #fff !important; }

/* Mobile menu button */
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 9px 11px; cursor: pointer;
  color: var(--ink); line-height: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-nav {
  display: none; border-bottom: 1px solid var(--line); background: var(--paper);
  position: sticky; top: 74px; z-index: 55;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 15px var(--gutter);
  border-top: 1px solid var(--line); font-weight: 600; font-size: 1rem;
}
.mobile-nav a:first-child { border-top: none; }
.mobile-nav a.active { color: var(--red-ink); }

/* ============================ Buttons ============================ */
.btn {
  display: inline-block; font-weight: 700; font-size: 0.94rem;
  padding: 15px 30px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s, border-color .15s, color .15s;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(36,30,28,0.28); color: var(--ink); background: rgba(255,255,255,0.6); }
.btn-ghost:hover { border-color: var(--red); color: var(--red-ink); }

/* ============================ Hero ============================ */
.hero { position: relative; overflow: hidden; background: var(--bone); padding: 0; }
.hero-rays { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
/* Radial scrim keeps headline crisp on every screen size */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right,
    var(--bone) 0%,
    var(--bone) 34%,
    rgba(250,246,243,0.75) 50%,
    rgba(250,246,243,0) 68%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 92px; padding-bottom: 96px; }
.hero-inner { max-width: 660px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--red-ink); font-style: normal; font-weight: 600; }
.hero p.lead {
  font-size: 1.12rem; color: var(--slate); max-width: 50ch; margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================ Trust strip ============================ */
.trust-strip { background: var(--maroon); color: #FFF6F3; }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 32px 28px; border-left: 1px solid var(--line-dark); }
.trust-item:first-child { border-left: none; }
.trust-item .num {
  font-family: var(--font-mono); color: #FFC4B8; font-size: 0.74rem;
  letter-spacing: 0.15em; display: block; margin-bottom: 12px;
}
.trust-item p {
  font-size: 1rem; line-height: 1.6; color: #FFF6F3;
  max-width: none; font-weight: 400;
}

/* ============================ Sections ============================ */
section { padding: 96px 0; }
section.tight { padding: 68px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--slate); font-size: 1.03rem; }

.bg-bone { background: var(--bone); }

/* Section directly after the trust strip: tighter top, subtle tint into white */
.trust-strip + section {
  padding-top: 56px;
  background: linear-gradient(to bottom, var(--bone) 0%, var(--paper) 62%);
}
.bg-blush { background: var(--blush); }
.bg-maroon { background: var(--maroon); color: #FFF6F3; }
.bg-maroon h2, .bg-maroon h3 { color: #fff; }
.bg-maroon p { color: #FBEDE9; font-size: 1.06rem; line-height: 1.7; }
.bg-maroon .eyebrow { color: #FFC4B8; }
.bg-maroon .eyebrow::before { background: #FF9683; }

/* ============================ Two column ============================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.two-col .body-copy p { color: var(--slate); font-size: 1.03rem; }
.two-col .body-copy p + p { margin-top: 18px; }
.bg-maroon .two-col .body-copy p { color: #FBEDE9; }

/* ============================ Cards ============================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #E0D2CB; }
.card h3 { margin-bottom: 11px; }
.card p { color: var(--slate); font-size: 0.96rem; }
.card .tag {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  color: var(--red-ink); text-transform: uppercase; display: block; margin-bottom: 14px;
}

/* ============================ Audience row ============================ */
.audience-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper);
}
.audience-row > div { padding: 28px 24px; border-left: 1px solid var(--line); }
.audience-row > div:first-child { border-left: none; }
.audience-row .lbl {
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--red-ink);
  letter-spacing: 0.12em; margin-bottom: 8px; display: block;
}
.audience-row strong { font-size: 1rem; font-weight: 600; }

/* ============================ Partner carousel ============================ */
.partner-carousel {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
}
.partner-viewport { overflow: hidden; }
.partner-pages { display: flex; transition: transform .7s cubic-bezier(.65,.05,.36,1); }
.partner-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(5, 1fr); }
.partner-slot {
  min-height: 150px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  padding: 26px 14px; border-left: 1px solid var(--line); text-align: center;
}
.partner-slot:first-child { border-left: none; }
.partner-logo {
  height: 62px; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.partner-logo img {
  max-height: 62px; max-width: 100%; width: auto; height: auto;
  object-fit: contain; margin: 0 auto; border-radius: 3px;
}
.partner-monogram {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blush); border: 1.5px solid #F7C9BE; color: var(--red-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
}
.partner-name { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; }
.partner-dots { display: flex; justify-content: center; gap: 9px; padding: 22px 0 0; }
.partner-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #DCCFC9;
  border: none; padding: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.partner-dot.active { background: var(--red); transform: scale(1.3); }

/* ============================ FAQ ============================ */
.faq-item { border-top: 1px solid var(--line); padding: 32px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin-bottom: 11px; }
.faq-item p { color: #58514E; font-size: 1.04rem; line-height: 1.7; }
.faq-item a { color: var(--red-ink); font-weight: 600; border-bottom: 1px solid rgba(192,14,25,0.3); }
.faq-item a:hover { border-bottom-color: var(--red-ink); }

/* ============================ CTA band ============================ */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 62px; padding-bottom: 62px; flex-wrap: wrap; gap: 26px;
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band .btn-primary { background: #fff; color: var(--red-ink); }
.cta-band .btn-primary:hover { background: var(--blush); }

/* ============================ Page head ============================ */
.page-head { background: var(--bone); border-bottom: 1px solid var(--line); padding: 72px 0 64px; }
.page-head h1 { max-width: 18ch; }
.page-head p.lead { color: var(--slate); font-size: 1.08rem; max-width: 56ch; margin-top: 18px; }

/* ============================ Contact ============================ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; }
.contact-detail { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.contact-detail:last-of-type { border-bottom: 1px solid var(--line); }
.contact-detail .lbl {
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--red-ink);
  letter-spacing: 0.12em; text-transform: uppercase; width: 84px; flex-shrink: 0; padding-top: 4px;
}
.contact-detail a, .contact-detail span { font-size: 1rem; font-weight: 500; }
.contact-detail a:hover { color: var(--red-ink); }

.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 15px; font-family: var(--font-body); font-size: 0.98rem;
  background: var(--bone); color: var(--ink); transition: border-color .15s, background .15s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--red); background: var(--paper);
}
.form-note { font-size: 0.85rem; color: var(--slate); margin-top: 15px; }
.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 30px; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ============================ Footer ============================ */
footer { background: var(--maroon); color: #F6E7E3; padding: 72px 0 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 52px;
  padding-bottom: 44px; border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 42px; }
footer h4 {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: #FFC4B8; margin-bottom: 18px; font-weight: 500;
}
footer p, footer a, footer li { font-size: 0.97rem; line-height: 1.65; color: #F6E7E3; }
footer p { max-width: 34ch; }
footer ul { list-style: none; }
footer li { margin-bottom: 11px; }
footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 26px;
  font-size: 0.83rem; color: #D3B4AD; flex-wrap: wrap; gap: 10px;
}

/* ============================ Responsive ============================ */
@media (max-width: 980px) {
  :root { --gutter: 24px; }
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .trust-strip .wrap { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: none; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .audience-row { grid-template-columns: 1fr 1fr; }
  .audience-row > div:nth-child(3) { border-left: none; }
  .audience-row > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .partner-page { grid-template-columns: repeat(3, 1fr); }
  .partner-slot:nth-child(4) { border-left: none; }
  .partner-slot:nth-child(n+4) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  section { padding: 72px 0; }
  .hero { padding: 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar .wrap { justify-content: center; gap: 16px; }
  .topbar .tb-email { display: none; }   /* keep phone on one line, never wraps */
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .trust-strip .wrap { grid-template-columns: 1fr; }
  .trust-item { border-left: none !important; border-top: 1px solid var(--line-dark); }
  .trust-item:first-child { border-top: none; }
  .audience-row { grid-template-columns: 1fr; }
  .audience-row > div { border-left: none; border-top: 1px solid var(--line); }
  .audience-row > div:first-child { border-top: none; }
  .partner-page { grid-template-columns: 1fr 1fr; }
  .partner-slot:nth-child(odd) { border-left: none; }
  .partner-slot:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-scrim {
    background: linear-gradient(to bottom, rgba(250,246,243,0.97) 0%, rgba(250,246,243,0.9) 55%, rgba(250,246,243,0.72) 100%);
  }
  .hero-ctas .btn { flex: 1 1 auto; text-align: center; }
  section { padding: 60px 0; }
  .hero { padding: 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .partner-pages { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red); outline-offset: 3px;
}


/* ==========================================================================
   Forced dark-mode defence
   Some mobile in-app browsers auto-darken pages. This site is a light design,
   so we re-assert every surface and text colour explicitly under a dark
   preference rather than letting the browser invert it unpredictably.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  html, body { background: #FFFFFF !important; color: var(--ink) !important; }

  section, .page-head, .faq-item, .card, .audience-row,
  .partner-carousel, .partner-slot, .partner-viewport, .partner-page {
    background-color: transparent;
  }
  .card, .audience-row, .partner-carousel, .partner-slot { background-color: #FFFFFF !important; }
  .bg-bone, .page-head { background-color: var(--bone) !important; }
  .bg-blush { background-color: var(--blush) !important; }
  .hero { background-color: var(--bone) !important; }

  h1, h2, h3, h4 { color: var(--ink) !important; }
  .faq-item h3 { color: var(--ink) !important; }
  .faq-item p { color: #58514E !important; }
  .section-head p, .two-col .body-copy p, .card p { color: var(--slate) !important; }
  .partner-name { color: var(--ink) !important; }
  .audience-row strong { color: var(--ink) !important; }
  .eyebrow, .card .tag, .audience-row .lbl, .contact-detail .lbl { color: var(--red-ink) !important; }
  .form-field label { color: var(--ink) !important; }
  .form-field input, .form-field textarea {
    background: var(--bone) !important; color: var(--ink) !important; border-color: var(--line) !important;
  }
  header.site-header { background: rgba(255,255,255,0.96) !important; }
  .brand-word { color: var(--ink) !important; }
  nav.main-nav a { color: var(--ink) !important; }
  nav.main-nav a.active, nav.main-nav a:hover { color: var(--red-ink) !important; }
  .mobile-nav { background: #FFFFFF !important; }
  .mobile-nav a { color: var(--ink) !important; }
  .btn-ghost { color: var(--ink) !important; }
  .hero p.lead { color: var(--slate) !important; }

  /* Intentionally dark surfaces keep their light text */
  .topbar, .trust-strip, .bg-maroon, footer { background-color: var(--maroon) !important; }
  .trust-item p, .trust-strip { color: #FFF6F3 !important; }
  .bg-maroon h2, .bg-maroon h3 { color: #FFFFFF !important; }
  .bg-maroon p, .bg-maroon .two-col .body-copy p { color: #FBEDE9 !important; }
  footer p, footer a, footer li { color: #F6E7E3 !important; }
  footer h4 { color: #FFC4B8 !important; }
  .footer-bottom, .footer-bottom span { color: #D3B4AD !important; }
  .trust-item .num { color: #FFC4B8 !important; }
  .cta-band { background-color: var(--red) !important; }
  .cta-band h2 { color: #FFFFFF !important; }
  .cta-band .btn-primary { background: #FFFFFF !important; color: var(--red-ink) !important; }
  .btn-primary { color: #FFFFFF !important; }
}
