/* Precious Pics Pro - Facebook Landing Page Global Styles */
/* Design System: PRD v1.0.0 */

:root {
  /* Brand Colors */
  --color-bg: #F8F8FA;
  --color-accent-primary: #C1CFDA;
  --color-accent-secondary: #80D8D0;
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #666666;
  --color-white: #FFFFFF;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(36px, 8vw, 50px);
}

h2 {
  font-size: clamp(28px, 6vw, 40px);
}

h3 {
  font-size: clamp(22px, 4vw, 28px);
}

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-secondary);
}

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

/* Buttons */
button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

.cta-button {
  display: inline-block;
  padding: 16px 32px;
  background-color: var(--color-accent-secondary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.cta-button:hover {
  transform: scale(1.03);
  background-color: #6BC9C1;
  color: var(--color-text-primary);
}

.cta-button:active {
  transform: scale(0.98);
}

/* Form Elements */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-accent-secondary);
  outline-offset: 2px;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

@media (min-width: 768px) {
  .section {
    padding: var(--space-4xl) 0;
  }
}

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

.text-secondary {
  color: var(--color-text-secondary);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero fade-in */
.hero-content {
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Accessibility - Respect User Preferences */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-content {
    opacity: 1;
    animation: none;
  }
}

/* Safe Area for iOS */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}

/* 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;
}

/* Focus Visible for Keyboard Navigation */
:focus-visible {
  outline: 2px solid var(--color-accent-secondary);
  outline-offset: 2px;
}

/* Hide focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}
