/* Dr. Maurizio Persico - Main CSS */

:root {
  /* Primary Brand Colors */
  --primary-blue: #1B365D;
  --luxury-gold: #D4AF37;
  --soft-ivory: #FAFAF8;
  --stone-grey: #6B7280;
  
  /* Secondary Colors */
  --dusty-rose: #E8B4B8;
  --sage-green: #A8B5A0;
  --deep-charcoal: #2D3748;
  
  /* Accent Colors */
  --venetian-red: #8B4513;
  --cream-white: #FFFEF7;
  --soft-silver: #E2E8F0;
  
  /* Gradients */
  --luxury-gradient: linear-gradient(135deg, var(--primary-blue), var(--luxury-gold));
  --soft-gradient: linear-gradient(180deg, var(--cream-white), var(--soft-ivory));
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Breakpoints */
  --mobile: 768px;
  --tablet: 1024px;
  --desktop: 1280px;
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--deep-charcoal);
  background-color: var(--soft-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  color: var(--primary-blue);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-sm);
  color: var(--deep-charcoal);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--luxury-gold);
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

/* Header Styles */
.header {
  background: var(--cream-white);
  box-shadow: 0 2px 10px rgba(27, 54, 93, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
}

.logo span {
  color: var(--luxury-gold);
}

/* Navigation */
.navigation {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  margin: 0;
}

.nav-link {
  font-weight: 500;
  color: var(--deep-charcoal);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--luxury-gold);
  transition: width 0.3s ease;
}

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

/* CTA Button */
.cta-button {
  background: var(--venetian-red);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 54, 93, 0.3);
  color: white;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-blue);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: var(--soft-gradient);
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  background: var(--luxury-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--stone-grey);
  margin-bottom: var(--space-lg);
}

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

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(27, 54, 93, 0.15);
}

/* Cards and Sections */
.card {
  background: var(--cream-white);
  border-radius: 12px;
  padding: var(--space-xl);
  box-shadow: 0 8px 30px rgba(27, 54, 93, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27, 54, 93, 0.15);
}

/* Hero Section Styles */
.hero {
  background: var(--soft-gradient);
  padding-top: 120px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.05));
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  background: var(--luxury-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--stone-grey);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.cta-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-secondary:hover {
  background: var(--primary-blue);
  color: white;
}

.hero-credentials {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.credential-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.8);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 20px;
  border: 1px solid var(--soft-silver);
}

.credential-icon {
  font-size: 1.2rem;
}

.credential-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--deep-charcoal);
}

.hero-image {
  position: relative;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(27, 54, 93, 0.2);
}

.hero-image-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.experience-badge {
  background: var(--venetian-red);
  color: white;
  padding: var(--space-sm);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.experience-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.experience-text {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Specialisation Section */
.specialisation {
  background: var(--cream-white);
}

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--stone-grey);
  max-width: 600px;
  margin: 0 auto;
}

.specialisation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.procedure-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(27, 54, 93, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.procedure-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(27, 54, 93, 0.15);
}

.procedure-image {
  height: 250px;
  overflow: hidden;
}

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

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

.procedure-content {
  padding: var(--space-xl);
}

.procedure-content h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--primary-blue);
}

.procedure-description {
  color: var(--stone-grey);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.procedure-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.procedure-list li {
  padding: var(--space-xs) 0;
  color: var(--deep-charcoal);
  border-bottom: 1px solid var(--soft-silver);
}

.procedure-list li:last-child {
  border-bottom: none;
}

.procedure-list li:before {
  content: '✓';
  color: var(--sage-green);
  font-weight: bold;
  margin-right: var(--space-sm);
}

.procedure-cta {
  color: var(--luxury-gold);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.procedure-cta:hover {
  color: var(--primary-blue);
}

/* Footer */
.footer {
  background: #fffef6 !important;
  color: var(--cream-white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-section h3 {
  color: var(--luxury-gold);
  margin-bottom: var(--space-md);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--soft-silver);
}




/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }

.hidden { display: none; }
.visible { display: block; }

/* Error and fallback styles */
.error-placeholder {
  background: rgba(139, 69, 19, 0.1);
  border: 1px solid var(--venetian-red);
  border-radius: 8px;
  padding: var(--space-md);
  margin: var(--space-md) 0;
  color: var(--venetian-red);
  text-align: center;
}

.content-fallback {
  background: var(--soft-silver);
  padding: var(--space-lg);
  border-radius: 8px;
  margin: var(--space-lg) 0;
  text-align: center;
  color: var(--deep-charcoal);
}

.content-error {
  background: rgba(139, 69, 19, 0.1);
  color: var(--venetian-red);
  padding: var(--space-md);
  border-radius: 6px;
  border-left: 4px solid var(--venetian-red);
  margin: var(--space-md) 0;
}

/* Image placeholder styles */
.image-placeholder {
  background: var(--luxury-gradient);
  height: 400px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(27, 54, 93, 0.2);
  text-align: center;
}

.image-placeholder .placeholder-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.image-placeholder .placeholder-text {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Smooth Animations */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .specialisation-grid {
    grid-template-columns: 1fr;
  }
  
  .procedure-card {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: var(--space-2xl);
  }
  
  .hero-text {
    text-align: center;
    order: 2;
  }
  
  .hero-image {
    order: 1;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-credentials {
    justify-content: center;
  }
  
  .specialisation-grid {
    grid-template-columns: 1fr;
  }
  
  .procedure-card {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}