/* ============================================================
   THE BALMAYNA — MAIN STYLESHEET
   ============================================================ */

:root {
  /* Brand — Balmayna Navy */
  --navy:        #152244;
  --navy-mid:    #1e3166;
  --navy-light:  #4a6499;
  --navy-pale:   #8aaad4;

  /* Dark backgrounds — deep navy, not black */
  --dark:        #0c1422;
  --charcoal:    #14213a;
  --deep:        #0a0f1c;

  /* Light backgrounds */
  --white:       #FFFFFF;
  --cream:       #F5F7FA;
  --cream-dark:  #EAEEf5;

  /* Text */
  --text-dark:   #0f1e38;
  --text-mid:    #3d506e;
  --text-light:  #7a90b0;

  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-sub:     'Cormorant Garamond', Georgia, serif;
  --font-body:    'Raleway', Arial, sans-serif;

  --section-pad:    100px 0;
  --container-max:  1200px;
  --t:      all 0.3s ease;
  --t-slow: all 0.6s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background-color: var(--deep);
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  max-width: 100vw;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; transition: var(--t); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

::selection { background: rgba(21,34,68,0.14); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.55rem); }

p { font-size: 1rem; color: var(--text-mid); line-height: 1.9; }

/* Section label — distinctive style, different from Excellency */
.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--navy);
  flex-shrink: 0;
}

/* On dark backgrounds */
.section-label.light {
  color: var(--navy-pale);
}
.section-label.light::before { background: var(--navy-pale); }

.section-title { font-weight: 400; color: var(--text-dark); margin-bottom: 16px; }
.section-title.light { color: var(--white); }

/* Ornamental divider — distinctly different from Excellency's gold line */
.navy-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px auto 28px;
  width: fit-content;
}

.navy-divider::before,
.navy-divider::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--navy);
  opacity: 0.3;
}

.navy-divider::after { opacity: 0.3; }

.navy-divider-dot {
  width: 6px;
  height: 6px;
  background: var(--navy);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.navy-divider.left { margin-left: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container { width: 90%; max-width: var(--container-max); margin: 0 auto; }

.section {
  padding: var(--section-pad);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.section.dark       { background-color: var(--dark); }
.section.charcoal   { background-color: var(--charcoal); }
.section.cream      { background-color: var(--cream); }
.section.cream-dark { background-color: var(--cream-dark); }
.section.navy-section { background-color: var(--navy); }

.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
.section-header .navy-divider { justify-content: center; }

/* ============================================================
   PAGE LOADER
   ============================================================ */

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-ring {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--t);
}

#navbar.scrolled {
  background: rgba(12,20,34,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-img {
  height: 50px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.nav-logo-img:hover { opacity: 0.82; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-left  { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.nav-links > li { position: relative; }

.nav-links > li > a {
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: rgba(255,255,255,0.6);
  transition: width 0.3s ease;
}

.nav-links > li > a:hover { color: var(--white); }
.nav-links > li > a:hover::after { width: 100%; }
.nav-links > li > a.active { color: var(--white); }
.nav-links > li > a.active::after { width: 100%; }

/* Nav CTA — distinctive border style */
.nav-cta {
  border: 1px solid rgba(255,255,255,0.55) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  display: inline-flex !important;
  align-items: center;
  line-height: 1;
  transition: var(--t) !important;
  border-radius: 2px;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--white) !important;
  color: var(--navy) !important;
  border-color: var(--white) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: var(--t); }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--deep);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-nav.open { opacity: 1; visibility: visible; }

.mobile-nav .mobile-close {
  position: absolute;
  top: 28px; right: 28px;
  color: rgba(255,255,255,0.6);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--t);
}
.mobile-nav .mobile-close:hover { color: var(--white); }

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: rgba(255,255,255,0.75);
  transition: var(--t);
  text-align: center;
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav a.mobile-cta { color: rgba(255,255,255,0.9); }

/* ============================================================
   BUTTONS — slightly rounded vs Excellency's sharp edges
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 15px 38px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: var(--t);
  border-radius: 2px;
}

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(21,34,68,0.4); }

/* Keep btn-blue and btn-gold as aliases */
.btn-blue { background: var(--navy); color: var(--white); }
.btn-blue:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(21,34,68,0.4); }

.btn-gold { background: var(--navy); color: var(--white); }
.btn-gold:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(21,34,68,0.4); }

.btn-outline { border: 1px solid rgba(255,255,255,0.6); color: var(--white); border-radius: 2px; }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); transform: translateY(-2px); }

.btn-outline-navy { border: 1px solid var(--navy); color: var(--navy); border-radius: 2px; }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.btn-outline-blue { border: 1px solid var(--navy); color: var(--navy); border-radius: 2px; }
.btn-outline-blue:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.btn-outline-gold { border: 1px solid var(--navy); color: var(--navy); border-radius: 2px; }
.btn-outline-gold:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ============================================================
   HERO — Scroll-through-doors (image zoom OR video scrub)
   ============================================================ */

/* Spacer pushes content below the fixed hero, creating scroll room */
.hero-spacer {
  height: 110vh;
}

.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

/* Static image background — oversized so scale() doesn't show edges */
.hero-bg {
  position: absolute;
  inset: -12%;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center 50%;
  transform-origin: center 60%;
  will-change: transform;
  transition: opacity 0.5s ease;
}

/* Video — hidden until loadedmetadata, then fades in over hero-bg */
.hero-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Bottom gradient only — top of building stays clean and unobscured */
.hero-bottom-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28%;
  background: linear-gradient(to top, rgba(10,15,28,0.7) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  will-change: opacity, transform;
}

/* Large italic subtitle above h1 */
.hero-eyebrow {
  font-family: var(--font-sub);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-style: italic;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 18px;
  animation: fadeInUp 1s ease both;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
  font-weight: 400;
  animation: fadeInUp 1.1s ease 0.18s both;
  line-height: 1.1;
}

.hero h1 em { font-style: italic; color: rgba(255,255,255,0.82); }

/* Subtle white rule below heading */
.hero-rule {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.45);
  margin: 0 auto 24px;
  animation: fadeInUp 1.1s ease 0.3s both;
}

.hero p {
  color: rgba(255,255,255,0.72);
  font-size: clamp(0.92rem, 1.4vw, 1.1rem);
  max-width: 560px;
  margin: 0 auto 40px;
  letter-spacing: 0.01em;
  animation: fadeInUp 1.1s ease 0.36s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.1s ease 0.48s both;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}


/* ============================================================
   PAGE HERO — Inner pages
   ============================================================ */

.page-hero {
  height: 55vh;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.page-hero.hero-weddings    { background-image: url('../images/hero-weddings.jpg'), linear-gradient(160deg, var(--deep) 0%, var(--dark) 100%); background-size:cover; background-position:center; }
.page-hero.hero-who-we-are  { background-image: url('../images/hero-who-we-are.jpg'), linear-gradient(160deg, var(--deep) 0%, var(--dark) 100%); background-size:cover; background-position:center; }
.page-hero.hero-contact     { background-image: url('../images/hero-contact.jpg'), linear-gradient(160deg, var(--deep) 0%, var(--dark) 100%); background-size:cover; background-position:center; }
.page-hero.hero-booking     { background-image: url('../images/hero-booking.jpg'), linear-gradient(160deg, var(--deep) 0%, var(--dark) 100%); background-size:cover; background-position:center; }

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,20,34,0.5), rgba(12,20,34,0.75));
  z-index: 1;
}

/* Architectural grid overlay — subtly different from Excellency */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(21,34,68,0.12) 0%, transparent 70%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.9s ease both;
}

.page-hero-content h1 { color: var(--white); margin-bottom: 14px; }

.breadcrumb { font-size: 0.76rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); }
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--white); }

/* ============================================================
   STATS BAR — Large typographic style
   ============================================================ */

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

.stat-item {
  text-align: center;
  padding: 48px 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 3.5vw, 3.6rem);
  color: var(--white);
  font-weight: 300;
  display: inline-block;
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: var(--navy-pale);
}

.stat-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
}

/* ============================================================
   ABOUT INTRO
   ============================================================ */

.about-intro-text { padding-right: 40px; }

.about-intro-image {
  height: 540px;
  background-image: url('../images/about-intro.jpg'), linear-gradient(135deg, #1a2a50 0%, #0c1422 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Architectural offset frame */
.about-intro-image::before {
  content: '';
  position: absolute;
  top: 20px; right: -20px;
  bottom: -20px; left: 20px;
  border: 1px solid rgba(21,34,68,0.22);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   VENUE CARD — Single large showcase
   ============================================================ */

.venue-card {
  position: relative;
  overflow: hidden;
  height: 560px;
  cursor: pointer;
  background: var(--dark);
  background-size: cover;
  background-position: center;
}

.venue-card.venue-jumeirah {
  background-image: url('../images/jumeirah.jpg'), linear-gradient(135deg, var(--dark) 0%, var(--charcoal) 100%);
  background-size: cover;
  background-position: center;
}

.venue-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,20,34,0.96) 0%, rgba(12,20,34,0.25) 55%, rgba(12,20,34,0.05) 100%);
  z-index: 1;
  transition: var(--t-slow);
}

.venue-card:hover::before { background: linear-gradient(to top, rgba(12,20,34,0.99) 0%, rgba(12,20,34,0.55) 60%, rgba(12,20,34,0.15) 100%); }

.venue-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px;
  z-index: 2;
  transition: var(--t);
}

.venue-card h3 { color: var(--white); margin-bottom: 12px; }

.venue-card-desc {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: max-height 0.45s ease, opacity 0.45s ease, transform 0.45s ease;
  line-height: 1.8;
  max-width: 580px;
}

.venue-card:hover .venue-card-desc { max-height: 150px; opacity: 1; transform: translateY(0); }

/* ============================================================
   SERVICE CARDS — Horizontal layout, distinctly different
   ============================================================ */

/* List-style layout rather than Excellency's center-icon boxes */
.services-list { display: flex; flex-direction: column; gap: 0; }

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  align-items: start;
  transition: var(--t);
}

.service-row:last-child { border-bottom: none; }
.service-row:hover { padding-left: 8px; }

.service-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--navy);
  opacity: 0.12;
  line-height: 1;
  font-weight: 400;
  padding-top: 4px;
}

.service-body { padding-left: 8px; }
.service-body h4 { color: var(--text-dark); margin-bottom: 8px; font-size: 1.1rem; }
.service-body p { font-size: 0.9rem; }

/* Dark variant for services on dark background */
.service-row.dark-row { border-bottom-color: rgba(255,255,255,0.05); }
.service-row.dark-row .service-num { color: var(--white); opacity: 0.08; }
.service-row.dark-row .service-body h4 { color: var(--white); }
.service-row.dark-row .service-body p { color: rgba(255,255,255,0.55); }

/* Keep old .service-card for compatibility */
.service-card {
  text-align: center;
  padding: 44px 28px;
  background: var(--white);
  transition: var(--t);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--navy);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.service-card:hover::before { transform: scaleY(1); }
.service-card:hover { transform: translateX(4px); box-shadow: 0 12px 40px rgba(0,0,0,0.09); }

.service-icon {
  width: 60px; height: 60px;
  border: 1px solid rgba(21,34,68,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.4rem;
  color: var(--navy);
  transition: var(--t);
}
.service-card:hover .service-icon { background: var(--navy); color: var(--white); border-color: var(--navy); }
.service-card h4 { color: var(--text-dark); margin-bottom: 10px; }
.service-card p  { font-size: 0.88rem; }

/* ============================================================
   TESTIMONIALS — Full-width cards, different feel
   ============================================================ */

.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 44px 40px;
  position: relative;
  transition: var(--t);
  border-radius: 2px;
}

.testimonial-card:hover { border-color: rgba(255,255,255,0.16); }

/* Large italic quote instead of quotation mark graphic */
.testimonial-card::before {
  content: '"';
  font-family: var(--font-sub);
  font-size: 8rem;
  color: rgba(255,255,255,0.05);
  position: absolute;
  top: -10px; left: 24px;
  line-height: 1;
  pointer-events: none;
  font-style: italic;
}

.testimonial-stars {
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.testimonial-text {
  color: rgba(255,255,255,0.78);
  font-family: var(--font-sub);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.9;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.testimonial-author span { color: rgba(255,255,255,0.35); font-size: 0.73rem; letter-spacing: 0.06em; }

/* ============================================================
   GALLERY GRIDS
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 3px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--charcoal);
}

.gallery-item:first-child { grid-row: span 2; }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: var(--t);
}

.gallery-item:hover::after { background: rgba(21,34,68,0.35); }

.gallery-grid-wide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 3px;
}

.gallery-grid-wide .gallery-item:nth-child(1) { grid-column: span 2; }
.gallery-grid-wide .gallery-item:nth-child(4) { grid-column: span 2; }

/* ============================================================
   CTA SECTION — Navy background vs Excellency's dark
   ============================================================ */

.cta-section {
  background: var(--navy);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Architectural lines decoration */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.2);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.2);
}

.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.6); max-width: 460px; margin: 0 auto 36px; font-size: 1rem; }

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CONTACT CARDS
   ============================================================ */

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }

.contact-card {
  text-align: center;
  padding: 44px 28px;
  border: 1px solid rgba(21,34,68,0.12);
  transition: var(--t);
  background: var(--white);
  border-radius: 2px;
}

.contact-card:hover { border-color: var(--navy); box-shadow: 0 8px 36px rgba(21,34,68,0.09); }

.contact-card-icon {
  width: 56px; height: 56px;
  border: 1px solid rgba(21,34,68,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.2rem;
  color: var(--navy);
  transition: var(--t);
}

.contact-card:hover .contact-card-icon { background: var(--navy); color: var(--white); border-color: var(--navy); }
.contact-card h4 { color: var(--text-dark); font-size: 0.95rem; margin-bottom: 10px; }
.contact-card p, .contact-card a { font-size: 0.88rem; color: var(--text-mid); display: block; line-height: 1.8; }
.contact-card a:hover { color: var(--navy); }

/* ============================================================
   FORMS
   ============================================================ */

.form-container { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid #D0D8E8;
  background: var(--white);
  color: var(--text-dark);
  transition: var(--t);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 1px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(21,34,68,0.07);
}

.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 6px; }

.time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }

.time-slot {
  padding: 12px 6px;
  border: 1px solid #D0D8E8;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  background: var(--white);
  color: var(--text-mid);
  user-select: none;
  border-radius: 1px;
}

.time-slot:hover { border-color: var(--navy); color: var(--navy); }
.time-slot.selected { background: var(--navy); border-color: var(--navy); color: var(--white); }
.time-slot-error { border-color: #e74c3c !important; }

.select-wrapper { position: relative; }
.select-wrapper::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--navy);
  font-size: 0.82rem;
}

.form-success-msg {
  display: none;
  background: rgba(21,34,68,0.05);
  border: 1px solid var(--navy);
  padding: 28px;
  text-align: center;
  color: var(--text-dark);
  margin-top: 20px;
  border-radius: 2px;
}
.form-success-msg.visible { display: block; }

.map-container {
  width: 100%;
  height: 380px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}
.map-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ============================================================
   VENUE DETAIL (weddings page)
   ============================================================ */

.venue-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.venue-detail:last-child { border-bottom: none; }
.venue-detail.reverse .venue-detail-image { order: 2; }
.venue-detail.reverse .venue-detail-text  { order: 1; }

.venue-detail-image {
  height: 500px;
  position: relative;
  background: var(--charcoal);
  background-size: cover;
  background-position: center;
}

.venue-detail-image.img-jumeirah {
  background-image: url('../images/jumeirah.jpg'), linear-gradient(135deg, var(--dark) 0%, var(--charcoal) 100%);
}

.venue-capacity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(21,34,68,0.06);
  border: 1px solid rgba(21,34,68,0.2);
  padding: 7px 14px;
  font-size: 0.76rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  border-radius: 2px;
}

.venue-features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0 28px; }
.venue-features-list li { font-size: 0.85rem; color: var(--text-mid); padding-left: 16px; position: relative; }
.venue-features-list li::before { content: '—'; position: absolute; left: 0; color: var(--navy); opacity: 0.5; }

/* ============================================================
   WHAT TO EXPECT
   ============================================================ */

.expect-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.expect-step {
  padding: 40px 28px;
  background: var(--white);
  border-left: 3px solid var(--navy);
  transition: var(--t);
  border-radius: 2px;
}

.expect-step:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.07); }

.step-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--navy);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 14px;
  font-weight: 300;
}

.expect-step h4 { color: var(--text-dark); margin-bottom: 10px; }
.expect-step p  { font-size: 0.88rem; }

/* ============================================================
   VALUE CARDS
   ============================================================ */

.value-card {
  padding: 36px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--t);
  border-radius: 2px;
}

.value-card:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-3px); }
.value-icon { font-size: 1.6rem; color: var(--navy-pale); margin-bottom: 16px; }
.value-card h4 { color: var(--white); margin-bottom: 10px; font-size: 1.1rem; }
.value-card p  { color: rgba(255,255,255,0.55); font-size: 0.88rem; }

/* ============================================================
   TEAM MEMBERS — Horizontal photo + text rows
   ============================================================ */

.team-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.team-member {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--white);
  border: 1px solid rgba(21,34,68,0.08);
  border-radius: 2px;
  overflow: hidden;
  transition: var(--t);
}

.team-member:hover { box-shadow: 0 8px 36px rgba(21,34,68,0.1); transform: translateY(-2px); }

.team-photo {
  background-color: var(--cream-dark);
  background-size: cover;
  background-position: center top;
  min-height: 200px;
}

.team-info {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-info h4 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.team-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 16px;
}

.team-info p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-mid);
}

@media (max-width: 600px) {
  .team-member { grid-template-columns: 1fr; }
  .team-photo  { min-height: 220px; }
  .team-info   { padding: 28px 24px; }
}

/* ============================================================
   FOOTER — Deep dark navy, not near-black
   ============================================================ */

.footer { background: var(--deep); padding: 80px 0 0; position: relative; z-index: 1; }

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

.footer-logo-img {
  height: 58px;
  width: auto;
  display: block;
  margin-bottom: 20px;
  opacity: 0.85;
}

.footer-brand p { color: rgba(255,255,255,0.38); font-size: 0.87rem; line-height: 1.9; margin-bottom: 24px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  transition: var(--t);
  border-radius: 2px;
}
.footer-social a:hover { border-color: rgba(255,255,255,0.45); color: var(--white); }

.footer-col h5 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.7;
}

.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: rgba(255,255,255,0.38); font-size: 0.87rem; transition: var(--t); }
.footer-links a:hover { color: rgba(255,255,255,0.8); padding-left: 6px; }
.footer-links li span { color: rgba(255,255,255,0.38); font-size: 0.87rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p { color: rgba(255,255,255,0.22); font-size: 0.76rem; }
.footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.22); font-size: 0.76rem; transition: var(--t); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   BACK TO TOP
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  z-index: 500;
  transition: var(--t);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  cursor: pointer;
  border-radius: 2px;
}

.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-mid); transform: translateY(-3px); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.fade-in       { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in-left  { opacity: 0; transform: translateX(-32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in-right { opacity: 0; transform: translateX(32px);  transition: opacity 0.7s ease, transform 0.7s ease; }

.fade-in.visible, .fade-in-left.visible, .fade-in-right.visible { opacity: 1; transform: translate(0); }

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

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 960px) {
  :root { --section-pad: 70px 0; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  .nav-logo { position: absolute; left: 50%; transform: translateX(-50%); }

  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item  { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 36px 20px; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.06); }

  .about-intro-text { padding-right: 0; }
  .about-intro-image { height: 380px; }
  .about-intro-image::before { display: none; }

  .venue-detail { grid-template-columns: 1fr; gap: 28px; }
  .venue-detail.reverse .venue-detail-image,
  .venue-detail.reverse .venue-detail-text { order: unset; }
  .venue-detail-image { height: 340px; }
  .venue-features-list { grid-template-columns: 1fr; }

  .contact-cards { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item:first-child { grid-row: span 1; }
  .gallery-item { height: 200px; }

  .gallery-grid-wide { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-grid-wide .gallery-item { height: 200px; }
  .gallery-grid-wide .gallery-item:nth-child(1),
  .gallery-grid-wide .gallery-item:nth-child(4) { grid-column: span 1; }

  .time-slots { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .expect-steps { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 60px 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 600px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }

  .hero { min-height: 100svh; }
  .hero-content { padding: 90px 22px 70px; }

  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); font-weight: 400; line-height: 1.1; }
  .hero h1 em { display: block; }
  .hero-eyebrow { font-size: 1rem; }
  .hero p { font-size: 0.94rem; padding: 0 4px; margin-bottom: 30px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 260px; }
  .hero-scroll { display: none; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 24px 10px; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.06) !important; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .stat-number { font-size: 2.2rem; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .time-slots { grid-template-columns: 1fr 1fr; }
  .gallery-grid, .gallery-grid-wide { grid-template-columns: 1fr; }
  .gallery-item, .gallery-grid-wide .gallery-item { height: 220px; }
  .gallery-grid-wide .gallery-item:nth-child(1),
  .gallery-grid-wide .gallery-item:nth-child(4) { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .venue-card { height: 420px; }
  .service-row { grid-template-columns: 50px 1fr; }
}

/* ============================================================
   GALLERY IMAGES
   ============================================================ */

.gallery-grid .gallery-item:nth-child(1) { background-image: url('../images/gallery-1.jpg'); }
.gallery-grid .gallery-item:nth-child(2) { background-image: url('../images/gallery-2.jpg'); }
.gallery-grid .gallery-item:nth-child(3) { background-image: url('../images/gallery-3.jpg'); }
.gallery-grid .gallery-item:nth-child(4) { background-image: url('../images/gallery-4.jpg'); }
.gallery-grid .gallery-item:nth-child(5) { background-image: url('../images/gallery-5.jpg'); }

.gallery-weddings .gallery-item:nth-child(1) { background-image: url('../images/gallery-weddings-1.jpg'); }
.gallery-weddings .gallery-item:nth-child(2) { background-image: url('../images/gallery-weddings-2.jpg'); }
.gallery-weddings .gallery-item:nth-child(3) { background-image: url('../images/gallery-weddings-3.jpg'); }
.gallery-weddings .gallery-item:nth-child(4) { background-image: url('../images/gallery-weddings-4.jpg'); }
.gallery-weddings .gallery-item:nth-child(5) { background-image: url('../images/gallery-weddings-5.jpg'); }
.gallery-weddings .gallery-item:nth-child(6) { background-image: url('../images/gallery-weddings-6.jpg'); }

.gallery-about .gallery-item:nth-child(1) { background-image: url('../images/gallery-about-1.jpg'); }
.gallery-about .gallery-item:nth-child(2) { background-image: url('../images/gallery-about-2.jpg'); }
.gallery-about .gallery-item:nth-child(3) { background-image: url('../images/gallery-about-3.jpg'); }
.gallery-about .gallery-item:nth-child(4) { background-image: url('../images/gallery-about-4.jpg'); }
.gallery-about .gallery-item:nth-child(5) { background-image: url('../images/gallery-about-5.jpg'); }
.gallery-about .gallery-item:nth-child(6) { background-image: url('../images/gallery-about-6.jpg'); }
