:root {
	--cream: #f6efe6;
	--paper: #fffaf2;
	--ink: #2b241f;
	--muted: #75675c;
	--terracotta: #a76f55;
	--olive: #6f7655;
	--beige: #d8c6b5;
	--shadow: 0 24px 70px rgba(43, 36, 31, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: Inter, system-ui, sans-serif;
	color: var(--ink);
	background: var(--cream);
	opacity: 0;
	animation: pageFadeIn .7s ease forwards;
}

@keyframes pageFadeIn {
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	body { animation: none; opacity: 1; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 20;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px clamp(18px, 4vw, 64px);
	backdrop-filter: blur(18px);
	background: rgba(246, 239, 230, 0.72);
	border-bottom: 1px solid rgba(43, 36, 31, 0.08);
}

.brand {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.8rem;
	font-weight: 700;
}

.nav {
	display: flex;
	gap: clamp(12px, 2vw, 28px);
	align-items: center;
	font-size: 0.92rem;
	font-weight: 600;
}

.menu-btn {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.menu-btn span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform .3s ease, opacity .3s ease, width .3s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 100%; }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

.mobile-nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(43, 36, 31, .5);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
	z-index: 29;
}

.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-nav {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(78vw, 320px);
	background: var(--cream);
	z-index: 30;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 104px 32px 32px;
	transform: translateX(100%);
	transition: transform .35s cubic-bezier(.61, .06, .29, .9);
	box-shadow: -20px 0 60px rgba(43, 36, 31, .25);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav-close {
	position: absolute;
	top: 18px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	font-size: 2rem;
	line-height: 1;
	color: var(--ink);
	cursor: pointer;
}

.mobile-nav a {
	padding: 16px 0;
	font-size: 1.1rem;
	font-weight: 600;
	border-bottom: 1px solid rgba(43, 36, 31, .08);
}

.section-panel {
	min-height: 100svh;
	padding: 120px clamp(20px, 6vw, 96px) 80px;
	display: grid;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.hero {
	place-items: center;
	text-align: center;
	color: white;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-color: var(--ink);
	background-image:
		linear-gradient(rgba(43, 36, 31, .28), rgba(43, 36, 31, .55)),
		url("images/noivos/foto.jpeg");
	background-repeat: no-repeat;
	background-size: cover, cover;
	background-position: 0 0, 50% 87%;
}

.hero-content {
	position: relative;
	max-width: 900px;
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-size: 1rem;
	font-weight: 700;
	color: var(--terracotta);
}

.hero .eyebrow { color: #f6dcc8; }

h1, h2, h3 {
	font-family: "Cormorant Garamond", serif;
	line-height: 0.95;
	margin: 0;
}

h1 { font-size: clamp(4.5rem, 15vw, 13rem); }
h2 { font-size: clamp(3rem, 7vw, 7rem); max-width: 980px; }
h3 { font-size: 2rem; }

.subtitle {
	max-width: 680px;
	margin: 24px auto 0;
	font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.countdown {
	margin-top: 40px;
	display: flex;
	justify-content: center;
	gap: clamp(14px, 3vw, 28px);
	flex-wrap: wrap;
}

.countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 72px;
	padding: 14px 6px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 20px;
	backdrop-filter: blur(6px);
}

.countdown-unit span {
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 700;
	line-height: 1;
}

.countdown-unit small {
	margin-top: 6px;
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .78);
}

.hero-actions {
	margin-top: 34px;
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
}

.button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	font-weight: 700;
	border: 1px solid transparent;
	cursor: pointer;
}

.button.ghost { border-color: rgba(255, 255, 255, .72); color: white; }

.story {
	grid-template-columns: 1fr 1fr;
	gap: 48px;
}

.section-copy p:not(.eyebrow) {
	color: var(--muted);
	font-size: 1.08rem;
	line-height: 1.8;
	max-width: 680px;
}

.story-grid {
	display: grid;
	gap: 18px;
}

.story-grid article,
.details-card {
	background: rgba(255, 250, 242, .78);
	border: 1px solid rgba(43, 36, 31, 0.08);
	border-radius: 32px;
	padding: clamp(24px, 4vw, 42px);
	box-shadow: var(--shadow);
}

.story-grid span {
	color: var(--olive);
	font-weight: 800;
}

.story-grid p,
dd {
	color: var(--muted);
	line-height: 1.7;
}

.details {
	grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
	gap: 44px;
	background: var(--paper);
}

.details-card dl {
	margin: 32px 0 0;
	display: grid;
	gap: 22px;
}

dt { font-weight: 800; }
dd { margin: 4px 0 0; }

.cal-wrap {
	position: relative;
	display: inline-block;
	margin-top: 10px;
}

.cal-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 1px solid var(--beige);
	border-radius: 999px;
	padding: 6px 14px;
	font: inherit;
	font-size: 0.82rem;
	color: var(--muted);
	cursor: pointer;
	transition: border-color .2s, color .2s;
}

.cal-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.cal-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.cal-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	background: var(--paper);
	border: 1px solid rgba(43, 36, 31, .1);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 210px;
	z-index: 10;
}

.cal-dropdown[hidden] { display: none; }

.cal-dropdown a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 0.88rem;
	color: var(--ink);
	transition: background .15s;
}

.cal-dropdown a:hover { background: var(--cream); text-decoration: none; }
.cal-dropdown a svg { width: 18px; height: 18px; flex-shrink: 0; }

a.map-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

a.map-link svg {
	width: 18px;
	height: 18px;
	color: var(--terracotta);
	flex-shrink: 0;
	transition: transform .2s;
}

a.map-link:hover svg { transform: scale(1.2); }
dd a:hover { text-decoration: underline; }

.floating-photo img {
	height: min(68svh, 740px);
	width: 100%;
	object-fit: cover;
	border-radius: 40px;
	box-shadow: var(--shadow);
}

.schedule {
	grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
	gap: 44px;
	background:
		radial-gradient(circle at top left, rgba(167, 111, 85, .22), transparent 34%),
		var(--cream);
}

.timeline {
	margin-top: 46px;
	display: grid;
	gap: 14px;
	max-width: 680px;
}

.timeline div {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 18px;
	padding: clamp(18px, 2vw, 30px) clamp(22px, 3vw, 40px);
	background: rgba(255, 250, 242, .62);
	border: 1px solid rgba(43, 36, 31, 0.08);
	border-radius: 24px;
	font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.timeline strong { color: var(--terracotta); }

.rsvp {
	place-items: center;
	text-align: center;
	background:
		radial-gradient(circle at bottom right, rgba(167, 111, 85, .28), transparent 45%),
		radial-gradient(circle at top left, rgba(111, 118, 85, .22), transparent 40%),
		var(--ink);
}

.rsvp-card {
	max-width: 640px;
	background: var(--paper);
	border-radius: 40px;
	padding: clamp(36px, 6vw, 64px);
	box-shadow: 0 32px 90px rgba(0, 0, 0, .45);
}

.rsvp-card .eyebrow { color: var(--terracotta); }

.rsvp-card h2 {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	margin-top: 14px;
}

.rsvp-card p:not(.eyebrow) {
	margin: 20px auto 0;
	color: var(--muted);
	font-size: 1.08rem;
	line-height: 1.7;
	max-width: 460px;
}

.rsvp-card .rsvp-note {
	margin-top: 12px;
	font-size: .92rem;
	font-style: italic;
}

.rsvp-actions {
	margin-top: 18px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}

.button.whatsapp {
	gap: 8px;
	min-height: 42px;
	background: transparent;
	border-color: rgba(37, 211, 102, .5);
	color: var(--ink);
	font-weight: 600;
	font-size: .92rem;
	padding: 0 18px;
}

.button.whatsapp svg {
	width: 18px;
	height: 18px;
	color: #25D366;
	flex-shrink: 0;
}

.button.whatsapp:hover { background: rgba(37, 211, 102, .12); border-color: #25D366; }

footer {
	text-align: center;
	padding: 34px 20px;
	color: var(--muted);
}

.reveal {
	animation: rise .8s ease both;
	animation-timeline: view();
	animation-range: entry 10% cover 35%;
}

.delay { animation-delay: .12s; }

@keyframes rise {
	from { opacity: 0; transform: translateY(32px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
	.site-header { align-items: center; }
	.nav { display: none; }
	.menu-btn { display: flex; }
	.section-panel { min-height: auto; padding-top: 104px; }
	.hero { min-height: 100svh; min-height: 100dvh; }
	.story,
	.details,
	.schedule {
		grid-template-columns: 1fr;
	}
	.floating-photo img { height: 420px; }
	.timeline div { grid-template-columns: 1fr; }
	h1 { font-size: clamp(4rem, 22vw, 8rem); }
}

@media (max-width: 520px) {
	.section-panel { padding-inline: 16px; }
	.story-grid article,
	.details-card,
	.rsvp-card { border-radius: 24px; }
	.hero-actions,
	.rsvp-actions { flex-direction: column; }
	.button { width: 100%; }
}
