/* ============================================================
   OUTJOYMENT — styles.css
   Edit the variables below to change the whole site's look.
   ============================================================ */

:root {
  /* Brand colours */
  --ink: #1c1a17;            /* near-black text */
  --ink-soft: #4f4a43;       /* secondary text */
  --sand: #faf6ef;           /* page background */
  --sand-deep: #f1e9db;      /* alternate section background */
  --flame: #e05a1f;          /* flame-lily orange (primary accent) */
  --flame-dark: #b94312;
  --savanna: #2e4434;        /* deep green (footer / dark blocks) */
  --gold: #d9a441;

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 26, 23, 0.10);
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--flame-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--flame);
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--flame); color: #fff; }
.btn-primary:hover { background: var(--flame-dark); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--sand); }
.btn-light { background: #fff; color: var(--ink); }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 26, 23, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
}
.logo img { height: 42px; width: auto; display: block; padding: 2px 0; }
.logo span { color: var(--flame); }
.logo:hover { text-decoration: none; }

.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--flame-dark); text-decoration: none; }
.main-nav a.active { font-weight: 700; }

.header-contact { display: flex; gap: 14px; align-items: center; }
.icon-link {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--sand-deep);
  color: var(--ink);
  font-size: 0.95rem;
  transition: background .15s ease, color .15s ease;
}
.icon-link:hover { background: var(--flame); color: #fff; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* ------------------------------------------------------------
   Hero (home)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--savanna);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.62);
}
.hero-content {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 90px 20px;
  width: 100%;
}
.hero-logo {
  height: 130px;
  width: auto;
  margin-bottom: 14px;
}
@media (max-width: 880px) {
  .hero-logo { height: 100px; }
}

.legal h3 { margin: 28px 0 8px; font-size: 1.15rem; }
.legal p, .legal li { color: var(--ink-soft); max-width: 72ch; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal .note {
  background: var(--sand-deep);
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 34px;
  font-size: 0.92rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p {
  margin-top: 18px;
  font-size: 1.15rem;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------
   Page hero (inner pages)
   ------------------------------------------------------------ */
.page-hero {
  background: var(--savanna);
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
.page-hero p { margin-top: 12px; max-width: 60ch; color: rgba(255,255,255,0.85); }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section { padding: 72px 0; }
.section.alt { background: var(--sand-deep); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; font-weight: 800; }
.section .lead { color: var(--ink-soft); max-width: 64ch; font-size: 1.08rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3, .card h4 { font-size: 1.2rem; font-weight: 700; }
.card p { color: var(--ink-soft); font-size: 0.97rem; flex-grow: 1; }
.card .card-link { font-weight: 600; }

.card.media { padding: 0; overflow: hidden; }
.card.media img { height: 200px; width: 100%; object-fit: cover; }
.card.media .card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }

/* ------------------------------------------------------------
   Slideshow
   ------------------------------------------------------------ */
.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: var(--sand-deep);
}
.slideshow img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.slideshow img.active { opacity: 1; }
.slide-caption {
  position: absolute;
  bottom: 12px; right: 16px;
  background: rgba(28, 26, 23, 0.65);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 2;
}
.slide-dots {
  position: absolute;
  bottom: 14px; left: 16px;
  display: flex; gap: 7px;
  z-index: 2;
}
.slide-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}
.slide-dots button.active { background: #fff; }

/* ------------------------------------------------------------
   Featured flyers (homepage)
   ------------------------------------------------------------ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.flyer-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.flyer-card img { width: 100%; height: auto; }
.flyer-card .flyer-body {
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.flyer-card h3 { font-size: 1.15rem; font-weight: 700; }
.flyer-card p { color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; }
.flyer-card .btn { align-self: flex-start; }

/* ------------------------------------------------------------
   Upcoming events
   ------------------------------------------------------------ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.event-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.event-card .event-img {
  height: 330px;
  object-fit: cover;
  object-position: center top; /* flyers are tall — show the top, where the title is */
  width: 100%;
  cursor: zoom-in;
  transition: opacity .15s ease;
}
.event-card .event-img:hover { opacity: 0.92; }
.event-card .event-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.event-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--flame-dark);
  background: rgba(224, 90, 31, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}
.event-date { font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
.event-card h3 { font-size: 1.15rem; font-weight: 700; }
.event-card p { color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; }

.event-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.filter-btn {
  border: 1.5px solid var(--ink-soft);
  background: transparent;
  color: var(--ink-soft);
  padding: 7px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--sand); }

.empty-note { margin-top: 28px; color: var(--ink-soft); font-style: italic; }

/* ------------------------------------------------------------
   Route steps (Visit Zimbabwe signature journey)
   ------------------------------------------------------------ */
.route-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding: 0;
}
.route-steps li {
  background: #fff;
  border-radius: 12px;
  padding: 15px 16px 15px 54px;
  position: relative;
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.route-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 15px; top: 15px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: var(--flame);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.route-steps li strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* ------------------------------------------------------------
   Contact section
   ------------------------------------------------------------ */
.contact-section { background: var(--sand-deep); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  margin-top: 32px;
}
.contact-options { display: flex; flex-direction: column; gap: 18px; }
.contact-option {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.contact-option h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 4px; }
.contact-option a { font-weight: 600; font-size: 1.05rem; }
.social-row { display: flex; gap: 12px; margin-top: 6px; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(28,26,23,0.18);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--sand);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--flame);
  outline-offset: 1px;
  border-color: var(--flame);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--savanna);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 30px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 880px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--sand);
    flex-direction: column;
    padding: 18px 20px 24px;
    border-bottom: 1px solid rgba(28,26,23,0.1);
    gap: 16px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-contact { display: none; }
  .hero { min-height: 64vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slideshow img { transition: none; }
  .btn { transition: none; }
}
