/* ══ LAYLITA'S CRAFT HOUSE — BASE STYLES ══
   Tokens, reset, body, header, nav, footer, buttons, animations.
   Loaded on every page.
════════════════════════════════════════════ */

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

:root {
  /* ── Pastel Pink ── */
  --pink-pale:   #FDE8F0;
  --pink-light:  #F7C5D8;
  --pink-mid:    #EE9BBB;
  --pink-strong: #D9649A;
  --pink-dark:   #A84070;

  /* ── Pastel Purple ── */
  --plum-pale:   #F0E8FC;
  --plum-light:  #D8C0F4;
  --plum-mid:    #B890E0;
  --plum-strong: #8A50C8;
  --plum-dark:   #5C2E90;

  /* ── Gold ── */
  --gold:        #C8933A;
  --gold-light:  #F0C96A;

  /* ── Neutrals ── */
  --ink:         #3A2040;
  --ink-soft:    #6B4878;
  --cream:       #FDF5FD;
  --warm-white:  #FFF8FF;

  /* ── Tape strips ── */
  --tape-pink:   rgba(247,197,216,0.65);
  --tape-plum:   rgba(216,192,244,0.65);
  --tape-rose:   rgba(238,155,187,0.5);

  --tap-min: 48px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  overflow-x: hidden;
}

/* ══ HEADER ══ */
header {
  background: linear-gradient(135deg, var(--pink-pale) 0%, var(--plum-pale) 50%, var(--pink-light) 100%);
  border-bottom: 3px solid var(--pink-mid);
  padding: 0 1.5rem;
  height: 100px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 4px 20px rgba(140,40,100,0.13);
  overflow: visible;
}

.logo-link {
  display: flex; align-items: center; text-decoration: none; height: 100px;
  transition: transform 0.2s;
  overflow: visible;
}
.logo-link:hover { transform: rotate(-2deg) scale(1.05); }
.logo-link img { height: 80px; width: auto; filter: drop-shadow(2px 2px 4px rgba(160,60,110,0.25)); }

/* ══ DESKTOP NAV ══ */
.desktop-nav { display: flex; align-items: center; gap: 0.2rem; }
.desktop-nav a {
  font-family: 'Caveat', cursive; font-size: 1.1rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  padding: 0.35rem 0.9rem; border-radius: 30px;
  transition: all 0.2s; letter-spacing: 0.02em;
}
.desktop-nav a:hover { background: rgba(255,255,255,0.6); transform: rotate(-1deg); color: var(--pink-dark); }
.desktop-nav a.active { background: rgba(255,255,255,0.55); color: var(--pink-dark); font-style: italic; }

/* ══ INSTAGRAM LINK ══ */
.ig-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: 'Caveat', cursive; font-size: 1.05rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  padding: 0.35rem 0.9rem; border-radius: 30px;
  border: 1.5px dashed var(--pink-strong);
  transition: all 0.2s; letter-spacing: 0.02em; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.ig-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.ig-link:hover { background: rgba(255,255,255,0.6); transform: rotate(-1deg); color: var(--pink-dark); border-color: var(--pink-dark); }

/* ══ HAMBURGER ══ */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: var(--tap-min); height: var(--tap-min);
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; border-radius: 30px; transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.hamburger:hover { background: rgba(255,255,255,0.45); }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: all 0.3s; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ MOBILE DRAWER ══ */
.mobile-nav {
  display: none; position: fixed; top: 80px; left: 0; right: 0;
  background: linear-gradient(180deg, var(--pink-pale) 0%, var(--plum-pale) 100%);
  z-index: 199; padding: 1rem 0 1.5rem;
  box-shadow: 0 8px 24px rgba(140,40,100,0.18);
  transform: translateY(-110%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  border-bottom: 2px dashed var(--plum-mid);
}
.mobile-nav.open { display: block; transform: translateY(0); }
.mobile-nav a {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: 'Caveat', cursive; font-size: 1.3rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  padding: 0.9rem 2rem; min-height: var(--tap-min);
  border-bottom: 1px dashed rgba(185,80,140,0.2);
  transition: background 0.2s; -webkit-tap-highlight-color: transparent;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:active { background: rgba(255,255,255,0.5); }
.mobile-nav .ig-link {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: 'Caveat', cursive; font-size: 1.3rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  padding: 0.9rem 2rem; min-height: var(--tap-min);
  border: none; border-radius: 0;
  border-bottom: 1px dashed rgba(185,80,140,0.2);
  border-top: 1px dashed rgba(185,80,140,0.2);
  background: rgba(255,255,255,0.3); transform: none;
}
.mobile-nav .ig-link:hover, .mobile-nav .ig-link:active { background: rgba(255,255,255,0.5); transform: none; }
.mobile-nav .ig-link svg { width: 22px; height: 22px; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(80,20,60,0.22); z-index: 198; }
.nav-overlay.open { display: block; }

/* ══ BUTTONS ══ */
.btn-craft {
  display: inline-flex; align-items: center;
  background: var(--pink-strong); color: #fff; text-decoration: none;
  font-family: 'Caveat', cursive; font-size: 1.15rem; font-weight: 700;
  padding: 0.7rem 2rem; min-height: var(--tap-min);
  border-radius: 30px; box-shadow: 3px 3px 0 var(--pink-dark);
  transition: all 0.15s; transform: rotate(1deg); white-space: nowrap;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn-craft:hover {
  transform: rotate(-1deg) translateY(-2px);
  box-shadow: 4px 5px 0 var(--pink-dark); background: var(--pink-dark);
}

.btn-craft--email {
  background: var(--pink-strong);
  box-shadow: 3px 3px 0 var(--pink-dark);
}
.btn-craft--email:hover { background: var(--pink-dark); }

.btn-craft--insta {
  background: var(--plum-strong);
  box-shadow: 3px 3px 0 var(--plum-dark);
  transform: rotate(-1deg);
}
.btn-craft--insta:hover {
  background: var(--plum-dark);
  transform: rotate(1deg) translateY(-2px);
  box-shadow: 4px 5px 0 var(--plum-dark);
}

/* ══ DOODLE DIVIDER ══ */
.doodle-divider {
  text-align: center; padding: 1rem 0;
  font-size: 1.3rem; letter-spacing: 0.5rem;
  color: var(--pink-mid); user-select: none;
}

/* ══ GOLD RIBBON ══ */
.gold-ribbon {
  height: 6px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 25%, var(--gold) 50%, var(--gold-light) 75%, var(--gold) 100%);
}

/* ══ FOOTER ══ */
footer {
  background: linear-gradient(135deg, var(--pink-pale) 0%, var(--plum-pale) 100%);
  border-top: 3px solid var(--pink-mid);
  padding: 2.5rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { display: flex; align-items: center; text-decoration: none; height: 62px; }
.footer-logo img { height: 62px; width: auto; filter: drop-shadow(2px 2px 4px rgba(160,60,110,0.2)); opacity: 0.9; transition: transform 0.2s; }
.footer-logo:hover img { transform: rotate(-3deg); }
.footer-links { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.footer-links a {
  font-family: 'Caveat', cursive; font-size: 0.95rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  padding: 0.4rem 0.8rem; border: 1px dashed var(--pink-mid); border-radius: 30px;
  transition: all 0.2s; min-height: 36px; display: flex; align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.footer-links a:hover { background: rgba(255,255,255,0.6); color: var(--pink-dark); transform: rotate(-1deg); border-color: var(--pink-strong); }
.footer-ig {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Caveat', cursive; font-size: 1rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  padding: 0.4rem 0.9rem; border: 1.5px dashed var(--pink-strong); border-radius: 30px;
  transition: all 0.2s; min-height: 36px;
}
.footer-ig:hover { background: rgba(255,255,255,0.6); color: var(--pink-dark); transform: rotate(-1deg); }
.footer-ig svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-copy { font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 0.85rem; color: var(--ink-soft); }

/* ══ ANIMATIONS ══ */
@keyframes popIn { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ══ MOBILE ══ */
@media (max-width: 768px) {
  .hamburger   { display: flex; }
  .desktop-nav { display: none; }
  .mobile-nav  { display: block; }

  header { padding: 0 1rem; height: 75px; overflow: visible; }
  .logo-link { height: 75px; overflow: visible; }
  .logo-link img { height: 60px; }
  .mobile-nav { top: 70px; }

  footer { flex-direction: column; gap: 1.2rem; text-align: center; padding: 2rem 1.2rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
}
