/* =========================================================
   Time for Africa — temporary homepage
   Palette sampled from the cover image
   ========================================================= */

:root {
  /* Colors */
  --navy-900: #16223a;
  --navy-800: #1e2d4a;
  --navy-700: #263957;
  --terracotta: #ae6441;
  --copper: #c4774a;
  --amber: #d1924d;
  --gold: #e2b877;
  --sand: #f6efe4;
  --cream: #fbf7f1;
  --white: #ffffff;
  --text: #f4ece0;
  --text-muted: rgba(244, 236, 224, 0.78);

  /* Type */
  --font-display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --header-h: 76px;

  /* Effects */
  --shadow-sm: 0 4px 14px rgba(10, 16, 30, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(8, 12, 24, 0.55), 0 12px 24px -12px rgba(8, 12, 24, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--navy-900);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

p { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 34, 58, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(226, 184, 119, 0.16);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Small sun-over-horizon mark, drawn in CSS */
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold) 0%, var(--amber) 45%, var(--terracotta) 100%);
  box-shadow: 0 0 0 3px rgba(226, 184, 119, 0.18);
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: var(--navy-700);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--white);
  white-space: nowrap;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

/* Underline accent */
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--white); }

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.main-nav .nav-cta {
  margin-left: 8px;
  padding: 10px 22px;
  color: var(--navy-900);
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.main-nav .nav-cta:hover {
  color: var(--navy-900);
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 20px rgba(209, 146, 77, 0.35);
}

/* Burger (hidden on desktop) */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(226, 184, 119, 0.3);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color 0.2s var(--ease);
}
.nav-burger:hover { background: rgba(255, 255, 255, 0.06); }
.nav-burger span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle:focus-visible + .nav-burger {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* =========================================================
   Hero
   ========================================================= */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
  overflow: hidden;
  /* Same diagonal navy → copper → amber wash as the cover */
  background:
    radial-gradient(1000px 600px at 85% 15%, rgba(209, 146, 77, 0.35), transparent 60%),
    radial-gradient(900px 600px at 10% 100%, rgba(174, 100, 65, 0.35), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 40%, #4a3a47 75%, #7a4f42 100%);
}

/* Subtle horizon glow line */
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 184, 119, 0.5), transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

/* ---------- Text column ---------- */
.hero-text h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-pillars {
  display: inline-block;
  margin-bottom: 22px;
  padding-bottom: 14px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid rgba(226, 184, 119, 0.35);
}

.hero-lines p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
}
.hero-lines p + p { margin-top: 6px; }
.hero-lines p:first-child {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Under-construction card ---------- */
.status-card {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  max-width: 460px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(226, 184, 119, 0.35);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.status-card:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 184, 119, 0.6);
  box-shadow: 0 14px 30px -12px rgba(209, 146, 77, 0.45);
}

.status-dot {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2.2s var(--ease) infinite;
}

.status-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.status-title {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--white);
}

.status-bar {
  position: relative;
  display: block;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.status-bar span {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 40%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--amber), var(--gold));
  animation: progress 2.8s var(--ease) infinite;
}

/* ---------- Image column ---------- */
.hero-media {
  margin: 0;
  position: relative;
}
.hero-media::before {
  /* warm glow behind the frame */
  content: "";
  position: absolute;
  inset: 8% 6% -6% 6%;
  border-radius: var(--radius-lg);
  background: radial-gradient(closest-side, rgba(209, 146, 77, 0.45), transparent);
  filter: blur(30px);
  z-index: 0;
}
.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.hero-media:hover img {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 40px 70px -24px rgba(8, 12, 24, 0.65), 0 14px 28px -12px rgba(8, 12, 24, 0.4);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(226, 184, 119, 0.14);
}
.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.site-footer a {
  text-decoration: none;
  color: var(--gold);
  transition: color 0.2s var(--ease);
}
.site-footer a:hover { color: var(--white); }

/* =========================================================
   Animations
   ========================================================= */
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

@keyframes progress {
  0%   { left: -40%; }
  100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .status-bar span { left: 0; width: 65%; }
}

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet: stack, image first-class */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { order: 2; }
  .hero-media { order: 1; max-width: 760px; margin: 0 auto; width: 100%; }
  .status-card { margin-left: auto; margin-right: auto; text-align: left; }
}

/* Mobile navigation */
@media (max-width: 820px) {
  :root { --header-h: 68px; }

  .nav-burger { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(22, 34, 58, 0.97);
    border-bottom: 1px solid rgba(226, 184, 119, 0.16);
    box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.5);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
  }
  .main-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .main-nav a:hover,
  .main-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.06); }
  .main-nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .nav-toggle:checked ~ .main-nav {
    max-height: 420px;
    visibility: visible;
    transition: max-height 0.35s var(--ease), visibility 0s;
  }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Small phones */
@media (max-width: 480px) {
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 30px; height: 30px; }
  .hero-pillars { letter-spacing: 0.08em; }
  .status-card { padding: 16px 18px; gap: 14px; }
  .hero-media img { border-radius: var(--radius); }
  .footer-wrap { justify-content: center; text-align: center; }
}
