/* ==========================================================================
   TopTix Events — toptixevents.com
   --------------------------------------------------------------------------
   THINGS YOU MIGHT WANT TO CHANGE LATER
   • Colours ................ see ":root" immediately below
   • WhatsApp number ........ in index.html, search for "WHATSAPP LINK"
   • Email address .......... in index.html, search for "EMAIL LINK"
   • Wording ................ all text lives in index.html, not in this file
   --------------------------------------------------------------------------
   Written mobile-first: the base rules are the phone layout, and the
   @media blocks further down add the tablet and desktop layouts on top.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Brand */
  --navy:        #121e4e;   /* the logo navy — primary colour */
  --navy-deep:   #0c1435;   /* footer */
  --navy-soft:   #1b2a66;   /* hover state on navy */
  --green:       #25d366;   /* the one accent — WhatsApp CTAs only */
  --green-hover: #1fbb5b;

  /* Neutrals */
  --white:  #ffffff;
  --tint:   #f5f7fb;        /* soft section background */
  --line:   #e4e8f2;        /* hairlines and card borders */
  --ink:    #2b3350;        /* body text on white  — 12.4:1 */
  --muted:  #59617e;        /* secondary text on white — 6.2:1 */

  /* On navy */
  --on-navy:       #ffffff;
  --on-navy-muted: #b3bcd8; /* 8.4:1 on navy */
  --on-navy-line:  rgba(255, 255, 255, .16);

  /* Type */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Space & shape */
  --container: 1120px;
  --gutter:    20px;
  --radius:    12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(18, 30, 78, .05);
  --shadow-md: 0 2px 4px rgba(18, 30, 78, .04), 0 12px 28px rgba(18, 30, 78, .07);
  --shadow-lg: 0 4px 8px rgba(18, 30, 78, .05), 0 22px 48px rgba(18, 30, 78, .11);
}


/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;   /* so anchors don't land under the sticky header */
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

p  { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-soft); }

strong { font-weight: 600; }

/* Visible, consistent keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.band-navy :focus-visible,
.site-footer :focus-visible { outline-color: var(--green); }

/* Screen-reader-only text */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--white); }


/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 68px; }

.band-tint  { background: var(--tint); }
.band-navy  { background: var(--navy); color: var(--on-navy); }
.band-navy h2, .band-navy h3 { color: var(--on-navy); }
.band-navy p { color: var(--on-navy-muted); }


/* --------------------------------------------------------------------------
   4. TYPOGRAPHY HELPERS
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--on-navy-muted); }

.lead {
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--muted);
}
.band-navy .lead { color: var(--on-navy-muted); }

.section-head { max-width: 44rem; margin: 0 auto 40px; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }

.section-head h2 { font-size: clamp(1.7rem, 5.4vw, 2.6rem); }
.section-lead { margin-top: 18px; }

/* Small divider shaped like the flag mark in the logo */
.flag-rule {
  display: block;
  width: 46px;
  height: 15px;
  margin: 22px auto 0;
  background: var(--navy);
  clip-path: polygon(0 19.5%, 100% 0, 100% 100%, 0 80.7%);
}
.section-head--left .flag-rule { margin-inline: 0; }
.flag-rule--light { background: var(--green); }


/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn .ico { width: 20px; height: 20px; flex: none; }

.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 1.04rem; }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: .9rem; border-radius: 8px; }
.btn-sm .ico { width: 17px; height: 17px; }

/* Primary — WhatsApp. Navy text on the accent green: 8:1 contrast. */
.btn-wa {
  background: var(--green);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-wa:hover  { background: var(--green-hover); color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-wa:active { transform: translateY(0); }

/* Secondary — on white */
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(18, 30, 78, .28); }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }

/* Secondary — on navy */
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .38); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); transform: translateY(-2px); }

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}
.cta-row .btn { width: 100%; }


/* --------------------------------------------------------------------------
   6. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(18, 30, 78, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
}

.brand { display: block; flex: none; line-height: 0; }
.brand img { width: auto; height: 30px; }

/* Nav is a drop-down panel on phones, a row on desktop */
.nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 14px var(--gutter) 22px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(18, 30, 78, .09);
}
.site-header.nav-open .nav { display: flex; }

.nav-list { display: flex; flex-direction: column; }
.nav-list a {
  display: block;
  padding: 12px 4px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-list li:last-child a { border-bottom: 0; }
.nav-cta { margin-top: 12px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle-bars { display: block; width: 22px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle-bars span + span { margin-top: 5px; }

.site-header.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */

.hero {
  padding-block: 52px 64px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(18, 30, 78, .07) 0%, rgba(18, 30, 78, 0) 62%),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-inner { max-width: 46rem; margin-inline: auto; text-align: center; }

.hero-logo {
  width: 232px;
  margin: 0 auto 26px;
}

.hero-title {
  font-size: clamp(2.4rem, 12vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -.035em;
}

.hero-lead { margin-top: 20px; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 34px;
  font-size: .87rem;
  color: var(--muted);
}
.trust-strip li { display: flex; align-items: center; gap: 8px; }
.trust-strip li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--green);
  border-radius: 50%;
}


/* --------------------------------------------------------------------------
   8. WHAT WE DO
   -------------------------------------------------------------------------- */

.wwd-grid { display: grid; gap: 40px; }
.wwd-copy p + p { margin-top: 18px; }

.pillars { display: grid; gap: 22px; }
.pillars li {
  padding-top: 20px;
  border-top: 1px solid var(--on-navy-line);
}
.pillars h3 { font-size: 1.06rem; font-weight: 600; margin-bottom: 8px; }
.pillars p  { font-size: .95rem; }


/* --------------------------------------------------------------------------
   9. WHAT WE COVER
   -------------------------------------------------------------------------- */

.cover-grid { display: grid; gap: 14px; }

.cover-card {
  padding: 24px 22px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cover-card:hover {
  border-color: rgba(18, 30, 78, .22);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.cover-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  background: var(--tint);
  border-radius: 10px;
  color: var(--navy);
}
.cover-ico svg { width: 25px; height: 25px; }
.cover-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 7px; }
.cover-card p  { font-size: .93rem; line-height: 1.65; color: var(--muted); }

.cover-card--more {
  background: var(--tint);
  border-style: dashed;
  border-color: rgba(18, 30, 78, .2);
}
.cover-card--more .cover-ico { background: var(--white); }

.cover-note {
  max-width: 40rem;
  margin: 30px auto 0;
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
}
.cover-note a { font-weight: 600; }


/* --------------------------------------------------------------------------
   10. HOW IT WORKS
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: 16px; counter-reset: step; }

.step {
  position: relative;
  padding: 28px 24px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(18, 30, 78, .16);
}
.step h3 { font-size: 1.14rem; font-weight: 600; margin-bottom: 10px; }
.step p  { font-size: .95rem; color: var(--muted); }

.cta-row--center { align-items: center; margin-top: 34px; }
.cta-row--center .btn { width: 100%; }


/* --------------------------------------------------------------------------
   11. WHY TOPTIX
   -------------------------------------------------------------------------- */

.why-grid { display: grid; gap: 14px; }

.why-card {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.why-card:hover {
  border-color: rgba(18, 30, 78, .22);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.why-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: var(--navy);
  background: var(--tint);
  border-radius: 50%;
}
.why-ico svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.why-card p  { font-size: .93rem; line-height: 1.65; color: var(--muted); }


/* --------------------------------------------------------------------------
   12. CONTACT
   -------------------------------------------------------------------------- */

.contact-inner { text-align: center; }
.contact .section-head { margin-bottom: 0; }
.contact-lead { max-width: 38rem; margin-inline: auto; }

.contact-list {
  display: grid;
  gap: 14px;
  max-width: 40rem;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--on-navy-line);
  text-align: left;
  font-size: .93rem;
  color: var(--on-navy-muted);
}
.contact-list dt {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}
.contact-list a { color: var(--white); font-weight: 500; }
.contact-list a:hover { color: var(--green); }


/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: #a9b2d0;
  padding-block: 54px 34px;
  font-size: .92rem;
}

.footer-top { display: grid; gap: 34px; }

.footer-brand img { width: 168px; }
.footer-tagline {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .01em;
  color: #8f9ac0;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.site-footer ul { display: grid; gap: 9px; }
.site-footer a { color: #a9b2d0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-legal {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.disclaimer {
  font-size: .8rem;
  line-height: 1.7;
  color: #8f9ac0;
  max-width: 62rem;
}
.disclaimer strong { color: #c3cbe4; font-weight: 600; }

/* Registered office — deliberately low-key. It's a correspondence address,
   not a place customers should turn up at. */
.registered {
  margin-top: 16px;
  max-width: 62rem;
  font-size: .78rem;
  line-height: 1.7;
  color: #7b86ad;
}
.registered-label {
  display: inline-block;
  margin-right: 8px;
  font-family: var(--font-display);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9aa4c6;
}
/* Brighter than the address itself — the "don't visit" caveat is the part
   that actually matters to a reader. */
.registered-note { color: #949ec2; }

.copyright { margin-top: 18px; font-size: .82rem; color: #7b86ad; }


/* --------------------------------------------------------------------------
   14. SCROLL REVEAL
   Content is fully visible without JavaScript; the "js" class is only added
   by the inline script in the <head>, so nothing can ever get stuck hidden.
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .68, .3, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }


/* --------------------------------------------------------------------------
   15. RESPONSIVE — SMALL TABLET (560px and up)
   -------------------------------------------------------------------------- */

@media (min-width: 560px) {
  :root { --gutter: 28px; }

  .section { padding-block: 84px; }
  .hero { padding-block: 66px 80px; }
  .hero-logo { width: 268px; }

  .cta-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .cta-row .btn, .cta-row--center .btn { width: auto; }

  .cover-grid, .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:last-child { grid-column: 1 / -1; }

  .contact-list { grid-template-columns: repeat(2, 1fr); gap: 26px; }

  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}


/* --------------------------------------------------------------------------
   16. RESPONSIVE — DESKTOP (900px and up)
   -------------------------------------------------------------------------- */

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  html { scroll-padding-top: 96px; }

  .section { padding-block: 112px; }

  /* Nav becomes a normal row and the hamburger disappears */
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-list { flex-direction: row; gap: 28px; }
  .nav-list a {
    position: relative;
    padding: 6px 0;
    font-size: .93rem;
    border-bottom: 0;
    color: var(--ink);
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
  }
  .nav-list a:hover { color: var(--navy); }
  .nav-list a:hover::after { transform: scaleX(1); }
  .nav-cta { margin-top: 0; }

  .header-inner { min-height: 78px; }
  .brand img { height: 36px; }

  /* Hero */
  .hero { padding-block: 96px 104px; }
  .hero-logo { width: 300px; margin-bottom: 32px; }
  .hero-lead { font-size: 1.15rem; max-width: 40rem; margin-inline: auto; }
  .cta-row { margin-top: 38px; gap: 14px; }
  .trust-strip { margin-top: 42px; gap: 10px 32px; font-size: .9rem; }

  /* What we do */
  .wwd-grid { grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: start; }
  .wwd-copy .lead { font-size: 1.18rem; color: #cdd4e8; }
  .pillars { gap: 26px; }

  /* What we cover */
  .cover-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }

  /* How it works — three across */
  .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .step { padding: 34px 30px 36px; }
  .step:last-child { grid-column: auto; }
  .step-num { font-size: 2.9rem; }

  /* Why TopTix */
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }

  /* Contact */
  .contact-lead { font-size: 1.15rem; }
  .contact-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    margin-top: 48px;
    padding-top: 34px;
  }

  /* Footer */
  .footer-top { grid-template-columns: 1.6fr 1fr 1.2fr; gap: 56px; }
  .footer-brand { grid-column: auto; }
  .site-footer { padding-block: 72px 40px; }
}


/* --------------------------------------------------------------------------
   17. REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
