/*
Theme Name: Evenfall
Theme URI: https://evenfall-studio.mvp.sbarron.com
Author: Barron AI Solutions
Description: A lean, hand-built WordPress theme for a luxury wedding photographer. No page builder, no external CDN, local fonts, lazy media — built to load under two seconds while staying editorial and full-bleed.
Version: 1.0.0
*/

/* ============================================================
   EVENFALL — design tokens
   The whole site lives in golden-hour light: warm ivory base,
   deep plum-charcoal ink, a single muted gold accent.
   ============================================================ */
:root {
  color-scheme: light;
  /* Botanical world — eucalyptus-tinted white base (cool, green, NOT cream),
     deep forest ink, terracotta-clay accent. A garden at first light. */
  --ivory: #eef1ea;        /* soft eucalyptus white */
  --ivory-deep: #dfe4d8;   /* deeper sage */
  --ink: #20271f;          /* deep forest near-black, green-tinted */
  --ink-shadow: #0f140e;   /* tuned dark for overlay shadows */
  --ink-soft: #404a3e;
  --muted: #7c8478;        /* sage-grey */
  --gold: #bb6a4a;         /* terracotta clay (the warm spark against the green) */
  --gold-deep: #9c5236;    /* deep terracotta */
  --line: rgba(32, 39, 31, 0.12);
  --shadow-soft: 0 18px 50px -28px rgba(32, 39, 31, 0.45);
  --shadow-lift: 0 30px 80px -40px rgba(32, 39, 31, 0.55);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1280px;
}

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

/* Type pairing (explicit): display = "Cormorant Garamond" serif,
   body = "Inter" sans-serif. Tokens above reference these families. */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* ------------------------------------------------------------
   Texture layer — a faint paper grain over the warm ivory base
   so surfaces read as crafted stock, not a flat fill. Local PNG
   (cream-paper), tiled, very low opacity. Pinned behind content.
   ------------------------------------------------------------ */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("assets/textures/cream-paper.png");
  background-repeat: repeat;
  opacity: 0.5;
  mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 1; }

/* soft botanical light so the page has direction, not a flat wash —
   a terracotta warmth top-right, a sage cool bottom-left */
body {
  background-image:
    radial-gradient(1200px 700px at 78% -8%, rgba(187, 106, 74, 0.10), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(124, 132, 120, 0.12), transparent 55%);
  background-attachment: fixed;
}

/* ivory sections get their own soft top-down wash + grain */
.section-pad.tint {
  background-image:
    linear-gradient(180deg, var(--ivory-deep) 0%, var(--ivory) 100%),
    url("assets/textures/cream-paper.png");
  background-repeat: no-repeat, repeat;
  background-blend-mode: normal, multiply;
}
.section-pad.ink-tint {
  background-image:
    linear-gradient(180deg, #2c352a 0%, var(--ink) 100%),
    url("assets/textures/dark-wall.png");
  background-repeat: no-repeat, repeat;
  background-blend-mode: normal, soft-light;
  color: var(--ivory);
}
.section-pad.ink-tint .h2, .section-pad.ink-tint .eyebrow { color: #fff; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  /* body face: Inter sans-serif */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  /* display face: Cormorant Garamond serif */
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

/* fluid display sizes — mobile-first, scale up with viewport */
.display { font-size: clamp(2.6rem, 9vw, 6.5rem); }
.h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.lede { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--ink-soft); font-weight: 350; }
.muted { color: var(--muted); }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 760px; }

/* sections */
section { position: relative; }
.section-pad { padding: clamp(4.5rem, 11vw, 9rem) 0; }

/* ---- reveal-on-scroll (refined motion) ----
   Progressive enhancement: only hide when JS is active (html.js). Without
   JS, or if the observer never fires, content is fully visible — never a
   blank section. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 5vw, 3rem);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.scrolled {
  background: rgba(246, 241, 234, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  padding-top: 0.9rem; padding-bottom: 0.9rem;
  box-shadow: 0 1px 0 var(--line);
}
.brand { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.02em; color: var(--ink); }
.brand span { color: var(--gold-deep); }
.site-header.on-hero:not(.scrolled) .brand,
.site-header.on-hero:not(.scrolled) .nav a { color: #fff; }
.site-header.on-hero:not(.scrolled) .nav a::after { background: #fff; }

.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  position: relative; padding: 0.2rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav .btn-inquire { padding: 0.6rem 1.3rem; border: 1px solid currentColor; border-radius: 999px; letter-spacing: 0.16em; }
.nav .btn-inquire::after { display: none; }
.nav .btn-inquire:hover { background: var(--gold); border-color: var(--gold); color: #fff !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 5px 0; transition: 0.3s var(--ease); }

/* ============================================================
   Hero — full viewport, full-bleed photograph
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,15,20,0.45) 0%, rgba(20,15,20,0.15) 45%, rgba(20,15,20,0.55) 100%),
    linear-gradient(90deg, rgba(20,15,20,0.55) 0%, rgba(20,15,20,0.0) 65%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(5rem,12vh,7rem) clamp(1.5rem, 5vw, 3rem) clamp(2rem, 5vw, 3rem); width: 100%; max-width: var(--maxw); margin: 0 auto; }
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero .display { color: #fff; margin: 0.8rem 0 1.2rem; max-width: 14ch; }
.hero__sub { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.88); max-width: 46ch; font-weight: 350; }
.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,0.8); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: rgba(255,255,255,0.6); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  padding: 1rem 2rem; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

/* ============================================================
   Intro / about teaser — editorial two-column
   ============================================================ */
.intro__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.intro__figure { position: relative; }
.intro__figure img { border-radius: 2px; box-shadow: var(--shadow-soft); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.intro__figure::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px; border: 1px solid var(--gold); border-radius: 2px; z-index: -1;
}
.intro__body p { margin: 1.2rem 0; }
.signature { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--gold-deep); margin-top: 1rem; }

/* stat row */
.stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: 2.5rem; }
.stat .n { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--ink); line-height: 1; }
.stat .l { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; }

/* ============================================================
   Gallery grid — full-bleed, editorial rhythm
   ============================================================ */
.gallery-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.gallery-head .lede { margin-top: 1rem; }

.gallery {
  display: grid; grid-template-columns: 1fr; gap: 0.6rem;
}
.gallery__item { position: relative; overflow: hidden; cursor: pointer; background: var(--ivory-deep); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.4rem;
  background: linear-gradient(180deg, transparent 50%, rgba(20,15,20,0.6));
  color: #fff; opacity: 0; transition: opacity 0.5s var(--ease);
}
.gallery__item:hover figcaption { opacity: 1; }
.gallery__item figcaption .ttl { font-family: var(--serif); font-size: 1.3rem; }
.gallery__item figcaption .loc { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.gallery__item.tall { aspect-ratio: 3/4; }
.gallery__item.wide { aspect-ratio: 3/4; }
.gallery__item.sq { aspect-ratio: 1/1; }

/* ============================================================
   Quote / testimonial
   ============================================================ */
.quote { text-align: center; }
.quote blockquote {
  font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.3; font-weight: 400;
  max-width: 22ch; margin: 1.5rem auto; color: var(--ink);
}
.quote .mark { font-family: var(--serif); font-size: 5rem; color: var(--gold); line-height: 0.5; opacity: 0.5; }
.quote cite { font-style: normal; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   Investment / packages
   ============================================================ */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 2.6rem 2.2rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--gold); }
.card.featured { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.card.featured .price, .card.featured h3 { color: #fff; }
.card.featured .feat-list li { color: rgba(246,241,234,0.82); }
.card .tier { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.card.featured .tier { color: var(--gold); }
.card .price { font-family: var(--serif); font-size: 2.8rem; margin: 1rem 0 0.2rem; }
.card .price small { font-size: 0.95rem; color: var(--muted); }
.feat-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; }
.feat-list li { padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; display: flex; gap: 0.7rem; }
.card.featured .feat-list li { border-color: rgba(246,241,234,0.18); }
.feat-list li::before { content: "—"; color: var(--gold); }

/* ============================================================
   CTA band — full-bleed photo
   ============================================================ */
.cta-band { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; z-index: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after { content: ""; position: absolute; inset: 0; background: rgba(20,15,20,0.58); }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band .h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,0.85); margin: 1rem auto 2rem; max-width: 50ch; }

/* ============================================================
   Inquiry form
   ============================================================ */
.inquiry { display: grid; grid-template-columns: 1fr; gap: 1.1rem; max-width: 640px; margin: 2.5rem auto 0; }
.inquiry .full { grid-column: 1 / -1; }
.inquiry label { display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.inquiry input, .inquiry textarea, .inquiry select {
  width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 2px;
  background: #fff; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.inquiry input:focus, .inquiry textarea:focus, .inquiry select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(187,106,74,0.15);
}
.inquiry textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-success {
  background: #fff; border: 1px solid var(--gold); border-radius: 3px; padding: 2.5rem; text-align: center;
  box-shadow: var(--shadow-soft);
}
.form-success .h3 { color: var(--gold-deep); margin-bottom: 0.6rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(246,241,234,0.72); padding: clamp(3.5rem,7vw,5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.site-footer .brand { color: #fff; display: block; margin-bottom: 0.8rem; }
.site-footer a:hover { color: var(--gold); }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(246,241,234,0.14);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(246,241,234,0.5);
}
.barron-credit a { color: rgba(246,241,234,0.6); border-bottom: 1px solid transparent; }
.barron-credit a:hover { color: var(--gold); }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(18,13,18,0.95);
  display: flex; align-items: center; justify-content: center; padding: 4vw;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 88vh; box-shadow: 0 40px 120px -30px var(--ink-shadow); border-radius: 2px; }
.lightbox__close { position: absolute; top: 1.6rem; right: 1.8rem; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: rgba(255,255,255,0.7); font-size: 2.4rem; cursor: pointer; padding: 1rem; transition: color 0.3s; }
.lightbox__nav:hover { color: #fff; }
.lightbox__nav.prev { left: 1rem; } .lightbox__nav.next { right: 1rem; }

/* page hero (interior pages) */
.page-hero { padding: clamp(8rem,16vw,11rem) 0 clamp(3rem,6vw,4.5rem); text-align: center; background: var(--ivory-deep); }
.page-hero .display { font-size: clamp(2.4rem, 7vw, 4.5rem); }

/* ============================================================
   Responsive — tablet & up
   ============================================================ */
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .gallery__item.wide { grid-column: span 2; aspect-ratio: 16/9; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .intro__grid { grid-template-columns: 0.85fr 1fr; }
  .inquiry { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item.wide { grid-column: span 2; }
}

/* mobile nav */
@media (max-width: 880px) {
  .nav-toggle { display: block; z-index: 60; }
  .nav {
    position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center;
    gap: 2rem; transform: translateX(100%); transition: transform 0.5s var(--ease); padding: 2rem;
  }
  .nav.open { transform: none; }
  .nav a { color: var(--ivory) !important; font-size: 1.1rem; }
  .nav .btn-inquire { color: var(--ivory) !important; border-color: rgba(246,241,234,0.4); }
  .site-header.on-hero:not(.scrolled) .nav a { color: var(--ivory) !important; }
}
