/* ============================================
   5Beach Club - Elegant Beach Club Website
   ============================================ */

:root {
  --sand: #f5f0e8;
  --sand-light: #faf7f2;
  --ocean: #1a5276;
  --ocean-deep: #0e2f44;
  --ocean-light: #2980b9;
  --sky: #5dade2;
  --driftwood: #8b7d6b;
  --driftwood-light: #a89a87;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --gold: #c9a84c;
  --gold-light: #ddc175;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.25);
}

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

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

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--sand-light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Copperplate', 'Copperplate Gothic Bold', 'Cinzel', serif;
  font-weight: 300;
  line-height: 1.2;
}

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

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

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

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-primary {
  background: var(--ocean);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ocean-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--ocean);
  border: 1px solid var(--ocean);
}

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

.btn-full {
  width: 100%;
  text-align: center;
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px var(--shadow);
  backdrop-filter: blur(10px);
}

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

.nav-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease;
}

.nav.scrolled .nav-logo img {
  filter: none;
}

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

.nav-links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s ease;
  position: relative;
}

.nav.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.5rem !important;
  border: 1px solid var(--white);
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--white);
  color: var(--ocean) !important;
}

.nav.scrolled .nav-cta {
  border-color: var(--ocean);
  color: var(--ocean) !important;
}

.nav.scrolled .nav-cta:hover {
  background: var(--ocean);
  color: var(--white) !important;
}

.nav-close {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.nav.scrolled .nav-toggle span {
  background: var(--text);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 47, 68, 0.4) 0%,
    rgba(14, 47, 68, 0.2) 40%,
    rgba(14, 47, 68, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero-logo {
  height: 80px;
  margin: 0 auto 1.5rem;
  filter: brightness(0) invert(1);
}

.hero-tagline {
  font-family: 'Copperplate', 'Copperplate Gothic Bold', 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

.hero-sub {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  opacity: 0.6;
  animation: bob 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Sections ---- */

.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 3rem;
  color: var(--ocean-deep);
}

.section-header-light h2 {
  color: var(--white);
}

.section-header-light .section-label {
  color: var(--gold-light);
}

.header-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto 0;
}

.section-intro {
  max-width: 600px;
  margin: 1.5rem auto 0;
  font-size: 1rem;
  color: var(--text-light);
  text-align: center;
}

.section-header-light .section-intro {
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Experience ---- */

.experience {
  background: var(--white);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.experience-text .lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ocean);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.experience-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.experience-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  box-shadow: 20px 20px 0 var(--sand);
}

/* ---- Image Break ---- */

.image-break {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-break-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 47, 68, 0.5);
}

.image-break-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.image-break blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  text-align: center;
  max-width: 700px;
  line-height: 1.5;
}

/* ---- Story ---- */

.story {
  background: var(--sand-light);
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.story-col p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ---- Amenities ---- */

.amenities {
  position: relative;
  overflow: hidden;
}

.amenities-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
}

.amenities .container {
  position: relative;
  z-index: 2;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.amenity-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
}

.amenity-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.amenity-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  color: var(--gold-light);
}

.amenity-icon svg {
  width: 100%;
  height: 100%;
}

.amenity-card h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.amenity-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* ---- Membership ---- */

.membership {
  background: var(--white);
}

.membership-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.membership-card {
  border: 1px solid #e0dcd5;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  background: var(--sand-light);
  transition: all 0.4s ease;
}

.membership-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px var(--shadow);
}

.membership-card-featured {
  background: var(--ocean-deep);
  border-color: var(--ocean-deep);
  color: var(--white);
  transform: scale(1.05);
}

.membership-card-featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.membership-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1.2rem;
}

.membership-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  display: block;
  margin-bottom: 1rem;
}

.membership-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.25rem;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.price-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
}

.price-period {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2rem;
}

.membership-card-featured .price-period {
  color: rgba(255, 255, 255, 0.6);
}

.membership-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.membership-features li {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-left: 1.5rem;
  position: relative;
}

.membership-card-featured .membership-features li {
  border-color: rgba(255, 255, 255, 0.1);
}

.membership-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

.membership-note {
  text-align: center;
  margin-top: 3rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ocean);
}

/* ---- Contact ---- */

.contact {
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.25);
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  outline: none;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form select {
  color: rgba(255, 255, 255, 0.5);
  appearance: none;
  cursor: pointer;
}

.contact-form select option {
  background: var(--ocean-deep);
  color: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}

.contact-form .btn {
  margin-top: 0.5rem;
}

.form-success {
  text-align: center;
  color: var(--gold-light);
  margin-top: 1rem;
  font-style: italic;
}

/* ---- Footer ---- */

.footer {
  background: var(--ocean-deep);
  color: var(--white);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-logo {
  height: 50px;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.footer-location {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 2rem;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2rem;
  opacity: 0.5;
}

.footer-legal {
  font-size: 0.7rem;
  opacity: 0.4;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.footer-copy {
  font-size: 0.7rem;
  opacity: 0.3;
}

.footer-credit {
  font-size: 0.7rem;
  opacity: 0.3;
  margin-top: 0.35rem;
}

.footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- April Fools Banner ---- */

/* Ensure confetti canvas renders above the overlay */
canvas {
  z-index: 10000 !important;
}

.af-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(14, 47, 68, 0.85);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.af-modal {
  background: var(--sand-light);
  max-width: 480px;
  width: 100%;
  padding: 3.5rem 3rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.af-heading {
  font-size: 2.5rem;
  color: var(--ocean-deep);
  margin-bottom: 1.25rem;
}

.af-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.af-form {
  width: 100%;
  margin-bottom: 1.25rem;
}

.af-form textarea,
.af-form input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid #e0dcd5;
  outline: none;
  transition: border-color 0.3s ease;
  margin-bottom: 0.75rem;
  resize: none;
}

.af-form textarea::placeholder,
.af-form input[type="email"]::placeholder {
  color: var(--driftwood-light);
}

.af-form textarea:focus,
.af-form input[type="email"]:focus {
  border-color: var(--gold);
}

.af-form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.af-form-row input {
  margin-bottom: 0;
}

.af-success {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ocean);
  margin-bottom: 1.25rem;
}

.af-share {
  margin-top: 2rem;
  border-top: 1px solid #e0dcd5;
  padding-top: 1.5rem;
}

.af-share-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--driftwood-light);
  margin-bottom: 1rem;
}

.af-share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.af-share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--driftwood);
  transition: color 0.2s ease;
  text-decoration: none;
}

.af-share-btn:hover {
  color: var(--ocean);
}

.af-share-btn svg {
  width: 22px;
  height: 22px;
}

.af-share-btn span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.af-skip {
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--driftwood-light);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.af-skip:hover {
  color: var(--text-light);
}

/* ---- Animations ---- */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .section-header h2 {
    font-size: 2.5rem;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--ocean-deep);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s ease;
    z-index: 1002;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    opacity: 0.7;
  }

  .nav-close:hover {
    opacity: 1;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
  }

  .nav-overlay.open {
    display: block;
  }

  .nav-links a {
    color: var(--white) !important;
    font-size: 0.85rem;
  }

  .nav-cta {
    border-color: var(--white) !important;
    color: var(--white) !important;
    white-space: nowrap;
  }

  .hero-logo {
    height: 55px;
  }

  .hero-tagline {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
  }

  .hero-sub {
    font-size: 0.85rem;
  }

  .hero-sub br {
    display: none;
  }

  .section {
    padding: 5rem 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header h2 br {
    display: none;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .experience-image img {
    height: 350px;
    box-shadow: 10px 10px 0 var(--sand);
  }

  .story-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .image-break blockquote {
    font-size: 1.4rem;
  }

  .membership-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .membership-card-featured {
    transform: none;
    order: -1;
  }

  .membership-card-featured:hover {
    transform: translateY(-4px);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .hero-logo {
    height: 45px;
  }

  .btn {
    padding: 0.85rem 2rem;
    font-size: 0.7rem;
  }
}
