/* ═══════════════════════════════════════
   IslandBarter.club — Design System
   Caribbean Civic Aesthetic
   ═══════════════════════════════════════ */

:root {
  --ocean: #0c3b5e;
  --ocean-mid: #145a8a;
  --ocean-light: #1a7ab5;
  --coral: #e05a47;
  --coral-light: #ff7b6b;
  --coral-soft: #fff0ed;
  --green: #1d8a4e;
  --green-light: #2bb866;
  --green-soft: #eaf7f0;
  --yellow: #e8a817;
  --yellow-light: #f5c842;
  --yellow-soft: #fef8e7;
  --sand: #faf5ec;
  --sand-dark: #f0e8d8;
  --sand-deep: #d4c5a9;
  --charcoal: #1a1a1a;
  --slate: #3d4852;
  --mist: #6b7c8a;
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(12,59,94,0.06);
  --shadow-md: 0 4px 24px rgba(12,59,94,0.1);
  --shadow-lg: 0 12px 48px rgba(12,59,94,0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(28,122,181,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(224,90,71,0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(29,138,78,0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════
   NAVIGATION
   ══════════════ */
.ib-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,245,236,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(12,59,94,0.06);
  transition: var(--transition);
}

.ib-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ocean);
}

.nav-logo svg { width: 36px; height: 36px; }

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-logo-text span { color: var(--coral); }

.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }

.nav-links a {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--ocean); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--ocean) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--ocean-mid) !important; transform: translateY(-1px); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-toggle svg { width: 24px; height: 24px; color: var(--ocean); }

/* ══════════════
   BUTTONS
   ══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(224,90,71,0.3);
}
.btn-primary:hover { background: var(--coral-light); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(224,90,71,0.35); }

.btn-ocean {
  background: var(--ocean);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(12,59,94,0.3);
}
.btn-ocean:hover { background: var(--ocean-mid); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--ocean);
  border: 2px solid rgba(12,59,94,0.15);
}
.btn-outline:hover { border-color: var(--ocean); background: rgba(12,59,94,0.04); }

.btn-white {
  background: var(--white);
  color: var(--ocean);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ══════════════
   SECTION LABELS
   ══════════════ */
.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--coral);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--ocean);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--mist);
  line-height: 1.7;
  max-width: 600px;
}

/* ══════════════
   PAGE HERO (inner pages)
   ══════════════ */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(160deg, var(--sand) 0%, rgba(240,232,216,0.6) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224,90,71,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero .section-sub {
  max-width: 640px;
}

/* ══════════════
   PROVERB BLOCK
   ══════════════ */
.proverb-block {
  background: var(--ocean);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}

.proverb-block::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(224,90,71,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.proverb-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

.proverb-meaning {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  position: relative;
}

/* ══════════════
   WAVE DIVIDER
   ══════════════ */
.wave-divider {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* ══════════════
   FOOTER
   ══════════════ */
.ib-footer {
  background: var(--ocean);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand svg { width: 32px; height: 32px; }

.footer-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

.footer-brand-text span { color: var(--coral-light); }

.footer-about {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 300px;
}

.footer-contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact-row a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-contact-row a:hover { color: var(--white); }

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--white); }

.arthur-ind {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
}

/* ══════════════
   REVEAL ANIMATIONS
   ══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-10deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ══════════════
   RESPONSIVE
   ══════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sand);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(12,59,94,0.08);
    box-shadow: var(--shadow-md);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .proverb-block {
    padding: 28px 24px;
  }

  .proverb-text {
    font-size: 1.3rem;
  }
}
