/* ============================================================
   Farmers Conference Botswana – Brand System
   Coming Soon Page · 2026
   ============================================================ */

:root {
  /* Brand colours */
  --navy:       #1D2E4C;   /* Farmer's Navy – dominant */
  --blue:       #428FBB;   /* Conference Blue – accent, CTA */
  --terracotta: #D3845B;   /* Agricultural warmth – use sparingly */
  --earth:      #472011;
  --deep-earth: #2A1201;

  /* Neutrals */
  --white:      #FFFFFF;
  --offwhite:   #F7F9FB;
  --soft-blue:  #EAF4F8;
  --border:     #D9E1E8;
  --text-grey:  #4B5563;

  /* Type stack */
  --font-display: 'Barlow Condensed', sans-serif;  /* hero, headings */
  --font-body:    'Manrope', sans-serif;            /* UI, body */
  --font-accent:  'Caveat', cursive;               /* theme line only */
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ---- Layout ---- */
.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(29, 46, 76, 0.75);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--white);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name em {
  font-style: normal;
  color: var(--blue);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.header-social-link:hover {
  color: var(--white);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 108px 20px 72px;
  overflow: hidden;
  background: var(--navy);
}

/* Very subtle cross-hatch texture for depth */
.hero-texture {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Signature element: enormous edition number as background watermark */
.edition-watermark {
  position: absolute;
  top: 50%;
  right: -3%;
  transform: translateY(-52%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(240px, 34vw, 460px);
  line-height: 1;
  color: var(--white);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.02em;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(211, 132, 91, 0.3);
  border-radius: 100px;
  background: rgba(211, 132, 91, 0.07);
}

.eyebrow strong {
  font-weight: 700;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* ---- Main headline ---- */
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(68px, 14vw, 104px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 18px;
}

/* ---- Theme line (Caveat) ---- */
.theme-line {
  font-family: var(--font-accent);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

/* ---- Event meta ---- */
.event-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(247, 249, 251, 0.6);
  margin-bottom: 32px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-sep {
  color: rgba(255, 255, 255, 0.18);
}

/* ================================================================
   GROWTH STORY (signature content element)
   ================================================================ */
.growth-story {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 32px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.growth-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.growth-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.growth-num sup {
  font-size: 0.45em;
  vertical-align: super;
  letter-spacing: 0;
}

/* Previous edition: muted */
.growth-card.prev .growth-num {
  color: rgba(255, 255, 255, 0.38);
}

/* Next edition: warm terracotta – aspirational */
.growth-card.next .growth-num {
  color: var(--terracotta);
}

.growth-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  line-height: 1.4;
}

.growth-label em {
  font-style: normal;
  display: block;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.08em;
}

.growth-arrow {
  color: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

/* ================================================================
   COUNTDOWN
   ================================================================ */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 28px;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  gap: 4px;
}

.time-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5.5vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
}

.time-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
}

/* ================================================================
   CTA BUTTON
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  width: 100%;
  max-width: 300px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(66, 143, 187, 0.35);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
  animation: pulse 2.5s infinite;
}

.btn-primary:hover {
  background: #3a7fa8;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(66, 143, 187, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(66, 143, 187, 0.3);
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(66, 143, 187, 0.35);
  }
  50% {
    box-shadow: 0 10px 30px rgba(66, 143, 187, 0.5);
  }
  100% {
    box-shadow: 0 4px 20px rgba(66, 143, 187, 0.35);
  }
}

/* ================================================================
   SOCIAL LINKS
   ================================================================ */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.site-footer p {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
}

.footer-tagline {
  font-style: italic;
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */
.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;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .eyebrow-dot { animation: none; }
  .btn-primary,
  .social-link,
  .header-social-link { transition: none; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 640px) {
  .hero {
    padding: 92px 16px 56px;
  }

  .edition-watermark {
    right: -8%;
    opacity: 0.028;
  }

  .growth-story {
    padding: 16px 14px;
    gap: 10px;
  }

  .header-social {
    display: none; /* shown at bottom via social-links */
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 58px;
  }

  .growth-num {
    font-size: 36px;
  }

  .eyebrow {
    font-size: 10px;
    padding: 5px 12px;
  }
}

/* ================================================================
   COOKIE CONSENT
   ================================================================ */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1000;

  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;

  background: var(--navy);
  color: var(--white);

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;

  box-shadow:
    0 20px 50px rgba(10, 25, 45, 0.28);

  overflow: hidden;

  animation: cookie-enter 0.35s ease both;
}


/* Small brand accent at the top */
.cookie-banner::before {
  content: "";
  display: block;

  height: 3px;

  background: var(--blue);
}


.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;

  padding: 20px 24px;
}


/* ---- Copy ---- */

.cookie-banner h2 {
  margin: 0 0 5px;

  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;

  text-transform: uppercase;
  letter-spacing: 0.01em;

  color: var(--white);
}


.cookie-banner p {
  margin: 0;

  max-width: 650px;

  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;

  color: rgba(247, 249, 251, 0.62);
}


/* ---- Actions ---- */

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 8px;

  flex-shrink: 0;
}


.cookie-btn {
  min-height: 40px;

  padding: 9px 14px;

  border-radius: 9px;

  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;

  white-space: nowrap;

  border: 1px solid transparent;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


.cookie-btn:hover {
  transform: translateY(-1px);
}


/* Primary action */
.cookie-btn-accept {
  background: var(--blue);
  color: var(--white);

  box-shadow:
    0 4px 16px rgba(66, 143, 187, 0.25);
}


.cookie-btn-accept:hover {
  background: #3a7fa8;

  box-shadow:
    0 7px 22px rgba(66, 143, 187, 0.35);
}


/* Secondary action */
.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);

  border-color: rgba(255, 255, 255, 0.1);
}


.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}


/* Tertiary action */
.cookie-btn-manage {
  background: transparent;

  color: rgba(255, 255, 255, 0.55);

  border-color: transparent;
}


.cookie-btn-manage:hover {
  color: var(--blue);
}


/* ================================================================
   COOKIE PREFERENCES MODAL
   ================================================================ */

.cookie-preferences {
  position: fixed;
  inset: 0;

  z-index: 1100;

  display: grid;
  place-items: center;

  padding: 20px;
}


.cookie-preferences-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(29, 46, 76, 0.72);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}


.cookie-preferences-dialog {
  position: relative;

  width: min(500px, 100%);

  padding: 28px;

  background: var(--white);
  color: var(--text-grey);

  border: 1px solid var(--border);
  border-radius: 14px;

  box-shadow:
    0 24px 70px rgba(29, 46, 76, 0.3);

  animation: cookie-modal-enter 0.25s ease both;
}


.cookie-preferences-dialog h2 {
  margin: 0 0 8px;

  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;

  line-height: 1;

  text-transform: uppercase;

  color: var(--navy);
}


.cookie-preferences-dialog > p {
  margin: 0 0 20px;

  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;

  color: var(--text-grey);
}


/* Preference rows */

.cookie-preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 16px 0;

  border-bottom: 1px solid var(--border);

  cursor: pointer;
}


.cookie-preference-item strong {
  display: block;

  margin-bottom: 3px;

  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;

  color: var(--navy);
}


.cookie-preference-item span {
  display: block;

  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;

  color: var(--text-grey);
}


/* Essential row */

.cookie-preference-locked {
  cursor: default;
}


.cookie-chip {
  flex-shrink: 0;

  padding: 5px 9px;

  border-radius: 100px;

  background: var(--soft-blue);
  color: var(--blue) !important;

  font-size: 10px !important;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* Analytics checkbox */

#cookie-analytics-toggle {
  width: 18px;
  height: 18px;

  flex-shrink: 0;

  accent-color: var(--blue);

  cursor: pointer;
}


/* Modal buttons */

.cookie-preferences-actions {
  display: flex;
  justify-content: flex-end;

  gap: 8px;

  margin-top: 22px;
}


.cookie-preferences-actions .cookie-btn-manage {
  color: var(--text-grey);
  border: 1px solid var(--border);
}


.cookie-preferences-actions .cookie-btn-manage:hover {
  color: var(--navy);
  background: var(--offwhite);
}


.cookie-preferences-actions .cookie-btn-accept {
  border: 0;
}


/* ================================================================
   ANIMATION
   ================================================================ */

@keyframes cookie-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes cookie-modal-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 760px) {

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;

    width: calc(100% - 24px);
  }

  .cookie-content {
    flex-direction: column;
    align-items: stretch;

    gap: 16px;

    padding: 18px;
  }

  .cookie-banner h2 {
    font-size: 22px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;
  }

  .cookie-btn-accept {
    grid-column: 1 / -1;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-preferences-dialog {
    padding: 22px;
  }

}


/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {

  .cookie-banner,
  .cookie-preferences-dialog {
    animation: none;
  }

  .cookie-btn {
    transition: none;
  }

}
.cookie-banner[hidden],
.cookie-preferences[hidden] {
  display: none !important;
  /* Reset animation so fill-mode:both cannot keep the element
     painted after it is hidden. Without this, browsers hold the
     'to' keyframe state and the element stays visible. */
  animation: none !important;
}

/* ================================================================
   FOOTER COOKIE PREFERENCES BUTTON
   ================================================================ */

/*
 * Injected by main.js into .footer-inner at runtime.
 * Styled to sit quietly alongside the copyright paragraphs —
 * Manrope 700 at small scale, terracotta underline on hover,
 * no background so it reads as a text link not a CTA.
 */
.footer-cookie-btn {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;

  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.03em;

  cursor: pointer;
  transition: color 0.2s ease;

  /* Subtle underline to signal interactivity */
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.15);
  text-underline-offset: 3px;
}

.footer-cookie-btn:hover {
  color: var(--terracotta);
  text-decoration-color: rgba(211, 132, 91, 0.5);
}

.footer-cookie-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}