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

:root {
  /* Colors */
  --color-primary: #050C1F; /* Ultra Deep Navy Blue */
  --color-primary-light: #0d1a3c;
  --color-gold: #E1C699; /* Champagne Gold */
  --color-sand: #FBF8F1; /* Subtle Off-white for breathability */
  --color-white: #FFFFFF;
  --color-text-dark: #151A22;
  --color-text-muted: #6B7280;
  --color-bg-light: #FAFAFA;
  
  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Utilities */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(5, 12, 31, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.8;
  font-weight: 300;
  word-wrap: break-word;
  overflow-wrap: break-word; /* Prevents long words pushing bounds */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

section {
  padding: 10rem 0; /* Increased whitespace */
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0; /* Sharp elegant edges */
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-align: center;
  border: none;
  gap: 0.75rem;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-light);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

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

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 2rem 0;
  transition: all var(--transition-smooth);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1.25rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid transparent;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.05em;
  flex: 1;
}

.header-spacer {
  flex: 1;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  flex: 2;
  justify-content: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  font-weight: 400;
  transition: color var(--transition-fast);
}

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

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

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

.header.scrolled .nav-links a:hover {
  color: var(--color-gold);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001; /* Above nav menu */
  padding: 0.5rem;
}

.header.scrolled .mobile-menu-toggle {
  color: var(--color-text-dark);
}


/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background-image: url('../assets/images/hero.png');
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; removed due to notorious iOS zoom/crop bugs */
  background-attachment: scroll; 
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(5, 12, 31, 0.85) 0%, rgba(5, 12, 31, 0.2) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-gold);
}

.hero h1 {
  font-size: 4rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-sand);
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 550px;
}

/* Sections Global */
.section-header {
  text-align: center;
  margin-bottom: 6rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.section-header p {
  font-size: 1.15rem;
  font-weight: 300;
}

/* High-End Photography Concierge */
.concierge {
  background-color: var(--color-sand);
}

.concierge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.feature-card {
  background: var(--color-white);
  border: none;
  transition: all var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

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

.feature-content {
  padding: 3rem 2.5rem;
}

.feature-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Dental Safari Brochure Layout */
.brochure-section {
  background-color: var(--color-white);
  padding: 12rem 0;
}

.brochure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 8rem;
}

.brochure-grid:last-child {
  margin-bottom: 0;
}

.brochure-image {
  position: relative;
}

.brochure-image::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid var(--color-gold);
  z-index: -1;
}

.brochure-grid:nth-child(even) .brochure-image::after {
  left: 20px;
  right: -20px;
}

.brochure-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.brochure-content {
  padding: 0 2rem;
}

.brochure-content h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.brochure-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* Pricing Table - Refined */
.pricing {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.pricing .section-header h2 {
  color: var(--color-white);
}

.pricing .section-header p {
  color: var(--color-gold);
}

.pricing-table-wrapper {
  background: transparent;
  border: 1px solid rgba(225, 198, 153, 0.2);
  margin: 0 auto;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-sizing: border-box;
}

.pricing-table-wrapper table {
  width: 100%;
  min-width: 600px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th, .pricing-table td {
  padding: 2rem;
  text-align: left;
  border-bottom: 1px solid rgba(225, 198, 153, 0.1);
  font-family: var(--font-body);
}

.pricing-table th {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-gold);
  border-bottom: 1px solid rgba(225, 198, 153, 0.4);
}

.pricing-table td:nth-child(1) {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-white);
}

.pricing-table td:nth-child(2) {
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
}

.pricing-table td:nth-child(3) {
  color: var(--color-gold);
  font-weight: 500;
  font-size: 1.15rem;
}

/* Footer */
.footer {
  background-color: var(--color-white);
  padding: 8rem 0 3rem;
  text-align: center;
}

.footer h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.footer p {
  font-size: 1.25rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 1100px) {
  .brochure-grid { gap: 4rem; }
}
@media (max-width: 1024px) {
  .concierge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; }
  .section-header h2 { font-size: 2.2rem; }
  .brochure-grid { grid-template-columns: 1fr; gap: 3rem; }
  .brochure-grid:nth-child(even) .brochure-image { order: -1; }
  .concierge-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 0; }
  .brochure-section { padding: 4rem 0; }
  
  .brochure-image::after {
    display: none;
  }
  
  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }
  .header-spacer {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block !important;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: 0; /* Changed from left for slide-in from right */
    width: 100%;
    height: 100vh;
    background-color: rgba(5, 12, 31, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    z-index: 1000;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links a {
    font-size: 1.5rem;
    color: var(--color-white);
  }
  
  .header.scrolled .nav-links a {
    color: var(--color-white);
  }
  
  .logo.active {
    position: relative;
    z-index: 1001;
    color: var(--color-white) !important;
  }
  
  .mobile-menu-toggle.active {
    color: var(--color-white) !important;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .pricing-table th, .pricing-table td {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/* Rotating Gallery / Carousel Layout */
.gallery-carousel {
  position: relative;
  width: 100%;
  max-width: 100vw;
  margin-top: 3rem;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 1.5rem 3rem 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track:active {
  cursor: grabbing;
}

.gallery-item {
  flex: 0 0 auto;
  height: 380px; 
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background-color: transparent;
}

.gallery-item img {
  height: 100%;
  width: auto;
  max-width: 85vw; /* Prevent very wide images from overflowing viewport */
  object-fit: contain; 
  display: block;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .gallery-item {
    height: 300px;
  }
}

/* Gallery Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-primary);
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  opacity: 0.85;
}

.gallery-arrow:hover {
  opacity: 1;
  background-color: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-50%) scale(1.05);
}

.left-arrow {
  left: 1.5rem;
}

.right-arrow {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .gallery-arrow {
    width: 36px;
    height: 36px;
  }
  .left-arrow { left: 0.5rem; }
  .right-arrow { right: 0.5rem; }
}

/* Centered Gallery Track (for Patients) */
.centered-track {
  justify-content: center;
}

@media (max-width: 1024px) {
  .centered-track {
    justify-content: flex-start; /* Avoids cut-off on small screens when overflowing */
  }
}

