/* ===== CSS Custom Properties ===== */
:root {
  --color-ocean: #1b4965;
  --color-ocean-light: #2d6a8f;
  --color-sea-foam: #3a9e8f;
  --color-sea-foam-light: #5bc0b0;
  --color-sand: #f5efe6;
  --color-sand-dark: #e8ddd0;
  --color-driftwood: #6b7b8d;
  --color-white: #ffffff;
  --color-text: #2c3e50;
  --color-text-light: #5a6a7a;
  --color-border: #ddd;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f5f0;
  --color-card-bg: #ffffff;
  --color-card-shadow: rgba(0, 0, 0, 0.08);
  --color-hero-overlay: rgba(27, 73, 101, 0.55);
  --color-nav-bg: rgba(255, 255, 255, 0.95);
  --color-nav-text: #2c3e50;
  --color-footer-bg: #1b4965;
  --color-footer-text: #c8d8e4;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1100px;
  --nav-height: 64px;
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-ocean: #5ba3c9;
    --color-ocean-light: #7bbfe0;
    --color-sea-foam: #5bc0b0;
    --color-sea-foam-light: #7dd4c7;
    --color-sand: #1a1a2e;
    --color-sand-dark: #16213e;
    --color-driftwood: #9aa8b8;
    --color-white: #0f0f1a;
    --color-text: #e0e0e0;
    --color-text-light: #a0aab4;
    --color-border: #333;
    --color-bg: #121225;
    --color-bg-alt: #1a1a2e;
    --color-card-bg: #1e1e36;
    --color-card-shadow: rgba(0, 0, 0, 0.3);
    --color-hero-overlay: rgba(10, 30, 50, 0.65);
    --color-nav-bg: rgba(18, 18, 37, 0.95);
    --color-nav-text: #e0e0e0;
    --color-footer-bg: #0a0a1a;
    --color-footer-text: #8899aa;
  }
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-ocean);
  text-decoration: none;
}

a:hover {
  color: var(--color-sea-foam);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-ocean);
  line-height: 1.3;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--color-nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-ocean);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--color-nav-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-sea-foam);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-nav-text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-ocean) url('../photos/hero.jpg') center/cover no-repeat;
  margin-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin-bottom: 2rem;
}

.hero .btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--color-sea-foam);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.hero .btn:hover {
  background: var(--color-sea-foam-light);
  color: #fff;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 1.5rem;
}

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.section p {
  max-width: 720px;
}

/* ===== About ===== */
.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

/* ===== Officers ===== */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.officer-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.officer-card:hover {
  box-shadow: 0 4px 16px var(--color-card-shadow);
}

.officer-card .role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sea-foam);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.officer-card .name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-ocean);
}

/* ===== Membership / Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.price-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.price-card .details {
  flex: 1;
}

.price-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.price-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-ocean);
  margin-bottom: 0.5rem;
}

.price-card .price-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.price-card .details {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.price-card .details li {
  list-style: none;
  padding: 0.3rem 0;
}

.price-card-btn {
  margin-top: 1.25rem;
  display: inline-block;
}

.membership-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--color-sea-foam);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-sea-foam-light);
  color: #fff;
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--color-ocean);
  border: 2px solid var(--color-ocean);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--color-ocean);
  color: #fff;
}

/* ===== Bylaws ===== */
.bylaws-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.bylaws-content p {
  flex: 1;
  min-width: 280px;
}

/* ===== Photo Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== Community Links ===== */
.links-heading {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--color-border);
}

.links-heading:first-of-type {
  margin-top: 0;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.link-card {
  display: block;
  padding: 1.25rem 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.link-card:hover {
  border-color: var(--color-sea-foam);
  box-shadow: 0 2px 12px var(--color-card-shadow);
}

.link-card .link-name {
  font-weight: 600;
  color: var(--color-ocean);
  margin-bottom: 0.25rem;
}

.link-card .link-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ===== Contact ===== */
.contact-info {
  margin-top: 1.5rem;
}

.contact-info p {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.contact-info a {
  font-weight: 600;
}

.contact-address {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: inline-block;
}

.contact-address p {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.contact-address .label {
  font-weight: 600;
  color: var(--color-ocean);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.9rem;
}

.footer p {
  margin-bottom: 0.3rem;
  max-width: none;
}

.footer a {
  color: var(--color-sea-foam-light);
}

/* ===== Stripe placeholder ===== */
.stripe-coming-soon {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--color-driftwood);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: default;
  opacity: 0.7;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-nav-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 60vh;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .officers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .membership-actions {
    flex-direction: column;
  }

  .membership-actions .btn-primary,
  .membership-actions .btn-outline,
  .membership-actions .stripe-coming-soon {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .officers-grid {
    grid-template-columns: 1fr;
  }

  .nav-logo {
    font-size: 1rem;
  }
}

/* ===== Print Styles ===== */
@media print {
  .nav, .hero, .footer, .gallery-grid, .nav-toggle {
    display: none;
  }

  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}
