/* ═══════════════════════════════════════════════════════
   Ghost Girl Gems — gothic / vintage-tattoo
   ═══════════════════════════════════════════════════════ */

/* ─── Display font swap point ───────────────────────────
   When the real blackletter font arrives, drop it in
   assets/fonts/ and update the src below. Until then this
   @font-face fails silently and we fall back to
   UnifrakturMaguntia (loaded via Google Fonts in <head>).
*/
@font-face {
  font-family: "Ghost Display"; /* Monk Gothic by Oliveira 37 */
  src: url("assets/fonts/ghost-display.woff2?v=1") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream:  #fdf8ed;
  --ink:    #1c1c1c;
  --maroon: #a12b2f;
  --dark:   #1c1612;
  --white:  #ffffff;

  --display: "Ghost Display", "UnifrakturMaguntia", serif;
  --mono:    "Roboto Mono", ui-monospace, monospace;
  --body:    "Roboto", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-anchor: none; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* reserve space for the fixed header (JS sets the exact value); prevents FOUC */
  padding-top: calc(clamp(96px, 13.2vw, 158px) + 1.45rem);
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 0.95; }

.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--maroon);
}

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.95rem 2.4rem; border: 1.5px solid transparent;
  transition: background 0.25s, color 0.25s, transform 0.25s; white-space: nowrap;
}
.btn-solid  { background: var(--cream); color: var(--maroon); border-color: var(--cream); }
.btn-solid:hover  { background: var(--maroon); color: var(--cream); border-color: var(--maroon); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--maroon); transform: translateY(-2px); }

/* anchor targets clear the sticky header */
section[id] { scroll-margin-top: 110px; }

/* ───────── HEADER ───────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.6rem clamp(1.25rem, 4vw, 3.5rem);
  background: var(--cream);
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
  transition: padding 0.28s ease, box-shadow 0.28s ease;
}
/* shrink-on-scroll: compact header once the page is scrolled */
.site-header.scrolled { padding-top: 0.45rem; padding-bottom: 0.45rem; box-shadow: 0 6px 20px -12px rgba(28, 19, 32, 0.45); }
.site-header.scrolled .brand img { height: clamp(44px, 5.5vw, 68px); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: clamp(96px, 13.2vw, 158px); width: auto; display: block; transition: height 0.28s ease; }

.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a {
  font-family: var(--mono); font-size: 0.95rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; position: relative; padding: 0.2rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--maroon); transition: width 0.28s ease;
}
.nav a:hover { color: var(--maroon); }
.nav a:hover::after { width: 100%; }

.book-pill {
  font-family: var(--mono); font-size: 0.95rem; letter-spacing: -0.01em;
  background: var(--maroon); color: var(--cream); text-decoration: none;
  padding: 0.7rem 1.8rem; border: 1.5px solid var(--maroon);
  transition: background 0.25s, color 0.25s;
}
.book-pill:hover { background: transparent; color: var(--maroon); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ───────── HERO ───────── */
.hero {
  position: relative; min-height: clamp(460px, 72vh, 760px);
  display: flex; align-items: center;
  /* angled bottom edge, like the reference */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
}
.hero-media {
  position: absolute; inset: 0;
  background: var(--maroon) url("assets/hero.webp") center 48% / cover no-repeat;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,22,18,0.35) 0%, rgba(28,22,18,0.05) 55%, transparent 100%);
}
.hero-inner {
  position: relative; padding: 0 clamp(1.25rem, 5vw, 4.5rem);
  width: 100%;
}
.hero-title {
  color: var(--cream);
  font-size: clamp(2.5rem, 8.5vw, 7.5rem);
  letter-spacing: 0.01em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ───────── SCHEDULE / SERVICES ───────── */
.schedule {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3.5rem, 9vh, 6.5rem) clamp(1.25rem, 6vw, 6rem);
}
.schedule-copy h2 { font-size: clamp(3.5rem, 9.5vw, 7rem); margin: 0 0 0.6rem; color: var(--ink); line-height: 0.9; }
.schedule-copy .eyebrow { margin-left: clamp(1.9rem, 5.2vw, 3.85rem); }
.schedule-copy .lede { color: var(--ink); opacity: 0.82; max-width: 40ch; margin: 1.6rem 0 0; margin-left: clamp(1.25rem, 3.2vw, 2.6rem); }

.schedule-panel {
  background: var(--dark); color: var(--cream);
  padding: clamp(1.8rem, 3vw, 2.6rem);
}
.panel-head {
  font-family: var(--mono); font-size: 1.1rem; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 0.6rem; padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(253, 248, 237, 0.18); margin-bottom: 0.5rem;
}
.panel-head .ico { color: var(--maroon); }
.appt-list { list-style: none; }
.appt-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(253, 248, 237, 0.12);
}
.appt-list h3 { font-family: var(--body); font-weight: 500; font-size: 1.05rem; line-height: 1.3; }
.appt-meta { font-family: var(--mono); font-size: 0.78rem; opacity: 0.65; }
.appt-book {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream); text-decoration: none; border: 1.5px solid var(--maroon);
  background: var(--maroon); padding: 0.5rem 1.4rem; transition: background 0.25s, color 0.25s;
}
.appt-book:hover { background: transparent; color: var(--cream); }
.panel-note { font-family: var(--mono); font-size: 0.72rem; opacity: 0.5; margin-top: 1.2rem; }
.panel-cta { display: block; text-align: center; margin-top: 1.8rem; background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.panel-cta:hover { background: transparent; color: var(--cream); transform: translateY(-2px); }

/* ───────── INSTAGRAM FEED ───────── */
.feed { padding: clamp(3.5rem, 9vh, 6.5rem) clamp(1.25rem, 6vw, 6rem); text-align: center; }
.feed h2 { color: var(--ink); margin: 0.6rem 0 2.4rem; }
.ig-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem; max-width: 1080px; margin: 0 auto; justify-items: center; align-items: start;
}
.ig-grid .instagram-media {
  margin: 0 auto !important; min-width: 280px !important; width: 100% !important; max-width: 340px !important;
  min-height: 522px; /* reserve the loaded embed height so the page doesn't shift (keeps #contact anchor stable) */
}
.feed-follow {
  margin: 1rem 0 2.4rem; background: var(--maroon); color: var(--cream); border-color: var(--maroon);
}
.feed-follow:hover { background: transparent; color: var(--maroon); transform: translateY(-2px); }

/* ───────── CONTACT ───────── */
.contact { background: var(--cream); color: var(--ink); position: relative; overflow: hidden; }
.contact-art {
  position: absolute; top: 50%; right: clamp(1.5rem, 7vw, 7rem);
  transform: translateY(-50%);
  height: clamp(280px, 64%, 500px); pointer-events: none; user-select: none;
}
.contact-art img { height: 100%; width: auto; display: block; }
.speech-bubble {
  position: absolute; top: -4.25rem; left: 56%; z-index: 2;
  transform: translateX(-50%) rotate(-4deg);
  background: var(--cream); color: var(--maroon);
  border: 2px solid var(--maroon); border-radius: 16px;
  padding: 0.5rem 0.95rem; text-align: center; line-height: 1.05;
  font-family: var(--body); font-weight: 500; font-size: clamp(0.82rem, 1.3vw, 1rem);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.35);
}
.speech-bubble::after, .speech-bubble::before { content: ""; position: absolute; width: 0; height: 0; }
.speech-bubble::after  { bottom: -11px; left: 50%; margin-left: -11px; border: 11px solid transparent; border-bottom: 0; border-top-color: var(--maroon); }
.speech-bubble::before { bottom: -7px;  left: 50%; margin-left: -8px;  border: 8px solid transparent;  border-bottom: 0; border-top-color: var(--cream); z-index: 1; }
.contact-panel {
  background: var(--dark); color: var(--cream); width: 62%;
  padding: clamp(3.5rem, 9vh, 6.5rem) clamp(2rem, 5vw, 4rem) clamp(3.5rem, 9vh, 6.5rem) clamp(1.5rem, 6vw, 6rem);
  /* diagonal right edge — cream shows through on the right (room for an image) */
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}
.contact-intro h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--cream); margin-bottom: 1.2rem; }
.contact-intro p { opacity: 0.85; max-width: 52ch; margin-bottom: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 440px; margin-top: 2rem; scroll-margin-top: 125px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label {
  display: flex; flex-direction: column; gap: 0.45rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em;
}
.contact-form label span { opacity: 0.5; font-size: 0.72rem; }
.contact-form input, .contact-form textarea {
  font-family: var(--body); font-size: 0.95rem; color: var(--ink);
  background: var(--cream); border: 0; padding: 0.75rem 0.9rem; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--maroon); }
.contact-form .checkbox { flex-direction: row; align-items: center; gap: 0.6rem; opacity: 0.85; }
.contact-form .checkbox input { width: auto; }
.btn-submit {
  align-self: flex-start; background: var(--white); color: var(--maroon);
  border-color: var(--white); margin-top: 0.4rem;
}
.btn-submit:hover { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.form-status { font-family: var(--mono); font-size: 0.82rem; min-height: 1.2em; margin-top: 0.2rem; }
.form-status.sending { color: var(--cream); opacity: 0.7; }
.form-status.ok  { color: #9be7a8; }
.form-status.err { color: #ff9aa2; }

/* ───────── SUBPAGE: page hero + info ───────── */
.page-hero {
  text-align: center;
  padding: clamp(2.5rem, 8vh, 5rem) clamp(1.25rem, 6vw, 6rem) clamp(1rem, 3vh, 2rem);
}
.page-hero h1 {
  font-family: var(--display); font-weight: 400; color: var(--ink);
  font-size: clamp(2.75rem, 8vw, 6rem); line-height: 0.95; margin: 0.4rem 0 0.9rem;
}
.page-hero-sub { max-width: 46ch; margin: 0 auto; color: var(--ink); opacity: 0.8; }

.info {
  max-width: 760px; margin: 0 auto; display: flex; flex-direction: column;
  gap: clamp(1.8rem, 4.5vh, 3rem);
  padding: clamp(1rem, 3vh, 2rem) clamp(1.25rem, 6vw, 2rem) clamp(4rem, 9vh, 6rem);
}
.info-block { border-top: 1px solid rgba(28, 28, 28, 0.12); padding-top: clamp(1.4rem, 3vh, 2rem); }
.info-block:first-child { border-top: 0; padding-top: 0; }
.info-block h2 {
  font-family: var(--display); font-weight: 400; color: var(--maroon);
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1; margin-bottom: 0.9rem;
}
.info-block p { color: var(--ink); margin-bottom: 1rem; max-width: 64ch; }
.info-block p:last-child { margin-bottom: 0; }
.btn-about-cta {
  align-self: center; margin-top: 1.4rem;
  background: var(--maroon); color: var(--cream); border-color: var(--maroon);
}
.btn-about-cta:hover { background: transparent; color: var(--maroon); transform: translateY(-2px); }

/* ───────── FOOTER ───────── */
.site-footer { background: var(--cream); padding: clamp(3rem, 7vh, 5rem) clamp(1.25rem, 6vw, 6rem) 2.5rem; }
.foot-grid {
  display: grid; grid-template-columns: auto 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start; max-width: 1100px; margin: 0 auto;
}
.foot-logo { width: clamp(120px, 14vw, 180px); height: auto; }
.foot-col h4 { font-size: 1.6rem; color: var(--ink); margin-bottom: 0.9rem; }
.foot-col a {
  display: block; font-family: var(--mono); font-size: 0.85rem; color: var(--maroon);
  text-decoration: none; line-height: 2.1;
}
.foot-col a:hover { color: var(--ink); }
.fine {
  font-family: var(--mono); font-size: 0.72rem; opacity: 0.5; text-align: center;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(28, 28, 28, 0.1);
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 880px) {
  .schedule { grid-template-columns: 1fr; }
  .contact-panel { width: 100%; clip-path: none; padding-right: clamp(1.25rem, 6vw, 6rem); }
  .contact-form { max-width: none; }
  .contact-art { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-logo { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .nav, .book-pill { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; gap: 1.4rem;
    position: fixed; inset: 78px 0 auto 0; background: var(--cream);
    padding: 2rem; border-bottom: 1px solid rgba(28,28,28,0.1); margin: 0;
  }
  .nav.open + .book-pill,
  .book-pill.show { display: inline-block; position: fixed; inset: auto 0 auto 0; top: 210px; margin: 0 2rem; text-align: center; z-index: 99; }
  .contact-form .row { grid-template-columns: 1fr; }
  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vw), 0 100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
