/* ============================================================
   ZHU INKS - Global Stylesheet
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #FBF7F0;
  --cream-deep: #F2EBDD;
  --paper:      #FFFFFF;
  --ink:        #1F2B28;
  --ink-soft:   #5C645F;
  --teal:       #2A8C8C;
  --teal-deep:  #1E6868;
  --teal-pale:  #DCEFEC;
  --gold:       #C9A45C;
  --line:       #E5DCC9;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Lora', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--teal); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 80px;
  background: rgba(251,247,240,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(42,140,140,0.06); }

/* Keeps anchor jumps (#book, #bio - from any page) landing exactly below the fixed
   nav instead of partly behind it. Values match nav height + a little breathing room. */
#bookingForm, #bio { scroll-margin-top: 84px; }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 64px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
  text-decoration: none; transition: color 0.2s; position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--teal); transition: width 0.3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--teal); }

.nav-cta {
  font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper) !important; background: var(--teal);
  padding: 11px 26px; text-decoration: none; border-radius: 1px;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--teal-deep) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  cursor: pointer; background: none; border: none; padding: 8px;
  min-width: 44px; min-height: 44px;
  z-index: 301; -webkit-tap-highlight-color: transparent;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: all 0.3s; border-radius: 2px; }
.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); }

/* ── PAGE HERO (subpages) ── */
.page-hero {
  padding: 160px 48px 80px; text-align: center;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.page-hero-eyebrow {
  font-family: 'Inter', sans-serif; font-size: 0.66rem; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem); color: var(--ink); line-height: 1.1;
}
.page-hero p {
  font-size: 1rem; color: var(--ink-soft); max-width: 600px;
  margin: 18px auto 0; line-height: 1.8;
}
.page-hero-moth { width: 80px; height: auto; margin: 0 auto 24px; opacity: 0.9; }

/* ── SECTIONS ── */
.section { padding: 100px 48px; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-label {
  font-family: 'Inter', sans-serif; font-size: 0.64rem; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px; display: block;
}
h2.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3.2rem); color: var(--ink); line-height: 1.12;
}
.section-lead {
  font-size: 1rem; color: var(--ink-soft); max-width: 560px;
  margin-top: 16px; margin-bottom: 56px; line-height: 1.85;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper); background: var(--teal);
  padding: 16px 40px; text-decoration: none; display: inline-block;
  border-radius: 1px; transition: background 0.25s, transform 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn-outline {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1px solid var(--ink);
  padding: 15px 38px; text-decoration: none; display: inline-block;
  border-radius: 1px; transition: all 0.25s;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ── FILTER BAR ── */
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }
.filter-btn {
  font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line); padding: 10px 22px;
  cursor: pointer; transition: all 0.2s; -webkit-tap-highlight-color: transparent;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal-deep); }
.filter-btn.active { background: var(--teal); border-color: var(--teal); color: var(--paper); }

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,28,26,0.96); align-items: center; justify-content: center; padding: 24px;
  -webkit-overflow-scrolling: touch;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 2px; }
.lightbox-close {
  position: fixed; top: 16px; right: 20px; background: none; border: none;
  color: #fff; font-size: 2.4rem; cursor: pointer; z-index: 1001; line-height: 1;
  -webkit-tap-highlight-color: transparent; padding: 8px;
}

/* ── FOOTER ── */
footer { background: var(--ink); color: rgba(251,247,240,0.55); padding: 64px 48px 36px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; }
.footer-logo img { height: 64px; width: auto; filter: brightness(0) invert(0.92); margin-bottom: 16px; }
.footer-brand p { font-family: 'Inter', sans-serif; font-size: 0.85rem; color: rgba(251,247,240,0.5); line-height: 1.75; font-weight: 300; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(251,247,240,0.65); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-family: 'Inter', sans-serif; font-size: 0.88rem; color: rgba(251,247,240,0.45); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid rgba(251,247,240,0.18);
  color: rgba(251,247,240,0.55); text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--teal); color: var(--teal); }
.footer-bottom {
  max-width: 1180px; margin: 40px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(251,247,240,0.1);
  display: flex; justify-content: space-between;
  font-family: 'Inter', sans-serif; font-size: 0.74rem; color: rgba(251,247,240,0.28);
  flex-wrap: wrap; gap: 10px;
}

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--teal); color: var(--paper);
  font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 13px 28px; z-index: 999; border-radius: 1px;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), opacity 0.4s;
  opacity: 0; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── BACK TO TOP ── */
#backToTop {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal); color: #fff; border: none; font: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 4px 16px rgba(42,140,140,0.3);
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0; pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}
#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { transform: translateY(-3px); }

/* ============================================================
   MOBILE & RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  nav { padding: 0 20px; height: 68px; }
  #bookingForm, #bio { scroll-margin-top: 72px; }
  .nav-logo img { height: 52px; }
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    height: calc(100vh - 68px); height: calc(100dvh - 68px);
    background: var(--cream); padding: 32px 28px; gap: 16px;
    border-top: 1px solid var(--line); overflow-y: auto; z-index: 299;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1.1rem; letter-spacing: 0.06em; color: var(--ink);
    padding: 8px 0; border-bottom: 1px solid var(--line);
  }
  .nav-links a::after { display: none; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta {
    margin-top: 8px; text-align: center; padding: 14px;
    font-size: 0.8rem; border-bottom: none !important;
  }
  .hamburger { display: flex; }
  .page-hero { padding: 120px 20px 60px; }
  .page-hero h1 { font-size: 2.2rem; }
  .page-hero-moth { width: 60px; }
  .section { padding: 64px 20px; }
  .section-lead { margin-bottom: 36px; }
  footer { padding: 48px 20px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 9px 16px; font-size: 0.64rem; }
}

@media (max-width: 600px) {
  nav { padding: 0 16px; height: 60px; }
  #bookingForm, #bio { scroll-margin-top: 64px; }
  .nav-logo img { height: 44px; }
  .nav-links { top: 60px; height: calc(100vh - 60px); height: calc(100dvh - 60px); }
  .page-hero { padding: 100px 16px 48px; }
  .page-hero h1 { font-size: 1.9rem; }
  .section { padding: 48px 16px; }
  .section-title { font-size: 1.7rem; }
  #backToTop { bottom: 20px; right: 16px; width: 40px; height: 40px; }
}

/* Short viewports (landscape phones): compress the open menu so every
   link + the Book button fits with no internal scrolling. */
@media (max-width: 980px) and (max-height: 500px) {
  .nav-links { padding: 14px 28px; gap: 4px; justify-content: flex-start; }
  .nav-links a { font-size: 0.92rem; padding: 6px 0; }
  .nav-cta { margin-top: 6px; padding: 10px; }
}
@media (max-width: 980px) and (max-height: 380px) {
  .nav-links { padding: 8px 28px; gap: 0; justify-content: flex-start; }
  .nav-links a { font-size: 0.85rem; padding: 4px 0; }
  .nav-cta { margin-top: 4px; padding: 8px; font-size: 0.72rem; }
}

/* ── GHOST LINK (teal, underline-reveal - used for secondary CTAs like "See Available Designs") ── */
.btn-ghost-teal {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  padding-bottom: 3px; border-bottom: 1px solid var(--teal);
  transition: color 0.2s, gap 0.2s, border-color 0.2s;
}
.btn-ghost-teal:hover { color: var(--ink); gap: 10px; border-color: var(--ink); }
