/* Custom CSS for Dr. Antoine Julienne - Luxury Medical Website */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent: #c9a96e;
  --color-accent-dark: #b8956b;
  --color-light: #f8fafc;
  --color-gray-light: #f1f5f9;
  --color-gray: #64748b;
  --color-gray-dark: #334155;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-gold: 0 4px 14px 0 rgba(201, 169, 110, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-gray-dark);
  background-color: var(--color-light);
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.text-accent {
  color: var(--color-accent);
}

.font-serif {
  font-family: var(--font-serif);
}

/* Luxury button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: white;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(201, 169, 110, 0.3);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: white;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
  transition: all 0.3s ease;
}

/* When mobile menu is open, make sure nothing bleeds through */
.navbar:has(.mobile-menu.open) {
  background: #1a1a2e;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.98);
  box-shadow: var(--shadow-medium);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.05);
}

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

/* Hero section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(201,169,110,0.1)"/></svg>') repeat;
  background-size: 50px 50px;
  animation: float 20s infinite linear;
}

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

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

.hero-image {
  border-radius: 1rem;
  box-shadow: var(--shadow-large);
  max-width: 400px;
  width: 100%;
  height: auto;
}

/* Section spacing */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--color-gray-light);
}

/* Procedure cards */
.procedure-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.procedure-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
  border-color: var(--color-accent);
}

.procedure-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

/* Gallery styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.3s ease;
}

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

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Contact cards */
.contact-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  border-left: 4px solid var(--color-accent);
}

/* Language toggle */
.lang-toggle {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: var(--color-accent);
  color: white;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #1a1a2e !important;
  opacity: 1 !important;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  overflow-y: auto;
  isolation: isolate;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu .flex.flex-col {
  background-color: #1a1a2e;
  min-height: 100vh;
  min-height: 100dvh;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Breadcrumbs */
.breadcrumb {
  background: var(--color-gray-light);
  padding: 1rem 0;
}

.breadcrumb a {
  color: var(--color-gray);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media queries */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }

  .hero .text-xl {
    font-size: 1rem;
  }

  .hero-image {
    max-width: 280px;
    margin-top: 2rem;
  }
  
  .btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .procedure-card {
    padding: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Navbar mobile fixes */
  .navbar {
    padding: 0.25rem 0;
  }

  .navbar .h-16 {
    height: 3.5rem;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  /* Mobile menu: bigger touch targets */
  .mobile-menu a {
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* Mobile menu button bigger touch target */
  [data-mobile-menu-button] {
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero section on pages with pt-32 */
  .pt-32 {
    padding-top: 5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Utility classes */
.text-gradient {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .mobile-menu {
    display: none !important;
  }
}