/* ============================================
   Hammond Anesthesia Consulting - Modern Redesign
   Medical Aesthetics by Hammond Anesthesia Consulting, LLC
   ============================================ */

/* CSS Variables - Design System */
:root {
  /* Colors - Luxurious medical aesthetics palette */
  --color-cream: #F8F5F0;
  --color-cream-dark: #EDE8E0;
  --color-charcoal: #2C2C2C;
  --color-charcoal-light: #4A4A4A;
  --color-gold: #C9A962;
  --color-gold-light: #E5D4A1;
  --color-rose: #D4A5A5;
  --color-white: #FFFFFF;
  --color-text: #2C2C2C;
  --color-text-muted: #6B6B6B;
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(44, 44, 44, 0.08);
  --shadow-card: 0 8px 40px rgba(44, 44, 44, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
}

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

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

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: var(--space-sm);
}

/* ============================================
   Header - Sticky, Modern Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(248, 245, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 44, 44, 0.06);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: var(--shadow-soft);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.logo span {
  color: var(--color-gold);
  font-weight: 400;
}

/* Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-charcoal-light);
  position: relative;
}

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

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-charcoal);
}

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

.nav-desktop a.btn-primary {
  color: var(--color-white) !important;
}

.nav-desktop a.btn-primary:hover {
  color: var(--color-white) !important;
}

.nav-desktop a.btn-primary::after {
  display: none;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: var(--space-sm);
  min-width: 200px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  list-style: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: 6px;
  margin-bottom: 2px;
}

.nav-dropdown-menu a:last-child {
  margin-bottom: 0;
}

.nav-dropdown-menu a:hover {
  background: var(--color-cream);
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

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

.btn-primary:hover {
  background: var(--color-charcoal-light);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  transition: var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
}

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

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-sm);
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: var(--space-2xl) var(--space-lg);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-top: var(--space-sm);
}

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

/* ============================================
   Treatment Cards (Services)
   ============================================ */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.treatment-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.treatment-card-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-rose) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.5);
}

.treatment-card-content {
  padding: var(--space-lg);
}

.treatment-card h3 {
  color: var(--color-charcoal);
  margin-bottom: var(--space-xs);
}

.treatment-card .price {
  font-size: 0.9rem;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.treatment-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-section {
  background: var(--color-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.testimonial-card {
  padding: var(--space-lg);
  background: var(--color-cream);
  border-radius: 16px;
  border-left: 4px solid var(--color-gold);
}

.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.testimonial-card cite {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: normal;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--space-xl) var(--space-lg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-gold-light);
}

.footer-section a,
.footer-section p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  display: block;
  margin-bottom: var(--space-xs);
}

.footer-section a:hover {
  color: var(--color-white);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   Page-specific: Services, Team, etc.
   ============================================ */
.page-hero {
  padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-xl);
  text-align: center;
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
}

/* ============================================
   Shop - Product Cards with Quick View
   ============================================ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.product-card-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-rose) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}

.product-card-quick-view {
  position: absolute;
  inset: 0;
  background: rgba(44, 44, 44, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.product-card:hover .product-card-quick-view {
  opacity: 1;
}

.product-card-quick-view .btn {
  transform: translateY(10px);
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-card-quick-view .btn {
  transform: translateY(0);
}

.product-card-content {
  padding: var(--space-md);
}

.product-card-content h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.product-card .product-price {
  font-size: 0.95rem;
  color: var(--color-gold);
  font-weight: 600;
}

.product-card .product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--color-gold);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

/* Quick View Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 44, 44, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-white);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(44, 44, 44, 0.25);
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-cream);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-charcoal);
  transition: background var(--transition-fast), color var(--transition-fast);
  z-index: 1;
}

.modal-close:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.modal-content {
  padding: var(--space-xl);
  position: relative;
}

.modal-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-rose) 100%);
  border-radius: 12px;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.5);
}

.modal h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.modal .modal-price {
  font-size: 1.25rem;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.modal .modal-description {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.modal .modal-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================================
   Contact Form (simplified)
   ============================================ */
.contact-section {
  background: var(--color-white);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--color-cream-dark);
  border-radius: 8px;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-mobile {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    display: none;
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .nav-mobile.active {
    display: flex;
  }
  
  .nav-mobile a {
    font-size: 1.1rem;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-cream);
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

/* Utility: Add padding for fixed header */
main {
  padding-top: var(--header-height);
}
