/* ============================================================
   FABIE HAIR DESIGN — style.css
   ============================================================ */

/* ============================
   TOKENS
============================ */
:root {
  --blush:       #F2D9DC;
  --blush-light: #FAF2F3;
  --rose:        #ff52bf;
  --rose-dark:   #f8596b;
  --ink:         #1A1A1A;
  --dark:        #0D0D0D;
  --muted:       #8A8A8A;
  --bg:          #FFFFFF;
  --border:      #EAD9DB;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --nav-h:    62px;
  --hero-ratio: 976 / 1137;
}


/* ============================
   RESET
============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* 👈 add this */
  width: 100%;        /* 👈 add this */
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  width: 100%;        /* 👈 add this */
  line-height: 1.8;
}
img   { display: block; max-width: 100%; height: auto; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }


/* ============================
   NAV
============================ */
.nav {
  background: var(--blush);
  position: fixed;    /* 👈 was sticky */
  top: 0;
  left: 0;            /* 👈 add this */
  right: 0;           /* 👈 add this */
  z-index: 200;
  height: var(--nav-h);
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.15;
}

.logo-text span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-dark);
}

.nav-links { display: none; gap: 32px; }

.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--rose-dark); }

.nav-book {
  display: none;
  padding: 9px 20px;
  border-radius: 100px;
  background: var(--rose);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.nav-book:hover { background: var(--rose-dark); }

.hamburger {
  background: none;
  border: none;
  cursor: pointer !important;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  text-align: center;
  left: 0;
  right: 0;
  background: var(--blush);
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  z-index: 199;
  transition: max-height 0.35s ease;
}

.nav-drawer.open { max-height: 360px; }

.nav-drawer a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
  color: #A8324E;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-drawer a:last-child { border-bottom: none; padding-bottom: 20px; }
.nav-drawer a:hover      { color: var(--rose-dark); }

@media (min-width: 768px) {
  .nav        { padding: 0 48px; }
  .nav-links  { display: flex; }
  .nav-book   { display: inline-flex; }
  .hamburger  { display: none; }
  .nav-drawer { display: none !important; }
}


/* ============================
   BUTTONS
============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.15s ease;
  cursor: pointer !important;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-rose { background: var(--rose); color: #fff; border-color: var(--rose); }
.btn-rose:hover { background: var(--rose-dark); border-color: var(--rose-dark); }

.btn-outline {
  background: transparent;
  color: var(--rose-dark);
  border-color: var(--rose);
}
.btn-outline:hover { background: var(--blush-light); }

.btn-outline-light {
  background: #A8324E;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #333; border-color: #333; }

.btn-wa {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  font-size: 0.78rem;
  padding: 14px 28px;
}
.btn-wa:hover { background: #1db954; border-color: #1db954; }

@media (max-width: 480px) {
  .btn-wa { width: 100%; font-size: 0.6rem; }
}


/* ============================
   SECTION COMMON
============================ */
.section { padding: 80px 22px; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.section-ghost-num {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(7rem, 20vw, 14rem);
  font-weight: 700;
  color: rgba(239, 8, 37, 0.09);
  line-height: 1;
  top: -40px;
  left: -16px;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
}

.section-ghost-num.light {
  color: rgba(255,255,255,0.04);
}

.section-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 52px;
  color: var(--ink);
  position: relative;
}

.section-title em    { font-style: italic; color: var(--rose-dark); }
.section-title.light { color: #fff; }

@media (min-width: 768px) { .section { padding: 108px 48px; } }


/* ============================
   HERO
============================ */
.hero {
  position: relative;
  width: 100%;
  margin-top: var(--nav-h); /* 👈 add this */
  background: linear-gradient(to bottom, #ffffff 45%, #fdf2f3 100%);
  aspect-ratio: var(--hero-ratio);
  min-height: 500px;
  overflow: hidden;
}

.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-deco svg {
  width: 100%;
  height: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

/* -----------------------------------------------
   HERO CONTENT
   Positioned over the white card area in your PNG.
   Three breakpoints:
     default  → normal mobile
     ≤390px   → smallest phones (SE, small Android)
     ≥768px   → desktop
   Adjust top/left/right/bottom to reposition.
   Font sizes use clamp() so they scale with viewport.
----------------------------------------------- */
.hero-content {
  position: absolute;
  top:    55%;
  left:   28%;
  right:  3%;
  bottom: 4%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  text-align: left;
  overflow: hidden;
}

.hero-eyebrow {
  display: block;
  font-size: clamp(0.7rem, 1.1vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.4em;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.0;
  margin-bottom: 0.4em;
  color: var(--ink);
}
.hero-name em { font-style: italic; color: var(--rose-dark); }

.hero-desc {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.6;
  color: #555;
  margin-bottom: 0.8em;
  /* Limit to 3 lines on mobile so it fits inside the card */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-btns {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-btns .btn {
  font-size: clamp(0.8rem, 1vw, 0.73rem);
  padding: clamp(6px, 0.9vw, 13px) clamp(9px, 1.4vw, 24px);
}

/* Smallest phones */
@media (max-width: 390px) {
  .hero-content {
    top:    57%;
    left:   27%;
    right:  2%;
    bottom: 3%;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .hero-content {
    top:    55%;
    left:   35%;
    right:  2%;
    bottom: 4%;
  }

  /* Restore full paragraph on desktop */
  .hero-desc {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
}


/* ============================
   SERVICES
============================ */
.services { background: var(--bg); }

.services-intro {
  padding: 80px 22px 52px;
  position: relative;
}

@media (min-width: 768px) {
  .services-intro { padding: 108px 48px 64px; }
}

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 22px 80px;
}

@media (min-width: 768px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 48px 108px;
  }
}

/* Card gradient backgrounds */
.svc-card--hair .svc-card-body {
  background: linear-gradient(to bottom, #A8324E, #262525);
}

.svc-card--dreads .svc-card-body {
  background: linear-gradient(to bottom, #46306E, #1e1630);
}

.svc-card--makeup .svc-card-body {
  background: linear-gradient(to bottom, #A84E28, #322112);
}

.svc-card {
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.15);
}

.svc-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
}

.svc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Image-to-card fade — class-specific so each matches its card color */
.svc-card-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  pointer-events: none;
}

.svc-card--hair   .svc-card-fade { background: linear-gradient(to top, #A8324E, transparent); }
.svc-card--dreads .svc-card-fade { background: linear-gradient(to top, #46306E, transparent); }
.svc-card--makeup .svc-card-fade { background: linear-gradient(to top, #A84E28, transparent); }

.svc-card-body {
  padding: 0 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.svc-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  line-height: 1;
  display: block;
}

.svc-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
}
.svc-title em { font-style: italic; color: rgba(255,255,255,0.75); }

.svc-price-list { display: flex; flex-direction: column; flex: 1; }

.svc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.svc-row:last-child { border-bottom: none; }

.svc-row span:first-child {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
}
.svc-row span:last-child {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.95);
  flex-shrink: 0;
}

.deposit-note {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
  margin-top: -32px;
}


/* ============================
   GALLERY
============================ 
.gallery { background: var(--bg); }

.gallery-grid {
  columns: 2;
  gap: 10px;
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,8,10,0.35);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

@media (min-width: 640px) { .gallery-grid { columns: 3; } }
*/






/* ============================
   GALLERY
============================ */
.gallery {
  background: var(--bg);
  overflow: hidden;
}

/* Pull strips edge to edge, cancels section padding */
.marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  margin-left: -22px;
  margin-right: -22px;
}

@media (min-width: 768px) {
  .marquee-wrap {
    margin-left: -48px;
    margin-right: -48px;
    gap: 14px;
  }
}

.marquee-row {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
  -webkit-transform: translateZ(0); /* 👈 forces GPU acceleration on iOS */
  transform: translateZ(0);
}

.marquee-track img {
  height: 200px;
  width: auto;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 768px) {
  .marquee-track img { height: 260px; }
}

/* Pause on hover */
.marquee-track:hover {
  animation-play-state: paused;
}







/* ============================
   ABOUT
============================ */
.about {
  background: var(--dark);
  padding-top: 0;
}

/* Full-width top image — no negative margins needed since .about has no padding */
.about-top-img {
  position: relative;
  line-height: 0;
}

.about-top-img img {
  width: 100%;
  height: auto;
  display: block;
}

.about-top-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--dark));
  pointer-events: none;
}

.about-body {
  padding: 72px 22px 64px;
}

.about-text-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.about-body .section-label { color: var(--rose); }

.about-body p {
  font-size: 0.93rem;
  line-height: 2;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.about-body p:last-of-type { margin-bottom: 36px; }

.about-duo {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 👈 two columns on mobile too */
  gap: 12px;
  padding: 0 22px 64px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-duo-img {
  overflow: hidden;
  border-radius: 12px;
}

.about-duo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-duo-img:hover img { transform: scale(1.03); }

.about-duo-img--1 { aspect-ratio: 3/4; }
.about-duo-img--2 { aspect-ratio: 3/4; }

@media (min-width: 768px) {
  .about-duo {
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    padding: 0 48px 80px;
    align-items: start;
  }

  .about-duo-img--2 {
    margin-top: 80px;
  }
}


/* ============================
   CONTACT
============================ */
.contact { background: var(--bg); text-align: center; }
.contact .section-ghost-num { left: 50%; transform: translateX(-50%); }
.contact .section-label { text-align: center; }
.contact .section-title { text-align: center; }

.contact-sub {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 380px;
  margin: -32px auto 52px;
}

.social-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 0.78rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer !important;
}
.chip:hover {
  border-color: var(--rose);
  background: var(--blush-light);
  color: var(--rose-dark);
  transform: translateY(-2px);
}
.chip svg { flex-shrink: 0; }

.contact-divider {
  width: 1px;
  height: 52px;
  background: var(--border);
  margin: 0 auto 52px;
}

.wa-block h3 {
  font-size: 1.2rem;
  color: #535151;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 6px;
}

.wa-block p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 28px;
}


/* ============================
   POLICY
============================ */
.policy { background: var(--blush-light); }

.policy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.policy-item {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.policy-item:hover {
  border-color: var(--rose);
  box-shadow: 0 4px 24px rgba(201,136,144,0.1);
}

.policy-item h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 10px;
}

.policy-item p {
  font-size: 0.81rem;
  line-height: 1.8;
  color: var(--muted);
}

@media (min-width: 640px) { .policy-grid { grid-template-columns: 1fr 1fr; } }


/* ============================
   FOOTER
============================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.footer em { color: var(--rose); font-style: normal; }
