/* ============================================================
   Reefs for Life — Stylesheet
   Light-themed matching original reefsforlife.org Squarespace design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@400;500;600;700&display=swap');

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

:root {
  --navy:    rgba(6, 16, 91, 0.95);
  --dark:    #1f1f1f;
  --header:  #d5d5d7;
  --white:   #ffffff;
  --offwhite:#f5f5f5;
  --text:    rgba(26, 26, 26, 0.7);
  --teal:    #4aa8a8;
  --border:  #e0e0e0;
  --serif:   'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --max:     1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── HEADER / NAV ── */
header {
  background: var(--header);
  position: relative;
  z-index: 100;
  border-bottom: 1px solid #bbbbbf;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 68px;
  width: auto;
}

.logo-text { display: none; }

nav { display: flex; align-items: center; gap: 4px; }

nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 8px 14px;
  transition: color 0.2s;
  white-space: nowrap;
}

nav a:hover { color: #000; }

nav a.active {
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 3px;
}

.nav-donate {
  margin-left: 8px;
  border: 2px solid var(--navy);
  border-radius: 99px;
  color: var(--navy) !important;
  padding: 7px 20px !important;
  font-weight: 700 !important;
  transition: all 0.2s !important;
}
.nav-donate:hover { background: var(--navy) !important; color: var(--white) !important; }
.nav-donate.active { background: var(--navy) !important; color: var(--white) !important; }

/* dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--header);
  border: 1px solid #bbbbbf;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 200;
}
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--navy);
  border-bottom: 1px solid #ccc;
  background: none !important;
  border-radius: 0 !important;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: rgba(0,0,0,0.05) !important; color: #000 !important; }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* hamburger */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: all 0.3s; }

/* ── HERO BANNER (homepage — image only, no text overlay) ── */
.hero-banner {
  background: #000 url('../images/hero-drone.jpg') center center / cover no-repeat;
  height: 580px;
}

/* ── HERO (used on pages that need text overlay — kept for reference) ── */
.hero {
  background: var(--dark) url('../images/hero-drone.jpg') center center / cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 160px 40px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.50);
}
.hero > * { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  max-width: 820px;
  margin: 0 auto 20px;
  color: var(--white);
}

.hero p {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  max-width: 560px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  text-transform: uppercase;
}

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  background: var(--dark) center center / cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 120px 40px;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  position: relative;
  z-index: 1;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  padding: 12px 32px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 99px;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-white  { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: #eee; }
.btn-outline { border: 2px solid rgba(255,255,255,0.8); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-dark   { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover { background: #040d50; border-color: #040d50; }
.btn-teal   { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-teal:hover { background: #3a9090; border-color: #3a9090; }
.btn-light  { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-light:hover { background: var(--navy); color: var(--white); }

/* ── SECTIONS (light/white default) ── */
section { padding: 80px 0; background: var(--white); }
section.darker { background: var(--offwhite); }

.section-subtitle {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.35;
  color: var(--navy);
}

.section-body p {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.8;
}

.centered { text-align: center; }
.centered .section-body { margin: 0 auto; }

/* ── MISSION BAR (dark strip) ── */
.mission-bar {
  background: #333333;
  text-align: center;
  padding: 56px 40px;
}
.mission-bar p {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  max-width: 820px;
  margin: 0 auto;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

/* ── TWO COLUMN ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img { border-radius: 2px; }

/* ── STAT GRID ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}
.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
}
section.darker .stat-card { background: var(--offwhite); }

.stat-card .number {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-card .label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── BULLET LIST ── */
.bullet-list { list-style: none; padding: 0; margin: 24px 0; }
.bullet-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text);
  font-family: var(--serif);
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li::before { content: '—'; position: absolute; left: 0; color: var(--teal); }

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-img img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 28px 24px; }
.card-tag {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.card-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--navy);
  line-height: 1.4;
}
.card-text { font-size: 0.95rem; color: var(--text); font-family: var(--serif); }

/* ── VIDEO EMBED ── */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 32px 0;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── PRICING TABLE ── */
.pricing-table { width: 100%; border-collapse: collapse; margin: 32px 0; }
.pricing-table th {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 12px 20px;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.pricing-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text);
  font-family: var(--serif);
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:nth-child(even) td { background: var(--offwhite); }

/* ── DONATION TIERS ── */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 48px 0;
}
.donation-tier {
  background: var(--white);
  padding: 36px 24px;
  text-align: center;
  transition: background 0.2s;
}
section.darker .donation-tier { background: var(--offwhite); }
.donation-tier:hover { background: #ebebeb; }
.donation-tier .amount {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 12px;
}
.donation-tier .impact { font-size: 0.95rem; color: var(--text); font-family: var(--serif); }

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  margin-top: 48px;
}
.team-member { text-align: center; }
.team-photo {
  width: 150px; height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 2px solid var(--border);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 4px;
  color: var(--dark);
}
.team-title {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  font-weight: 600;
}
.team-cred { font-size: 0.82rem; color: rgba(26,26,26,0.45); margin-bottom: 10px; font-family: var(--sans); }
.team-bio { font-size: 0.95rem; color: var(--text); font-family: var(--serif); }

/* ── QUOTE BLOCK ── */
.quote-block {
  border-left: 3px solid var(--teal);
  padding: 16px 28px;
  margin: 28px 0;
}
.quote-block p {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
}

/* ── PROJECT CARD ── */
.project-card {
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 20px;
  background: var(--white);
}
.project-card h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--navy);
}
.progress-bar { background: var(--border); border-radius: 99px; height: 6px; margin: 16px 0; }
.progress-fill { height: 100%; background: var(--teal); border-radius: 99px; }
.project-meta { font-family: var(--sans); font-size: 0.78rem; color: rgba(26,26,26,0.45); letter-spacing: 0.05em; }

.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.badge-funded { background: rgba(74,168,168,0.15); color: var(--teal); border: 1px solid rgba(74,168,168,0.4); }
.badge-open { background: rgba(6,16,91,0.08); color: var(--navy); border: 1px solid rgba(6,16,91,0.2); }

/* ── CONTACT BOX ── */
.contact-box {
  background: var(--offwhite);
  border: 1px solid var(--border);
  padding: 36px;
}
.contact-box h3 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--navy);
}
.contact-box p { font-size: 0.95rem; color: var(--text); margin-bottom: 6px; font-family: var(--serif); }

/* ── NEWSLETTER ── */
.newsletter-strip {
  background: #333333;
  text-align: center;
  padding: 64px 40px;
}
.newsletter-strip h2 {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--white);
}
.newsletter-strip p { color: rgba(255,255,255,0.6); margin-bottom: 24px; font-size: 1rem; font-family: var(--serif); }
.newsletter-form { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  padding: 12px 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  border-radius: 99px;
  font-size: 1rem;
  width: 300px;
  font-family: var(--serif);
  outline: none;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input[type="email"]:focus { border-color: var(--teal); }
.newsletter-form button { cursor: pointer; border: none; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.4);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo-mark {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.8; max-width: 300px; font-family: var(--serif); }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-col a { display: block; font-family: var(--serif); font-size: 0.95rem; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
  transition: all 0.2s;
  font-family: var(--sans);
}
.footer-social a:hover { border-color: rgba(255,255,255,0.6); color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 96px;
    left: 0; right: 0;
    background: var(--header);
    border-bottom: 1px solid #bbb;
    padding: 12px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 200;
  }
  nav.open { display: flex; }
  nav a { padding: 12px 24px; width: 100%; border-radius: 0 !important; }
  nav a.active { border-radius: 0 !important; }
  .dropdown-menu { position: static; box-shadow: none; border: none; border-top: 1px solid #ccc; }
  .header-inner { position: relative; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  section { padding: 56px 0; }
  .container { padding: 0 24px; }
  .hero { padding: 120px 24px; }
  .page-hero { padding: 80px 24px; }
}
