/* ============================================================
   base.css – shared styles for all pages
   Glamorous Nails & Beauty
   ============================================================ */

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

:root {
  --gold: #a07a56;
  --gold-bright: #a8815b;
  --gold-light: #d5c1a8;
  --cream: #f5f0eb;
  --bg: #fff;
  --footer-top: #a07a56;
  --footer-bottom: #59422d;
  --text: #1a1a1a;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Jost', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); overflow-x: hidden; }
img { max-width: 100%; }
iframe { max-width: 100%; }

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(236,231,228,0.97);
  backdrop-filter: blur(8px);
  height: 71px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
  box-shadow: 0 4px 12px rgba(90,67,45,0.13);
}

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

.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-logo-mark {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 60px);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }

.nav-book {
  border: 1px solid var(--gold-bright);
  padding: 8px 22px;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  cursor: pointer;
  color: var(--gold-bright);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-book:hover { background: var(--gold-bright); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: all 0.3s; }
/* Hamburger → X when menu is open */
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* "Book Now" item shown only inside the mobile menu */
.nav-links .mobile-book { display: none; }

/* ── FADE-UP ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ── REVIEW SLIDER (shared by Home & Contact) ── */
.review-slider { display: grid; }
.review-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.review-slide.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.review-dots .dot { transition: background 0.3s, width 0.3s, height 0.3s; border: none; padding: 0; }

/* ── FOOTER ── */
footer {
  background: var(--footer-top);
  color: #fff;
}

.footer-main {
  padding: clamp(44px, 6vw, 70px) clamp(20px, 5vw, 80px) clamp(30px, 4vw, 50px);
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.footer-brand {}

.footer-logo-text {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 500;
  color: #fff;
  line-height: 1;
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-social a {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 600;
  color: rgba(236,231,228,1);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--gold-light); }

.footer-social-icon {
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-family: var(--font-sans);
  flex-shrink: 0;
}

.footer-locations {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-loc-name {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 5px;
}

.footer-loc-addr {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.footer-loc-phone {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.footer-bottom-bar {
  background: var(--footer-bottom);
  padding: 18px clamp(20px, 5vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.footer-book-btn {
  display: inline-block;
  background: var(--gold-bright);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 32px;
  text-decoration: none;
  transition: background 0.2s;
}

.footer-book-btn:hover { background: #8a6442; }

/* ── RESPONSIVE – shared breakpoints ── */
@media (max-width: 880px) {
  .nav-links, .nav-book { display: none; }
  .nav-toggle { display: flex; }

  /* Fullscreen mobile menu.
     Note: nav has backdrop-filter, which makes it the containing block for
     fixed descendants — so use an explicit height instead of bottom: 0. */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 71px; left: 0; right: 0;
    height: calc(100vh - 71px);
    height: calc(100dvh - 71px);
    background: #ece7e4;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: clamp(26px, 5vh, 44px);
    padding: 24px;
    animation: menuFadeIn 0.3s ease;
    overflow-y: auto;
  }

  @keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-links.open a {
    font-size: 16px;
    letter-spacing: 0.18em;
  }

  /* Book Now inside the mobile menu */
  .nav-links.open .mobile-book { display: block; padding-top: 8px; }
  .nav-links.open .mobile-book a {
    display: inline-block;
    border: 1px solid var(--gold-bright);
    color: var(--gold-bright);
    padding: 12px 36px;
    font-size: 13px;
  }
  .nav-links.open .mobile-book a:hover { background: var(--gold-bright); color: #fff; }

  /* Lock page scroll while the menu is open */
  body.menu-open { overflow: hidden; }

  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; }
}
