/* ==========================================================================
   THE ALLORA - PREMIUM STYLING SYSTEM
   ========================================================================== */

:root {
  /* Colors - The Duxberry Imperial Antique Gold & Forest Slate Shading Sequence */
  --bg-darker: #0b0e0d;
  --bg-dark: #111614;
  --bg-card: #171e1b;
  --bg-card-hover: #1e2623;
  
  --gold-primary: #cfa868;
  --gold-hover: #e0bd82;
  --gold-dark: #99753c;
  --gold-light: #f7f1e6;
  --gold-glow: rgba(207, 168, 104, 0.35);
  
  --text-primary: #ffffff;
  --text-secondary: #b9c2bd;
  --text-muted: #7b8882;
  
  --border-color: rgba(207, 168, 104, 0.15);
  --border-hover: rgba(207, 168, 104, 0.4);
  
  --glass-bg: rgba(17, 22, 20, 0.82);
  --glass-border: rgba(207, 168, 104, 0.12);
  --glass-shadow: rgba(0, 0, 0, 0.65);

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-darker);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: 0.03em;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(19, 24, 22, 0.95) 0%, rgba(11, 14, 13, 0.99) 90%),
    radial-gradient(circle at 90% 80%, rgba(207, 168, 104, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.heading-uppercase-spaced {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.75rem 0;
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 30px var(--glass-shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
  transition: var(--transition-smooth);
}

header.scrolled .nav-container {
  height: 65px;
}

/* Multi-page Navigation Menu */
.nav-menu {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links-wrapper {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--gold-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--gold-primary);
  text-shadow: 0 0 8px rgba(214, 159, 126, 0.2);
}

/* Mobile specific menu elements (hidden on desktop) */
.mobile-menu-header,
.mobile-drawer-footer {
  display: none;
}

/* Desktop header layout and CTA actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 1001;
  transition: var(--transition-fast);
  padding: 0.5rem;
}

.mobile-menu-toggle:hover {
  color: var(--gold-primary);
}

/* Logo handling: support image and text fallback */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  max-height: 55px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

header.scrolled .logo img {
  max-height: 42px;
}

/* Fallback if logo is text or missing image */
.logo-fallback {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-transform: uppercase;
  font-weight: 300;
}

.logo-fallback span {
  color: var(--gold-primary);
}

.logo-tagline {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-top: -3px;
}

/* Primary Button */
.btn-primary {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--gold-primary);
  padding: 0.9rem 2.2rem;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--gold-primary);
  z-index: -1;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  color: var(--bg-darker);
  box-shadow: 0 0 20px var(--gold-glow);
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-outline-text {
  background: none;
  border: none;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-outline-text:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 105vh;
  display: flex;
  align-items: center;
  padding-top: 160px;
  padding-bottom: 100px;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: filter 1s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(14, 11, 10, 0.2) 0%,
    rgba(22, 18, 16, 0.55) 60%,
    rgba(14, 11, 10, 0.9) 100%
  );
  z-index: 3;
}

/* Refined elegant visual placeholder for when no image is loaded */
.hero-bg-placeholder {
  background: 
    radial-gradient(ellipse at center, rgba(142, 115, 76, 0.15) 0%, rgba(10, 10, 10, 0.95) 80%),
    linear-gradient(135deg, #1c1a17 0%, #0d0d0c 100%);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Geometry pattern inside placeholder */
.hero-bg-placeholder::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(rgba(197, 168, 128, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 168, 128, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
  transform: rotate(15deg);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title-top {
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1.2rem;
}

.hero-title {
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.2;
}

.hero-main-title {
  display: block;
  font-size: clamp(1.4rem, 4.8vw, 3rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.hero-sub-title {
  display: block;
  font-weight: 400;
  font-size: clamp(1.8rem, 5.8vw, 3.8rem);
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-top: 0.4rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3.5rem auto;
  line-height: 1.8;
  font-weight: 300;
}

/* Stats / Banner Row */
.stats-banner {
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(197, 168, 128, 0.15);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

.stat-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
  letter-spacing: 0.1em;
}

/* Intro Section */
.intro-section {
  position: relative;
}

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

.intro-text-block h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.intro-text-block p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.intro-image-container {
  position: relative;
  aspect-ratio: 4/3;
}

.luxury-placeholder {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(24, 24, 24, 0.6) 0%, rgba(12, 12, 12, 0.8) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.luxury-placeholder::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(197, 168, 128, 0.08);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.luxury-placeholder:hover {
  border-color: var(--gold-primary);
  box-shadow: inset 0 0 30px rgba(197, 168, 128, 0.05);
}

.luxury-placeholder:hover::before {
  border-color: rgba(197, 168, 128, 0.3);
}

.placeholder-icon {
  font-size: 2.5rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  opacity: 0.6;
}

.placeholder-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.placeholder-subtext {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Details Section with Tabs */
.details-section {
  background-color: var(--bg-dark);
  position: relative;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -webkit-overflow-scrolling: touch;
}

.tabs-nav::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Safari and Chrome */
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1.1rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.tab-btn.active {
  color: var(--text-primary);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.8s ease forwards;
}

.tab-pane.active {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.detail-content h3 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.detail-content h4 {
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-bottom: 2rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.detail-content p {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.detail-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.detail-features li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.text-gold {
  color: var(--gold-primary);
}

/* Peace of Mind Section */
.specifications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.spec-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.spec-icon {
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.spec-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Call to Action Form */
.cta-section {
  position: relative;
  background-color: var(--bg-darker);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}

.cta-info h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.cta-showhouse-box {
  border-left: 2px solid var(--gold-primary);
  padding-left: 2rem;
  margin-top: 3rem;
}

.cta-showhouse-box h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.cta-showhouse-box p {
  font-size: 1.05rem;
  margin-bottom: 0;
  color: var(--text-primary);
}

/* Glass Registration Card */
.registration-card {
  background: rgba(24, 24, 24, 0.5);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  padding: 4rem 3.5rem;
  position: relative;
}

.registration-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 40px;
  height: 40px;
  border-top: 1px solid var(--gold-primary);
  border-left: 1px solid var(--gold-primary);
}

.registration-card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 40px;
  height: 40px;
  border-bottom: 1px solid var(--gold-primary);
  border-right: 1px solid var(--gold-primary);
}

.form-group {
  margin-bottom: 1.8rem;
}

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

.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.form-input {
  width: 100%;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(197, 168, 128, 0.2);
  padding: 1rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.1);
  background: rgba(10, 10, 10, 0.85);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox-label input {
  margin-top: 0.2rem;
  accent-color: var(--gold-primary);
}

/* Success State styling */
.form-success-message {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  animation: fadeIn 0.6s ease forwards;
}

.form-success-message h3 {
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.form-success-message p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Footer styling */
footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--gold-primary);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-copy a {
  color: var(--text-primary);
}

/* Animation utilities - Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Animations keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive styles */
@media (max-width: 1024px) {
  .intro-grid, .tab-pane.active, .cta-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .intro-image-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 1.5rem;
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }
  
  .specifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .section-padding {
    padding: 6rem 0;
  }
  
  .hero-section {
    padding-top: 80px;
  }
  
  .hero-main-title {
    font-size: clamp(1.2rem, 4.8vw, 2.2rem);
    letter-spacing: 0.2em;
    margin-bottom: 0.4rem;
  }
  
  .hero-sub-title {
    font-size: clamp(1.5rem, 5.8vw, 2.4rem);
    margin-top: 0.3rem;
  }
  
  .tabs-nav {
    justify-content: flex-start;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    gap: 1.5rem;
  }
  
  .tab-btn {
    font-size: 1.2rem;
  }
  
  .registration-card {
    padding: 3rem 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .logo img {
    max-height: 42px;
  }
  
  header.scrolled .logo img {
    max-height: 35px;
  }
  
  .nav-container {
    height: 75px;
  }
  
  header.scrolled .nav-container {
    height: 55px;
  }
  
  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
  
  .section-padding {
    padding: 4.5rem 0;
  }
  
  .hero-main-title {
    font-size: clamp(1.05rem, 5.2vw, 1.5rem);
    letter-spacing: 0.14em;
  }
  
  .hero-sub-title {
    font-size: clamp(1.35rem, 5.8vw, 1.85rem);
  }
  
  .hero-subtitle {
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .stat-item::after {
    display: none !important;
  }
  
  .specifications-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tab-btn {
    font-size: 1.05rem;
    padding: 0.4rem 0.8rem;
  }
  
  .registration-card {
    padding: 2.5rem 1.25rem;
  }
}

/* Mobile responsive menu overrides */
@media (max-width: 1024px) {
  .header-desktop-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 340px;
    max-width: 100%;
    height: 100vh;
    background-color: var(--bg-darker);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 2.5rem;
    z-index: 1050;
    transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
  }

  .nav-menu.mobile-active {
    right: 0;
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .mobile-menu-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-primary);
  }

  .mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.2rem;
    transition: var(--transition-fast);
  }

  .mobile-menu-close:hover {
    color: var(--gold-primary);
  }

  .nav-links-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.8rem;
    width: 100%;
  }

  .nav-link {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    text-transform: none;
    letter-spacing: 0.02em;
    width: 100%;
    padding: 0.2rem 0;
  }

  .nav-link::after {
    display: none;
  }

  .mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    width: 100%;
  }

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

  .mobile-drawer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    letter-spacing: 0.02em;
  }
}

/* ==========================================================================
   SUBPAGE STYLES & SPECIALTY COMPONENTS
   ========================================================================== */

/* Subpage Hero Section */
.subpage-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 180px;
  padding-bottom: 100px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-color);
}

.subpage-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(14, 11, 10, 0.35) 0%, rgba(14, 11, 10, 0.85) 100%);
  z-index: 1;
}

.subpage-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.subpage-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.subpage-hero-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  font-weight: 300;
}

/* Interactive Image Showcase (Grid Hover Effect) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.gallery-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
}

/* Timeline & Locations Styling */
.location-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: flex-start;
}

.location-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.location-item {
  border-left: 2px solid var(--border-color);
  padding-left: 2rem;
  transition: var(--transition-smooth);
}

.location-item:hover {
  border-left-color: var(--gold-primary);
}

.location-item h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.location-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
}

.location-time {
  display: inline-block;
  background: rgba(197, 168, 128, 0.1);
  color: var(--gold-primary);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* FAQ Accordion Styling */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.8rem 0;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
}

.faq-header:hover h3 {
  color: var(--gold-primary);
}

.faq-icon {
  font-size: 1rem;
  color: var(--gold-primary);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-header h3 {
  color: var(--gold-primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  padding-top: 1.2rem;
  font-weight: 300;
}

/* Interactive Match Questionnaire */
.quiz-container {
  max-width: 700px;
  margin: 4rem auto 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4rem 3.5rem;
  position: relative;
}

.quiz-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.05);
}

.quiz-progress-fill {
  width: 20%;
  height: 100%;
  background: var(--gold-primary);
  transition: width 0.5s ease;
}

.quiz-slide {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.quiz-slide.active {
  display: block;
}

.quiz-slide h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.quiz-option {
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(197, 168, 128, 0.2);
  padding: 1.2rem 1.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.quiz-option:hover {
  border-color: var(--gold-primary);
  background: rgba(197, 168, 128, 0.05);
  color: var(--text-primary);
}

.quiz-result-box {
  text-align: center;
  padding: 2rem 0;
}

.quiz-result-title {
  font-size: 2.2rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.quiz-result-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Scheduler & Booking Panel */
.booking-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: flex-start;
}

.booking-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4rem 3.5rem;
}

.picker-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: block;
}

.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.date-tile {
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(197, 168, 128, 0.15);
  padding: 1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.date-tile:hover {
  border-color: var(--gold-primary);
  background: rgba(197, 168, 128, 0.05);
}

.date-tile.selected {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--bg-darker);
}

.date-tile.selected .date-day-num,
.date-tile.selected .date-day-name {
  color: var(--bg-darker);
}

.date-day-num {
  font-size: 1.2rem;
  font-family: var(--font-serif);
  font-weight: bold;
  display: block;
}

.date-day-name {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.slot-tile {
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(197, 168, 128, 0.15);
  padding: 0.8rem;
  text-align: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.slot-tile:hover {
  border-color: var(--gold-primary);
}

.slot-tile.selected {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--bg-darker);
}

.slot-tile.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  border-color: transparent;
}

.spec-list-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.spec-list-table tr {
  border-bottom: 1px solid var(--border-color);
}

.spec-list-table td {
  padding: 1.2rem 0;
  vertical-align: middle;
}

.spec-list-table td:first-child {
  width: 40px;
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.spec-list-table td:last-child {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
}

@media (max-width: 1024px) {
  .gallery-grid, .location-showcase, .booking-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}
@media (max-width: 768px) {
  .quiz-container, .booking-panel {
    padding: 3rem 2rem;
  }
  .subpage-hero {
    min-height: 45vh;
    padding-top: 140px;
    padding-bottom: 60px;
  }
  .subpage-hero-content h1 {
    font-size: 2.8rem;
  }
}

/* Developer Trademark Brand Link */
.dev-brand-link {
  color: var(--gold-primary) !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.dev-brand-link i {
  font-size: 0.7rem;
  opacity: 0.8;
  transition: transform 0.3s ease;
}
.dev-brand-link:hover i {
  transform: translate(2px, -2px);
}

/* Interactive Photo-Rich Tab Carousel */
.tab-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--bg-darker);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  border: 1px solid var(--border-color);
}

.tab-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.tab-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.03);
}

.tab-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.tab-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tab-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1.8rem;
  background: linear-gradient(to top, rgba(11, 14, 13, 0.95), transparent);
  color: var(--text-primary);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.tab-slide-caption span {
  font-weight: 500;
  color: var(--gold-primary);
}

.tab-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(11, 14, 13, 0.7);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}

.tab-carousel-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-darker);
  border-color: var(--gold-primary);
}

.tab-carousel-btn.prev {
  left: 1rem;
}
.tab-carousel-btn.next {
  right: 1rem;
}

.tab-carousel-dots {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-dot.active {
  background: var(--gold-primary);
  width: 24px;
  border-radius: 4px;
}

/* Rich Exhibition Photo Gallery Grid */
.rich-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .rich-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .rich-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.rich-gallery-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.rich-gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.rich-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.rich-gallery-card:hover img {
  transform: scale(1.08);
}

.rich-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 14, 13, 0.9) 0%, rgba(11, 14, 13, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  opacity: 0.9;
  transition: opacity 0.4s ease;
}

.rich-gallery-card:hover .rich-gallery-overlay {
  opacity: 1;
}

.rich-gallery-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.rich-gallery-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 10, 9, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  margin-top: 1.2rem;
  color: var(--gold-primary);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}
.lightbox-close:hover {
  color: var(--gold-primary);
}



