/* ==========================================================================
   ELEVARE111 — Luxury Cinematic Experience
   Black & white splash + deep cobalt blue accents
   ========================================================================== */

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

:root {
  --cobalt: #0a2e6e;
  --cobalt-light: #1a4a9e;
  --cobalt-glow: rgba(20, 60, 180, 0.35);
  --cobalt-subtle: rgba(15, 40, 140, 0.15);
  --dark: #050508;
  --dark-card: #0a0a10;
  --text-primary: #eaf0ff;
  --text-secondary: rgba(200, 215, 240, 0.6);
  --text-muted: rgba(180, 200, 230, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --serif-elegant: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

::selection {
  background: rgba(20, 60, 180, 0.3);
  color: #fff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.85) 0%, rgba(5, 5, 8, 0) 100%);
  transition: background 0.4s ease;
  pointer-events: none;
}

.site-header.scrolled {
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px;
  pointer-events: all;
}

/* Nav brand — diamond icon linking to Home */
.nav-brand {
  display: flex;
  align-items: center;
  color: #fff;
  transition: opacity 0.3s ease;
}

.nav-brand:hover {
  opacity: 0.75;
}

.nav-diamond {
  display: block;
  filter: drop-shadow(0 0 3px rgba(60, 120, 220, 0.3));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cobalt-light);
  box-shadow: 0 0 6px var(--cobalt-glow);
}

.nav-social {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-social:hover {
  color: #fff;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:first-child {
  transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle.open span:last-child {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-link {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: #fff;
}

.mobile-menu-social {
  color: rgba(255, 255, 255, 0.4);
  margin-top: 16px;
  transition: color 0.3s ease;
}

.mobile-menu-social:hover {
  color: #fff;
}

/* ==========================================================================
   Buttons — Deep Cobalt Blue Glow
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 16px 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  border-color: rgba(20, 60, 180, 0.4);
  background: rgba(10, 30, 80, 0.15);
}

.btn--primary:hover {
  border-color: rgba(30, 80, 200, 0.7);
  background: rgba(15, 40, 140, 0.25);
  box-shadow: 0 0 30px rgba(20, 60, 180, 0.2), 0 0 60px rgba(20, 60, 180, 0.08);
  color: #fff;
}

.btn--secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
}

.btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.04);
  color: #fff;
}

.btn--form {
  width: 100%;
  margin-top: 8px;
}

/* ==========================================================================
   Fade-in Animation
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

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

/* ==========================================================================
   Hero — Full Screen Cinematic Splash
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/water-splash.jpg') center/cover no-repeat;
  z-index: 1;
}

/* Cinematic vignette overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(5, 5, 8, 0.5) 80%),
    linear-gradient(to bottom, rgba(5, 5, 8, 0.15) 0%, transparent 30%, transparent 60%, rgba(5, 5, 8, 0.6) 100%);
  z-index: 1;
}

/* Hero note below button */
.hero-note {
  font-family: var(--serif);
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 20px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   French Riviera Elements — Elegant Playfair Display
   ========================================================================== */

/* Hero Riviera tagline — subtle, elegant */
.riviera-tagline {
  font-family: var(--serif-elegant);
  font-size: clamp(0.72rem, 1.3vw, 0.88rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.14em;
  color: rgba(160, 190, 255, 0.35);
  margin-bottom: 44px;
  text-shadow: 0 1px 18px rgba(10, 46, 255, 0.12);
  position: relative;
  animation: riviera-reveal 2.5s ease-out 0.8s both;
}

@keyframes riviera-reveal {
  0% {
    opacity: 0;
    letter-spacing: 0.3em;
  }
  100% {
    opacity: 1;
    letter-spacing: 0.14em;
  }
}

.riviera-tagline::before,
.riviera-tagline::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(160, 190, 255, 0.25), transparent);
  vertical-align: middle;
  margin: 0 14px;
}

/* Riviera accent text — used in Join, Vision, Access sections */
.riviera-accent {
  font-family: var(--serif-elegant);
  font-size: clamp(0.7rem, 1.1vw, 0.82rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.1em;
  color: rgba(160, 190, 255, 0.28);
  margin-bottom: 32px;
  text-shadow: 0 1px 12px rgba(10, 46, 255, 0.08);
}

.riviera-accent--access {
  margin-top: 20px;
  margin-bottom: 0;
}

/* Vision Riviera poem line — softer, distinctive */
.vision-line--riviera {
  font-family: var(--serif-elegant);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: rgba(160, 190, 255, 0.35);
  line-height: 2;
}

/* Footer Riviera whisper */
.footer-riviera {
  font-family: var(--serif-elegant);
  font-size: 0.58rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.12em;
  color: rgba(160, 190, 255, 0.15);
  margin-top: 4px;
}

/* ==========================================================================
   Hero Content — overlaid on splash
   ========================================================================== */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Staggered entrance — each element fades in gracefully */
@keyframes hero-fade-up {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Diamond symbol above brand name */
.hero-diamond {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 0 6px rgba(40, 80, 200, 0.25));
  animation: hero-fade-up 1.2s ease-out 0.1s both;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
  animation: hero-fade-up 1.2s ease-out 0.25s both;
}

.hero-title-num {
  display: inline;
  letter-spacing: 0.12em;
  margin-left: 0.02em;
  font-weight: 300;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
  animation: hero-fade-up 1.2s ease-out 0.4s both;
}

.hero-subtext {
  font-family: var(--serif);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
  animation: hero-fade-up 1.2s ease-out 0.55s both;
}

/* Two CTA buttons side by side */
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: hero-fade-up 1.2s ease-out 0.85s both;
}

.hero-note {
  animation: hero-fade-up 1.2s ease-out 1s both;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  animation: scroll-fade 2s ease-in-out infinite;
}

@keyframes scroll-fade {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 0.8; transform: scaleY(1); }
}

/* ==========================================================================
   Join Section (Home page — below hero)
   ========================================================================== */
.join-section {
  background: var(--dark);
  padding: 120px 24px;
  text-align: center;
  position: relative;
}

.join-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(20, 60, 180, 0.3), transparent);
}

.join-inner {
  max-width: 520px;
  margin: 0 auto;
}

.join-heading {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.join-form {
  max-width: 440px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-row input::placeholder {
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.form-row input:focus {
  border-color: rgba(20, 60, 180, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Vision Page — Hero
   ========================================================================== */
.vision-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.vision-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.vision-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: contrast(1.2) brightness(0.6);
}

.vision-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 5, 8, 0.3) 0%, rgba(5, 5, 8, 0.7) 100%);
  z-index: 1;
}

.vision-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
}

.vision-hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

/* ==========================================================================
   Vision Page — Body (Poetic, minimal)
   ========================================================================== */
.vision-body {
  background: var(--dark);
  padding: 120px 24px 80px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.vision-poem {
  margin-bottom: 64px;
}

.vision-line {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Vision Page — Closing
   ========================================================================== */
.vision-closing {
  background: var(--dark);
  padding: 20px 24px 140px;
  text-align: center;
}

.vision-closing-inner {
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Access Page
   ========================================================================== */
.access-page {
  min-height: 100vh;
  background: var(--dark);
  padding: 140px 24px 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.access-bg-accent {
  position: absolute;
  top: 0;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(20, 60, 180, 0.06) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.access-content {
  max-width: 520px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.access-intro {
  text-align: center;
  margin-bottom: 56px;
}

.access-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}

.access-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cobalt-light), transparent);
  margin: 0 auto;
}

/* Access form */
.access-form-wrap {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-subtle);
  padding: 48px 40px;
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field label {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  outline: none;
  resize: none;
  transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(20, 60, 180, 0.5);
}

.form-field textarea {
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  margin-top: 4px;
  min-height: 100px;
}

.form-field textarea:focus {
  border-color: rgba(20, 60, 180, 0.5);
}

/* Form success message */
.form-success {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  color: rgba(200, 218, 240, 0.7);
  padding: 40px 0;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 60px 24px 40px;
  background: var(--dark);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-link {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-social a {
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
  display: flex;
}

.footer-social a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-copy {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.15);
  margin-top: 8px;
}

/* ==========================================================================
   Responsive — Mobile identical in feel
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .nav {
    padding: 20px 24px;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.2rem);
    letter-spacing: 0.18em;
  }

  .hero-subtext {
    margin-bottom: 12px;
  }

  .riviera-tagline {
    font-size: clamp(0.65rem, 2.5vw, 0.78rem);
    margin-bottom: 32px;
  }

  .riviera-tagline::before,
  .riviera-tagline::after {
    width: 20px;
    margin: 0 10px;
  }

  .btn {
    padding: 14px 36px;
    font-size: 0.65rem;
  }

  /* Buttons stack on mobile */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .hero-buttons .btn {
    width: 260px;
    text-align: center;
  }

  .hero-note {
    margin-top: 16px;
  }

  /* Join */
  .join-section {
    padding: 100px 24px;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  /* Vision */
  .vision-hero {
    height: 50vh;
    min-height: 320px;
  }

  .vision-body {
    padding: 80px 24px 60px;
  }

  .vision-closing {
    padding: 20px 24px 100px;
  }

  .vision-line--riviera {
    font-size: clamp(0.9rem, 3.5vw, 1.2rem);
  }

  /* Access */
  .access-page {
    padding: 120px 20px 60px;
  }

  .access-form-wrap {
    padding: 36px 24px;
  }

  /* Footer */
  .footer-links {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.8rem, 12vw, 2.6rem);
  }

  .hero-buttons .btn {
    width: 240px;
    padding: 13px 28px;
  }

  .riviera-tagline {
    font-size: clamp(0.6rem, 3vw, 0.72rem);
    margin-bottom: 28px;
  }

  .riviera-tagline::before,
  .riviera-tagline::after {
    width: 16px;
    margin: 0 8px;
  }

  .join-section {
    padding: 80px 20px;
  }

  .vision-hero {
    height: 45vh;
    min-height: 280px;
  }

  .vision-body {
    padding: 60px 20px 40px;
  }

  .vision-poem {
    margin-bottom: 48px;
  }

  .vision-line--riviera {
    font-size: clamp(0.85rem, 4vw, 1.1rem);
  }

  .access-page {
    padding: 110px 16px 50px;
  }

  .access-form-wrap {
    padding: 28px 18px;
  }

  .access-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .scroll-indicator {
    bottom: 24px;
  }
}

/* ==========================================================================
   Accessibility — Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .scroll-line {
    animation: none;
    opacity: 0.5;
  }

  .hero-diamond,
  .hero-title,
  .hero-headline,
  .hero-subtext,
  .hero-buttons,
  .hero-note,
  .riviera-tagline {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
