/* ============================================================
   ZAHARI · Wellness Sanctuary
   main.css · tokens, base, layout
   ============================================================ */

:root {
  /* ====== Brand Palette (feniks.group inspired) ====== */
  --c-turquoise-50:  #e6f8fa;
  --c-turquoise-100: #c1ecef;
  --c-turquoise-200: #7fd9e0;
  --c-turquoise-300: #3fc4cf;
  --c-turquoise-400: #1aaebc;
  --c-turquoise-500: #0e8a98;  /* primary */
  --c-turquoise-600: #0a6573;
  --c-turquoise-700: #084854;
  --c-turquoise-800: #062f38;
  --c-turquoise-900: #041d24;
  --c-turquoise-950: #021217;

  --c-gold-50:  #fbf6e8;
  --c-gold-100: #f4e7bc;
  --c-gold-200: #ead08a;
  --c-gold-300: #e2bf60;
  --c-gold-400: #d4af37;   /* primary gold */
  --c-gold-500: #b8922a;
  --c-gold-600: #94731e;
  --c-gold-700: #6d5417;

  --c-magenta-300: #ff6f97;
  --c-magenta-400: #ef3a73;
  --c-magenta-500: #d41b60; /* primary magenta */
  --c-magenta-600: #a9164b;
  --c-magenta-700: #7e0e38;

  --c-ivory:    #faf6ee;
  --c-cream:    #f3ebd9;
  --c-paper:    #ece1c8;
  --c-pearl:    #f7f1e4;
  --c-ink:      #0a1418;
  --c-ink-2:    #1a2630;
  --c-mist:     #8aa0a8;

  /* Surfaces */
  --bg-deep:    #03151a;
  --bg-base:    #062329;
  --bg-card:    #0a3239;
  --bg-veil:    rgba(4, 22, 27, 0.72);
  --line:       rgba(212, 175, 55, 0.22);
  --line-soft:  rgba(255, 255, 255, 0.08);

  /* Type */
  --f-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --f-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Easing */
  --ease-out:  cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,.05,.36,1);
  --ease-luxe: cubic-bezier(.16,.84,.44,1);

  /* Layout */
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-soft: 0 20px 50px -25px rgba(0,0,0,.55), 0 4px 14px rgba(0,0,0,.25);
  --shadow-glow: 0 0 40px -8px rgba(212,175,55,.45);
}

/* ====== Reset ====== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--c-ivory);
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ====== Typography ====== */
.display {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--c-ivory);
  margin: 0;
}
.display em {
  font-style: italic;
  color: var(--c-gold-300);
}
.display--center { text-align: center; }

.lead {
  font-family: var(--f-sans);
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.7;
  color: rgba(250, 246, 238, 0.78);
  max-width: 60ch;
  margin: 1.2rem 0 0;
}
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-gold-300);
  padding-left: 38px;
  position: relative;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold-400), transparent);
}
/* Center-aligned eyebrow: replace dash with magenta dot */
.eyebrow--center {
  display: block;
  text-align: center;
  padding-left: 0;
  color: var(--c-magenta-300);
}
.eyebrow--center::before {
  display: none;
}
.eyebrow--center {
  display: block;
  text-align: center;
  padding-left: 0;
}
.eyebrow--center::before { display: none; }

/* ====== Selection ====== */
::selection { background: var(--c-gold-400); color: var(--c-ink); }

/* ====== Scrollbars ====== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--c-turquoise-500), var(--c-gold-500));
  border-radius: 10px;
  border: 2px solid var(--bg-deep);
}

/* ====== Layout helpers ====== */
section { position: relative; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ====== Top notice bar ====== */
.top-bar {
  position: relative;
  z-index: 50;
  background: var(--c-turquoise-900);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.top-bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--c-ivory);
}
.top-bar__inner > .top-bar__text { text-transform: uppercase; }
.top-bar__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-magenta-400);
  box-shadow: 0 0 16px var(--c-magenta-400);
  animation: pulse-dot 2s var(--ease-in-out) infinite;
}
.top-bar__phone {
  color: var(--c-gold-300);
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-left: 6px;
  transition: color .25s var(--ease-out);
}
.top-bar__phone:hover { color: var(--c-gold-200); }

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -10% -2% -10% -2%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  filter: saturate(1.1) contrast(1.05);
  transform: translate3d(0,0,0) scale(1.08);
  will-change: transform;
  transition: opacity .8s var(--ease-luxe);
}
.hero__bg.is-loaded { opacity: 1; }
.hero__bg:not(.is-loaded) { opacity: 0; }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(2, 18, 23, 0.55);
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .8 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__content {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px var(--gutter) 120px;
  text-align: left;
  width: 100%;
}
.hero__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 22px 0 26px;
  color: var(--c-ivory);
  text-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.hero__title em {
  font-style: italic;
  color: var(--c-gold-300);
  display: inline-block;
}
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  max-width: 56ch;
  color: rgba(250,246,238,.82);
  margin: 0 0 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 80px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__meta-num {
  font-family: var(--f-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--c-gold-300);
  line-height: 1;
}
.hero__meta-item:nth-child(3) .hero__meta-num {
  color: var(--c-magenta-300);
}
.hero__meta-num span { font-size: 1rem; opacity: .7; }
.hero__meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mist);
}
.hero__meta-divider {
  width: 1px;
  height: 30px;
  background: rgba(212,27,96,.3);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-mist);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--c-gold-400), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 14px;
  background: var(--c-gold-200);
  animation: scroll-line 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(280%); }
}

/* ====== About ====== */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) var(--gutter);
  align-items: center;
}
.about__media {
  position: relative;
  overflow: visible;
}
.about__img {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-soft);
  will-change: transform;
}
.about__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, transparent 55%, rgba(212,27,96,.28) 100%),
    linear-gradient(0deg, rgba(2,18,23,.3), transparent 30%);
}
.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-luxe);
}
.about__media:hover .about__img img { transform: scale(1.04); }

.about__sticker {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--c-gold-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
  text-align: center;
  font-family: var(--f-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-glow);
  border: 2px solid rgba(212,175,55,.5);
  animation: spin-slow 22s linear infinite;
}
.about__sticker span {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  margin-bottom: 4px;
}
.about__sticker strong {
  font-size: 1.6rem;
  font-weight: 600;
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.about__copy .display { margin-top: 18px; }
.about__copy p { margin-top: 1rem; }
.about__list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--c-ivory);
}
.about__list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-magenta-400);
  box-shadow: 0 0 14px var(--c-magenta-400);
  flex-shrink: 0;
}

/* ====== Services ====== */
.services {
  background: var(--bg-deep);
  padding: clamp(40px, 4vw, 70px) var(--gutter);
  position: relative;
}
.services__head {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
  position: relative;
}
.services__head::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: var(--c-magenta-400);
  margin: 18px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(212,27,96,.5);
}
.services__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.services__foot {
  text-align: center;
  margin: 22px auto 0;
  max-width: 60ch;
  color: var(--c-mist);
  font-style: italic;
  font-family: var(--f-serif);
  font-size: 0.95rem;
}
.services__foot em {
  color: var(--c-gold-300);
  font-style: italic;
}
