/* ============================================================
   Yoo Jean Korean Hair Salon — Sticky Header
   Two-row layout: logo on top, horizontal menu below.
   HOME | PRICE | LOCATION | WHATSAPP  (always visible, no burger)
   ============================================================ */

:root {
  --yj-ink:        #14110f;
  --yj-ink-soft:   #4a443e;
  --yj-gold:       #c9a227;
  --yj-gold-soft:  #d0ae5e;
  --yj-cream:      #faf7f2;
  --yj-line:       #e8e2d8;
  --yj-wa:         #25d366;
  --yj-wa-dark:    #1da851;
  --yj-h:          124px;   /* full header height, referenced by the WP plugin */
  --yj-logo-h:     40px;
  --yj-ease:       cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--yj-h);
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--yj-ink-soft);
  background: var(--yj-cream);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header shell ---------- */

.yj-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  border-bottom: 1px solid var(--yj-line);
  transition: box-shadow .25s var(--yj-ease);
}

/* Frosted layer lives on a pseudo-element: backdrop-filter on the header
   itself would create a paint containment box and clip descendants. */
.yj-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.yj-header.is-scrolled { box-shadow: 0 2px 16px rgba(20, 17, 15, .1); }

.yj-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Row 1: logo ---------- */

.yj-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0 10px;
  text-decoration: none;
}

.yj-brand img {
  display: block;
  height: var(--yj-logo-h);
  width: auto;
  transition: height .25s var(--yj-ease);
}

.yj-header.is-scrolled .yj-brand { padding: 10px 0 6px; }
.yj-header.is-scrolled .yj-brand img { height: 30px; }

/* ---------- Row 2: horizontal menu ---------- */

.yj-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 12px;
  width: 100%;
}

.yj-header.is-scrolled .yj-nav { padding-bottom: 8px; }

.yj-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: Oswald, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yj-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--yj-ease);
}

.yj-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--yj-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--yj-ease);
}

.yj-nav a:hover { color: var(--yj-gold); }
.yj-nav a:hover::after,
.yj-nav a.is-active::after { transform: scaleX(1); }

/* Divider between the page links and the WhatsApp action. */
.yj-nav__sep {
  width: 1px;
  height: 16px;
  margin: 0 6px;
  background: var(--yj-line);
}

/* ---------- WhatsApp menu item ---------- */

.yj-nav a.yj-nav-wa {
  color: var(--yj-wa-dark);
  font-weight: 600;
}

.yj-nav a.yj-nav-wa:hover { color: var(--yj-wa); }
.yj-nav a.yj-nav-wa::after { background: var(--yj-wa); }

/* Icon sized to match the menu text, not a pill button. */
.yj-nav-wa svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ---------- Mobile: keep the same layout, tighten spacing ---------- */

@media (max-width: 620px) {
  :root {
    --yj-h: 108px;
    --yj-logo-h: 30px;
  }

  .yj-header__inner { padding: 0 12px; }

  .yj-brand { padding: 12px 0 6px; }
  .yj-header.is-scrolled .yj-brand { padding: 8px 0 4px; }
  .yj-header.is-scrolled .yj-brand img { height: 24px; }

  .yj-nav {
    gap: 0;
    padding-bottom: 8px;
    justify-content: space-between;
  }

  .yj-nav a {
    padding: 6px 8px;
    font-size: 12px;
    letter-spacing: .08em;
  }

  .yj-nav a::after { left: 8px; right: 8px; }

  .yj-nav__sep { margin: 0 2px; }

  .yj-nav-wa svg { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .yj-header, .yj-brand img, .yj-nav a::after { transition: none; }
}

/* ---------- Demo page scaffolding (prototype only) ---------- */

.yj-hero {
  position: relative;
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: #2a2622 center/cover no-repeat;
  overflow: hidden;
}

.yj-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,17,15,.55), rgba(20,17,15,.72));
}

.yj-hero__body { position: relative; z-index: 1; padding: 64px 24px; }

.yj-hero h1 {
  margin: 0 0 14px;
  font-family: Oswald, sans-serif;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 300;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.yj-hero p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 17px;
  opacity: .92;
}

.yj-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px;
}

.yj-section h2 {
  margin: 0 0 20px;
  font-family: Oswald, sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yj-ink);
}

.yj-section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 12px;
  background: var(--yj-gold);
}

.yj-note {
  padding: 14px 18px;
  border-left: 3px solid var(--yj-gold);
  background: #fff;
  font-size: 15px;
}

.yj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.yj-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--yj-line);
  border-radius: 4px;
}

.yj-card h3 {
  margin: 0 0 8px;
  font-family: Oswald, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yj-ink);
}

.yj-card p { margin: 0; font-size: 15px; }

.yj-footer {
  padding: 40px 24px;
  text-align: center;
  font-size: 14px;
  color: #8a8279;
  border-top: 1px solid var(--yj-line);
}
