/* ==========================================================================
   SYNTAX Events & Exhibitions - syntax.co.ke
   Deep navy + gold. Display serif: Cormorant Garamond. UI: Jost.
   ========================================================================== */

:root {
  --navy: #0a1730;
  --navy-mid: #12244c;
  --navy-soft: #1a3160;
  --gold: #c08a28;
  --gold-pale: #f2ca7a;
  --gold-deep: #8a6314;   /* accessible gold for text on light surfaces */
  --ink: #16202e;
  --ink-soft: #4b5563;
  --paper: #ffffff;
  --off: #f7f4ee;
  --line: #e7e0d4;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(8, 19, 46, 0.14);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }

.container { width: min(1180px, 92%); margin-inline: auto; }

.visually-hidden {
  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; z-index: 200;
  background: var(--gold); color: var(--navy); padding: .6rem 1.2rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ------- Typography ------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 2.4rem; height: 2px; background: var(--gold);
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 46rem; }

/* ------- Buttons ------- */

.btn {
  display: inline-block; padding: .95rem 2.1rem;
  font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: 3px; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-pale); border-color: var(--gold-pale); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 1.15rem 2.6rem; font-size: .95rem; }

/* ------- Header ------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(192, 138, 40, .3);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.brand img { width: 180px; height: auto; transition: width .25s; }
.site-header.shrunk .brand img { width: 150px; }

.site-nav ul { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.site-nav a {
  color: rgba(255,255,255,.88); text-decoration: none; font-size: .95rem;
  font-weight: 500; letter-spacing: .06em; padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--gold-pale); }
.site-nav a.active { color: var(--gold-pale); font-weight: 600; border-bottom-color: var(--gold); }
.site-nav .nav-cta a.btn { border-bottom: 2px solid transparent; color: var(--navy); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 110;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--gold-pale);
  margin: 6px auto; transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------- Hero ------- */

.hero {
  position: relative; min-height: min(88vh, 780px);
  display: flex; align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-media, .hero-media picture, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,19,46,.92) 18%, rgba(8,19,46,.55) 55%, rgba(8,19,46,.25) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 7rem 0 6rem; max-width: 780px; }
.hero .eyebrow { color: var(--gold-pale); }
.hero .eyebrow::before { background: var(--gold-pale); }
.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--gold-pale); }
.hero p { color: rgba(255,255,255,.85); font-size: clamp(1.1rem, 1.7vw, 1.35rem); max-width: 40rem; margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.7); font-size: .75rem;
  letter-spacing: .3em; text-transform: uppercase; text-decoration: none;
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 2.4rem;
  background: var(--gold); margin: .6rem auto 0;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; background: var(--navy); overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}
.page-hero .eyebrow { color: var(--gold-pale); }
.page-hero .eyebrow::before { background: var(--gold-pale); }
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 46rem; }
.page-hero-media, .page-hero-media picture, .page-hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,19,46,.94) 25%, rgba(8,19,46,.6) 100%);
}
.page-hero .container { position: relative; z-index: 2; }

/* ------- Sections ------- */

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-off { background: var(--off); }
.section-navy { background: var(--navy); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,.85); }
.section-navy .eyebrow { color: var(--gold-pale); }
.section-navy .eyebrow::before { background: var(--gold-pale); }

.section-head { max-width: 52rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 1rem; }

/* Two-column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split-media::before {
  content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.split-body h2 { margin-bottom: 1.2rem; }
.split-body p + p { margin-top: 1rem; }
.split-body .btn { margin-top: 1.8rem; }

/* Stats band */
.stats-band { background: var(--navy); padding: clamp(2.8rem, 6vw, 4rem) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat h3 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: var(--gold-pale); font-weight: 700; }
.stat p { color: rgba(255,255,255,.8); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .35rem; }

/* Capability cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.cap-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.cap-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cap-card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.cap-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cap-card:hover .cap-card-media img { transform: scale(1.05); }
.cap-card-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.cap-card-body h3 { margin-bottom: .6rem; }
.cap-card-body p { color: var(--ink-soft); font-size: .98rem; flex: 1; }
.cap-card-body .card-link {
  margin-top: 1.2rem; font-size: .82rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none; color: var(--gold-deep);
}
.cap-card-body .card-link:hover { color: var(--navy); }

/* Capability detail rows (services page) */
.cap-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}
.cap-row:first-of-type { border-top: 0; }
.cap-row:nth-of-type(even) .cap-row-media { order: 2; }
.cap-row-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cap-row h2 { margin-bottom: .8rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.cap-row .lead { margin-bottom: 1.6rem; }
.cap-items { list-style: none; display: grid; gap: 1.1rem; }
.cap-items li { padding-left: 1.9rem; position: relative; }
.cap-items li::before {
  content: ""; position: absolute; left: 0; top: .5rem;
  width: .8rem; height: .8rem; border: 2px solid var(--gold); border-radius: 2px;
}
.cap-items strong { display: block; color: var(--navy); font-size: 1.05rem; }
.cap-items span { color: var(--ink-soft); font-size: .96rem; }

/* Markets grid */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.market-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.market-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: transform .3s, box-shadow .3s;
}
.market-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.market-card svg { width: 44px; height: 44px; fill: none; stroke: var(--gold-deep); stroke-width: 1.6; margin-bottom: 1.1rem; }
.market-card h3 { margin-bottom: .5rem; }
.market-card p { color: var(--ink-soft); font-size: .97rem; }

/* Values */
.value-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; }
.value-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(192,138,40,.4);
  border-radius: var(--radius); padding: 1.7rem 1.4rem; text-align: center;
}
.value-card h3 { color: var(--gold-pale); font-size: 1.3rem; margin-bottom: .5rem; }
.value-card p { font-size: .92rem; }

/* Quote / vision blocks */
.quote-block { text-align: center; max-width: 56rem; margin-inline: auto; }
.quote-block blockquote {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-style: italic; color: var(--navy); line-height: 1.25;
}
.section-navy .quote-block blockquote { color: var(--gold-pale); }
.quote-block cite { display: block; margin-top: 1.2rem; font-style: normal; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.section-navy .quote-block cite { color: rgba(255,255,255,.7); }

/* Client strip */
.client-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1.2rem; }
.client-chip {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: .7rem 1.6rem; font-weight: 500; color: var(--navy); font-size: .98rem;
}

/* Partner logos */
.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.4rem;
}
.partner-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; align-items: center; justify-content: center;
  min-height: 130px;
}
.partner-card img { max-height: 74px; width: auto; max-width: 100%; object-fit: contain; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.gallery-grid a:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center;
  background: rgba(4, 10, 26, .92); padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.6rem; background: none; border: 0;
  color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; font-family: var(--font-body);
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem;
}
.lightbox-nav:hover { background: rgba(192,138,40,.5); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

/* Delivery / network list */
.check-list { list-style: none; display: grid; gap: .9rem; margin-top: 1.4rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; }
.check-list svg { flex: 0 0 22px; width: 22px; height: 22px; fill: var(--gold); margin-top: .2rem; }

/* ------- CTA band ------- */

.cta-band { position: relative; background: var(--navy); overflow: hidden; padding: clamp(4rem, 9vw, 6.5rem) 0; }
.cta-band-media, .cta-band-media picture, .cta-band-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.cta-band-media::after { content: ""; position: absolute; inset: 0; background: rgba(8, 19, 46, .82); }
.cta-band-inner { position: relative; z-index: 2; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .7rem; }
.cta-band p { color: var(--gold-pale); font-family: var(--font-display); font-size: 1.5rem; font-style: italic; margin-bottom: 2rem; }

/* ------- Forms ------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 500; font-size: .95rem; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.form-note { font-size: .88rem; color: var(--ink-soft); }

.alert { padding: 1rem 1.3rem; border-radius: 8px; margin-bottom: 1.6rem; font-weight: 500; }
.alert-success { background: #eaf6ec; color: #1d5c2a; border: 1px solid #bfe3c8; }
.alert-error { background: #fbeeee; color: #8c2323; border: 1px solid #eec7c7; }

/* Contact layout */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-panel {
  background: var(--navy); border-radius: var(--radius); padding: 2.4rem 2.2rem;
  color: rgba(255,255,255,.88);
}
.contact-panel h3 { color: var(--gold-pale); margin-bottom: 1.4rem; }
.contact-panel ul { list-style: none; display: grid; gap: 1.3rem; }
.contact-panel li { display: flex; gap: .95rem; align-items: flex-start; }
.contact-panel svg { flex: 0 0 22px; width: 22px; height: 22px; fill: var(--gold); margin-top: .25rem; }
.contact-panel a { color: #fff; text-decoration: none; }
.contact-panel a:hover { color: var(--gold-pale); }
.contact-panel .hours { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(192,138,40,.35); font-size: .95rem; }

/* ------- Footer ------- */

.site-footer { background: var(--navy); color: rgba(255,255,255,.82); }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2.6rem;
  padding: clamp(3.2rem, 6vw, 4.5rem) 0 2.6rem;
}
.footer-grid > * { min-width: 0; }
.footer-brand img { width: 130px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .95rem; }
.footer-col h3 {
  color: var(--gold-pale); font-family: var(--font-body); font-size: .85rem;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600;
}
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .96rem; }
.footer-col a:hover { color: var(--gold-pale); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; }
.footer-contact svg { flex: 0 0 18px; width: 18px; height: 18px; fill: var(--gold); margin-top: .25rem; }
.footer-subscribe { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-subscribe input {
  flex: 1; min-width: 0; padding: .7rem .9rem; border-radius: 6px; border: 1px solid rgba(192,138,40,.45);
  background: rgba(255,255,255,.07); color: #fff; font-family: var(--font-body);
}
.footer-subscribe input::placeholder { color: rgba(255,255,255,.55); }
.footer-subscribe .btn { padding: .7rem 1.2rem; font-size: .75rem; }
.footer-bottom { border-top: 1px solid rgba(192,138,40,.3); padding: 1.4rem 0; }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between;
  font-size: .88rem; color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.75); }
.footer-tag { font-family: var(--font-display); font-style: italic; color: var(--gold-pale); font-size: 1rem; }

/* ------- Reveal on scroll ------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------- Responsive ------- */

@media (max-width: 1020px) {
  .card-grid, .market-grid, .market-grid.cols-4, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    z-index: 105;
  }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 1.6rem; text-align: center; }
  .site-nav a { font-size: 1.25rem; }
  .site-nav a.active {
    color: var(--gold-pale); border-bottom: none;
    position: relative; padding-left: 1.4rem;
  }
  .site-nav a.active::before {
    content: ""; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: .7rem; height: 2px; background: var(--gold);
  }
  .split, .cap-row, .contact-layout { grid-template-columns: 1fr; }
  .cap-row:nth-of-type(even) .cap-row-media { order: 0; }
  .split-media::before { display: none; }
  .hero { min-height: 78vh; }
  .hero-scroll { display: none; }
}

@media (max-width: 600px) {
  .card-grid, .market-grid, .market-grid.cols-4, .gallery-grid, .value-grid, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { gap: 1.4rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ------- Print ------- */
@media print {
  .site-header, .cta-band, .site-footer, .nav-toggle, .hero-scroll { display: none; }
}
