/* =====================================================================
   THE HOUSE OF THARUNAM — STYLES
   Colours can be changed in the :root block below.
   ===================================================================== */
:root {
  --black: #070a09;
  --ink: #0d1411;
  --green-900: #0a1914;
  --green-800: #0f2a21;
  --green-600: #1c4a3a;
  --green-400: #3f7a62;
  --white: #f7f5f0;
  --muted: #a9b3ad;
  --line: rgba(247, 245, 240, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --pad: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: var(--sans); font-weight: 300; line-height: 1.75;
  color: var(--white); background: var(--black);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
body.no-scroll { overflow: hidden; }

.container { width: min(1240px, 100% - var(--pad) * 2); margin-inline: auto; }
.center { text-align: center; margin-top: 56px; }

.eyebrow {
  font-size: .72rem; letter-spacing: .38em; text-transform: uppercase;
  color: var(--green-400); margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif); font-weight: 300; line-height: 1.1;
  font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 22px;
}
.section-title em { font-style: italic; color: var(--green-400); }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--dark { background: linear-gradient(180deg, var(--green-900), var(--ink)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-lead { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block; padding: 15px 38px; font-size: .76rem; letter-spacing: .24em;
  text-transform: uppercase; border: 1px solid var(--white);
  transition: all .45s var(--ease); position: relative; overflow: hidden;
}
.btn--solid { background: var(--green-600); border-color: var(--green-600); color: var(--white); }
.btn--solid:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--ghost:hover { background: var(--white); color: var(--black); }

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

/* Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--black);
  display: grid; place-items: center; transition: opacity .9s var(--ease), visibility .9s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__mark { display: block; font-family: var(--serif); font-size: 4.5rem; font-style: italic; color: var(--green-400); animation: pulse 1.6s ease-in-out infinite; }
.preloader__text { letter-spacing: .4em; font-size: .7rem; text-transform: uppercase; color: var(--muted); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.95); } }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad); transition: background .5s var(--ease), padding .5s var(--ease);
}
.nav.is-scrolled { background: rgba(7, 10, 9, .88); backdrop-filter: blur(14px); padding-block: 14px; border-bottom: 1px solid var(--line); }
.nav__logo { display: flex; flex-direction: column; line-height: 1; }
.nav__logo-top { font-size: .55rem; letter-spacing: .5em; color: var(--muted); }
.nav__logo-main { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .28em; margin-top: 4px; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav__links a { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; position: relative; padding: 4px 0; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--green-400); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid var(--white); padding: 10px 22px !important; transition: all .4s var(--ease); }
.nav__cta:hover { background: var(--white); color: var(--black); }
.nav__toggle { display: none; width: 34px; height: 34px; position: relative; z-index: 120; }
.nav__toggle span { position: absolute; left: 4px; right: 4px; height: 1px; background: var(--white); transition: transform .4s var(--ease); }
.nav__toggle span:first-child { top: 12px; }
.nav__toggle span:last-child { top: 21px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; height: 100vh; min-height: 620px; display: grid; place-items: center; text-align: center; overflow: hidden; background: radial-gradient(circle at 50% 30%, var(--green-800), var(--black) 75%); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,9,.55) 0%, rgba(7,10,9,.35) 45%, rgba(7,10,9,.9) 100%); }
.hero__content { position: relative; z-index: 2; padding: 0 var(--pad); max-width: 900px; }
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 12vw, 9rem); line-height: .95; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 28px; }
.hero__title-small { display: block; font-size: clamp(.9rem, 2.4vw, 1.6rem); letter-spacing: .6em; font-style: italic; text-transform: none; color: var(--green-400); margin-bottom: 12px; }
.hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: rgba(247,245,240,.85); margin-bottom: 40px; }
.hero__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; z-index: 2; width: 1px; height: 64px; background: var(--line); overflow: hidden; }
.hero__scroll span { display: block; width: 100%; height: 40%; background: var(--white); animation: drip 2s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.hero .reveal:nth-child(2) { transition-delay: .25s; }
.hero .reveal:nth-child(3) { transition-delay: .5s; }
.hero .reveal:nth-child(4) { transition-delay: .75s; }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__images { position: relative; padding-bottom: 80px; }
.about__img { object-fit: cover; background: var(--green-800); }
.about__img--main { width: 78%; aspect-ratio: 3/4; }
.about__img--second { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; border: 10px solid var(--black); }
.about__badge { position: absolute; left: -10px; bottom: 30px; background: var(--green-600); width: 120px; height: 120px; border-radius: 50%; display: grid; place-content: center; text-align: center; font-size: .65rem; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; }
.about__badge strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; letter-spacing: 0; line-height: 1; }
.about__text p { color: var(--muted); margin-bottom: 18px; }
.about__stats { display: flex; gap: clamp(20px, 4vw, 50px); margin: 36px 0 40px; flex-wrap: wrap; }
.about__stats strong { display: inline; font-family: var(--serif); font-size: 2.8rem; font-weight: 300; color: var(--white); }
.about__stats li { display: flex; flex-direction: column; }
.about__stats span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--green-400); }

/* Gallery */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filter { padding: 9px 24px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; border: 1px solid var(--line); transition: all .35s var(--ease); }
.filter:hover, .filter.is-active { background: var(--green-600); border-color: var(--green-600); }
.masonry { columns: 3; column-gap: 16px; }
.tile { position: relative; overflow: hidden; margin-bottom: 16px; break-inside: avoid; cursor: zoom-in; background: var(--green-800); }
.tile img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,10,9,.65)); opacity: 0; transition: opacity .5s; }
.tile:hover img { transform: scale(1.06); }
.tile:hover::after { opacity: 1; }
.tile.is-hidden { display: none; }

/* Grids */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--3 .tile { margin: 0; aspect-ratio: 4/5; }
.grid--3 .tile img { height: 100%; object-fit: cover; }
.grid--bridal { grid-template-columns: repeat(6, 1fr); }
.grid--bridal .tile { margin: 0; grid-column: span 2; aspect-ratio: 3/4; }
.grid--bridal .tile:nth-child(4), .grid--bridal .tile:nth-child(5) { grid-column: span 3; aspect-ratio: 4/3; }
.grid--bridal .tile img { height: 100%; object-fit: cover; }

/* Video cards */
.video-card { position: relative; overflow: hidden; cursor: pointer; background: var(--green-800); aspect-ratio: 16/10; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video-card:hover img { transform: scale(1.06); }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,9,.1), rgba(7,10,9,.8)); }
.video-card__play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 74px; height: 74px; transform: translate(-50%, -50%); border: 1px solid var(--white); border-radius: 50%; display: grid; place-items: center; backdrop-filter: blur(4px); transition: all .5s var(--ease); }
.video-card__play::before { content: ""; border-left: 16px solid var(--white); border-block: 10px solid transparent; margin-left: 5px; }
.video-card:hover .video-card__play { background: var(--green-600); border-color: var(--green-600); transform: translate(-50%, -50%) scale(1.12); }
.video-card__info { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 18px; }
.video-card__info h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.video-card__info p { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cine-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.cine-grid .video-card:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 420px; }
.cine-grid .video-card { aspect-ratio: auto; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 80px; border-top: 1px solid var(--line); padding-top: 50px; }
.features span { font-family: var(--serif); font-style: italic; color: var(--green-400); font-size: 1.1rem; }
.features h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin: 6px 0; }
.features p { color: var(--muted); font-size: .9rem; }

/* Testimonials */
.slider { max-width: 820px; margin: 0 auto; text-align: center; overflow: hidden; }
.slider__track { display: flex; transition: transform .9s var(--ease); }
.slide { min-width: 100%; padding: 0 20px; }
.slide__mark { font-family: var(--serif); font-size: 5rem; line-height: .6; color: var(--green-400); display: block; margin-bottom: 14px; }
.slide__text { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 2.8vw, 1.9rem); line-height: 1.55; margin-bottom: 28px; }
.slide__name { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; }
.slide__event { font-size: .72rem; letter-spacing: .15em; color: var(--muted); }
.slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.slider__dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--white); transition: all .4s; }
.slider__dots button.is-active { background: var(--green-400); border-color: var(--green-400); transform: scale(1.3); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact p { color: var(--muted); }
.contact__list { margin: 34px 0; }
.contact__list li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__list span { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--green-400); }
.contact__list a, .contact__list b { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; word-break: break-word; }
.socials { display: flex; gap: 14px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border: 1px solid var(--line); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; transition: all .4s var(--ease); }
.socials a:hover { background: var(--green-600); border-color: var(--green-600); }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); background: rgba(247,245,240,.04); border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; outline: none; transition: border-color .3s; border-radius: 0;
}
.form select option { background: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green-400); }
.form .btn { margin-top: 10px; width: 100%; }
.form input[type="date"] { color-scheme: dark; }

/* Footer */
.footer { text-align: center; padding: 60px var(--pad) 90px; border-top: 1px solid var(--line); background: var(--black); }
.footer__brand { font-family: var(--serif); letter-spacing: .4em; font-size: 1.4rem; margin-bottom: 8px; }
.footer p, .footer small { color: var(--muted); display: block; }
.footer small { margin-top: 14px; font-size: .75rem; }

/* WhatsApp floating button */
.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 60px; background: #1f8a5b; color: #fff;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .4s var(--ease), background .4s;
}
.whatsapp:hover { transform: translateY(-4px); background: #17734a; }
.whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid #1f8a5b; animation: ring 2.4s ease-out infinite; }
@keyframes ring { to { transform: scale(1.35); opacity: 0; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(4,7,6,.96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { width: min(1200px, 92vw); max-height: 82vh; display: grid; place-items: center; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 82vh; object-fit: contain; animation: zoomIn .6s var(--ease); }
.lightbox__stage iframe { width: min(1100px, 92vw); aspect-ratio: 16/9; border: 0; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } }
.lightbox__close { position: absolute; top: 18px; right: 26px; font-size: 2.6rem; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 10px 22px; opacity: .7; transition: opacity .3s; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
.lightbox__caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: .8rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; padding: 0 60px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: 110; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(7,10,9,.97); transform: translateX(100%); transition: transform .6s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 1rem; }
  .masonry { columns: 2; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__images { max-width: 440px; }
  .cine-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cine-grid .video-card, .cine-grid .video-card:first-child { grid-row: auto; aspect-ratio: 16/10; min-height: 0; }
  .grid--bridal { grid-template-columns: repeat(2, 1fr); }
  .grid--bridal .tile, .grid--bridal .tile:nth-child(4), .grid--bridal .tile:nth-child(5) { grid-column: span 1; aspect-ratio: 3/4; }
  .features { grid-template-columns: 1fr; gap: 22px; }
  .whatsapp span { display: none; }
  .whatsapp { padding: 16px; }
  .lightbox__nav { font-size: 2.4rem; padding: 10px 12px; }
}
@media (max-width: 480px) {
  .masonry { columns: 1; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--3 .tile { aspect-ratio: 4/5; }
}

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

/* Send photos */
.upload__wrap { max-width: 760px; }
.upload__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.drop { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 34px 20px; border: 1px dashed rgba(247,245,240,.35); cursor: pointer; transition: all .35s var(--ease); }
.drop strong { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.drop span { font-size: .75rem; letter-spacing: .12em; color: var(--muted); }
.drop:hover, .drop.is-over, .drop:focus-visible { border-color: var(--green-400); background: rgba(63,122,98,.12); outline: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--green-800); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(7,10,9,.8); font-size: 1.1rem; line-height: 1; }
.upload__status { min-height: 1.4em; font-size: .85rem; color: var(--muted); }
.upload__status.is-ok { color: #6fc79c; }
.upload__status.is-error { color: #e59a8d; }
.upload__status a { text-decoration: underline; }
.btn[disabled] { opacity: .55; pointer-events: none; }
@media (max-width: 720px) { .upload__row { grid-template-columns: 1fr; } }
