/* 
  The Five Bells - Core Design System 
  Palette & Typography strictly aligned with provided brand guidelines 
*/

:root {
  /* Brand Palette */
  --navy:        #0D1F4E;
  --navy-2:      #162660;
  --royal:       #2351C8;
  --royal-2:     #3566E0;
  --pale-blue:   #E4EEF8;
  --pale-blue2:  #C8DDEF;
  --pale-blue3:  #EBF3FA;
  --sky:         #4A9BD4;
  --white:       #FFFFFF;
  --off-white:   #F7F9FC;
  --grey:        #8A97A8;
  --light-grey:  #EEF1F6;
  --text:        #1E2D4A;
  --text-light:  #5A6880;
  --border:      #D4E0EE;
  --border-2:    #E8EFF8;

  /* Typography */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Outfit', sans-serif;

  /* Cinematic Variables */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(13, 31, 78, 0.05);
  --shadow-md: 0 8px 24px rgba(13, 31, 78, 0.08);
  --shadow-lg: 0 16px 48px rgba(13, 31, 78, 0.12);
  --shadow-glow: 0 0 60px rgba(74, 155, 212, 0.15);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

.heading-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.heading-title span {
  font-style: italic;
  color: var(--royal);
}

.heading-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
}

/* Layout Helpers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  border: 1px solid var(--navy);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--royal);
  border-color: var(--royal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo span {
  color: var(--royal);
  font-style: italic;
}

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

.nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--royal);
  transition: var(--transition-fast);
}

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

.nav-link:hover::after {
  width: 100%;
}

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

.phone-btn {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.phone-btn:hover {
  color: var(--royal);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Image Links with Hover */
.image-card-link {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  text-decoration: none;
}

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

.image-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  pointer-events: none;
}

.image-card-link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

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

.image-card-link:hover::after {
  border-color: var(--royal);
}

/* Eyebrow Badge */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--pale-blue);
  color: var(--navy);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--royal);
  border-radius: 50%;
}

/* Split Layout for Booking Page */
.split {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.split-left {
  flex: 0 0 45%;
  background: var(--navy);
  color: var(--white);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.split-left::before {
  content: "";
  position: absolute;
  top: -20%; left: -20%;
  width: 700px; height: 700px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.split-left::after {
  content: "";
  position: absolute;
  bottom: -10%; right: -10%;
  width: 400px; height: 400px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.split-left .left-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: auto;
  z-index: 1;
}

.split-left .left-logo span {
  font-style: italic;
  color: var(--sky);
}

.split-left .left-content {
  z-index: 1;
  max-width: 440px;
}

.split-left .left-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-family: var(--font-serif);
  color: var(--white);
}

.split-left .left-title span.accent {
  font-style: italic;
  color: var(--sky);
}

.split-left .left-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--pale-blue2);
  margin-bottom: 40px;
}

.split-left .testimonial {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 24px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--sky);
}

.split-left .testimonial-stars {
  color: var(--sky);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.split-left .testimonial-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--white);
}

.split-right {
  flex: 1;
  background: var(--off-white);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.form-container {
  width: 100%;
  max-width: 500px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.form-header {
  margin-bottom: 30px;
}

.form-header h2 {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-header p {
  color: var(--text-light);
  font-size: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--royal);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--pale-blue);
}

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

/* Responsive */
@media (max-width: 992px) {
  .split {
    flex-direction: column;
    height: auto;
  }
  .split-left {
    padding: 40px 24px;
  }
  .split-right {
    padding: 40px 24px;
  }
  .nav-links {
    display: none;
  }
}


/* ========================
   Responsive & Grid System 
   ======================== */

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.grid-2-col-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-find-us {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: stretch;
}

.outside-bar-img {
  position: relative;
  order: 2;
}

@media (max-width: 992px) {
  /* Smaller container padding on tablets */
  .section-padding {
    padding: 60px 0;
  }
  
  .grid-2-col, .grid-find-us {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Typography Scaling */
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-desc {
    font-size: 1.1rem;
    margin-bottom: 24px;
  }
  
  .heading-title {
    font-size: 2.4rem;
  }
  
  .heading-desc {
    font-size: 1rem;
  }
  
  /* Layout Stacking */
  .grid-2-col, .grid-find-us, .grid-2-col-small {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Fix Outside Bar Image Order on Mobile */
  .outside-bar-img {
    order: 0; /* Let it flow naturally on mobile so image is above text */
  }
  
  /* Hero section adjustments */
  .hero-features {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-ctas .btn-white, .hero-ctas .btn-glass {
    width: 100%;
    text-align: center;
  }

  /* Navigation adjustments */
  .nav-links {
    display: none; /* Hide links on mobile for simplicity */
  }
  
  .nav-actions {
    gap: 12px;
  }
  
  .nav-actions .btn-primary {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  /* Menu Tabs adjustments */
  .menu-tabs {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .menu-tab-btn {
    width: 100%;
    max-width: 350px;
  }
  
  /* Section padding */
  .section-padding {
    padding: 50px 0;
  }
}
