/* 
========================================================================
   ANANDA SANGAM - HERITAGE RETREAT & WELLNESS SPA (styles.css)
   A premium, production-ready editorial styling system
========================================================================
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- Design Tokens / Root Variables --- */
:root {
  /* HSL-Tailored Harmonious Color Palette */
  --primary-deep: hsl(164, 48%, 12%);        /* Deep Emerald Forest */
  --primary-deep-rgb: 15, 44, 35;
  --primary-light: hsl(164, 40%, 20%);       /* Lighter Emerald */
  --accent-gold: hsl(43, 53%, 62%);          /* Antique Gold */
  --accent-gold-hover: hsl(43, 60%, 50%);    /* Darker Gold */
  --accent-gold-light: hsl(43, 60%, 94%);    /* Creamy Gold */
  
  --bg-cream: #fdfbf7;                        /* Warm, expensive off-white */
  --bg-alabaster: hsl(38, 30%, 95%);          /* Muted warm light background */
  --bg-obsidian: hsl(164, 50%, 6%);          /* Premium dark slate / near black */
  
  --text-dark: hsl(210, 15%, 15%);           /* High contrast charcoal */
  --text-muted: hsl(210, 10%, 45%);          /* Muted body text */
  --text-light: hsl(38, 40%, 98%);           /* Near white */
  --text-gold-light: hsl(43, 60%, 82%);      /* Elegant gold text on dark background */

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', sans-serif;

  /* Layout and Spacing */
  --container-max-width: 1280px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Transitions & Effects */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease-out;
  --shadow-subtle: 0 4px 30px rgba(0, 0, 0, 0.02);
  --shadow-premium: 0 20px 40px rgba(15, 44, 35, 0.08);
  --glass-bg: rgba(253, 251, 247, 0.85);
  --glass-border: rgba(15, 44, 35, 0.08);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary-deep);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.01em;
  position: relative;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

p {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
}

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

/* --- Global Layout Utilities --- */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-obsidian);
  color: var(--text-light);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--text-light);
}

.section-dark p {
  opacity: 0.85;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.header.scrolled .container {
  height: 75px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-light);
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.header.scrolled .logo-text {
  color: var(--primary-deep);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xs) 0;
  position: relative;
}

.header.scrolled .nav-link {
  color: var(--text-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

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

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

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
  color: var(--primary-deep);
}

/* Call to Action Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--primary-deep);
  border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-gold);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--primary-deep);
  border-color: var(--text-light);
}

.btn-dark {
  background-color: var(--primary-deep);
  color: var(--text-light);
  border: 1px solid var(--primary-deep);
}

.btn-dark:hover {
  background-color: transparent;
  color: var(--primary-deep);
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  margin-bottom: 5px;
  transition: var(--transition-smooth);
}

.header.scrolled .menu-btn span {
  background-color: var(--primary-deep);
}

.menu-btn span:last-child {
  margin-bottom: 0;
}

/* --- Hero Components --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
  transform: scale(1.05);
  animation: slowZoom 25s infinite alternate ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(11, 27, 23, 0.8) 0%,
    rgba(11, 27, 23, 0.5) 60%,
    rgba(15, 44, 35, 0.9) 100%
  );
}

.hero-content {
  max-width: 900px;
  padding: 0 var(--space-md);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-sm);
  display: block;
  font-weight: 600;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: var(--space-md);
  font-weight: 400;
}

.hero-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto var(--space-lg);
  font-weight: 300;
}

/* Sleek Smaller Hero for Subpages */
.hero-sub {
  min-height: 55vh;
  padding-top: 130px;
  padding-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.hero-sub-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
}

.hero-sub-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(11, 27, 23, 0.85) 0%,
    rgba(15, 44, 35, 0.95) 100%
  );
}

.hero-sub-content {
  max-width: 800px;
  padding: 0 var(--space-md);
}

.hero-sub h1 {
  color: var(--text-light);
  margin-bottom: var(--space-xs);
  font-weight: 400;
}

/* --- Section Heading Styles --- */
.section-title-wrapper {
  margin-bottom: var(--space-lg);
  max-width: 700px;
}

.section-title-wrapper.center {
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title {
  color: var(--primary-deep);
  font-weight: 400;
}

.section-dark .section-title {
  color: var(--text-light);
}

.section-title-wrapper p {
  margin-top: var(--space-sm);
  font-size: 1.1rem;
}

/* --- Page 1: Home Page Components --- */

/* Asymmetrical Overlapping Layout (Mini-About) */
.asym-about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
  align-items: center;
}

.asym-image-container {
  grid-column: 1 / span 7;
  position: relative;
  z-index: 1;
}

.asym-image-wrapper {
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  position: relative;
}

.asym-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.asym-image {
  width: 100%;
  height: 550px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.asym-image-wrapper:hover .asym-image {
  transform: scale(1.03);
}

.asym-text-card {
  grid-column: 6 / -1;
  background-color: var(--bg-cream);
  padding: var(--space-lg);
  z-index: 2;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(15, 44, 35, 0.04);
  transform: translateX(-40px);
}

.asym-text-card h3 {
  margin-bottom: var(--space-sm);
  font-weight: 400;
}

.asym-text-card p {
  margin-bottom: var(--space-md);
}

.signature-wrapper {
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.signature-img {
  font-family: 'Playfair Display', cursive;
  font-style: italic;
  font-size: 1.8rem;
  color: var(--accent-gold);
}

.signature-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Why Choose Us: 4 Columns Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.benefit-card {
  background-color: var(--bg-cream);
  padding: var(--space-md);
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-8px);
  background-color: #fff;
  border-color: rgba(15, 44, 35, 0.05);
  box-shadow: var(--shadow-premium);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  margin-bottom: var(--space-sm);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.benefit-card h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin-bottom: var(--space-xs);
  color: var(--primary-deep);
}

/* Service Teaser Horizontal Scrolling Carousel */
.carousel-outer {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-container {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  padding: var(--space-sm) 0;
  cursor: grab;
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-slide {
  flex: 0 0 calc(33.333% - (var(--space-md) * 2 / 3));
  scroll-snap-align: start;
  background-color: var(--bg-obsidian);
  color: var(--text-light);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.carousel-slide:hover {
  transform: translateY(-5px);
  border-color: rgba(230, 194, 128, 0.2);
}

.carousel-img-wrapper {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

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

.carousel-slide:hover .carousel-img {
  transform: scale(1.05);
}

.carousel-slide-content {
  padding: var(--space-md);
}

.carousel-slide-tag {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-xs);
  display: block;
}

.carousel-slide h4 {
  font-family: var(--font-serif);
  color: var(--text-light);
  margin-bottom: var(--space-xs);
  font-weight: 400;
}

.carousel-slide p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.carousel-link {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
}

.carousel-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: var(--transition-fast);
}

.carousel-link:hover svg {
  transform: translateX(5px);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.carousel-btn {
  background: none;
  border: 1px solid var(--accent-gold);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: var(--accent-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.carousel-btn:hover {
  background-color: var(--accent-gold);
  color: var(--primary-deep);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* --- Page 2: About Page Components --- */

/* Stylized Quote Blocks (Mission/Vision) */
.quotes-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.quote-block {
  padding: var(--space-md) var(--space-lg);
  border-left: 2px solid var(--accent-gold);
  position: relative;
  background-color: var(--bg-alabaster);
}

.quote-icon {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  position: absolute;
  top: -15px;
  left: 20px;
  color: rgba(192, 138, 62, 0.08);
  pointer-events: none;
}

.quote-block h3 {
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.quote-block blockquote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary-deep);
  margin-bottom: var(--space-sm);
}

/* Vertical CSS Timeline */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

/* Center line */
.timeline-wrapper::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: rgba(15, 44, 35, 0.15);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: var(--space-sm) var(--space-md);
  position: relative;
  background-color: inherit;
  width: 50%;
  margin-bottom: var(--space-md);
}

/* Left/Right alignments */
.timeline-item.left {
  left: 0;
  text-align: right;
  padding-right: var(--space-lg);
}

.timeline-item.right {
  left: 50%;
  padding-left: var(--space-lg);
}

/* Circular dots on timeline */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--bg-cream);
  border: 3px solid var(--accent-gold);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition-smooth);
}

.timeline-item.right::after {
  left: -8px;
}

.timeline-item:hover::after {
  background-color: var(--primary-deep);
  transform: scale(1.25);
}

.timeline-date {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: var(--space-xs);
  display: block;
}

.timeline-card {
  padding: var(--space-md);
  background-color: var(--bg-cream);
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(15, 44, 35, 0.03);
  display: inline-block;
  text-align: left;
  max-width: 100%;
}

.timeline-item.left .timeline-card {
  text-align: right;
}

.timeline-card h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

/* Team Section: 3-column Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.team-card {
  text-align: center;
  transition: var(--transition-smooth);
  background-color: var(--bg-cream);
  border: 1px solid transparent;
}

.team-img-wrapper {
  width: 100%;
  height: 380px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-premium);
}

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

.team-card:hover .team-img {
  transform: scale(1.03);
}

.team-card h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
  margin-bottom: var(--space-xs);
}

.team-card p {
  font-size: 0.95rem;
  padding: 0 var(--space-sm);
}

/* --- Page 3: Services Page Components --- */

/* Detailed Service Rows (Alternating full width) */
.service-row-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.service-row-img-wrapper {
  width: 100%;
  height: 500px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  position: relative;
}

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

.service-row:hover .service-row-img {
  transform: scale(1.03);
}

.service-row-content {
  padding: var(--space-md);
}

.service-row-content h3 {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--primary-deep);
}

.service-row-desc {
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.service-features-list {
  list-style: none;
  margin-bottom: var(--space-md);
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
  font-weight: 300;
}

.service-features-list li svg {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.service-pricing-wrapper {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

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

.pricing-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.pricing-cycle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Service inquiries style */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: #25d366; /* Official WhatsApp green */
  color: #fff;
  padding: 0.9rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  border: 1px solid #25d366;
}

.whatsapp-btn:hover {
  background-color: transparent;
  color: #25d366;
}

.whatsapp-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Alternating Row Orders */
.service-row:nth-child(even) .service-row-img-wrapper {
  order: 2;
}

.service-row:nth-child(even) .service-row-content {
  order: 1;
}

/* --- Page 4: Contact/Gallery Components --- */

/* Advanced Gallery: 15-image structured grid */
.gallery-section-wrapper {
  margin-bottom: var(--space-xl);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
}

/* Mosaic structured variations */
.gallery-item.size-1 { grid-column: span 4; grid-row: span 1; }
.gallery-item.size-2 { grid-column: span 4; grid-row: span 2; }
.gallery-item.size-3 { grid-column: span 8; grid-row: span 2; }
.gallery-item.size-4 { grid-column: span 6; grid-row: span 1; }
.gallery-item.size-5 { grid-column: span 3; grid-row: span 1; }

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

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 44, 35, 0.7);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  z-index: 1;
}

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

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

.gallery-item-overlay span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-xs);
}

.gallery-item-overlay h4 {
  font-family: var(--font-serif);
  color: var(--text-light);
  font-weight: 400;
}

/* Contact Split Layout */
.contact-split-container {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-lg);
  align-items: stretch;
}

.contact-info-col {
  background-color: var(--bg-obsidian);
  color: var(--text-light);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-premium);
}

.contact-info-col h3 {
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.contact-details-list {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.contact-details-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.contact-detail-icon {
  color: var(--accent-gold);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.contact-detail-text h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: var(--space-xs);
}

.contact-detail-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.contact-hours-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
}

.contact-hours-wrapper h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: var(--space-sm);
}

.contact-hours-list {
  list-style: none;
}

.contact-hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xs);
}

.maps-embed-col {
  box-shadow: var(--shadow-premium);
  position: relative;
  min-height: 450px;
  border: 1px solid rgba(15, 44, 35, 0.08);
}

.maps-embed-col iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- Global Footer --- */
.footer {
  background-color: var(--bg-obsidian);
  color: var(--text-light);
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-col h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.35rem;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.footer-social-links {
  display: flex;
  gap: var(--space-sm);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
}

.footer-social-link:hover {
  background-color: var(--accent-gold);
  color: var(--primary-deep);
  border-color: var(--accent-gold);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: var(--space-xs);
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.footer-links-list a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.newsletter-form {
  display: flex;
  position: relative;
}

.newsletter-input {
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.9rem 1.2rem;
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.08);
}

.newsletter-btn {
  background-color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  color: var(--primary-deep);
  padding: 0 var(--space-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.newsletter-btn:hover {
  background-color: transparent;
  color: var(--accent-gold);
}

.newsletter-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --- Vanilla JS Lightbox Styles --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 27, 23, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.active .lightbox-content-wrapper {
  transform: scale(1);
}

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

.lightbox-caption {
  color: var(--text-light);
  margin-top: var(--space-sm);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  text-align: center;
}

.lightbox-caption span {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--accent-gold);
  transform: scale(1.1);
}

.lightbox-close svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* --- Scroll Animation Triggers --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- Custom Keyframes --- */
@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* 
========================================================================
   RESPONSIVE DESIGN / MEDIA QUERIES
========================================================================
*/

@media (max-width: 1024px) {
  :root {
    --space-xl: 6rem;
  }
  
  .carousel-slide {
    flex: 0 0 calc(50% - (var(--space-md) * 1 / 2));
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-auto-rows: 180px;
  }
  .gallery-item.size-3 { grid-column: span 6; }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 5rem;
    --space-lg: 3rem;
  }

  /* Responsive header */
  .menu-btn {
    display: block;
    z-index: 1001;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-obsidian);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  }

  .nav.active {
    right: 0;
  }

  .nav-link {
    color: var(--text-light);
    font-size: 1.1rem;
  }

  .header.scrolled .nav-link {
    color: var(--text-light);
  }

  /* Hamburger transform animation */
  .menu-btn.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-btn.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Mini-about asymmetrical overlay stack */
  .asym-about-grid {
    display: flex;
    flex-direction: column;
  }

  .asym-image-container,
  .asym-text-card {
    width: 100%;
    transform: none;
  }

  .asym-text-card {
    padding: var(--space-md);
    margin-top: -30px;
    position: relative;
    z-index: 2;
  }

  .asym-image {
    height: 380px;
  }

  /* Timeline stack */
  .timeline-wrapper::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item::after {
    left: 11px !important;
    right: auto !important;
  }

  .timeline-item.left .timeline-card {
    text-align: left;
  }

  /* Service rows stack */
  .service-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .service-row-img-wrapper {
    height: 350px;
  }

  .service-row:nth-child(even) .service-row-img-wrapper,
  .service-row:nth-child(even) .service-row-content {
    order: unset;
  }

  /* Team section stack */
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .team-img-wrapper {
    height: 400px;
  }

  /* Gallery stack */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  /* Contact split stack */
  .contact-split-container {
    grid-template-columns: 1fr;
  }

  .quotes-container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Footer stack */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 500px) {
  .carousel-slide {
    flex: 0 0 100%;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}
