/* ============================================
   Perla Desjardins — UGC Creator Portfolio
   Luxury, clean, minimal: beige, cream, neutrals
   ============================================ */

:root {
  /* Neutrals — soft, tonal */
  --cream: #FBF9F6;
  --cream-warm: #F6F2EC;
  --beige: #E8E3DC;
  --beige-medium: #D8D1C8;
  --sand: #C9C0B5;
  --text: #1F1F1F;
  --text-soft: #4A4A4A;
  --text-muted: #7A7672;

  /* Accent — barely there warmth */
  --accent: #B5A898;
  --accent-hover: #9C8F80;

  /* Typography — refined */
  --font-heading: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;

  /* Spacing — tight, refined */
  --space-xs: 0.375rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;

  /* Layout */
  --max-width: 920px;
  --header-height: 64px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 2px 24px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 6px 32px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.07);
  --radius: 2px;
  --radius-md: 6px;
}

/* ---------- Motion & Parallax ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(28px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

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

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

  @keyframes starGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.88; transform: scale(1.06); }
  }

  .animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  .animate-on-scroll.animate-delay-1 { transition-delay: 0.1s; }
  .animate-on-scroll.animate-delay-2 { transition-delay: 0.2s; }
  .animate-on-scroll.animate-delay-3 { transition-delay: 0.3s; }
  .animate-on-scroll.animate-delay-4 { transition-delay: 0.4s; }
}

.deco-star {
  color: var(--accent);
  display: inline-block;
  font-size: 1em;
  line-height: 1;
  vertical-align: middle;
}

@media (prefers-reduced-motion: no-preference) {
  .deco-star {
    animation: starGlow 3s ease-in-out infinite;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  opacity: 0.85;
}

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

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.03em;
}

h3 {
  font-size: 1.2rem;
  color: var(--text-soft);
  font-weight: 500;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ========== Header / Nav ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(251, 249, 246, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 227, 220, 0.65);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 8px rgba(0, 0, 0, 0.03);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.nav-list a {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 400;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--text);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid var(--beige);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  background: var(--text);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}

.btn--filled {
  background: var(--text);
  color: var(--cream);
  border-color: var(--text);
}

.btn--filled:hover {
  background: var(--text-soft);
  border-color: var(--text-soft);
  color: var(--cream);
  box-shadow: var(--shadow-medium);
}

/* ========== Footer ========== */
.site-footer {
  background: linear-gradient(180deg, #eae5de 0%, var(--beige) 100%);
  padding: var(--space-2xl) 0 var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: var(--max-width);
}

.footer-nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--text-soft);
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-soft);
  transition: color var(--transition), transform var(--transition);
}

.footer-socials a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.footer-socials svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.site-footer .footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ========== Section spacing ========== */
section {
  padding: var(--space-xl) 0;
}

.section-title {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.section-title h2 {
  margin-bottom: var(--space-xs);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.section-title p {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 300;
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-title p a {
  color: var(--accent);
  font-weight: 500;
}

.section-title p a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ========== Utility ========== */
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
