/* ==========================================================================
   Azuron Society — National Day of Seborga Experience
   Custom design layer on top of Tailwind (CDN utility classes handle layout)
   ========================================================================== */

:root {
  --navy: #0b1220;
  --navy-deep: #070c16;
  --ivory: #f6f1e6;
  --gold: #c9a961;
  --gold-light: #e6d4a3;
  --stone: #a99a82;
  --black: #0a0a0a;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy);
  color: var(--ivory);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------------------
   Intro mark reveal — briefly masks the page while it loads, then
   dissolves to reveal a fully-rendered site (no separate FOUC fade needed)
   ---------------------------------------------------------------------- */
#intro-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease;
}
#intro-loader.hide {
  opacity: 0;
  pointer-events: none;
}
#intro-loader .intro-mark {
  width: 56px;
  height: 56px;
  color: var(--gold);
  opacity: 0;
  transform: scale(0.9);
  animation: introMarkReveal 1.4s ease forwards;
}
@keyframes introMarkReveal {
  0%   { opacity: 0; transform: scale(0.9); }
  55%  { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #intro-loader .intro-mark {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }
}

h1, h2, h3, h4, .font-serif-luxury {
  font-family: "Playfair Display", serif;
}

/* Every section anchor needs room for the fixed header when jumped to */
section[id] {
  scroll-margin-top: 100px;
}

/* ----------------------------------------------------------------------
   Film grain — breaks the flatness of rendered gradients/photos
   ---------------------------------------------------------------------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ----------------------------------------------------------------------
   Unified photo grade — ties mixed-source photography into one palette
   ---------------------------------------------------------------------- */
img,
#hero .hero-bg,
.quote-interlude {
  filter: saturate(0.9) contrast(1.06) brightness(0.97) sepia(0.05);
}

/* ----------------------------------------------------------------------
   Accessibility
   ---------------------------------------------------------------------- */
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .quote-interlude {
    background-attachment: scroll !important;
  }
}

/* ----------------------------------------------------------------------
   Gold accent divider
   ---------------------------------------------------------------------- */
.divider-gold {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  position: relative;
}
.divider-gold::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 6px;
  height: 6px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold);
}
.divider-gold.center {
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------------------
   Reveal-on-scroll animation
   ---------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.in-view { transition-delay: 0.1s; }
.reveal-delay-2.in-view { transition-delay: 0.2s; }
.reveal-delay-3.in-view { transition-delay: 0.3s; }
.reveal-delay-4.in-view { transition-delay: 0.4s; }

/* ----------------------------------------------------------------------
   Header
   ---------------------------------------------------------------------- */
#site-header {
  transition: background-color 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease, padding 0.4s ease;
  background-color: transparent;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background-color: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.6);
}

.header-inner {
  transition: height 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#site-header.scrolled .header-inner {
  height: 4.25rem !important;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  z-index: 60;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background-color: var(--navy-deep);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mobile-menu-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(201, 169, 97, 0.16);
  color: var(--ivory);
  opacity: 0;
  transform: translateY(10px);
  transition: color 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu-overlay.open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-overlay.open .mobile-menu-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu-overlay.open .mobile-menu-link:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu-overlay.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.open .mobile-menu-link:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu-overlay.open .mobile-menu-link:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu-link:active {
  color: var(--gold);
}
.mobile-menu-link-num {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.8;
}

.nav-link {
  position: relative;
  color: var(--ivory);
  opacity: 0.85;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.nav-link:hover {
  opacity: 1;
}
.nav-link:hover::after {
  width: 100%;
}

.btn-gold, .btn-outline-gold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-gold::before, .btn-outline-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}
.btn-gold:hover::before, .btn-outline-gold:hover::before {
  left: 130%;
}
.btn-gold:hover, .btn-outline-gold:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, filter 0.35s ease;
  box-shadow: 0 8px 24px -10px rgba(201, 169, 97, 0.55);
}
.btn-gold::before {
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
}
.btn-gold:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 32px -12px rgba(201, 169, 97, 0.7);
}

.btn-outline-gold {
  border: 1px solid rgba(201, 169, 97, 0.6);
  color: var(--ivory);
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.btn-outline-gold::before {
  background: linear-gradient(120deg, transparent, rgba(201,169,97,0.3), transparent);
}
.btn-outline-gold:hover {
  background: rgba(201, 169, 97, 0.1);
  border-color: var(--gold);
}

/* ----------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg-parallax {
  position: absolute;
  inset: -15% 0;
}
#hero .hero-bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center 32%;
  animation: droneDrift 75s ease-in-out infinite alternate;
}
@keyframes droneDrift {
  0%   { transform: scale(1.04) translate(0%, 0%); }
  50%  { transform: scale(1.07) translate(-0.6%, 0.4%); }
  100% { transform: scale(1.05) translate(0.4%, -0.4%); }
}
@media (prefers-reduced-motion: reduce) {
  #hero .hero-bg {
    animation: none;
    transform: scale(1.1);
  }
}
#hero .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,12,22,0.55) 0%, rgba(7,12,22,0.45) 40%, rgba(7,12,22,0.85) 100%),
    linear-gradient(90deg, rgba(7,12,22,0.55) 0%, rgba(7,12,22,0.1) 45%, rgba(7,12,22,0.1) 55%, rgba(7,12,22,0.55) 100%);
}
.hero-kicker {
  letter-spacing: 0.35em;
}
.scroll-cue {
  animation: floatCue 2.6s ease-in-out infinite;
}
@keyframes floatCue {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ----------------------------------------------------------------------
   Editorial list row — shared rhythm for Highlights / Who This Is For
   ---------------------------------------------------------------------- */
.highlight-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(201, 169, 97, 0.16);
}
.highlight-row.last {
  border-bottom: 1px solid rgba(201, 169, 97, 0.16);
}
.highlight-num {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  opacity: 0.75;
  line-height: 1.4;
}
.highlight-bullet {
  width: 7px;
  height: 7px;
  margin-top: 0.65rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.who-row {
  padding: 1.15rem 0;
  border-top: 1px solid rgba(201, 169, 97, 0.16);
  color: rgba(246, 241, 230, 0.8);
  font-size: 0.95rem;
}
.who-row.last {
  border-bottom: 1px solid rgba(201, 169, 97, 0.16);
}

/* ----------------------------------------------------------------------
   Ticket list — no icon bullets, receipt-style hairline rows
   ---------------------------------------------------------------------- */
.ticket-list li {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(201, 169, 97, 0.14);
  color: rgba(246, 241, 230, 0.8);
  font-size: 0.925rem;
}
.ticket-list li:first-child {
  border-top: none;
}
.ticket-tag {
  display: inline-block;
  width: fit-content;
  border: 1px solid rgba(201, 169, 97, 0.55);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.45em 1em;
}

.pricing-tier-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(201, 169, 97, 0.14);
}
.pricing-tier-row:first-child {
  border-top: none;
}
.pricing-tier-row .tier-label {
  color: rgba(246, 241, 230, 0.8);
  font-size: 0.925rem;
}
.pricing-tier-row .tier-price {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: 1.1rem;
}

/* ----------------------------------------------------------------------
   Cinematic quote interlude
   ---------------------------------------------------------------------- */
.quote-interlude {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .quote-interlude {
    background-attachment: scroll;
  }
}
.quote-interlude::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 22, 0.8);
}

/* ----------------------------------------------------------------------
   Itinerary timeline
   ---------------------------------------------------------------------- */
.timeline-line {
  background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
  width: 1px;
}
.timeline-num {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
  background: var(--navy);
  padding: 0 0.5em;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------------------
   Gallery — curated bento grid (deliberate mosaic, not organic masonry)
   ---------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 1rem;
}
@media (min-width: 768px) {
  .bento-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
}
.bento-item.big { grid-column: span 2; grid-row: span 2; }
.bento-item.wide { grid-column: span 2; grid-row: span 1; }
.bento-item.tall { grid-column: span 1; grid-row: span 2; }
@media (max-width: 767px) {
  .bento-item.tall { grid-row: span 1; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 97, 0.2);
  height: 100%;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.7s cubic-bezier(0.2,0.7,0.2,1), filter 0.7s ease;
  filter: saturate(0.86) contrast(1.06) brightness(0.92) sepia(0.05);
}
.gallery-item:hover img {
  transform: scale(1.07);
  filter: saturate(0.95) contrast(1.05) brightness(1) sepia(0.04);
}
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(0deg, rgba(7,12,22,0.92), rgba(7,12,22,0));
  transform: translateY(12px);
  opacity: 0;
  transition: all 0.4s ease;
}
.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* ----------------------------------------------------------------------
   FAQ accordion
   ---------------------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}
.faq-question {
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
  transition: transform 0.35s ease;
}
details[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer-wrap {
  overflow: hidden;
}

/* ----------------------------------------------------------------------
   Form
   ---------------------------------------------------------------------- */
.lux-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201, 169, 97, 0.28);
  color: var(--ivory);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.lux-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.05);
}
.lux-input::placeholder {
  color: rgba(246,241,230,0.4);
}

/* ----------------------------------------------------------------------
   Misc
   ---------------------------------------------------------------------- */
.bg-noise-fade {
  background: radial-gradient(ellipse at 50% 0%, rgba(201,169,97,0.06), transparent 60%);
}
::selection {
  background: rgba(201,169,97,0.35);
  color: var(--ivory);
}

/* ----------------------------------------------------------------------
   Gallery lightbox
   ---------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(7, 12, 22, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  padding: 2rem;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: min(88vw, 1100px);
  max-height: 72vh;
  object-fit: contain;
  border: 1px solid rgba(201, 169, 97, 0.3);
  filter: saturate(0.9) contrast(1.06) brightness(0.97) sepia(0.05);
}
.lightbox-caption {
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-style: italic;
  margin-top: 1.5rem;
  font-size: 1.05rem;
  text-align: center;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(7,12,22,0.4);
  border: 1px solid rgba(201, 169, 97, 0.4);
  color: var(--ivory);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 97, 0.1);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.1rem; }
  .lightbox-close { top: 1rem; right: 1rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ----------------------------------------------------------------------
   Hero headline — staggered word reveal
   ---------------------------------------------------------------------- */
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.word {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  animation: wordReveal 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 0.06s + 0.2s);
}
@keyframes wordReveal {
  to { transform: translateY(0); opacity: 1; }
}
