/* Libraries Tunnelsy - Core Design System */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg-deep: #0A1118;       /* Deep Trench Ocean Navy */
  --color-surface-vault: #141E28; /* Subterranean Steel Slate */
  --color-text-foam: #F3F5F7;     /* Sea-Foam White */
  --color-text-muted: #A3B8CC;    /* Muted Steel */
  --color-brass: #C5A059;         /* Polished Nautical Brass */
  --color-water-glow: #2A6F8F;    /* Hydro Azure / Water Reflection Glow */
  --color-border: #1E2D3B;        /* Submerged Metal Gray */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg-deep);
  color: var(--color-text-foam);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border: 2px solid var(--color-bg-deep);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brass);
}

/* Typography Customizations */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text-foam);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Slim Submerged Header Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 17, 24, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem; /* Slimmer padding */
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem; /* Adjusted for slim layout */
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-brass);
  text-transform: uppercase;
}

.brand-logo svg {
  fill: var(--color-brass);
  width: 26px; /* Slimmer logo */
  height: 26px;
}

nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem; /* Tighter navigation gap */
}

nav.desktop-nav a {
  font-size: 0.8rem; /* Slightly smaller text for elite feel */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.25rem 0;
}

nav.desktop-nav a:hover, nav.desktop-nav a.active {
  color: var(--color-brass);
}

nav.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-brass);
  transition: var(--transition-smooth);
}

nav.desktop-nav a:hover::after, nav.desktop-nav a.active::after {
  width: 100%;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem; /* Sleeker slim padding */
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  color: var(--color-brass);
  border: 1px solid var(--color-brass);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: var(--color-brass);
  color: var(--color-bg-deep);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1010;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-foam);
  transition: var(--transition-smooth);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--color-bg-deep);
  border-left: 1px solid var(--color-border);
  z-index: 1005;
  padding: 6rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition-smooth);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer a {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-serif);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 75vh; /* Optimized hero height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-border);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10, 17, 24, 0.6) 0%, rgba(10, 17, 24, 0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero-subtitle-nautical {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-brass);
  margin-bottom: 1.5rem;
  display: block;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Key Specs Ribbon */
.specs-ribbon {
  background: var(--color-surface-vault);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 1rem;
}

.specs-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.spec-item .value {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-brass);
  display: block;
  margin-bottom: 0.25rem;
}

.spec-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* Section Styling */
.section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-muted);
}

/* Interactive Floorplan Navigator */
.floorplan-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  background: var(--color-surface-vault);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 968px) {
  .floorplan-container {
    grid-template-columns: 1fr;
  }
}

.floorplan-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.floorplan-tab {
  background: rgba(10, 17, 24, 0.5);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.floorplan-tab:hover, .floorplan-tab.active {
  border-color: var(--color-brass);
  background: rgba(42, 111, 143, 0.1);
  box-shadow: 0 0 15px rgba(42, 111, 143, 0.15);
}

.floorplan-tab h4 {
  color: var(--color-brass);
  margin-bottom: 0.25rem;
}

.floorplan-tab p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.floorplan-visual {
  border: 1px solid var(--color-border);
  background: #080D13;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 350px;
  padding: 2rem;
  overflow: hidden;
}

.blueprint-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  opacity: 0.85;
}

.floorplan-details {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(20, 30, 40, 0.9);
  padding: 1rem;
  border-left: 3px solid var(--color-brass);
}

/* Wing Showcase & Cards */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.wing-card {
  background: var(--color-surface-vault);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.wing-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-brass);
  box-shadow: 0 10px 30px rgba(42, 111, 143, 0.15);
}

.wing-image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.wing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.wing-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wing-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.wing-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.wing-link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-brass);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Specifications Table Style */
.spec-table-container {
  overflow-x: auto;
  margin: 3rem 0;
  border: 1px solid var(--color-border);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.spec-table th, .spec-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.spec-table th {
  background-color: var(--color-surface-vault);
  font-family: var(--font-serif);
  color: var(--color-brass);
  font-size: 1.1rem;
}

.spec-table tr:hover {
  background-color: rgba(30, 45, 59, 0.3);
}

/* Forms */
.booking-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 650px;
  margin: 0 auto;
  background: var(--color-surface-vault);
  border: 1px solid var(--color-border);
  padding: 3rem;
  border-radius: 4px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brass);
}

.form-control {
  background: var(--color-bg-deep);
  border: 1px solid var(--color-border);
  color: var(--color-text-foam);
  padding: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--color-brass);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
}

/* Interactive Floating Cookie Consent */
.cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 2rem;
  max-width: 420px;
  background: var(--color-surface-vault);
  border: 1px solid var(--color-brass);
  padding: 1.5rem;
  z-index: 2000;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner.show {
  bottom: 2rem;
}

@media (max-width: 576px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  background: var(--color-brass);
  color: var(--color-bg-deep);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.cookie-btn-accept:hover {
  background: var(--color-text-foam);
}

.cookie-btn-essential {
  background: transparent;
  color: var(--color-text-foam);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.cookie-btn-essential:hover {
  border-color: var(--color-text-foam);
}

.cookie-banner a {
  color: var(--color-brass);
  text-decoration: underline;
}

/* Global Footer Layout */
footer {
  background: #060B10;
  border-top: 1px solid var(--color-border);
  padding: 5rem 2rem 2rem 2rem;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

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

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

.footer-column h5 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--color-brass);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: var(--color-brass);
  padding-left: 4px;
}

.footer-brand-detail {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-contact-info {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.copyright-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Split Showcase Feature */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 968px) {
  .split-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.split-image-container {
  position: relative;
  border: 1px solid var(--color-border);
}

.split-image-container img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 450px;
}

.split-glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(35deg, rgba(42, 111, 143, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.success-notification {
  display: none;
  background: rgba(42, 111, 143, 0.2);
  border: 1px solid var(--color-brass);
  padding: 1.5rem;
  text-align: center;
  border-radius: 4px;
  margin-bottom: 2rem;
}

/* Content Expansions Classes */
.legal-sub-section {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.legal-sub-section h2 {
  font-size: 1.75rem;
  color: var(--color-brass);
  margin-bottom: 1rem;
}

.legal-sub-section h3 {
  font-size: 1.25rem;
  color: var(--color-text-foam);
  margin: 1rem 0 0.5rem 0;
}

.checklist-container {
  background: var(--color-surface-vault);
  border-left: 4px solid var(--color-brass);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.checklist-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-text-foam);
  margin-bottom: 1rem;
}

.checklist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.checklist-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-brass);
}

/* responsive adjustments */
@media (max-width: 968px) {
  .mobile-toggle {
    display: flex;
  }
  nav.desktop-nav {
    display: none;
  }
}