/* ==========================================================================
   Pafos Beauty -- design tokens, navigation, motion
   Everything else is styled with Tailwind utilities in the markup.
   ========================================================================== */

:root {
  /* -- Colours -- */
  --color-bg: #faf6f1;
  --color-bg-alt: #f1e8de;
  --color-surface: #ffffff;
  --color-text: #2c2621;
  --color-text-muted: #6f645b;
  --color-primary: #9c6f5d;
  --color-primary-light: #c9a596;
  --color-primary-dark: #7b5445;
  --color-accent: #c9a596;
  --color-border: #e3d8cc;

  /* -- Typography -- */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', -apple-system, system-ui, 'Segoe UI', sans-serif;

  /* -- Layout -- */
  --max-width: 1200px;

  /* -- Standard tokens -- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --radius-default: 4px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(44, 38, 33, 0.06);
  --shadow-md: 0 6px 18px rgba(44, 38, 33, 0.08);
  --shadow-lg: 0 14px 38px rgba(44, 38, 33, 0.10);
  --shadow-xl: 0 26px 60px rgba(44, 38, 33, 0.13);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

/* ==========================================================================
   Icons
   ========================================================================== */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.icon.hidden { display: none; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2em; height: 2em; }

/* ==========================================================================
   Site header / desktop navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: rgba(250, 246, 241, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(44, 38, 33, 0.07);
  transition: background-color 0.4s cubic-bezier(0.33, 1, 0.68, 1),
              box-shadow 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}
.site-header.is-scrolled {
  background-color: rgba(250, 246, 241, 0.97);
  box-shadow: 0 10px 34px rgba(44, 38, 33, 0.07);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 1280px) {
  .nav-inner { padding: 0 2rem; }
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  line-height: 1;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo-mark {
  height: 46px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}
.nav-logo em,
.nav-logo span em {
  font-style: italic;
  color: var(--color-primary);
}
@media (max-width: 420px) {
  .nav-logo-text { display: none; }
}

.nav-desktop { display: none; }

.nav-link {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #4b423b;
  text-decoration: none;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background-color: var(--color-primary);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover { color: var(--color-primary); }
.nav-link:hover::after { width: 100%; }
.nav-link[aria-current="page"] { color: var(--color-text); }
.nav-link[aria-current="page"]::after { width: 100%; }

.nav-cta { display: none; }
@media (min-width: 600px) {
  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background-color: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    transition: background-color 0.35s cubic-bezier(0.33, 1, 0.68, 1),
                transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
  }
  .nav-cta:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--color-text);
}

@media (min-width: 960px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
}

/* ==========================================================================
   Mobile menu -- lives outside <header>
   ========================================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  padding: 6.5rem 1.75rem 3rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (min-width: 960px) {
  .mobile-menu { display: none; }
}

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  padding: 0.5rem;
  line-height: 1;
  z-index: 1;
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 9vw, 2.9rem);
  line-height: 1.3;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
.mobile-nav-link:hover,
.mobile-nav-link[aria-current="page"] { color: var(--color-primary); }

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

@keyframes softPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 90ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 180ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 270ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 360ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 450ms; }
[data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: 540ms; }
[data-reveal-stagger].is-visible > *:nth-child(8) { transition-delay: 630ms; }
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}