/*
Theme Name: Harith & Estefanía
Description: Single-page bilingual wedding landing — 26.11.2026, Fábula, Envigado.
Author: Harith Alrubaye
Version: 1.0.0
Text Domain: harith-estefania
*/

:root {
	--bg: #ffffff;
	--ink: #1d2430;
	--muted: #5b6472;
	--yellow: #f1c40f;
	--sky: #6fa8dc;
	--navy-ink: #2d5085;
	--navy: #1b3b6f;
	--navy-dark: #12294e;
	--card: #ffffff;
	--card-cool: #eef4fb;
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Outfit", -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; } /* must beat .countdown__grid's display: flex */
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased; padding-bottom: 3.6rem; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* Film grain */
.grain { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Language toggle */
.lang { position: fixed; top: 1.25rem; right: 1.5rem; z-index: 90; display: flex; gap: .5rem; align-items: center; color: #fff; mix-blend-mode: difference; }
.lang button { background: none; border: none; color: inherit; font: 500 .8rem/1 var(--sans); letter-spacing: .15em; cursor: pointer; padding: .4rem .2rem; opacity: .6; transition: opacity .3s; }
.lang button[aria-pressed="true"] { opacity: 1; border-bottom: 1px solid currentColor; }

/* Hero */
.hero { position: relative; min-height: 100svh; overflow: hidden; color: #fdfcfa; }
.hero__bg { position: absolute; inset: -12% 0; will-change: transform; }
.hero__bg-img { position: absolute; inset: 0; background: url("img/hero.jpg") center 35% / cover no-repeat; animation: kenburns 18s ease-in-out infinite alternate; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(15,23,40,.12), rgba(15,23,40,.62) 82%); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero__monogram { position: absolute; top: 3rem; left: 50%; transform: translateX(-50%); z-index: 3; background: rgba(255,255,255,.93); border-radius: 14px; padding: .55rem .85rem; font: italic 500 1.35rem/1 var(--serif); color: var(--navy-ink); box-shadow: 0 8px 24px rgba(15,23,40,.28); }
.hero__monogram .amp { color: var(--yellow); }
.hero__inner { position: absolute; left: 0; right: 0; bottom: clamp(4.5rem, 12vh, 8rem); padding: 0 clamp(1.25rem, 5vw, 4rem); z-index: 2; }
.hero__names { font: italic 500 clamp(3.4rem, 12vw, 11rem)/0.92 var(--serif); letter-spacing: -.02em; text-shadow: 0 2px 24px rgba(15,23,40,.35); }
.hero__line { display: block; }
.hero__line--2 { margin-left: clamp(2.5rem, 11vw, 9rem); }
.amp { color: var(--yellow); font-style: italic; }
.hero__line--1 { animation: riseline 1s cubic-bezier(.2,.7,.2,1) both .15s; }
.hero__line--2 { animation: riseline 1s cubic-bezier(.2,.7,.2,1) both .35s; }
.hero__date { margin-top: 1.1rem; font-size: clamp(.7rem, 1.6vw, .85rem); letter-spacing: .35em; text-transform: uppercase; color: #eef2f8; animation: riseline 1s cubic-bezier(.2,.7,.2,1) both .55s; }
@keyframes riseline { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }

/* Floating countdown card */
.countcard { position: relative; z-index: 4; max-width: 34rem; margin: -4.25rem auto 0; padding: 1.8rem 1.5rem 2rem; background: var(--card); border-radius: 16px; box-shadow: 0 16px 40px rgba(29,36,48,.16); text-align: center; }
.countcard__label { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--navy-ink); margin-bottom: 1.1rem; }
.countdown__grid { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 2.2rem); }
.countdown__cell { min-width: 3.6rem; }
.countdown__num { display: block; font: 500 clamp(2.1rem, 6vw, 3rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown__num.tick { animation: tickIn .5s ease; }
.countdown__label { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.countdown__over { font: italic 500 clamp(1.8rem, 5vw, 2.6rem)/1.2 var(--serif); color: var(--navy-ink); }
@keyframes tickIn { from { opacity: 0; transform: translateY(-.35em); } to { opacity: 1; transform: none; } }
@media (max-width: 360px) { .countdown__cell--s { display: none; } }
.countcard__cta { margin-top: 1.4rem; }

/* Sections & titles */
.section { max-width: 62rem; margin: 0 auto; padding: clamp(3.5rem, 9vw, 6rem) 1.25rem; text-align: center; position: relative; overflow: hidden; }
.section__title { font: 500 clamp(1.7rem, 4.2vw, 2.4rem)/1.25 var(--serif); margin-bottom: 1.8rem; }

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: #ffffff; font: 500 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border: none; border-radius: 12px; padding: 1.05rem 2.3rem; transition: background .3s, transform .3s, box-shadow .3s; }
.btn:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29,36,48,.22); }
.btn--big { font-size: .9rem; padding: 1.2rem 3rem; }

/* Welcome */
.welcome__heart { width: 1.5rem; height: 1.5rem; fill: var(--sky); margin-bottom: .6rem; }
.welcome__text { max-width: 34rem; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }

/* Bento gallery */
.bento__grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 10rem; grid-auto-flow: dense; gap: .75rem; }
@media (min-width: 900px) { .bento__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 12rem; } }
.bento__item { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.bento__item--tall { grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }
.bento__card { border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 1.1rem; }
.bento__card--quote { background: #dcebfa; font: italic 500 clamp(1.1rem, 2.5vw, 1.45rem)/1.4 var(--serif); color: var(--navy); }
.bento__card--story { background: var(--card-cool); color: var(--muted); font-size: .85rem; line-height: 1.65; text-align: left; grid-column: span 2; }
.bento__tilt.reveal { transform: translateY(2rem) rotate(-3deg); }
.bento__tilt.reveal.in-view { transform: rotate(0deg); }

/* Schedule timeline */
.timeline { list-style: none; max-width: 26rem; margin: 0 auto; position: relative; text-align: left; }
.timeline::before { content: ""; position: absolute; left: 2.35rem; top: 1rem; bottom: 1rem; width: 1px; background: #a8c8e8; }
.timeline__item { position: relative; display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; background: var(--card-cool); border-radius: 14px; padding: 1rem 1.2rem; }
.timeline__item:nth-child(2) { transition-delay: .15s; }
.timeline__item:nth-child(3) { transition-delay: .3s; }
.timeline__icon { width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--card); color: var(--sky); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 2px 8px rgba(29,36,48,.1); position: relative; z-index: 1; }
.timeline__icon svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.timeline__time { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--navy-ink); }
.timeline__what { font: italic 500 1.3rem/1.2 var(--serif); color: var(--ink); }

/* Venue info cards + map */
.infocard { display: flex; gap: 1rem; align-items: center; background: var(--card-cool); border-radius: 14px; padding: 1rem 1.2rem; max-width: 30rem; margin: 0 auto 1rem; text-align: left; }
.infocard__icon { width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--card); color: var(--sky); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 2px 8px rgba(29,36,48,.1); }
.infocard__icon svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.infocard__label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--navy-ink); }
.infocard__body { color: var(--ink); font-size: .98rem; }
.venue__map { max-width: 44rem; margin: 1.5rem auto 0; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(29,36,48,.12); }
.venue__map iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; filter: saturate(.85); }

/* RSVP + marquee */
.rsvp__text { max-width: 30rem; margin: 0 auto 2.2rem; color: var(--muted); }
.marquee { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); overflow: hidden; pointer-events: none; }
.marquee span { display: inline-block; white-space: nowrap; font: italic 500 clamp(4rem, 10vw, 7rem)/1 var(--serif); color: rgba(27,59,111,.06); animation: drift 42s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }

/* Footer */
.footer { text-align: center; padding: 3.2rem 1.5rem 4rem; background: var(--navy); color: #d9e4f3; }
.footer__names { font: italic 500 1.6rem/1 var(--serif); }
.footer__date { font-size: .8rem; letter-spacing: .3em; margin-top: .5rem; }

/* Sticky bottom nav */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; display: flex; justify-content: space-around; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-top: 1px solid #dde6f0; padding: .55rem 0 calc(.45rem + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .bottomnav { left: 50%; right: auto; bottom: 1.25rem; transform: translateX(-50%); gap: 2.2rem; border: 1px solid #dde6f0; border-radius: 999px; padding: .6rem 1.6rem; box-shadow: 0 12px 32px rgba(29,36,48,.16); } }
.bottomnav__item { display: flex; flex-direction: column; align-items: center; gap: .18rem; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .25s; }
.bottomnav__item svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.bottomnav__item.is-active, .bottomnav__item:hover { color: var(--navy); }

/* Scroll reveal (JS adds .in-view) */
.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero__bg-img, .hero__line--1, .hero__line--2, .hero__date, .countdown__num.tick, .marquee span { animation: none; }
	.reveal, .bento__tilt.reveal { opacity: 1; transform: none; transition: none; }
	.btn:hover { transform: none; }
}
