/* ===========================================================
   Galloway Yacht Club — Design System
   Forest green + Chesapeake sky-blue · serif/script/sans
   =========================================================== */

:root {
  --green:        #15684A;
  --green-deep:   #0E4A35;
  --green-soft:   #1E7D5A;
  --sky:          #9FC4DE;
  --sky-light:    #CFE2EF;
  --sky-deep:     #5E92B8;
  --paper:        #ffffff;
  --paper-tint:   #F3F8F5;
  --paper-blue:   #EEF4F9;
  --ink:          #143A2B;   /* dark green headings */
  --body:         #3F534C;   /* muted green-gray body */
  --line:         #DCE7E2;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Dancing Script", cursive;
  --sans: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --shadow-sm: 0 4px 18px rgba(20,58,43,.08);
  --shadow-md: 0 18px 50px rgba(20,58,43,.16);
  --ring: 7px solid var(--sky);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  font-weight: 800;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .76rem;
  color: var(--sky-deep);
  margin: 0 0 14px;
}

.script {
  font-family: var(--script);
  font-weight: 700;
  color: var(--green);
  line-height: .95;
  font-size: 1.5em;
}

.section { padding: 110px 0; position: relative; }
.section--tint { background: var(--paper-tint); }
.section--blue { background: var(--paper-blue); }
.section--green {
  background: var(--green);
  color: #DCEDE5;
}
.section--green h1, .section--green h2, .section--green h3 { color: #fff; }
.section--green .eyebrow { color: var(--sky-light); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.section-head p { font-size: 1.12rem; margin: 18px 0 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 800;
  letter-spacing: .03em; font-size: .95rem;
  padding: 15px 30px; border-radius: 999px;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  text-transform: uppercase;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--green); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: #fff; color: var(--green); }

/* ---------- Circular framed photo ---------- */
.framed {
  border-radius: 50%;
  border: var(--ring);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  background: var(--sky-light);
}

/* ---------- Decorative wave divider ---------- */
.wave { display: block; width: 100%; height: auto; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(20,58,43,.09); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark { width: 46px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--serif); font-weight: 800; color: var(--ink);
  font-size: 1.18rem; letter-spacing: .02em; line-height: 1; text-transform: uppercase;
}
.brand__name small { display: block; font-family: var(--sans); font-weight: 700;
  letter-spacing: .26em; font-size: .56rem; color: var(--sky-deep); margin-top: 4px; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-weight: 700; font-size: .92rem; color: var(--ink); position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--green); transition: width .25s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__login {
  font-weight: 800; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase;
  background: var(--green); color: #fff; padding: 11px 22px; border-radius: 999px;
  transition: background .2s ease, transform .18s ease;
}
.nav__login:hover { background: var(--green-deep); transform: translateY(-2px); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 26px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* mobile drawer */
.drawer { display: none; }

@media (max-width: 940px) {
  .nav__links, .nav__login { display: none; }
  .nav__burger { display: block; }
  .drawer {
    display: block; position: fixed; inset: 74px 0 auto 0; z-index: 49;
    background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s ease; box-shadow: var(--shadow-md);
  }
  .drawer.open { transform: translateY(0); }
  .drawer ul { list-style: none; margin: 0; padding: 14px 28px 26px; }
  .drawer li { border-bottom: 1px solid var(--line); }
  .drawer a { display: block; padding: 15px 4px; font-weight: 700; color: var(--ink); }
  .drawer .nav__login { display: inline-flex; margin-top: 18px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; background: #fff; overflow: hidden; padding-top: 64px; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
  padding-bottom: 30px;
}
.hero__title {
  font-size: clamp(3rem, 7.4vw, 6.1rem);
  text-transform: uppercase; letter-spacing: .005em; color: var(--green);
}
.hero__title .script { display: block; font-size: .62em; text-transform: none; margin-top: -.08em; }
.hero__lead { font-size: 1.24rem; max-width: 30em; margin: 26px 0 8px; }
.hero__meta { display: flex; gap: 26px; flex-wrap: wrap; margin: 26px 0 34px; }
.hero__meta div { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: .96rem; }
.hero__meta .ic { color: var(--sky-deep); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__media { position: relative; display: grid; place-items: center; min-height: 480px; }
.hero__circle { width: min(460px, 92%); aspect-ratio: 1; }
.hero__badge {
  position: absolute; bottom: 18px; left: 0;
  background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px; border: 1px solid var(--line);
}
.hero__badge .burgee { width: 52px; height: 34px; }
.hero__badge b { font-family: var(--serif); color: var(--ink); font-size: 1.05rem; display: block; }
.hero__badge span { font-size: .8rem; color: var(--body); }

.hero__waves { line-height: 0; margin-top: -2px; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__meta, .hero__actions { justify-content: center; }
  .hero__media { min-height: 360px; }
  .hero__badge { left: 50%; transform: translateX(-50%); bottom: -8px; }
}

/* =========================================================
   SPLIT (about / why join)
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; display: grid; place-items: center; }
.split__media .framed { width: min(440px, 100%); aspect-ratio: 1; }
.split__body h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); text-transform: uppercase; }
.split__body p { margin: 18px 0 0; }
.quote-mark { font-family: var(--serif); font-size: 9rem; color: var(--sky-light); line-height: .5; position: absolute; }

.feature-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.06rem; }
.feature-list .ic { color: var(--sky); flex: none; margin-top: 3px; }
.section--green .feature-list .ic { color: var(--sky-light); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
}

/* =========================================================
   EVENT CARDS
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ecard {
  background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.ecard:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.ecard__top { padding: 22px 24px; background: var(--green); color: #fff; position: relative; }
.ecard__date { font-family: var(--serif); font-size: 1.05rem; opacity: .85; }
.ecard__top h3 { color: #fff; font-size: 1.5rem; margin-top: 4px; text-transform: uppercase; letter-spacing: .01em; }
.ecard__tag {
  position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.16);
  font-family: var(--sans); font-weight: 800; font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
}
.ecard__body { padding: 20px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.ecard__body p { margin: 0 0 16px; font-size: .98rem; }
.ecard__meta { margin-top: auto; display: flex; align-items: center; gap: 9px; font-weight: 700;
  color: var(--sky-deep); font-size: .86rem; }

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

/* =========================================================
   GALLERY GRID
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.gtile { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--sky); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .25s ease; }
.gtile:hover { transform: scale(1.04) translateY(-4px); }
.gtile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gtile:hover img { transform: scale(1.08); }
.gtile__label {
  position: absolute; inset: auto 0 0 0; padding: 28px 0 22px;
  background: linear-gradient(transparent, rgba(14,74,53,.82));
  color: #fff; text-align: center; font-family: var(--serif); font-weight: 800; font-size: 1.4rem;
}
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* placeholder photo */
.ph {
  background-image: repeating-linear-gradient(45deg, var(--sky-light) 0 12px, #e3eef6 12px 24px);
  display: grid; place-items: center; color: var(--sky-deep);
  font-family: ui-monospace, monospace; font-size: .72rem; letter-spacing: .04em; text-align: center; padding: 10px;
}

/* =========================================================
   BRIDGE (officers)
   ========================================================= */
.bridge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.officer {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px;
  border-left: 4px solid var(--sky); transition: border-color .25s ease, transform .2s ease;
}
.officer:hover { border-left-color: var(--green); transform: translateX(3px); }
.officer .role { font-family: var(--sans); font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  font-size: .72rem; color: var(--sky-deep); }
.officer .name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); margin-top: 3px; }
.bridge-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 46px; }
.bridge-cols h3 { text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.roster { list-style: none; margin: 0; padding: 0; }
.roster li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .98rem; }
.roster li span:first-child { color: var(--body); }
.roster li span:last-child { font-weight: 800; color: var(--ink); }
@media (max-width: 860px) { .bridge-grid { grid-template-columns: 1fr; } .bridge-cols { grid-template-columns: 1fr; } }

/* =========================================================
   MEETINGS / VISIT
   ========================================================= */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.visit__info { background: #fff; padding: 52px; }
.visit__info h3 { font-size: 2rem; text-transform: uppercase; margin-bottom: 8px; }
.visit__rows { margin: 24px 0 30px; display: grid; gap: 18px; }
.visit__rows div { display: flex; gap: 14px; align-items: flex-start; }
.visit__rows .ic { color: var(--sky-deep); flex: none; margin-top: 2px; }
.visit__rows b { color: var(--ink); display: block; }
.visit__map { background: var(--sky-light); min-height: 340px; position: relative; }
.visit__map iframe { width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } .visit__info { padding: 36px; } }

/* =========================================================
   JOIN / CONTACT
   ========================================================= */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: #DCEDE5; }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.6); }
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.16); }
.join__aside .script { font-size: 3.4rem; }
.join__big { font-family: var(--serif); font-weight: 800; color: #fff; font-size: clamp(2.4rem,5vw,3.6rem);
  text-transform: uppercase; line-height: 1; margin: 8px 0 20px; }
@media (max-width: 820px) { .join { grid-template-columns: 1fr; gap: 36px; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--green-deep); color: #BFD9CD; padding: 64px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; margin-bottom: 16px; font-family: var(--sans); font-weight: 800; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer__brand .brand__name { color: #fff; }
.footer__bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 30px; } }

.fb {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #fff;
  background: rgba(255,255,255,.12); padding: 12px 20px; border-radius: 999px; transition: background .2s ease;
}
.fb:hover { background: rgba(255,255,255,.22); }
