/* ===========================================================
   Gatsu Fishing Community — Stylesheet
=========================================================== */

:root {
  --navy: #0F3D2C;
  --navy-deep: #082A1E;
  --navy-light: #1C6B4E;
  --gold: #FFFFFF;
  --gold-light: #FFFFFF;
  --gold-soft: #CFEEDD;
  --accent: #177049;
  --cream: #F4FBF7;
  --cream-warm: #E6F3EC;
  --white: #FFFFFF;
  --text-dark: #132420;
  --text-light: #52685C;
  --border: #DCEAE2;
  --shadow: 0 12px 32px rgba(15, 61, 44, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 61, 44, 0.18);
  --radius: 16px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}

em { font-style: italic; color: var(--gold); }

a { text-decoration: none; color: inherit; }

img, svg { display: block; max-width: 100%; }

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input, textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

section { padding: 100px 0; }

/* ------------------------------------------------------------
   BUTTONS
------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 10px 24px rgba(23, 112, 73, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23, 112, 73, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(244, 251, 247, 0.5);
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

.btn-block { width: 100%; }

/* ------------------------------------------------------------
   TOPBAR
------------------------------------------------------------ */
.topbar {
  background: var(--navy-deep);
  color: var(--gold-soft);
  text-align: center;
  padding: 9px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 61, 44, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.logo svg { color: var(--gold-light); flex-shrink: 0; }
.logo em { font-style: italic; color: var(--gold-light); font-weight: 500; }

.logo-mark {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-logo .logo-mark { width: 44px; height: 44px; }

.main-nav { display: flex; gap: 32px; }
.nav-link {
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.nav-link:hover { opacity: 1; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-light);
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--cream);
  transition: background var(--transition);
}
.icon-btn:hover { background: rgba(244, 251, 247, 0.12); }

.hamburger { display: none; flex-direction: column; gap: 5px; }
.hamburger span { width: 22px; height: 2px; background: var(--gold-light); border-radius: 2px; transition: all var(--transition); }

/* ------------------------------------------------------------
   HERO
------------------------------------------------------------ */
.hero {
  background: var(--navy);
  padding: 70px 0 100px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow.center { display: block; text-align: center; }
.hero-text .eyebrow { color: var(--white); }

.hero-text h1 {
  color: var(--cream);
  font-size: 2.7rem;
  margin-bottom: 20px;
}
.hero-text p {
  color: rgba(244, 251, 247, 0.78);
  font-size: 1.02rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; margin-bottom: 46px; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-badge { display: flex; flex-direction: column; }
.hero-badge strong { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--gold-light); }
.hero-badge span { color: rgba(244, 251, 247, 0.65); font-size: 0.82rem; }

.hero-visual { position: relative; }
.hero-blob {
  position: absolute;
  top: 50%; left: 50%;
  width: 460px; height: 460px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(28, 107, 78, 0.18), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ------------------------------------------------------------
   SECTION HEAD
------------------------------------------------------------ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: 2.1rem; }
.section-sub { color: var(--text-light); margin-top: 12px; font-size: 0.98rem; }

/* ------------------------------------------------------------
   ABOUT
------------------------------------------------------------ */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-visual svg, .about-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.about-visual img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 40%;
}
.about-text h2 { font-size: 2rem; margin-bottom: 18px; }
.about-text > p { color: var(--text-light); margin-bottom: 34px; }

.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-icon {
  font-size: 1.5rem;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-warm);
  border-radius: 12px;
  flex-shrink: 0;
}
.value-item strong { display: block; color: var(--navy); font-size: 0.98rem; margin-bottom: 4px; }
.value-item p { color: var(--text-light); font-size: 0.86rem; }

/* ------------------------------------------------------------
   LEADER
------------------------------------------------------------ */
.leader { background: var(--cream-warm); }
.leader-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: center;
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow);
}
.leader-avatar img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 50%;
  box-shadow: var(--shadow);
  border: 5px solid var(--white);
}

.leader-badge {
  display: inline-block;
  background: var(--cream-warm);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.leader-info h3 { font-size: 1.9rem; margin-bottom: 14px; }
.leader-quote {
  font-style: italic;
  color: var(--accent);
  font-size: 1.02rem;
  margin-bottom: 18px;
  padding-left: 18px;
  border-left: 3px solid var(--navy-light);
}
.leader-info > p:not(.leader-quote) { color: var(--text-light); margin-bottom: 28px; }

.leader-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.leader-stats div { display: flex; flex-direction: column; }
.leader-stats strong { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--navy); }
.leader-stats span { color: var(--text-light); font-size: 0.8rem; }

/* ------------------------------------------------------------
   STATS BANNER
------------------------------------------------------------ */
.stats-banner {
  background: var(--navy);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-badge strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  color: var(--gold-light);
}
.stat-badge span { color: rgba(244, 251, 247, 0.7); font-size: 0.85rem; }

/* ------------------------------------------------------------
   GALLERY
------------------------------------------------------------ */
.gallery-toolbar { display: flex; justify-content: center; margin-bottom: 40px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: var(--navy);
}
.gallery-item svg, .gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover svg, .gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px;
  background: linear-gradient(to top, rgba(8, 42, 30, 0.92), transparent);
  color: var(--cream);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay strong { display: block; font-size: 0.9rem; }
.gallery-overlay span { font-size: 0.76rem; color: var(--gold-soft); }

.gallery-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(8, 42, 30, 0.65);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
}
.gallery-badge.mine { background: var(--gold-light); color: var(--navy-deep); }

.gallery-delete {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(8, 42, 30, 0.7);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}
.gallery-item:hover .gallery-delete { opacity: 1; }
.gallery-delete:hover { background: #B23B3B; }

.gallery-more { display: flex; justify-content: center; margin-top: 34px; }
.gallery-more.hidden { display: none; }

.gallery-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 30px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------
   EVENTS
------------------------------------------------------------ */
.events { background: var(--cream-warm); }
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.event-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.event-card:hover { transform: translateY(-4px); }
.event-date {
  flex-shrink: 0;
  width: 64px; height: 64px;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.event-date span { font-family: 'Playfair Display', serif; font-size: 1.5rem; line-height: 1; color: var(--cream); }
.event-info h3 { font-size: 1.05rem; margin-bottom: 8px; }
.event-info p { color: var(--text-light); font-size: 0.86rem; }

/* ------------------------------------------------------------
   CTA BANNER
------------------------------------------------------------ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  text-align: center;
  padding: 90px 0;
}
.cta-banner h2 { color: var(--cream); font-size: 2rem; margin-bottom: 14px; }
.cta-banner p { color: rgba(244, 251, 247, 0.75); margin-bottom: 32px; }

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
.site-footer { background: var(--navy-deep); color: rgba(244, 251, 247, 0.75); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(244, 251, 247, 0.1);
}
.footer-logo { margin-bottom: 16px; }
.footer-col p { font-size: 0.88rem; margin-bottom: 10px; line-height: 1.7; }
.footer-col h4 { color: var(--cream); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.88rem; margin-bottom: 12px; opacity: 0.85; transition: opacity var(--transition); }
.footer-col a:hover { opacity: 1; color: var(--gold-light); }

.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(244, 251, 247, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0;
}
.social-links a:hover { background: var(--gold-light); color: var(--navy-deep); }

.footer-bottom { text-align: center; padding: 24px 0; font-size: 0.8rem; opacity: 0.6; }

/* ------------------------------------------------------------
   FLOATING WHATSAPP BUTTON
------------------------------------------------------------ */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  z-index: 60;
  transition: transform var(--transition);
}
.wa-float:hover { transform: scale(1.08); }

/* ------------------------------------------------------------
   OVERLAY
------------------------------------------------------------ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 42, 30, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 80;
}
.overlay.active { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------
   MODAL (lightbox + upload)
------------------------------------------------------------ */
.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  width: 92%;
  max-width: 560px;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-content {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  max-height: 86vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform var(--transition);
  position: relative;
}
.modal.open .modal-content { transform: translateY(0); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  font-size: 1rem;
  color: var(--text-light);
  z-index: 2;
}

.modal-content h3 { font-size: 1.4rem; margin-bottom: 8px; }
.modal-sub { color: var(--text-light); font-size: 0.86rem; margin-bottom: 24px; }

#uploadForm label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}
#uploadForm label span { color: var(--accent); }
#uploadForm input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-dark);
  transition: border-color var(--transition);
}
#uploadForm input:focus { outline: none; border-color: var(--accent); }
#uploadForm input[type="file"] { padding: 9px 12px; }

.lightbox-content { padding: 0; overflow: hidden; max-width: 640px; }
.lightbox-content img, .lightbox-content svg { width: 100%; display: block; }
.lightbox-caption {
  padding: 22px 26px;
  background: var(--navy);
  color: var(--cream);
}
.lightbox-caption strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 4px; }
.lightbox-caption span { color: var(--gold-soft); font-size: 0.82rem; }
.lightbox-content .modal-close { background: rgba(8, 42, 30, 0.6); color: var(--cream); border-radius: 50%; }

/* ------------------------------------------------------------
   SCROLL REVEAL
------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; margin: 0 auto; }
  .leader-card { grid-template-columns: 1fr; text-align: center; padding: 36px; }
  .leader-avatar { max-width: 220px; margin: 0 auto; }
  .leader-quote { margin-left: auto; margin-right: auto; text-align: left; }
  .leader-stats { justify-content: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    z-index: 99;
  }
  .main-nav.open { max-height: 400px; display: flex; }
  .main-nav .nav-link { padding: 16px 24px; border-bottom: 1px solid rgba(244, 251, 247, 0.08); opacity: 1; }
  .main-nav .nav-link::after { display: none; }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-text h1 { font-size: 2.1rem; }
  .about-values { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-badges { gap: 24px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .leader-stats { gap: 24px; }
  .modal-content { padding: 26px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
