/* Base CSS - Reset, Variables, RTL Support */

/* CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--white);
  overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .ltr {
  direction: ltr;
  text-align: left;
}

/* CSS Variables */
:root {
  /* Colors */
  --pink: #D86487;
  --pink-100: #F9E6EC;
  --pink-dark: #c55a73;
  --ink: #222222;
  --white: #FFFFFF;
  
  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-tooltip: 1050;
}

/* Typography */
/* Professional Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
}

p {
  margin-bottom: var(--space-sm);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
}

/* Professional Text Styles */
.text-lead {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink);
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.4;
}

.text-caption {
  font-size: 0.75rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Links */
a {
  color: var(--pink);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--pink-dark);
}

/* Professional Image Optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: opacity var(--transition-normal);
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.img-loaded {
  opacity: 1;
}

img.img-error {
  opacity: 0.5;
  filter: grayscale(100%);
}

/* Professional Image Styles */
.img-rounded {
  border-radius: var(--radius-lg);
}

.img-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.img-hover {
  transition: transform var(--transition-normal);
}

.img-hover:hover {
  transform: scale(1.02);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate--visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate--left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate--left.scroll-animate--visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate--right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate--right.scroll-animate--visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate--scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate--scale.scroll-animate--visible {
  opacity: 1;
  transform: scale(1);
}

.scroll-animate--fade {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.scroll-animate--fade.scroll-animate--visible {
  opacity: 1;
}

/* Staggered animations */
.scroll-animate--delay-1 {
  transition-delay: 0.1s;
}

.scroll-animate--delay-2 {
  transition-delay: 0.2s;
}

.scroll-animate--delay-3 {
  transition-delay: 0.3s;
}

.scroll-animate--delay-4 {
  transition-delay: 0.4s;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.color-pink {
  color: var(--pink);
}

.color-pink-dark {
  color: var(--pink-dark);
}

.color-ink {
  color: var(--ink);
}

.bg-pink {
  background-color: var(--pink);
}

.bg-pink-100 {
  background-color: var(--pink-100);
}

.bg-white {
  background-color: var(--white);
}
