/* ===========================================================
   Emile Photography and Film — demo site
   Signature move: "The Keepsake Book" — the site reads as one
   family's album, organised by life stage. Each spread "opens"
   as it scrolls into view (kraft cover, taped-in photos,
   handwritten captions), instead of a generic gallery grid.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@400;500;600;700&family=Public+Sans:wght@400;500;600;700&family=Caveat:wght@500;600;700&display=swap');

:root {
  /* kraft-album palette — role-based, not on the design ledger */
  --cover:    #6E4A2E;   /* kraft/leather album-cover brown */
  --page:     #F6EEDD;   /* cream album page */
  --page-alt: #EFE4CC;   /* slightly deeper cream, alternate section bg */
  --surface:  #FFFFFF;
  --ink:      #2B2117;   /* warm brown-black ink */
  --ink-soft: #5A4B39;
  --ink-mute: #8A7A63;
  --line:     #DDCEA9;

  --marigold: #D98E2B;   /* stamped/mustard accent */
  --denim:    #3D5A73;   /* dusty work-wear blue, second accent */
  --rose:     #C97B72;   /* dusty rose, used sparingly */

  --whatsapp: #25D366;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Zilla Slab', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0;
}

.handwritten {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  color: var(--ink-soft);
}
.handwritten.large { font-size: 30px; line-height: 1.4; }

img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow-plain {
  display: inline-block;
  font-family: 'Public Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--marigold);
  margin-bottom: 10px;
}

.section-head { max-width: 60ch; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 12px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 17px; }

section { padding: 72px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 10px 18px; font-size: 14px; min-height: 38px; }
.btn-whatsapp { background: var(--whatsapp); border: 1px solid var(--whatsapp); color: #0B1F14; }
.btn-whatsapp:hover { background: #1FB959; }
.btn-ghost { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--page); }
.book-panel .btn-whatsapp { border-color: var(--whatsapp); }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 238, 221, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px; }
.logo { font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 20px; text-decoration: none; color: var(--ink); }
.logo span { font-weight: 400; color: var(--ink-soft); }
.primary-nav { display: flex; gap: 28px; }
.primary-nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.primary-nav a:hover { color: var(--ink); }
.menu-toggle { display: none; background: none; border: none; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--cover);
  color: var(--page);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mobile-menu a { color: var(--page); text-decoration: none; font-family: 'Zilla Slab', serif; font-size: 26px; font-weight: 600; }
.menu-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--page); width: 44px; height: 44px; cursor: pointer; }
.menu-close svg { width: 26px; height: 26px; }
.mobile-menu-foot { font-size: 14px; color: rgba(246,238,221,0.7); }

/* ---------- hero — the album cover ---------- */
.hero { padding: 56px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; margin: 8px 0 18px; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 46ch; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-trust { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.hero-trust .stars { color: var(--marigold); letter-spacing: 2px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.album-cover {
  position: relative;
  width: 320px; aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, #7C5636 0%, var(--cover) 55%, #5C3C24 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(43, 33, 23, 0.45), inset 0 0 0 1px rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-3deg);
}
.cover-stamp { text-align: center; color: rgba(246,238,221,0.9); }
.cover-stamp-line { display: block; font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 30px; letter-spacing: 0.02em; }
.cover-stamp-small { font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; opacity: 0.8; }
.cover-tape {
  position: absolute; width: 70px; height: 26px;
  background: rgba(246,238,221,0.35);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.cover-tape-tl { top: -10px; left: 24px; transform: rotate(-8deg); }
.cover-tape-br { bottom: -10px; right: 24px; transform: rotate(-8deg); }
.cover-peek {
  position: absolute;
  width: 150px; height: auto;
  right: -18px; bottom: -30px;
  border-radius: 6px;
  box-shadow: 0 18px 30px -14px rgba(43, 33, 23, 0.5);
  transform: rotate(6deg);
  border: 6px solid #fff;
}

/* ---------- the album spreads ---------- */
.spread {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.spread:first-of-type { border-top: none; }
.spread-label { position: sticky; top: 96px; }
.spread-label h3 { font-size: 26px; margin: 10px 0 12px; }
.spread-label .handwritten { font-size: 20px; line-height: 1.4; }
.washi-tape {
  display: block; width: 60px; height: 20px;
  background: var(--marigold);
  opacity: 0.55;
  transform: rotate(-4deg);
  margin-bottom: 6px;
}

.spread-photos { display: flex; flex-wrap: wrap; gap: 28px 24px; }
/* "Taped in" reveal — a one-time, time-based settle animation (not scroll-
   linked). A scroll/IntersectionObserver-gated version was tried and dropped:
   it left every photo below the fold invisible in a full-page screenshot,
   a print view, or any renderer that doesn't fire a real scroll event —
   a real defect, not a cosmetic one. This version always resolves to fully
   visible on its own timer, whether or not anyone ever scrolls. */
.taped-photo {
  margin: 0;
  width: 220px;
  background: var(--surface);
  padding: 10px 10px 34px;
  box-shadow: 0 14px 26px -12px rgba(43, 33, 23, 0.32);
  position: relative;
  opacity: 1;
}
@keyframes settle-l { from { opacity: 0; transform: translateY(24px) rotate(-6deg); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes settle-r { from { opacity: 0; transform: translateY(24px) rotate(5deg); } to { opacity: 1; transform: rotate(2deg); } }
.taped-photo.tilt-l { transform: rotate(-3deg); animation: settle-l 0.7s var(--ease-out) both; }
.taped-photo.tilt-r { transform: rotate(2deg); animation: settle-r 0.7s var(--ease-out) both; }
.spread-photos .taped-photo:nth-child(1) { animation-delay: 0ms; }
.spread-photos .taped-photo:nth-child(2) { animation-delay: 100ms; }
.spread-photos .taped-photo:nth-child(3) { animation-delay: 200ms; }
.spread-photos .taped-photo:nth-child(4) { animation-delay: 300ms; }
.taped-photo img { width: 100%; height: auto; }
.taped-photo figcaption { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 16px; }
.taped-photo::before {
  content: "";
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 56px; height: 20px;
  background: rgba(217, 142, 43, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .taped-photo { opacity: 1 !important; animation: none !important; }
  .taped-photo.tilt-l { transform: rotate(-3deg) !important; }
  .taped-photo.tilt-r { transform: rotate(2deg) !important; }
}

/* also-shooting text cards */
.also-shooting { margin-top: 52px; padding-top: 44px; border-top: 1px solid var(--line); }
.also-shooting h3 { font-size: 20px; margin-bottom: 20px; }
.also-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.also-grid-4 { grid-template-columns: repeat(4, 1fr); }
.also-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.also-card strong { display: block; font-family: 'Zilla Slab', serif; font-size: 17px; margin-bottom: 6px; }
.also-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- reviews carousel ---------- */
.review-carousel { max-width: 720px; margin: 0 auto; text-align: center; position: relative; }
.review-track { position: relative; min-height: 190px; }
.review-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease;
}
.review-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.review-slide .stars { color: var(--marigold); letter-spacing: 3px; margin-bottom: 14px; }
.review-slide .quote { font-family: 'Zilla Slab', serif; font-size: 21px; line-height: 1.5; color: var(--ink); margin: 0 0 14px; }
.review-slide .who { font-size: 14px; color: var(--ink-mute); font-weight: 600; }
.review-dots { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.review-dots button {
  width: 44px; height: 44px; padding: 0; border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.review-dots button::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line);
}
.review-dots button.is-active::before { background: var(--marigold); }

/* ---------- why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px 26px; }
.why-mark { display: block; font-family: 'Zilla Slab', serif; font-size: 14px; font-weight: 700; color: var(--denim); margin-bottom: 12px; }
.why-card h3 { font-size: 19px; margin-bottom: 10px; }
.why-card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.about-grid h2 { font-size: clamp(26px, 3vw, 34px); margin: 8px 0 18px; }
.about-grid p { color: var(--ink-soft); margin: 0 0 14px; }
.about-quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}
.about-quote::before {
  content: "";
  position: absolute; top: -10px; left: 40px; transform: rotate(-4deg);
  width: 60px; height: 20px;
  background: rgba(61, 90, 115, 0.35);
}
.about-quote .who { display: block; margin-top: 14px; font-size: 14px; color: var(--ink-mute); font-weight: 600; font-family: 'Public Sans', sans-serif; }

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-card { text-align: left; }
.how-num {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cover); color: var(--page);
  font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 17px;
  margin-bottom: 16px;
}
.how-card h3 { font-size: 18px; margin-bottom: 8px; }
.how-card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- book ---------- */
.book-section { background: var(--cover); }
.book-panel { text-align: center; max-width: 620px; margin: 0 auto; color: var(--page); }
.book-panel .eyebrow-plain { color: var(--marigold); }
.book-panel h2 { color: var(--page); font-size: clamp(28px, 3.4vw, 38px); margin: 8px 0 14px; }
.book-panel p { color: rgba(246,238,221,0.85); margin: 0 0 26px; }

/* ---------- footer ---------- */
footer { background: var(--page-alt); border-top: 1px solid var(--line); padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand { font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 22px; margin-bottom: 10px; }
.footer-brand span { color: var(--marigold); }
.footer-col .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); font-weight: 700; margin-bottom: 8px; }
.footer-col .v { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; }
.footer-col .v a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.footer-col .v a:hover { color: var(--ink); }
.foot-fine { font-size: 13px; color: var(--ink-mute); border-top: 1px solid var(--line); padding-top: 20px; margin: 0; }
.foot-fine a { color: var(--ink-soft); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .also-grid, .also-grid-4, .why-grid, .how-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .spread { grid-template-columns: 1fr; gap: 20px; }
  .spread-label { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .taped-photo { width: 44%; min-width: 150px; flex: 1 1 44%; }
  .spread-photos { gap: 20px 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .album-cover { width: 260px; }
  .cover-peek { width: 120px; }
}
