/* ==========================================================================
   Muhurat Wedding Films — design system
   Display: TAN Pearl (brand)  ·  Body: Montserrat  ·  Utility: IBM Plex Mono
   Signature device: the muhurat — a precise, appointed moment. Timecodes
   label every section, because a wedding day genuinely runs on them.
   ========================================================================== */

@font-face {
  font-family: 'TAN Pearl';
  src: url('../assets/fonts/tan-pearl.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory:     #FBF8F7;   /* rose-tinted page ground — not cream */
  --ivory-2:   #F5EDEC;   /* recessed band */
  --blush:     #FFD6D6;   /* brand */
  --blush-2:   #F7E4E4;   /* wash / hairlines */
  --maroon:    #731919;   /* brand */
  --red:       #E52B2B;   /* brand accent */
  --ink:       #2B1616;   /* maroon-black body text */
  --muted:     #9A8080;   /* secondary */

  --display: 'TAN Pearl', 'Cormorant Garamond', Georgia, serif;
  --body:    'Montserrat', system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --wrap: 1240px;
  --gut: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--maroon);
}
h3 { line-height: 1.28; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.9vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
p  { margin: 0; }

.lede {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.75;
  color: var(--ink);
  max-width: 46ch;
}
.dim { color: var(--muted); }

/* the signature: an appointed moment */
.tc {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.tc::before {
  content: '';
  width: 1.9rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.tc--plain::before { display: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.band { padding-block: clamp(72px, 11vw, 132px); }
.band--tight { padding-block: clamp(56px, 7vw, 84px); }
.band--sunk { background: var(--ivory-2); }

.rule { height: 1px; background: var(--blush-2); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--maroon);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn--solid { background: var(--maroon); color: var(--ivory); }
.btn--solid:hover { background: var(--red); border-color: var(--red); }
.btn--ghost { color: var(--maroon); }
.btn--ghost:hover { background: var(--maroon); color: var(--ivory); }
.btn--light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn--light:hover { background: #fff; color: var(--maroon); }

/* ---------- header ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 22px;
  transition: background 0.45s var(--ease), padding 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.nav.is-stuck {
  padding-block: 13px;
  background: rgba(251, 248, 247, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--blush-2);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 42px; width: auto; transition: height 0.45s var(--ease); }
.nav.is-stuck .nav__logo img { height: 34px; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 4px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current='page'] { color: var(--maroon); }

/* nav sitting over the hero image */
.nav--over:not(.is-stuck) .nav__links a { color: rgba(255,255,255,0.9); }
.nav--over:not(.is-stuck) .nav__links a[aria-current='page'] { color: #fff; }
.nav--over:not(.is-stuck) .nav__burger span { background: #fff; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav__burger span { display: block; width: 24px; height: 1.5px; background: var(--maroon); transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 330px);
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 48px;
    transform: translateX(101%);
    transition: transform 0.5s var(--ease);
    border-left: 1px solid var(--blush-2);
  }
  .nav.is-open .nav__links { transform: none; }
  .nav__links a,
  .nav--over:not(.is-stuck) .nav__links a { color: var(--maroon); font-size: 0.95rem; }
  .nav__cta { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(48px, 7vw, 92px); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img,
.hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
/* neutral scrim — darkens for legibility without tinting the photograph */
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.14) 26%, rgba(0,0,0,0.58) 76%, var(--ivory) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.3) 42%, rgba(0,0,0,0.02) 78%);
}
.hero__in { position: relative; z-index: 2; width: 100%; }
.hero h1 { color: #fff; max-width: 13ch; text-shadow: 0 1px 30px rgba(0,0,0,0.35); }
.hero .tc { color: var(--blush); margin-bottom: 1.4rem; }
.hero__foot {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.hero__foot p { color: rgba(255,255,255,0.82); max-width: 38ch; font-size: 0.97rem; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* page header (inner pages) */
.phead { padding-top: clamp(150px, 17vw, 210px); padding-bottom: clamp(40px, 6vw, 72px); }
.phead h1 { max-width: 18ch; }
.phead .tc { margin-bottom: 1.3rem; }
.phead .lede { margin-top: 1.6rem; }

/* ---------- section heading ---------- */
.shead { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.shead h2 { max-width: 17ch; }
.shead .tc { margin-bottom: 1.1rem; }
@media (max-width: 720px) { .shead { grid-template-columns: 1fr; } }

/* ---------- the day, in order (signature section) ---------- */
.day { display: grid; gap: 0; }
.day__row {
  display: grid;
  grid-template-columns: 8.5rem 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(28px, 3.4vw, 46px);
  border-top: 1px solid var(--blush-2);
}
.day__row:last-child { border-bottom: 1px solid var(--blush-2); }
.day__time {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.02em;
}
.day__time small { display: block; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--muted); margin-top: 0.45rem; text-transform: uppercase; }
.day__body h3 { margin-bottom: 0.6rem; }
.day__body p { color: var(--muted); font-size: 0.95rem; max-width: 40ch; }
.day__shot { overflow: hidden; aspect-ratio: 16 / 10; }
.day__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.day__row:hover .day__shot img { transform: scale(1.045); }
@media (max-width: 860px) {
  .day__row { grid-template-columns: 1fr; gap: 18px; }
  .day__shot { order: -1; aspect-ratio: 16 / 9; }
}

/* ---------- films ---------- */
.films { display: grid; gap: clamp(40px, 5vw, 72px); }
.film { display: block; }
.film__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #101010; }
.film__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.film:hover .film__media img { transform: scale(1.04); }
.film__play {
  position: absolute; inset: 0; margin: auto;
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(251,248,247,0.9);
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
}
.film:hover .film__play { transform: scale(1.09); background: #fff; }
.film__play svg { width: 20px; height: 20px; fill: var(--maroon); margin-left: 3px; }
.film__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 1.1rem; flex-wrap: wrap; }
.film__meta h3 { color: var(--maroon); }
.film__meta .tc { color: var(--muted); }

.films--duo { grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .films--duo { grid-template-columns: 1fr; } }

/* playable film */
.filmplay { margin: 0; }
.filmplay video { width: 100%; display: block; background: #101010; aspect-ratio: 16 / 9; }
.filmplay figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 1.1rem; flex-wrap: wrap; }
.filmplay figcaption h3 { color: var(--maroon); }
.filmplay figcaption .tc { color: var(--muted); }

/* ---------- gallery ---------- */
.grid-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-gal figure { margin: 0; overflow: hidden; background: var(--ivory-2); }
.grid-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.grid-gal figure:hover img { transform: scale(1.05); }
/* two films side by side */
.filmpair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 34px); }
@media (max-width: 820px) { .filmpair { grid-template-columns: 1fr; } }
.filmpair .filmplay figcaption { margin-top: 0.85rem; }
.filmpair .filmplay figcaption h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

/* per-couple grid — even, tidy tiles */
.grid-neat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-neat figure { margin: 0; overflow: hidden; background: var(--ivory-2); aspect-ratio: 3 / 4; }
.grid-neat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.grid-neat figure:hover img { transform: scale(1.04); }
@media (max-width: 820px) { .grid-neat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-neat { grid-template-columns: 1fr; } }

/* expand to see the rest of a couple's set */
.more-grid { margin-top: 16px; }
.more-wrap { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 36px); }
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--blush-2);
  border-radius: 999px;
  background: transparent;
  color: var(--maroon);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.more-btn:hover { border-color: var(--maroon); background: #fff; }
.more-btn::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.35s var(--ease);
}
.more-btn[aria-expanded='true']::after { transform: rotate(-135deg) translate(-2px, -2px); }

/* couple heading block */
.couple { margin-bottom: clamp(28px, 3.5vw, 44px); }
.couple h2 { margin-bottom: 0.7rem; }
.couple p { color: var(--muted); font-size: 0.96rem; }
.couple .tc { margin-bottom: 1rem; }

/* text-only timeline (photos to come) */
.day--plain .day__row { grid-template-columns: 9rem 1fr; }
@media (max-width: 860px) { .day--plain .day__row { grid-template-columns: 1fr; gap: 10px; } }

.gal--tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.gal--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.gal--sq { aspect-ratio: 1; }
@media (max-width: 820px) {
  .grid-gal { grid-template-columns: repeat(2, 1fr); }
  .gal--wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .grid-gal { grid-template-columns: 1fr; }
  .gal--tall, .gal--wide, .gal--sq { grid-row: auto; grid-column: auto; aspect-ratio: 4 / 3; }
}

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split__media { overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- what we make ---------- */
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--blush-2); border-block: 1px solid var(--blush-2); }
.offer__item { background: var(--ivory); padding: clamp(28px, 3.4vw, 44px) clamp(22px, 2.6vw, 34px); }
.offer__item h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); margin-bottom: 0.75rem; }
.offer__item p { color: var(--muted); font-size: 0.93rem; }
.offer__item .tc { margin-bottom: 1.3rem; }
.offer__item ul { margin-top: 1.1rem; display: grid; gap: 0.5rem; }
.offer__item li { font-size: 0.85rem; color: var(--ink); display: flex; gap: 0.6rem; }
.offer__item li::before { content: '·'; color: var(--red); }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }

/* ---------- quote ---------- */
.quote { text-align: center; max-width: 44ch; margin-inline: auto; }
.quote p {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.22;
  color: var(--maroon);
}
.quote footer { margin-top: 1.6rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- closing call ---------- */
.call { position: relative; overflow: hidden; }
.call__media { position: absolute; inset: 0; }
.call__media img { width: 100%; height: 100%; object-fit: cover; }
.call__media::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.62); }
.call__in { position: relative; z-index: 2; text-align: center; padding-block: clamp(80px, 11vw, 148px); }
.call h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.call .tc { color: var(--blush); justify-content: center; }
.call p { color: rgba(255,255,255,0.82); max-width: 44ch; margin: 1.4rem auto 2.2rem; }

/* ---------- form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form .f-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.f label {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.f input, .f select, .f textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid var(--blush-2);
  background: transparent;
  font-family: var(--body);
  font-size: 0.98rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.35s var(--ease);
}
.f input::placeholder, .f textarea::placeholder { color: #C4AEAE; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-bottom-color: var(--red); }
.f textarea { resize: vertical; min-height: 116px; }
.form__note { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); display: none; }
.form__note.is-on { display: block; }

/* ---------- contact rows ---------- */
.creach { display: grid; gap: 0; }
.creach__row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-block: 1.15rem; border-bottom: 1px solid var(--blush-2); }
.creach__row:first-child { border-top: 1px solid var(--blush-2); }
.creach__k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--muted); }
.creach__v { font-size: 1rem; color: var(--maroon); }
.creach__v:hover { color: var(--red); }

/* ---------- footer ---------- */
.foot { background: var(--maroon); color: rgba(255,255,255,0.78); padding-block: clamp(56px, 7vw, 88px) 30px; }
.foot__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
@media (max-width: 820px) { .foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__top { grid-template-columns: 1fr; } }
.foot__logo { height: 46px; width: auto; margin-bottom: 1.4rem; }
.foot p { font-size: 0.93rem; max-width: 34ch; }
.foot h4 { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blush); margin: 0 0 1.2rem; font-weight: 500; }
.foot li + li { margin-top: 0.75rem; }
.foot a:hover { color: #fff; }
.foot__base {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.16);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ---------- motion ---------- */
.rise { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }
.rise:nth-child(2) { transition-delay: 0.07s; }
.rise:nth-child(3) { transition-delay: 0.14s; }
.rise:nth-child(4) { transition-delay: 0.21s; }

/* hero load sequence */
.hero .tc, .hero h1, .hero__foot { animation: heroIn 1.1s var(--ease) both; }
.hero h1 { animation-delay: 0.1s; }
.hero__foot { animation-delay: 0.24s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; transform: none; }
}

/* footer credit: "A venture of HighRise Media" */
.foot__venture { color: rgba(255,255,255,0.88); font-weight: 600; letter-spacing: 0.13em; border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 1px; }
.foot__venture:hover { color: #fff; border-bottom-color: #fff; }
