/* ============================================================
   AURELIA OCEANIC — Private Sailing & Superyacht Society
   Design tokens & global styles (refactored from inline <style>)
   ============================================================ */

:root {
  --bg-deep: #06101e;
  --bg-navy: #0b1b32;
  --bg-card: #102442;
  --bg-glass: rgba(6, 16, 30, 0.85);
  --gold-primary: #c5a059;
  --gold-light: #e2c78b;
  --gold-dim: rgba(197, 160, 89, 0.25);
  --text-white: #f7f9fc;
  --text-muted: #9fb0c7;
  --border-subtle: rgba(197, 160, 89, 0.2);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Gold Accents & Typography */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--gold-primary);
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

.btn-primary {
  background: var(--gold-primary);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(197, 160, 89, 0.28);
}

.btn-outline {
  color: var(--gold-light);
  background: rgba(6, 16, 30, 0.45);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(197, 160, 89, 0.15);
  color: #fff;
  transform: translateY(-2px);
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 22px 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
}

.logo-mark svg {
  transform: rotate(-45deg);
  width: 18px;
  height: 18px;
  stroke: var(--gold-primary);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-white);
}

.logo-text span {
  color: var(--gold-primary);
  font-weight: 400;
}

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

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Language Selector */
.lang-wrapper {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 8px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  border-color: var(--gold-primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 145px;
  background: var(--bg-navy);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
}

.lang-wrapper.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.25s;
}

.lang-option:hover,
.lang-option.active {
  background: rgba(197, 160, 89, 0.14);
  color: var(--gold-light);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      115deg,
      rgba(6, 16, 30, 0.92) 0%,
      rgba(6, 16, 30, 0.68) 55%,
      rgba(6, 16, 30, 0.82) 100%
    ),
    url('../assets/hero-ocean.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: scale(1.03);
  animation: slowZoom 22s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.09);
  }
}

.hero-content {
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: 1.08;
  margin-bottom: 24px;
  color: #fff;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: #d2dceb;
  font-weight: 300;
  max-width: 650px;
  margin-bottom: 42px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* Stats Strip */
.stats-bar {
  background: var(--bg-navy);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  border-left: 1px solid var(--gold-dim);
  padding-left: 24px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* Section Base */
section {
  padding: 110px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fleet Showcase */
.fleet-tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 22px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.tab-btn.active {
  color: var(--gold-light);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.fleet-card {
  background: var(--bg-navy);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: var(--transition);
}

.fleet-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.fleet-img {
  height: 310px;
  overflow: hidden;
  position: relative;
}

.fleet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.fleet-card:hover .fleet-img img {
  transform: scale(1.06);
}

.fleet-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(6, 16, 30, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
}

.fleet-body {
  padding: 32px;
}

.fleet-body h3 {
  font-size: 1.85rem;
  margin-bottom: 10px;
  color: #fff;
}

.fleet-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-item span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spec-item strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* Dual Experiences */
.exp-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-navy) 100%);
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.exp-card {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.exp-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.9s ease;
}

.exp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 16, 30, 0.96) 15%, rgba(6, 16, 30, 0.35) 100%);
  z-index: 1;
}

.exp-card:hover img {
  transform: scale(1.05);
}

.exp-content {
  position: relative;
  z-index: 2;
}

.exp-content h3 {
  font-size: 2.1rem;
  margin-bottom: 14px;
  color: #fff;
}

.exp-content p {
  color: #d2dceb;
  font-size: 0.98rem;
  margin-bottom: 22px;
}

.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.route-tag {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
}

/* On Deck Gallery */
.deck-section {
  background: linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-deep) 100%);
}

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

.deck-card {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.deck-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s ease;
}

.deck-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 16, 30, 0.95) 18%, rgba(6, 16, 30, 0.25) 100%);
  z-index: 1;
}

.deck-card:hover {
  border-color: var(--gold-primary);
}

.deck-card:hover img {
  transform: scale(1.05);
}

.deck-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  z-index: 2;
}

.deck-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-primary);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.deck-content h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 10px;
}

.deck-content p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* Crew & Security */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.crew-card {
  background: var(--bg-navy);
  border: 1px solid var(--border-subtle);
  padding: 34px 26px;
  transition: var(--transition);
}

.crew-card:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card);
}

.crew-icon {
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 22px;
}

.crew-card h4 {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: #fff;
}

.crew-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Membership Table */
.membership-section {
  background: var(--bg-navy);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 22px 26px;
  text-align: left;
  border-bottom: 1px solid rgba(197, 160, 89, 0.14);
}

th {
  background: rgba(16, 36, 66, 0.7);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
}

th.highlight-col {
  background: rgba(197, 160, 89, 0.16);
  color: var(--gold-light);
  border-top: 2px solid var(--gold-primary);
}

td {
  font-size: 0.94rem;
  color: var(--text-muted);
}

td:first-child {
  color: var(--text-white);
  font-weight: 500;
}

td.highlight-col {
  background: rgba(197, 160, 89, 0.05);
  color: #fff;
}

.tier-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-top: 4px;
}

/* Inquiry & Booking Form */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.booking-info-box {
  background: var(--bg-navy);
  border: 1px solid var(--border-subtle);
  padding: 42px;
}

.booking-perks {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.booking-perks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.booking-perks li::before {
  content: '✦';
  color: var(--gold-primary);
  font-size: 0.9rem;
  margin-top: 2px;
}

.form-card {
  background: var(--bg-navy);
  border: 1px solid var(--border-subtle);
  padding: 44px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-deep);
  border: 1px solid rgba(197, 160, 89, 0.28);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 9, 18, 0.86);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-navy);
  border: 1px solid var(--gold-primary);
  max-width: 480px;
  width: 100%;
  padding: 46px 38px;
  text-align: center;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-box h3 {
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.modal-box p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.96rem;
}

/* Footer */
footer {
  background: #040b14;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 18px;
  max-width: 380px;
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 18px;
}

.footer-col p,
.footer-col li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid,
  .crew-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fleet-grid,
  .exp-grid,
  .deck-grid,
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-navy);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .stats-grid,
  .crew-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

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