/* =========================================================
   Sarah Skin — main stylesheet
   Brand palette pulled from photography + logo:
   burgundy primary, frosted cream, gold accent
   ========================================================= */

:root {
  --burgundy:        #5C1A2B;
  --burgundy-deep:   #3D0F1C;
  --burgundy-darker: #2A0913;
  --cream:           #F5EBE0;
  --cream-soft:      #FAF3EA;
  --cream-warm:      #EFE3D2;
  --gold:            #C9A267;
  --gold-soft:       #D8B98A;
  --ink:             #1A1313;
  --ink-soft:        #4A3B3F;
  --line:            #E6D6C4;

  --font-ar: "Tajawal", "Segoe UI", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", "Tajawal", serif;

  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 10px 40px -20px rgba(40, 9, 19, .25);
  --shadow-card: 0 24px 60px -30px rgba(40, 9, 19, .35);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream-soft);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* ---------- typography helpers ---------- */

.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(.95rem, 1.2vw, 1.1rem);
  letter-spacing: .14em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.kicker--light { color: var(--gold-soft); }

.section__head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__head--center { text-align: center; max-width: 720px; margin-inline: auto; }

.section__title {
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--burgundy-deep);
}
.section__title--light { color: var(--cream); }

.section__sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  margin-top: 1rem;
  line-height: 1.8;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

.btn--primary {
  background: var(--burgundy);
  color: var(--cream);
  box-shadow: 0 14px 30px -14px rgba(92, 26, 43, .65);
}
.btn--primary:hover {
  background: var(--burgundy-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -16px rgba(92, 26, 43, .8);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 235, 224, .45);
}
.btn--ghost:hover {
  background: rgba(245, 235, 224, .1);
  border-color: var(--cream);
}
.story .btn--ghost,
.contact .btn--ghost {
  color: var(--burgundy);
  border-color: rgba(92, 26, 43, .3);
}
.story .btn--ghost:hover,
.contact .btn--ghost:hover {
  background: rgba(92, 26, 43, .06);
  border-color: var(--burgundy);
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(250, 243, 234, .88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(92, 26, 43, .08);
  padding: .55rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--cream);
  transition: color .35s var(--ease);
}
.nav.is-scrolled .nav__brand-text { color: var(--burgundy-deep); }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: .98rem;
  color: var(--cream);
  transition: color .35s var(--ease);
}
.nav.is-scrolled .nav__links { color: var(--ink); }
.nav__links a {
  position: relative;
  padding: .4rem 0;
  opacity: .85;
  transition: opacity .25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: rgba(245, 235, 224, .15);
  color: var(--cream);
  font-size: .92rem;
  border: 1px solid rgba(245, 235, 224, .3);
  transition: background .25s, color .25s, border-color .25s;
}
.nav__cta svg { width: 16px; height: 16px; }
.nav__cta:hover {
  background: var(--cream);
  color: var(--burgundy-deep);
  border-color: var(--cream);
}
.nav.is-scrolled .nav__cta {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
}
.nav.is-scrolled .nav__cta:hover { background: var(--burgundy-deep); }

.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: background .35s, transform .35s, opacity .35s;
}
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(120% 80% at 50% 0%, #6E2238 0%, #5C1A2B 45%, #3D0F1C 100%);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__glow--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, #C9A267 0%, transparent 70%);
}
.hero__glow--2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, #8E2C45 0%, transparent 70%);
  animation-delay: -6s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.1); }
}

/* floating petals */
.petals {
  position: absolute; inset: 0;
  pointer-events: none;
}
.petals span {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50% 0 50% 0;
  opacity: .25;
  animation: floatUp linear infinite;
}
.petals span:nth-child(1) { left:  8%; animation-duration: 22s; animation-delay:  0s; width: 6px; height: 6px; }
.petals span:nth-child(2) { left: 22%; animation-duration: 26s; animation-delay: -4s; }
.petals span:nth-child(3) { left: 35%; animation-duration: 30s; animation-delay: -9s; width: 10px; height: 10px; }
.petals span:nth-child(4) { left: 48%; animation-duration: 24s; animation-delay: -2s; }
.petals span:nth-child(5) { left: 62%; animation-duration: 28s; animation-delay: -14s; width: 7px; height: 7px; }
.petals span:nth-child(6) { left: 75%; animation-duration: 32s; animation-delay: -7s; }
.petals span:nth-child(7) { left: 86%; animation-duration: 25s; animation-delay: -11s; width: 9px; height: 9px; }
.petals span:nth-child(8) { left: 93%; animation-duration: 29s; animation-delay: -5s; width: 5px; height: 5px; }
@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0); opacity: 0; }
  10%  { opacity: .35; }
  90%  { opacity: .25; }
  100% { transform: translateY(-15vh) rotate(540deg); opacity: 0; }
}

.hero__inner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  letter-spacing: .22em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  padding: 0 2rem;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.4rem;
  height: 1px;
  background: var(--gold-soft);
  opacity: .55;
}
.hero__eyebrow::before { right: 0; }
.hero__eyebrow::after  { left: 0; }

.hero__logo {
  width: clamp(220px, 26vw, 320px);
  margin-bottom: 1.5rem;
  animation: logoFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35));
}
.hero__logo img {
  width: 100%;
  height: auto;
  display: block;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero__title {
  font-family: var(--font-ar);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.8vw, 4.6rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
}
.hero__title-line { display: block; }
.hero__title-line--script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-soft);
}

.hero__sub {
  max-width: 560px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.85;
  color: rgba(245, 235, 224, .82);
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(245, 235, 224, .45);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero__scroll span {
  width: 2px;
  height: 8px;
  background: var(--cream);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 0; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* ============ STORY ============ */

.story {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--cream-soft);
  position: relative;
}
.story::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--burgundy-darker), transparent);
  opacity: .12;
  pointer-events: none;
}

.story__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.story__media { position: relative; }
.story__media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-card);
  background: var(--burgundy);
}
.story__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.story__media:hover .story__media-frame img { transform: scale(1.04); }

.story__media-tag {
  position: absolute;
  bottom: -18px;
  inset-inline-end: -18px;
  padding: .7rem 1.2rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: .92rem;
  color: var(--burgundy);
  box-shadow: var(--shadow-soft);
}

.story__body {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.95;
  color: var(--ink-soft);
}
.story__body p + p { margin-top: 1rem; }
.story__body strong {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--burgundy);
}

/* ============ PRODUCTS ============ */

.products {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--cream-warm);
  position: relative;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

.product {
  background: var(--cream-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .35s;
}
.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(92, 26, 43, .25);
}

.product__img {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #6E2238, var(--burgundy-deep));
  position: relative;
  overflow: hidden;
}
.product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.product:hover .product__img img { transform: scale(1.06); }

.product__img--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  color: var(--cream);
  text-align: center;
}
.product__img--placeholder::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(245, 235, 224, .25);
  border-radius: 12px;
}
.product__img--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 50% at 50% 30%, rgba(201, 162, 103, .18) 0%, transparent 60%);
}
.product__placeholder-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  letter-spacing: .05em;
  position: relative;
  z-index: 1;
}
.product__placeholder-sub {
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: .65;
  position: relative;
  z-index: 1;
}

.product__body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  flex: 1;
}

.product__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.product__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--burgundy-deep);
}
.product__size {
  font-family: var(--font-display);
  font-size: .92rem;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: .04em;
  white-space: nowrap;
}

.product__desc {
  font-size: .98rem;
  line-height: 1.7;
  color: var(--ink-soft);
  flex: 1;
}

.product__buy {
  margin-top: .5rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--burgundy);
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, gap .35s var(--ease);
}
.product__buy:hover {
  border-color: var(--burgundy);
  gap: .7rem;
}
.product__buy span { transition: transform .35s var(--ease); }
.product__buy:hover span { transform: translateX(-3px); }

/* ============ WHY ============ */

.why {
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
  color: var(--cream);
  isolation: isolate;
}
.why__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 80% 30%, rgba(201, 162, 103, .14) 0%, transparent 70%),
    radial-gradient(60% 60% at 20% 80%, rgba(110, 34, 56, .9) 0%, transparent 70%),
    linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
}

.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.pillar {
  text-align: center;
  padding: 1.5rem;
}
.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(245, 235, 224, .08);
  border: 1px solid rgba(201, 162, 103, .35);
  color: var(--gold-soft);
  margin-bottom: 1.3rem;
  transition: transform .5s var(--ease), background .35s, border-color .35s;
}
.pillar__icon svg { width: 32px; height: 32px; }
.pillar:hover .pillar__icon {
  transform: translateY(-4px) rotate(-3deg);
  background: rgba(201, 162, 103, .15);
  border-color: var(--gold);
}

.pillar__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--cream);
}
.pillar__text {
  font-size: .98rem;
  line-height: 1.75;
  color: rgba(245, 235, 224, .72);
}

/* ============ CONTACT ============ */

.contact {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--cream-soft);
  text-align: center;
}
.contact__inner { max-width: 720px; margin: 0 auto; }

.contact__sub {
  margin: 1.5rem auto 0;
  max-width: 560px;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--ink-soft);
  line-height: 1.85;
}

.contact__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact__note {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: .95rem;
  letter-spacing: .03em;
}

/* ============ FOOTER ============ */

.footer {
  padding: 3rem 0 2rem;
  background: var(--burgundy-deep);
  color: rgba(245, 235, 224, .8);
  text-align: center;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer__brand img {
  width: 110px;
  opacity: .9;
}
.footer__tag {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: .12em;
  font-size: .95rem;
  color: var(--gold-soft);
}
.footer__copy {
  font-size: .85rem;
  opacity: .6;
  margin-top: .5rem;
}

/* ============ FLOATING WhatsApp ============ */

.fab {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-start: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -6px rgba(37, 211, 102, .55);
  z-index: 99;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: fabPulse 2.5s ease-in-out infinite;
}
.fab svg { width: 28px; height: 28px; }
.fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 18px 36px -6px rgba(37, 211, 102, .7);
  animation-play-state: paused;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 12px 28px -6px rgba(37, 211, 102, .55), 0 0 0 0 rgba(37, 211, 102, .5); }
  50%      { box-shadow: 0 12px 28px -6px rgba(37, 211, 102, .55), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ============ REVEAL ANIMATIONS ============ */

.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
  will-change: opacity, transform;
}
.reveal.is-in,
.reveal-up.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 860px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner { justify-content: space-between; }

  .nav.is-open .nav__links {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    background: var(--cream-soft);
    color: var(--ink);
    font-size: 1.4rem;
    z-index: 90;
  }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav.is-open .nav__toggle span { background: var(--ink); }

  .story__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .story__media { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }

  .hero__inner { padding-top: 6rem; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; width: 100%; max-width: 320px; }
  .hero__cta .btn { width: 100%; }
  .contact__actions { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
  .fab { width: 50px; height: 50px; bottom: 1rem; inset-inline-start: 1rem; }
  .fab svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-up { opacity: 1; transform: none; }
}
