/* OceanRise Africa - Main Stylesheet */
:root {
  --primary: #0a4d68;
  --primary-dark: #062f40;
  --secondary: #088395;
  --accent: #05bfdb;
  --gold: #d4a017;
  --light: #f0f7fa;
  --dark: #0d1b2a;
  --success: #2ecc71;
  --text: #1b263b;
  --muted: #6c757d;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(10, 77, 104, 0.12);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.site-header {
  background: var(--primary-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.35rem;
}

.logo span {
  color: var(--accent);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(5, 191, 219, 0.2);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
  color: var(--white);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="60" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="1.2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.6;
}

.hero-content {
  position: relative;
  max-width: 780px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--accent);
}

.hero .lead {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: #04a8c0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 191, 219, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover {
  background: #e0b020;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.1rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10, 77, 104, 0.18);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Stats */
.stats-bar {
  background: var(--primary-dark);
  color: white;
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 6px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #e8eef2;
}

th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

tr:hover td {
  background: #f5fafc;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #d0e0e8;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Progress */
.progress-bar {
  height: 12px;
  background: #d0e0e8;
  border-radius: 6px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 6px;
  transition: width 0.5s;
}

/* Location map placeholder */
.map-placeholder {
  background: linear-gradient(160deg, #0a4d68 0%, #088395 100%);
  border-radius: var(--radius);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.map-coords {
  background: rgba(0,0,0,0.45);
  padding: 24px 36px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.map-coords h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* Alert / Notice */
.notice {
  background: #e8f7fc;
  border-left: 5px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

.notice.warning {
  background: #fff8e6;
  border-left-color: var(--gold);
}

.notice.success {
  background: #e8f8ef;
  border-left-color: var(--success);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  opacity: 0.7;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 50px 0 40px;
}

.page-header h1 {
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
  max-width: 640px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 12px;
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 16px;
  }
  .main-nav.open ul {
    flex-direction: column;
  }
  .nav-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 50px 0 40px;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.bg-white { background: white; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

/* Investment tiers */
.tier-card {
  border: 2px solid #e0eaf0;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all 0.25s;
  background: white;
}

.tier-card.featured {
  border-color: var(--accent);
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(5, 191, 219, 0.2);
}

.tier-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.tier-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 12px 0;
}

.tier-card ul {
  list-style: none;
  text-align: left;
  margin: 20px 0;
}

.tier-card li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
}

.tier-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--secondary);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--primary);
}

.timeline-item h4 {
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
}

/* Image enhancements */
.img-feature {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 20px 0;
  max-height: 420px;
  object-fit: cover;
}
.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
@media (max-width: 700px) {
  .img-pair { grid-template-columns: 1fr; }
}
.img-pair img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
