/* ==========================================================================
   Chanberry Films — wedding films
   Design system: ivory paper, espresso ink, bronze-rose accent (from logo)
   Type: Cormorant Garamond (display serif) + Jost (sans, labels/UI)
   ========================================================================== */

:root {
  --ivory:      #F6F1E9;
  --ivory-2:    #EFE7DA;
  --ivory-3:    #E9DECF;
  --espresso:   #1E1714;
  --espresso-2: #2A2019;
  --ink:        #2A211C;
  --ink-soft:   #4A3E36;
  --muted:      #8C7C6D;
  --muted-dk:   #B9A692;
  --line:       #E2D6C6;
  --line-dk:    #3A2E26;
  --rose:       #B0705F;
  --rose-deep:  #8E5546;
  --rose-soft:  #C99585;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --readw: 46rem;
  --pad: clamp(1.4rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----- reset-ish ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ----- typography ----- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.9rem, 2rem + 4.6vw, 6.1rem); }
h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.serif-i { font-style: italic; }
em { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--rose-deep);
  margin: 0 0 1.4rem;
}
.dark .eyebrow { color: var(--rose-soft); }

.lead { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); color: var(--ink-soft); line-height: 1.75; }
.muted { color: var(--muted); }

/* ----- layout helpers ----- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); }
.center { text-align: center; }
.readw { max-width: var(--readw); margin-inline: auto; }
.dark { background: var(--espresso); color: var(--ivory); }
.dark h1, .dark h2, .dark h3 { color: var(--ivory); }
.dark .muted { color: var(--muted-dk); }
.dark .lead { color: #E7DBCB; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--sans); font-weight: 500;
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.22em;
  padding: 1.05em 2em; border-radius: 2px;
  border: 1px solid var(--rose); color: var(--ink);
  background: transparent; transition: all .4s var(--ease);
}
.btn:hover { background: var(--rose); color: #fff; border-color: var(--rose); }
.btn--solid { background: var(--rose); color: #fff; }
.btn--solid:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn--ghost-light { color: var(--ivory); border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.center .btn-row { justify-content: center; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding-block: clamp(1rem, 2.2vw, 1.6rem);
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
}
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-header.scrolled {
  background: rgba(246,241,233,.92);
  backdrop-filter: saturate(140%) blur(10px);
  padding-block: .7rem;
  box-shadow: 0 1px 0 var(--line);
}
.brand { grid-column: 2; justify-self: center; }
.brand img { height: clamp(34px, 5vw, 46px); width: auto; transition: height .5s var(--ease); }
.site-header.scrolled .brand img { height: 32px; }

.nav { display: flex; gap: clamp(1.2rem, 2.4vw, 2.4rem); align-items: center; }
.nav a {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 400;
  color: var(--ivory); position: relative; padding-block: .3rem; transition: color .3s;
}
.nav--left { grid-column: 1; }
.nav--right { grid-column: 3; justify-content: flex-end; }
.site-header.scrolled .nav a { color: var(--ink); }
.nav a::after {
  content:""; position:absolute; left:0; bottom:0; height:1px; width:0; background: var(--rose);
  transition: width .35s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav a.nav-cta { color: var(--rose-soft); }
.site-header.scrolled .nav a.nav-cta { color: var(--rose-deep); }

.menu-toggle { display: none; grid-column: 3; justify-self: end; background: none; border: 0; padding: .4rem; }
.menu-toggle span { display:block; width:24px; height:1.5px; background: var(--ivory); margin:5px 0; transition:.35s var(--ease); }
.site-header.scrolled .menu-toggle span { background: var(--ink); }

/* mobile nav */
@media (max-width: 860px) {
  .nav--left { display: none; }
  .nav--right { display: none; }
  .menu-toggle { display: block; }
  .brand { grid-column: 1; justify-self: start; }
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .menu-toggle { grid-column: 2; }

  .mobile-nav {
    position: fixed; inset: 0; z-index: 55;
    background: var(--espresso); color: var(--ivory);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1.8rem; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease);
  }
  .mobile-nav.open { opacity: 1; visibility: visible; }
  .mobile-nav a { font-family: var(--serif); font-size: 2rem; color: var(--ivory); }
  .mobile-nav a.cta { color: var(--rose-soft); }
  body.nav-open { overflow: hidden; }
  .nav-open .menu-toggle span { background: var(--ivory) !important; }
  .nav-open .menu-toggle span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2){ opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }
}
@media (min-width: 861px) { .mobile-nav { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--ivory); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__bg::after {
  content:""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,15,12,.55) 0%, rgba(20,15,12,.25) 32%, rgba(20,15,12,.55) 72%, rgba(20,15,12,.82) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(20,15,12,.45) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; text-align: center; padding-block: 8rem 6rem; }
.hero .eyebrow { color: rgba(246,241,233,.85); margin-bottom: 1.8rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 40px rgba(0,0,0,.35); max-width: 15ch; margin-inline: auto; }
.hero .lead { color: rgba(246,241,233,.9); max-width: 40rem; margin: 1.8rem auto 2.6rem; }
.hero .btn-row { margin-top: .6rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 2;
  font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(246,241,233,.7);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
}
.hero__scroll::after { content:""; width:1px; height:42px; background: linear-gradient(rgba(246,241,233,.7), transparent); animation: scrollpulse 2.4s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100%{ opacity:.3; transform: scaleY(.7); } 50%{ opacity:1; transform: scaleY(1); } }

/* ==========================================================================
   Video facade (poster + play button -> iframe)
   ========================================================================== */
.video {
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: var(--espresso); border-radius: 3px; cursor: pointer;
  box-shadow: 0 30px 70px -30px rgba(30,20,15,.5);
}
.video img { width:100%; height:100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.video:hover img { transform: scale(1.035); filter: brightness(.82); }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; z-index: 2;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(246,241,233,.14); border: 1.5px solid rgba(246,241,233,.85);
  backdrop-filter: blur(3px); transition: all .45s var(--ease);
}
.video:hover .video__play { background: var(--rose); border-color: var(--rose); transform: scale(1.08); }
.video__play::before { content:""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.video__label {
  position: absolute; left: 0; bottom: 0; z-index: 2; padding: 1.4rem 1.6rem;
  color: #fff; text-shadow: 0 1px 18px rgba(0,0,0,.5); width: 100%;
  background: linear-gradient(transparent, rgba(20,14,11,.55));
}
.video__label .t { font-family: var(--serif); font-size: 1.4rem; line-height: 1.1; }
.video__label .s { font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,.85); margin-top: .35rem; }
.video.playing { cursor: default; }
.video.playing img, .video.playing .video__play, .video.playing .video__label { display: none; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Featured film
   ========================================================================== */
.featured .grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 940px) { .featured .grid { grid-template-columns: 1.35fr 1fr; } }
.featured__copy .num { font-family: var(--serif); font-style: italic; color: var(--rose); font-size: 1.3rem; }

/* films grid */
.films-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 3vw, 2.6rem); }
@media (min-width: 720px) { .films-grid { grid-template-columns: 1fr 1fr; } }
.film-card .video { box-shadow: 0 20px 45px -28px rgba(30,20,15,.55); }
.film-card__meta { padding-top: 1.1rem; }
.film-card__meta .t { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; }
.film-card__meta .s { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-top: .4rem; }
.dark .film-card__meta .s { color: var(--muted-dk); }

/* ==========================================================================
   Approach / philosophy
   ========================================================================== */
.approach { text-align: center; }
.approach .big-quote { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.3rem); line-height: 1.22; letter-spacing: -0.01em; max-width: 22ch; margin: 0 auto 2rem; }
.approach .big-quote em { color: var(--rose-soft); }
.pillars { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,4vw,3.4rem); margin-top: clamp(3rem,6vw,5rem); text-align: left; }
@media (min-width: 780px){ .pillars { grid-template-columns: repeat(3,1fr); } }
.pillar .n { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--rose-soft); }
.pillar h3 { margin: .5rem 0 .7rem; font-size: 1.4rem; }
.pillar p { color: var(--muted-dk); font-size: .98rem; line-height: 1.75; margin: 0; }
.hr-orn { display:flex; align-items:center; justify-content:center; gap:1rem; color: var(--rose); margin: 0 auto; }
.hr-orn::before, .hr-orn::after { content:""; height:1px; width:min(70px,12vw); background: currentColor; opacity:.5; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem,3vw,2.4rem); }
@media (min-width: 760px){ .quotes { grid-template-columns: 1fr 1fr; } }
.quote {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(2rem,4vw,3rem); position: relative;
}
.quote::before { content:"\201C"; font-family: var(--serif); font-size: 5rem; color: var(--rose-soft); line-height: 1; position: absolute; top: .4rem; left: 1.2rem; opacity: .5; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem,1rem+1vw,1.7rem); line-height: 1.4; color: var(--ink); margin: .6rem 0 1.4rem; position: relative; }
.quote cite { font-family: var(--sans); font-style: normal; font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }

/* ==========================================================================
   About
   ========================================================================== */
.about .grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem,4vw,3rem); }
.about p + p { margin-top: 1.2rem; }
.about .sig { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--rose); margin-top: 2rem; }

/* ==========================================================================
   Inquiry form
   ========================================================================== */
.inquire { position: relative; }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.4rem;
  max-width: 42rem; margin: clamp(2.5rem,5vw,3.5rem) auto 0; text-align: left;
}
.field { display: flex; flex-direction: column; gap: .5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .68rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted-dk); }
.dark .field label { color: var(--muted-dk); }
.field input, .field textarea {
  font-family: var(--sans); font-weight: 300; font-size: 1rem; color: var(--ivory);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-dk);
  padding: .7rem .1rem; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: #7d6a5b; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--rose-soft); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ivory); transition: background-color 9999s; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form .actions { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; margin-top: .6rem; }
.cf-turnstile { min-height: 65px; }
.form-note { font-size: .78rem; color: var(--muted-dk); text-align: center; }
.form-msg { grid-column: 1/-1; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.4rem; min-height: 1.4rem; }
.form-msg.ok { color: var(--rose-soft); }
.form-msg.err { color: #e0857a; font-size: 1rem; font-style: normal; font-family: var(--sans); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: #171009; color: var(--muted-dk); text-align: center; padding-block: clamp(3.5rem,7vw,5.5rem); }
.footer img { height: 52px; width: auto; margin: 0 auto 1.6rem; }
.footer .areas { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ivory); margin-bottom: 1.8rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center; margin-bottom: 2rem; }
.footer nav a { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted-dk); transition: color .3s; }
.footer nav a:hover { color: var(--rose-soft); }
.footer .fine { font-size: .74rem; letter-spacing: .05em; color: #7a6a58; }
.footer .fine a { color: var(--rose-soft); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after { animation: none; }
  .video:hover img { transform: none; }
}
