/* ============================================================
   Glory Unveiled by Bailey Elaine — shared stylesheet
   Classic black & white, editorial, minimal wedding planner site
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cormorant:ital,wght@0,400;0,500;1,400;1,500&family=Work+Sans:wght@300;400;500;600&display=swap');

:root {
  --ink: #2A2622;           /* soft warm charcoal-black */
  --ink-soft: #55504a;      /* secondary text */
  --ink-faint: #8a8378;     /* tertiary / labels */
  --paper: #FAF8F4;         /* warm ivory background */
  --paper-deep: #F2EFE9;    /* slightly deeper ivory for alt sections */
  --white: #FFFFFF;
  --line: rgba(42, 38, 34, 0.14);
  --line-strong: rgba(42, 38, 34, 0.28);
  --overlay: rgba(20, 17, 14, 0.38);
  --overlay-soft: rgba(20, 17, 14, 0.18);

  --font-script: 'Alex Brush', cursive;
  --font-italic: 'Cormorant', 'EB Garamond', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1320px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- utility ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sprig-svg { width: 100%; height: auto; color: var(--ink); opacity: 0.75; }
.eyebrow {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transition: opacity 1.4s ease;
}
.reveal.is-visible { opacity: 1; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
  padding: 0.9rem var(--gutter);
}
.site-header .wordmark { position: relative; display: block; line-height: 1; }
.logo-nav {
  height: clamp(30px, 4.4vw, 40px);
  width: auto;
  display: block;
}
.logo-nav-light { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.4s ease; }
.logo-nav-dark { opacity: 1; transition: opacity 0.4s ease; }
.header-on-dark .logo-nav-light { opacity: 1; }
.header-on-dark .logo-nav-dark { opacity: 0; }
.header-on-dark .nav-links a,
.header-on-dark .nav-toggle span { color: var(--white); }
.site-header.is-solid.header-on-dark .logo-nav-light { opacity: 0; }
.site-header.is-solid.header-on-dark .logo-nav-dark { opacity: 1; }
.site-header.is-solid .nav-links a { color: var(--ink); }
.site-header.is-solid .nav-toggle span { background: var(--ink); }

.nav-links {
  display: flex;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.icon-instagram { width: 18px; height: 18px; display: block; }
.nav-social {
  display: inline-flex;
  align-items: center;
  padding-bottom: 0;
  transition: opacity 0.3s ease;
}
.nav-links a.nav-social::after { display: none; }
.nav-social:hover { opacity: 0.65; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 1px; background: var(--ink); display: block; transition: transform 0.3s ease, opacity 0.3s ease; }
.header-on-dark .nav-toggle span { background: var(--white); }

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--paper);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.1rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 90;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { color: var(--ink) !important; }
  .nav-toggle { display: flex; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
@media (min-width: 900px) {
  .hero-media img.subject-high { object-position: center 52%; }
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.hero-media img.hero-kenburns {
  animation: heroKenBurns 22s ease-out forwards;
  transform-origin: center center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,17,14,0.28) 0%, rgba(20,17,14,0.10) 32%, rgba(20,17,14,0.55) 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  box-shadow: inset 0 0 14vw rgba(10,9,7,0.55);
  pointer-events: none;
}
/* True parallax: the image (and its overlays) stay pinned to the
   viewport instead of scrolling with the section, so the hero photo
   stays mostly still while the page scrolls past it. Opt-in via a
   modifier class — the shorter sub-page hero banners keep the normal
   (non-pinned) behavior. */
.hero--parallax .hero-media,
.hero--parallax::before,
.hero--parallax::after {
  position: fixed;
}
.hero-content {
  width: 100%;
  padding: 0 var(--gutter) clamp(4.5rem, 9vh, 6.5rem);
  text-align: center;
}
.script {
  font-family: var(--font-script);
  color: inherit;
  line-height: 1;
}
.hero-tagline {
  margin: 0 auto;
  max-width: 34rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: rgba(255,255,255,0.97);
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn-light { color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-dark { color: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--paper); }

/* ---------- sections (generic) ---------- */
section { position: relative; }
/* Explicit (not just inherited) background — sections need to be
   genuinely opaque so they properly cover the fixed parallax hero
   image once scrolled into view, not just visually match it. */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; background: var(--paper); }
.section-deep { background: var(--paper-deep); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto clamp(2.6rem, 6vw, 4rem); }
.section-title {
  margin-top: 0.7rem;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: 0.01em;
}
.section-title.script {
  font-family: var(--font-script);
  font-style: normal;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
}
.section-lede {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-weight: 400;
}
.text-link-wrap { text-align: center; margin-top: clamp(2rem, 4vw, 2.6rem); }
.text-link {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}
.text-link:hover { border-color: var(--ink); opacity: 0.75; }

.sprig-divider { width: clamp(160px, 22vw, 260px); margin: 0 auto; }
.sprig-divider.sm { width: 120px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250,248,244,0.85);
  padding: clamp(3.5rem, 8vw, 5rem) 0 2.5rem;
  text-align: center;
}
.footer-logo {
  width: clamp(170px, 20vw, 250px);
  height: auto;
  margin: 0 auto;
}
.footer-links {
  display: flex; justify-content: center; gap: 2.2rem; flex-wrap: wrap;
  margin: 1.6rem 0 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links a { border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color 0.3s ease; }
.footer-links a:hover { border-color: rgba(250,248,244,0.6); }
.footer-links a.social-link { display: inline-flex; align-items: center; gap: 0.5em; }
.footer-links a.social-link .icon-instagram { width: 15px; height: 15px; }
.footer-meta { font-size: 0.78rem; letter-spacing: 0.05em; color: rgba(250,248,244,0.5); }
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Page-specific: HOME
   ============================================================ */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.story-media { display: flex; flex-direction: column; gap: clamp(0.8rem, 1.6vw, 1.2rem); }
.story-media img { width: 100%; display: block; object-fit: cover; }
.story-media img:first-child { height: clamp(300px, 38vw, 440px); }
.story-media img:last-child { height: clamp(130px, 16vw, 190px); }
.story-copy .eyebrow { display: block; margin-bottom: 1rem; }
.story-copy p { margin-top: 1.15rem; color: var(--ink-soft); font-size: 1.02rem; }
.story-copy p:first-of-type { margin-top: 1.4rem; }
.story-copy .lead-line { font-family: var(--font-italic); font-style: italic; font-size: 1.35rem; color: var(--ink); margin-top: 1.4rem; }
.story-copy .text-link { display: inline-block; margin-top: 1.6rem; }

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-media img:first-child { height: 300px; }
  .story-media img:last-child { height: 150px; }
}

/* Services teaser — reuses .pricing-grid/.pricing-col/.pricing-divider/
   .pricing-list from the Services page itself so both presentations of
   the two packages stay genuinely, not just visually, consistent. */
.services-teaser .pricing-grid { max-width: 920px; margin: 0 auto; }

/* Home gallery slideshow — equal-height, auto-width, auto-cycling strip.
   Position is driven entirely by a JS-controlled transform (not native
   scrollLeft) so the auto-drift and click-drag panning are both smooth,
   GPU-composited, and never fight each other. */
.gallery-teaser { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.slide-gallery {
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.slide-gallery.is-dragging { cursor: grabbing; }
.slide-track {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  width: max-content;
  padding: 0 var(--gutter);
  will-change: transform;
}
.slide-track img {
  height: clamp(300px, 40vw, 420px);
  width: auto;
  flex: none;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
.slide-note {
  text-align: center;
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Home contact form */
.home-contact { position: relative; overflow: hidden; padding: clamp(5rem, 11vw, 8.5rem) 0; color: var(--white); }
.home-contact-media { position: absolute; inset: 0; z-index: -2; }
.home-contact-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.home-contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,9,8,0.6); }
.home-contact-inner { max-width: 640px; }
.home-contact .eyebrow { color: rgba(255,255,255,0.88); }
.home-contact .section-title { color: var(--white); }
.home-contact .section-lede { color: rgba(255,255,255,0.9); }
.home-contact .field label { color: rgba(255,255,255,0.75); }
.home-contact .field input,
.home-contact .field textarea { color: var(--white); border-bottom-color: rgba(255,255,255,0.45); }
.home-contact .field input:focus,
.home-contact .field textarea:focus { border-bottom-color: var(--white); }
.home-contact .field ::placeholder { color: rgba(255,255,255,0.6); }
.home-contact .field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.home-contact .form-note { color: rgba(255,255,255,0.85); }

/* ============================================================
   Page-specific: SERVICES
   ============================================================ */
.services-hero {
  min-height: 46vh;
}
.services-hero .hero-content { padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.pricing-page-hero::before {
  background: linear-gradient(180deg, rgba(20,17,14,0.34) 0%, rgba(20,17,14,0.16) 32%, rgba(20,17,14,0.6) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.pricing-divider { background: var(--line-strong); height: 100%; min-height: 100%; }
.pricing-col { padding: 0 clamp(0.25rem, 1vw, 1rem); }
.pricing-col .eyebrow { display: block; }
.pricing-col h3 {
  font-family: var(--font-italic); font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-top: 0.6rem;
}
.pricing-col .price {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-family: var(--font-body); font-weight: 500;
  letter-spacing: -0.01em;
}
.pricing-list { margin-top: 1.6rem; }
.pricing-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink-soft);
  display: flex; align-items: baseline; gap: 0.7rem;
}
.pricing-list li:last-child { border-bottom: 1px solid var(--line); }
.pricing-list li::before { content: "—"; color: var(--ink-faint); flex: none; }
.pricing-list li.lead-item {
  font-family: var(--font-italic); font-style: italic; font-weight: 500;
  color: var(--ink);
}

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-divider { display: none; }
  .pricing-col + .pricing-col { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line-strong); }
}

.services-note {
  max-width: 40rem;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ============================================================
   Page-specific: ABOUT
   ============================================================ */
.about-copy { max-width: 640px; margin: 0 auto; text-align: center; }
.about-copy p { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.05rem; }
.about-copy p:first-child { margin-top: 0; }
.about-copy .lead-line {
  font-family: var(--font-italic); font-style: italic; color: var(--ink);
  font-size: 1.35rem; margin-top: 1.8rem;
}

/* ============================================================
   Page-specific: PORTFOLIO
   ============================================================ */
.portfolio-hero { min-height: 42vh; }
.portfolio-hero::before {
  background: linear-gradient(180deg, rgba(20,17,14,0.42) 0%, rgba(20,17,14,0.22) 32%, rgba(20,17,14,0.68) 100%);
}

.masonry {
  column-count: 1;
  column-gap: clamp(1rem, 2.4vw, 1.8rem);
}
.masonry figure {
  break-inside: avoid;
  margin: 0 0 clamp(1rem, 2.4vw, 1.8rem);
  overflow: hidden;
  position: relative;
}
.masonry img { width: 100%; height: auto; display: block; transition: transform 0.9s ease; }
.masonry figure:hover img { transform: scale(1.035); }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.2rem;
  font-family: var(--font-italic); font-style: italic; font-size: 0.92rem;
  color: var(--white);
  background: linear-gradient(0deg, rgba(20,17,14,0.6), rgba(20,17,14,0));
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.masonry figure:hover figcaption { opacity: 1; transform: translateY(0); }

@media (min-width: 620px) { .masonry { column-count: 2; } }
@media (min-width: 1000px) { .masonry { column-count: 3; } }

.portfolio-note {
  text-align: center;
  max-width: 36rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ============================================================
   Page-specific: CONTACT
   ============================================================ */
.contact-hero {
  padding-top: clamp(9rem, 16vh, 11rem);
  padding-bottom: clamp(2rem, 5vh, 3rem);
  text-align: center;
}
.contact-email {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--font-italic); font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}
.field { margin-bottom: 1.9rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.6rem 0.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.3s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field ::placeholder { color: var(--ink-faint); opacity: 0.7; }

.form-submit { text-align: center; margin-top: 2.4rem; }
.form-submit .btn { background: none; }
.form-note { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: var(--ink-faint); min-height: 1.2em; }

.contact-alt {
  margin-top: clamp(4rem, 8vw, 6rem);
  text-align: center;
}
.contact-alt .sprig-divider { margin-bottom: 1.6rem; }
.contact-alt p { color: var(--ink-soft); }
.btn.ig-btn { display: inline-flex; align-items: center; gap: 0.6em; margin-top: 1.4rem; }
