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

:root {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Cormorant Garamond', serif;
  background-color: transparent;
  color: #2C241C;
  line-height: 1.7;
  font-size: 18px;
  font-weight: 400;
  overflow-x: hidden;
}

#root {
  margin: auto;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Custom scrollbar */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #FEFCFA;
}

::-webkit-scrollbar-thumb {
  background: #D4A574;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B8956A;
}

/* Smooth transitions for interactive elements */

button, a, [role="button"] {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Focus styles for accessibility */

*:focus-visible {
  outline: 2px solid #D4A574;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove default button styles */

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Image optimization */

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

/* Typography improvements */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  line-height: 1.2;
  font-weight: 300;
}

p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}

/* Admin panel — override wedding fonts with Inter */

body.admin-theme,
body.admin-theme *:not(style):not(script) {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}

/* Link styles */

a {
  color: #D4A574;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #8B4513;
}

/* Selection styles */

::selection {
  background-color: rgba(212, 165, 116, 0.3);
  color: #2C1810;
}

/* Elegant animations */

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

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

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* Utility classes */

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

.full-width {
  width: 100%;
}

.full-height {
  height: 100vh;
}

/* Smooth scrolling for anchor links */

html {
  scroll-padding-top: 100px;
}

/* Print styles */

@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
  
  @page {
    margin: 2cm;
  }
}
