/**
 * Pixel Perfect Styles - Exact match to React site
 * These styles ensure 100% visual parity
 */

/* Font Loading Optimization */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/bodonimoda/v26/aFT07PxzY382XsXX63LUYL6y8BcXthXkUKGj5tWf.woff2') format('woff2');
}

/* Exact Body Typography */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #787C7F !important;
  font-weight: 400 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Exact Heading Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bodoni Moda', serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #004080 !important;
  line-height: 1.2 !important;
}

/* Exact Button Styles */
.btn-primary,
.elementor-button.elementor-button-primary,
.wp-block-button__link.has-primary-background-color {
  background-color: #004080 !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  border: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.btn-primary:hover,
.elementor-button.elementor-button-primary:hover {
  background-color: #007ED9 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
}

.btn-secondary,
.elementor-button.elementor-button-secondary {
  background-color: #ffffff !important;
  color: #004080 !important;
  border: 1px solid #004080 !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
}

.btn-secondary:hover {
  background-color: #DAE6F2 !important;
  border-color: #004080 !important;
}

.btn-gold {
  background-color: #E5DCAC !important;
  color: #004080 !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  border: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.btn-gold:hover {
  background-color: #F2D7CE !important;
}

/* Section Container - Exact Spacing */
.section-container {
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

@media (min-width: 640px) {
  .section-container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}

/* Header - Exact Styling */
.site-header {
  background-color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.site-header a {
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #787C7F !important;
  transition: color 0.3s ease !important;
}

.site-header a:hover {
  color: #004080 !important;
}

/* Footer - Exact Styling */
footer {
  background-color: #000000 !important;
  color: #ffffff !important;
  padding-top: 4rem !important;
  padding-bottom: 2rem !important;
}

footer h3 {
  font-family: 'Bodoni Moda', serif !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
  color: #ffffff !important;
}

footer a {
  color: #DAE6F2 !important;
  transition: color 0.3s ease !important;
}

footer a:hover {
  color: #E5DCAC !important;
}

/* Text Colors - Exact Match */
.text-primary {
  color: #004080 !important;
}

.text-secondary {
  color: #787C7F !important;
}

.text-gold {
  color: #E5DCAC !important;
}

/* Background Colors - Exact Match */
.bg-primary {
  background-color: #004080 !important;
}

.bg-secondary {
  background-color: #E5DCAC !important;
}

.bg-accent {
  background-color: #DAE6F2 !important;
}

/* Elementor Typography Override */
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Bodoni Moda', serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  color: #004080 !important;
}

.elementor-widget-text-editor {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #787C7F !important;
}

.elementor-widget-text-editor p {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: #787C7F !important;
  margin-bottom: 1rem !important;
}

/* Elementor Button Exact Match */
.elementor-button {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
}

.elementor-button.elementor-size-sm {
  padding: 8px 16px !important;
  font-size: 14px !important;
}

.elementor-button.elementor-size-lg {
  padding: 16px 32px !important;
  font-size: 18px !important;
}

/* Spacing - Exact Match */
.mb-12 {
  margin-bottom: 3rem !important;
}

.mb-8 {
  margin-bottom: 2rem !important;
}

.mb-6 {
  margin-bottom: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 1rem !important;
}

/* Link Hover Animation - Exact Match */
.hover-underline-animation {
  position: relative !important;
}

.hover-underline-animation::after {
  content: '' !important;
  position: absolute !important;
  width: 100% !important;
  transform: scaleX(0) !important;
  height: 2px !important;
  bottom: -4px !important;
  left: 0 !important;
  background-color: currentColor !important;
  transform-origin: bottom right !important;
  transition: transform 0.3s ease-out !important;
}

.hover-underline-animation:hover::after {
  transform: scaleX(1) !important;
  transform-origin: bottom left !important;
}

/* Card Styles - Exact Match */
.card {
  background-color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  overflow: hidden !important;
  transition: box-shadow 0.3s ease !important;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Section Title - Exact Match */
.section-title h2::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 96px !important;
  height: 4px !important;
  background-color: #FCD34D !important;
  border-radius: 9999px !important;
}

/* Hero Section - Exact Text Styling */
#hero .hero-heading {
  font-family: 'Bodoni Moda', serif !important;
  font-weight: 600 !important;
  font-size: 2.25rem !important; /* 36px */
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  color: #004080 !important;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8), 0 4px 12px rgba(255, 255, 255, 0.5) !important;
}

@media (min-width: 768px) {
  #hero .hero-heading {
    font-size: 3rem !important; /* 48px */
  }
}

@media (min-width: 1024px) {
  #hero .hero-heading {
    font-size: 3.75rem !important; /* 60px */
  }
}

@media (min-width: 1280px) {
  #hero .hero-heading {
    font-size: 4.5rem !important; /* 72px */
  }
}

#hero .hero-subtitle {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.125rem !important; /* 18px */
  line-height: 1.6 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

@media (min-width: 768px) {
  #hero .hero-subtitle {
    font-size: 1.25rem !important; /* 20px */
  }
}

@media (min-width: 1024px) {
  #hero .hero-subtitle {
    font-size: 1.5rem !important; /* 24px */
  }
}

/* Section Titles - Exact Match to React */
section h2,
.section-title h2 {
  font-family: 'Bodoni Moda', serif !important;
  font-weight: 600 !important;
  font-size: 1.875rem !important; /* 30px - text-3xl */
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  color: #004080 !important;
}

@media (min-width: 768px) {
  section h2,
  .section-title h2 {
    font-size: 2.25rem !important; /* 36px - md:text-4xl */
  }
}

/* Section Subtitles */
section .section-title p,
section p.text-xl {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.25rem !important; /* 20px - text-xl */
  line-height: 1.6 !important;
  color: #787C7F !important;
}

/* Card Titles - Exact Match */
.card h3,
.card-title {
  font-family: 'Bodoni Moda', serif !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important; /* 20px - text-xl */
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  color: #004080 !important;
}

/* Card Descriptions */
.card p,
.card-description {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1rem !important; /* 16px */
  line-height: 1.75 !important;
  color: #787C7F !important;
}

/* Body Text - All Paragraphs */
section p:not(.hero-subtitle):not(.section-title p):not(.text-xl):not(.text-sm):not(.text-xs) {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.125rem !important; /* 18px - text-lg */
  line-height: 1.75 !important; /* leading-relaxed */
  color: #787C7F !important;
}

/* Ensure all text-lg paragraphs have correct styling */
section p.text-lg {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.125rem !important; /* 18px */
  line-height: 1.75 !important; /* leading-relaxed */
  color: #787C7F !important;
}

/* H3 Headings - Exact Match to React */
section h3 {
  font-family: 'Bodoni Moda', serif !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important; /* 20px - text-xl */
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  color: #004080 !important;
}

@media (min-width: 768px) {
  section h3 {
    font-size: 1.5rem !important; /* 24px - md:text-2xl */
  }
}

/* H4 Headings */
section h4 {
  font-family: 'Bodoni Moda', serif !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important; /* 20px */
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;
  color: #004080 !important;
}

/* Text Shadow - Exact Match */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure WordPress doesn't override */
.entry-content,
.wp-block-group,
.wp-block-columns {
  font-family: 'Inter', sans-serif !important;
  color: #787C7F !important;
}

.entry-title,
.wp-block-heading {
  font-family: 'Bodoni Moda', serif !important;
  color: #004080 !important;
}

/* Responsive Typography - Exact Match */
@media (max-width: 639px) {
  h1 {
    font-size: 2.25rem !important; /* 36px */
  }
  
  h2 {
    font-size: 1.875rem !important; /* 30px */
  }
  
  h3 {
    font-size: 1.5rem !important; /* 24px */
  }
  
  body {
    font-size: 16px !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  h1 {
    font-size: 3rem !important; /* 48px */
  }
  
  h2 {
    font-size: 2.25rem !important; /* 36px */
  }
  
  h3 {
    font-size: 1.875rem !important; /* 30px */
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.75rem !important; /* 60px */
  }
  
  h2 {
    font-size: 3rem !important; /* 48px */
  }
  
  h3 {
    font-size: 1.875rem !important; /* 30px */
  }
}

/* Fix for Elementor Container */
.elementor-section-boxed > .elementor-container {
  max-width: 1280px !important;
}

/* Ensure proper font rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

