/* ===== Oshadhi Bihara Events: styles ===== */
:root {
  --ink: #2f2f2c;
  --muted: #6d6b66;
  --bg: #ffffff;
  --bg-soft: #f5f3ef;
  --line: #e4e0d8;
  --accent: #5f6f52;      /* sage green */
  --accent-dark: #475340;
  --gold: #b89b72;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.9rem; }
h4 { font-size: 1.4rem; }
h5 { font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin: 0 0 1em; }
em { font-style: italic; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 1rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; margin-top: 2.5rem; }
.btn-outline:hover { background: var(--ink); color: #fff; }

.link-arrow {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--accent-dark); }

/* ----- Header ----- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s, box-shadow .35s, padding .35s;
  padding: 22px 0;
  color: #fff;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; }
.logo-text { display: flex; flex-direction: column; }
.logo-mark { position: relative; height: 46px; width: 38px; flex-shrink: 0; transition: height .35s, width .35s; }
.logo-mark img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: contain; transition: opacity .35s; }
.logo-mark .mark-dark { opacity: 0; }
.site-header.scrolled .logo-mark .mark-dark, body.nav-open .logo-mark .mark-dark { opacity: 1; }
.site-header.scrolled .logo-mark .mark-light, body.nav-open .logo-mark .mark-light { opacity: 0; }
.site-header.scrolled .logo-mark { height: 38px; width: 32px; }
.logo:hover .logo-mark img { animation: markSpin 1.2s cubic-bezier(.2,.7,.2,1); }
@keyframes markSpin { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.logo-main { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: .04em; }
.logo-sub { font-size: .7rem; letter-spacing: .45em; text-transform: uppercase; margin-top: 4px; }

.main-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
}
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: currentColor; transition: width .3s;
}
.main-nav a:hover::after { width: 100%; }
.nav-cta { border: 1px solid currentColor; padding: 9px 20px; }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }

/* ----- Hero ----- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; color: #fff; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.5) 100%); }
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.hero .eyebrow { color: #f1e6d4; }
.hero-text { max-width: 540px; font-size: 1.1rem; margin: 0 0 2rem; }
.hero-dots { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.dot.active { background: #fff; }

/* ----- Intro ----- */
.intro { padding: 120px 0; text-align: center; }
.intro p { color: var(--muted); font-size: 1.1rem; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.4rem !important; color: var(--accent) !important; margin-top: 1.5rem; }

/* ----- Features ----- */
.features { padding: 0 0 120px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.feature { background: var(--bg-soft); display: flex; flex-direction: column; }
.feature-img { aspect-ratio: 4 / 5; background-size: cover; background-position: center; background-color: var(--line); transition: filter .4s; }
.feature:hover .feature-img { filter: brightness(1.05) saturate(1.1); }
.feature-body { padding: 34px 32px 40px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.feature-body p { color: var(--muted); flex: 1; }

/* ----- Films ----- */
.films { padding: 120px 0; background: var(--bg-soft); }
.films-intro { color: var(--muted); margin: 0 auto; max-width: 520px; }
.film-grid { display: flex; justify-content: center; gap: 56px; margin-top: 56px; flex-wrap: wrap; }
.film { margin: 0; width: 320px; max-width: 100%; text-align: center; }
.film-frame {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #111;
  border-radius: 18px; box-shadow: 0 30px 60px -25px rgba(40,40,30,.45);
  cursor: pointer; transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s;
}
.film:hover .film-frame { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 40px 70px -25px rgba(40,40,30,.55); }
.film:nth-child(2):hover .film-frame { transform: translateY(-8px) rotate(.6deg); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-sound {
  position: absolute; right: 14px; bottom: 22px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.35); color: #fff; cursor: pointer; backdrop-filter: blur(4px);
  transition: background .3s, transform .3s;
}
.film-sound:hover { background: var(--accent); transform: scale(1.08); }
.film-sound .icon-on { display: none; }
.film-sound[aria-pressed="true"] .icon-on { display: block; }
.film-sound[aria-pressed="true"] .icon-off { display: none; }
.film-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.film-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
.film figcaption { margin-top: 24px; }
.film figcaption h3 { margin-bottom: .2em; }
.film figcaption p { color: var(--muted); margin: 0; }

/* ----- Process ----- */
.process { background: var(--accent); color: #fff; padding: 110px 0; }
.process .eyebrow { color: #e6d9c2; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 60px; }
.step { border-top: 1px solid rgba(255,255,255,.35); padding-top: 24px; }
.step-num { font-family: var(--serif); font-size: 2.4rem; opacity: .6; }
.step p { opacity: .85; margin: 0; }

/* ----- Gallery ----- */
.gallery { padding: 120px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 50px; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--line); transition: opacity .3s; }
.gallery-grid img:hover { opacity: .85; }

/* ----- CTA / Contact ----- */
.cta-banner { position: relative; padding: 130px 0; background-size: cover; background-position: center; color: #fff; text-align: center; }
.cta-overlay { position: absolute; inset: 0; background: rgba(35,40,32,.72); }
.cta-content { position: relative; z-index: 2; }
.cta-content > p { font-size: 1.1rem; margin-bottom: 2.5rem; }
.contact-form { display: grid; gap: 14px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 16px;
  font: inherit; font-size: .95rem; color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 0;
}
.contact-form select option { color: var(--ink); }
.contact-form ::placeholder { color: rgba(255,255,255,.75); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.14); }
.contact-form input[type="date"] { color-scheme: dark; }
.contact-form .btn { justify-self: center; margin-top: 10px; }
.form-note { text-align: center; font-size: .95rem; min-height: 1.5em; margin: 0; }

/* ----- Footer ----- */
.site-footer { background: #22241f; color: #d8d5cc; padding: 80px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: block; width: 220px; max-width: 100%; height: auto; margin-bottom: 1.2rem; }
.site-footer h5 { color: #fff; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.muted { color: #a3a096; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.socials { display: flex; gap: 14px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; transition: background .3s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem; color: #8f8c83;
}
.footer-bottom p { margin: 0; }

/* ----- Reveal animation ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =====================================================
   ANIMATIONS
   ===================================================== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 200; pointer-events: none;
}

/* Header slides down on load */
.site-header { animation: headerIn 1s .2s both cubic-bezier(.2,.7,.2,1); }
@keyframes headerIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }

/* Hero text: staggered entrance */
.hero-content > * { opacity: 0; animation: fadeUp 1.1s both cubic-bezier(.2,.7,.2,1); }
.hero-content > :nth-child(1) { animation-delay: .5s; }
.hero-content > :nth-child(2) { animation-delay: .75s; }
.hero-content > :nth-child(3) { animation-delay: 1.05s; }
.hero-content > :nth-child(4) { animation-delay: 1.3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* Hero text changes a little with each slide */
.hero-content.pulse h1 em { animation: shimmer 1.2s ease; }
@keyframes shimmer { 0% { opacity: .3; letter-spacing: .06em; } 100% { opacity: 1; letter-spacing: 0; } }

/* Slide dots: active dot stretches into a bar */
.dot { transition: width .4s, background .4s, border-radius .4s; }
.dot.active { width: 28px; border-radius: 6px; }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 80px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.8); border-radius: 14px; z-index: 3;
  opacity: 0; animation: fadeIn 1s 1.8s both;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Buttons: fill sweeps in from the left */
.btn { position: relative; overflow: hidden; z-index: 0; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .5s cubic-bezier(.7,0,.2,1);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-light:hover { background: #fff; color: #fff; }
.btn-outline::before { background: var(--ink); }
.btn-outline:hover { background: transparent; }

/* "Learn more" arrow nudges */
.link-arrow::after { display: inline-block; transition: transform .3s; }
.link-arrow:hover::after { transform: translateX(6px); }

/* Feature cards: lift + slow zoom on image */
.feature { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.feature:hover { transform: translateY(-8px); box-shadow: 0 24px 50px -20px rgba(40,40,30,.35); }
.feature-media { overflow: hidden; }
.feature-img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .4s; }
.feature:hover .feature-img { transform: scale(1.08); }

/* Headings reveal word by word */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.words-in .split-word > span { transform: none; }

/* Signature: underline draws in */
.signature { position: relative; display: inline-block; }
.signature::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform 1.2s .6s ease;
}
.visible .signature::after { transform: scaleX(1); }

/* Process steps: top line draws across, number counts up */
.step { border-top-color: transparent; position: relative; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%;
  background: rgba(255,255,255,.5); transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.step.visible::before { transform: scaleX(1); transition-delay: inherit; }
.step:hover .step-num { opacity: 1; color: #f1e6d4; }
.step-num { transition: opacity .3s, color .3s; display: inline-block; }

/* Gallery: zoom + caption overlay */
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--line); }
.gallery-item img { width: 100%; height: 100%; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.gallery-item:hover img { transform: scale(1.1); opacity: 1; }
.gallery-item::after {
  content: "View"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: #fff;
  background: rgba(47,55,40,.45); opacity: 0; transition: opacity .4s;
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(20,22,18,.92);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 85vh; width: auto; transform: scale(.92); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.lightbox.open img { transform: none; }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }

/* Reveal variants (added by script) */
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.zoom       { transform: scale(.94); }
.reveal.visible    { transform: none; }

/* Form fields glow on focus */
.contact-form input, .contact-form select, .contact-form textarea { transition: border-color .3s, background .3s, box-shadow .3s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { box-shadow: 0 0 0 4px rgba(255,255,255,.08); }

/* Social icons spin slightly */
.socials a { transition: background .3s, transform .4s; }
.socials a:hover { transform: translateY(-3px) rotate(-8deg); }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; color: inherit; z-index: 110; }
  .main-nav {
    position: fixed; inset: 0; background: #fff; color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .main-nav ul { flex-direction: column; gap: 26px; }
  .main-nav a { font-size: 1rem; }
  body.nav-open .main-nav { opacity: 1; pointer-events: auto; }
  body.nav-open .site-header { color: var(--ink); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .feature-grid, .steps, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .intro, .gallery, .films { padding: 80px 0; }
  .film-grid { gap: 48px; }
  .film { width: 280px; }
  .features { padding-bottom: 80px; }
  .process, .cta-banner { padding: 80px 0; }
  .logo-main { font-size: 1.25rem; }
  .logo-mark { height: 38px; width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .hero-content > *, .scroll-cue { opacity: 1; }
  .reveal, .split-word > span { opacity: 1 !important; transform: none !important; }
}
