/* ============================================
   CTD Africa — Main Stylesheet
   Palette: Amber #F5A623, Dark #1A1A1A, Cream #FDF8F0, Gold #C8991A
   ============================================ */

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

:root {
  --amber: #F5A623;
  --amber-dark: #D4891A;
  --gold: #C8991A;
  --gold-bg: #FFF8E6;
  --dark: #1A1A1A;
  --mid: #4A4A4A;
  --light: #8A8A8A;
  --cream: #FDF8F0;
  --white: #FFFFFF;
  --border: #E8E0D4;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, .nav-logo span, .stat-num {
  font-family: 'Syne', sans-serif;
}

/* ---- UTILS ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.bg-cream { background: var(--cream); }
.accent { color: var(--amber); }
.w-full { width: 100%; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--dark);
}
.section-sub {
  font-size: 17px;
  color: var(--mid);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-nav {
  background: var(--amber);
  color: var(--white);
  padding: 10px 22px;
  font-size: 14px;
}
.btn-nav:hover { background: var(--amber-dark); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover { background: #a87c14; border-color: #a87c14; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.08);
}
.nav.scrolled .nav-links a { color: var(--dark); }
.nav.scrolled .nav-logo span { color: var(--dark); }
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 40px; width: 40px; object-fit: contain; }
.nav-logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
  transition: all 0.3s;
  border-radius: 2px;
}
.nav.scrolled .hamburger span { background: var(--dark); }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 20px 24px 28px;
  gap: 16px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}
.mobile-menu.open { display: flex; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero-network {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.5) 60%, rgba(245,166,35,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 800;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: scrollBounce 1.8s ease-in-out infinite;
  margin: 0 auto;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.4; }
}

/* ---- STATS BAND ---- */
.stats-band {
  background: var(--amber);
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 48px;
}
.stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-top: 4px;
  text-align: center;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.3);
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.25s ease;
}
.service-card:hover, .service-card.featured {
  border-color: var(--amber);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card.featured { background: var(--amber); }
.service-card.featured h3, .service-card.featured p { color: var(--white); }
.service-icon { font-size: 32px; margin-bottom: 16px; }
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--mid); line-height: 1.65; }
.service-card.featured p { color: rgba(255,255,255,0.85); }

/* ---- PACKAGES ---- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.package-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: all 0.25s;
}
.package-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.package-card.popular {
  border-color: var(--gold);
  background: var(--gold-bg);
  box-shadow: 0 8px 40px rgba(200,153,26,0.18);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.package-label { font-size: 12px; color: var(--light); font-weight: 500; margin-bottom: 8px; }
.package-name { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.package-price {
  font-size: 36px;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  color: var(--dark);
  margin-bottom: 24px;
}
.package-price span { font-size: 16px; font-weight: 400; color: var(--light); }
.package-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.package-features li {
  font-size: 14px;
  color: var(--mid);
  padding-left: 22px;
  position: relative;
}
.package-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

/* ---- SUBSCRIPTIONS ---- */
.subs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.sub-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: all 0.25s;
}
.sub-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.sub-card.featured-sub {
  border-color: var(--gold);
  background: var(--gold-bg);
}
.sub-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.sub-type { font-size: 13px; color: var(--light); margin-bottom: 12px; }
.sub-price {
  font-size: 32px;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  margin-bottom: 20px;
}
.sub-price span { font-size: 15px; font-weight: 400; color: var(--light); }
.sub-card .package-features { margin-bottom: 24px; flex: 1; }

/* ---- PAYFAST MODAL ---- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  backdrop-filter: blur(4px);
}
.modal-bg.open { display: block; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--light);
  padding: 4px 8px;
  border-radius: 4px;
}
.modal-close:hover { background: var(--cream); color: var(--dark); }
.modal-logo { height: 48px; margin-bottom: 16px; }
.modal-box h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-box p { font-size: 15px; color: var(--mid); margin-bottom: 20px; }
.payfast-notice {
  background: var(--cream);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.payfast-notice p { font-size: 14px; color: var(--mid); margin-bottom: 8px; }
.payfast-amount {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  color: var(--amber);
}
.pf-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.pf-fields input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.pf-fields input:focus { border-color: var(--amber); }
.payfast-secure { font-size: 12px; color: var(--light); text-align: center; margin-top: 12px; }

/* ---- CONTACT ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact-copy .section-title { margin-bottom: 20px; }
.contact-copy p { font-size: 16px; color: var(--mid); line-height: 1.7; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--mid);
}
.contact-item a { color: var(--amber); text-decoration: none; font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }
.c-icon { font-size: 20px; }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--amber); }
.form-status {
  font-size: 14px;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  display: none;
}
.form-status.success { background: #ecfdf5; color: #065f46; display: block; }
.form-status.error { background: #fef2f2; color: #991b1b; display: block; }

/* ---- SUBSCRIBE STRIP ---- */
.subscribe-strip {
  background: var(--dark);
  padding: 64px 24px;
}
.subscribe-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.subscribe-copy h3 { font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.subscribe-copy p { font-size: 15px; color: rgba(255,255,255,0.65); }
.subscribe-form {
  display: flex;
  gap: 0;
  flex: 1;
  max-width: 480px;
  min-width: 280px;
}
.subscribe-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-right: none;
}
.subscribe-form input::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-form input:focus { border-color: var(--amber); }
.subscribe-form .btn { border-radius: 0 8px 8px 0; }
.subscribe-status { font-size: 14px; color: var(--amber); margin-top: 8px; width: 100%; }

/* ---- FOOTER ---- */
.footer { background: #111; padding: 80px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer-brand img { height: 48px; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 16px; }
.footer-brand .footer-tag { font-size: 13px; color: rgba(255,255,255,0.45); font-weight: 400; margin-top: 4px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4 { font-size: 13px; font-weight: 700; color: var(--amber); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .subs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-content h1 { font-size: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .subs-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-band { flex-direction: column; gap: 8px; }
  .stat-divider { width: 48px; height: 1px; }
  .subscribe-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .subscribe-form { max-width: 100%; width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-form-wrap { padding: 24px; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 38px; }
  .hero-ctas { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
