@font-face {
	font-family: 'Belinda';
	src: url('../assets/fonts/amalfi_coast/Amalfi Coast.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Against';
	src: url('../assets/fonts/against_2/against regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Champagne Limousines';
	src: url('../assets/fonts/champagne_limousines/Champagne & Limousines.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Champagne Limousines';
	src: url('../assets/fonts/champagne_limousines/Champagne & Limousines Italic.ttf') format('truetype');
	font-weight: normal;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Champagne Limousines';
	src: url('../assets/fonts/champagne_limousines/Champagne & Limousines Bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Champagne Limousines';
	src: url('../assets/fonts/champagne_limousines/Champagne & Limousines Bold Italic.ttf') format('truetype');
	font-weight: bold;
	font-style: italic;
	font-display: swap;
}

:root {
	--color-background: #ffffff;
	--color-surface: #ffffff;
	--color-text: #000000;
	--color-muted: #000000;
	--color-primary: #b36c8e;
	--color-primary-dark: #13080d;
	--color-accent: #f2d8e9;
	--max-width: 960px;
	--font-display: 'Belinda', cursive;
	--font-body: 'EB Garamond', serif;
	--shadow-soft: 0 18px 35px rgba(33, 18, 27, 0.12);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-body);
	font-style: italic;
	font-size: 1.125rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

a:hover,
a:focus {
	text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
	a:hover {
		text-decoration: underline;
	}
}

img {
	max-width: 100%;
	display: block;
}

.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.25rem;
	color: #ffffff;
	text-align: center;
	background: url('../assets/photos/irlanda-playa.jpg') center/95% no-repeat;
	background-attachment: scroll;
}

.hero::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 95%;
	height: 95%;
	background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
	pointer-events: none;
	z-index: 0;
}

.hero__overlay {
	max-width: 640px;
	margin: 0 auto;
	width: 95%;
	position: relative;
	z-index: 1;
}

.hero__overline {
	margin: 0 0 0.75rem;
	letter-spacing: 0.25rem;
	text-transform: uppercase;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.75);
}

.hero__title {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 4.5vw, 3.25rem);
	font-style: italic;
	letter-spacing: 0.05em;
	margin: 0;
}

.hero__subtitle {
	margin: 1rem 0 0.5rem;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 600;
	letter-spacing: 0.02em;
}

.hero__details {
	margin: 0.5rem 0;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 500;
}

.hero__location {
	margin: 0.5rem 0 2rem;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 500;
}

.button {
	display: inline-block;
	padding: 1rem 2.75rem;
	min-height: 48px;
	border-radius: 999px;
	border: 2px solid transparent;
	background: var(--color-surface);
	color: var(--color-primary-dark);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.button:hover,
.button:focus {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(33, 18, 27, 0.18);
}

.button--outline {
	background: transparent;
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.button--outline:hover,
.button--outline:focus {
	background: var(--color-accent);
}

.button--primary {
	background: var(--color-background);
	color: var(--color-primary-dark);
	border-color: var(--color-primary);
}

.button--primary:hover,
.button--primary:focus {
	background: var(--color-accent);
}

.section {
	padding: 3rem 1.25rem;
}

.section--alt {
	background: var(--color-surface);
}

.section__content {
	max-width: var(--max-width);
	margin: 0 auto;
	text-align: center;
}

.section__title {
	margin: 0 0 1.5rem;
	font-family: 'Playfair Display', serif;
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	font-style: italic;
	color: var(--color-primary-dark);
}

.section__note {
	margin-top: 1.25rem;
	color: var(--color-muted);
	font-size: 0.95rem;
}

.gallery {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(280px, 320px);
	gap: 1rem;
	margin: 2rem auto 0;
	padding: 1rem 0.5rem 1rem 0.75rem;
	max-width: calc(var(--max-width) + 2rem);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	border-radius: 1.5rem;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: inset 0 0 0 1px rgba(179, 108, 142, 0.15);
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
	scroll-padding: 0 1rem;
}

.gallery::-webkit-scrollbar {
	height: 8px;
}

.gallery::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.4);
	border-radius: 999px;
}

.gallery::-webkit-scrollbar-thumb {
	background: rgba(179, 108, 142, 0.5);
	border-radius: 999px;
}

.gallery__item {
	margin: 0;
	border-radius: 1.25rem;
	overflow: hidden;
	position: relative;
	aspect-ratio: 4 / 5;
	scroll-snap-align: center;
	box-shadow: var(--shadow-soft);
}

.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s ease;
}

.gallery__item:nth-child(6) img {
	object-position: 30% center;
}

.gallery__item:nth-child(2) img {
	object-position: 35% center;
}

.gallery__item:hover img,
.gallery__item:focus-within img {
	transform: scale(1.05);
}

.venue-media {
	margin-top: 2.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.75rem;
}

.venue-photo {
	margin: 0;
	border-radius: 1.25rem;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	flex-direction: column;
	max-width: 620px;
	width: 100%;
}

.venue-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	flex: 1 1 auto;
}

.info-grid {
	display: grid;
	gap: 1.5rem;
	margin-top: 2rem;
}

.info-card {
	background: rgba(255, 255, 255, 0.85);
	border-radius: 1.15rem;
	padding: 2rem;
	box-shadow: var(--shadow-soft);
	text-align: left;
}

.info-card h3 {
	margin-top: 0;
	margin-bottom: 0.75rem;
	font-family: var(--font-display);
	color: var(--color-primary-dark);
	font-size: 1.4rem;
}

.schedule {
	list-style: none;
	margin: 2rem auto 0;
	padding: 0;
	max-width: 680px;
	text-align: left;
}

.schedule li {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: start;
	padding: 1.25rem 1rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: var(--shadow-soft);
	margin-bottom: 1rem;
}

.schedule__header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.schedule__emoji {
	font-size: 1.5rem;
}

.schedule__time {
	font-weight: 600;
	color: var(--color-primary-dark);
}

.schedule__description {
	color: var(--color-text);
	padding-left: 0.25rem;
}

.response-form {
	margin-top: 2rem;
	padding: 1.5rem 1.25rem;
	border-radius: 1.5rem;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: var(--shadow-soft);
	display: grid;
	gap: 1.5rem;
	text-align: left;
}

.response-form__group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.response-form__group--stacked {
	border: none;
	padding: 0;
	margin: 0;
}

.response-form__group--full {
	width: 100%;
}

.response-form label,
.response-form legend {
	font-weight: 600;
	color: var(--color-primary-dark);
	font-family: var(--font-body);
}

.response-form input,
.response-form select,
.response-form textarea {
	font: inherit;
	padding: 0.95rem 1rem;
	min-height: 48px;
	border-radius: 0.75rem;
	border: 1px solid rgba(179, 108, 142, 0.35);
	background: #fff;
	color: var(--color-text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-size: 16px;
}

.response-form input:focus,
.response-form select:focus,
.response-form textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(179, 108, 142, 0.25);
}

.response-form textarea {
	resize: vertical;
}

.response-form__options {
	display: grid;
	gap: 0.75rem;
}

.response-form__option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	min-height: 48px;
	border-radius: 0.85rem;
	background: rgba(242, 216, 233, 0.35);
}

.response-form__option input {
	width: 1.25rem;
	height: 1.25rem;
	min-height: auto;
	accent-color: var(--color-primary);
	flex-shrink: 0;
}

.response-form__actions {
	display: flex;
	justify-content: flex-start;
}

.response-form__status {
	min-height: 1.25rem;
	margin: 0;
	font-weight: 500;
	color: var(--color-muted);
}

.response-form__status.is-success {
	color: #2e7d6d;
}

.response-form__status.is-error {
	color: #b34747;
}

.response-form.is-processing {
	opacity: 0.85;
}

.button {
	cursor: pointer;
}

.button:disabled {
	filter: grayscale(0.35);
	cursor: not-allowed;
}

.footer {
	background: var(--color-background);
	color: var(--color-text);
	text-align: center;
	padding: 2rem 1rem;
}

.footer__link {
	display: inline-block;
	margin-top: 0.5rem;
	color: var(--color-primary);
	font-weight: 600;
}

@media (min-width: 720px) {
	body {
		font-size: 1.25rem;
	}

	.section {
		padding: 4.5rem 1.5rem;
	}

	.response-form {
		padding: 2.5rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.info-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.response-form__group,
	.response-form__group--stacked,
	.response-form__actions,
	.response-form__status {
		grid-column: span 2;
	}

	.response-form__group--half {
		grid-column: span 1;
	}

	.schedule li {
		grid-template-columns: auto 120px 1fr;
		gap: 1rem;
		align-items: center;
		padding: 1.25rem;
	}

	.hero {
		padding: 4rem 1.5rem;
	}
}

@media (min-width: 720px) and (orientation: portrait) {
	.hero__overlay {
		margin-left: auto;
		margin-right: 18%;
	}
}

@media (min-width: 840px) {
	.venue-media {
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.gallery {
		grid-auto-columns: minmax(85%, 300px);
		padding-right: 0.5rem;
		gap: 0.75rem;
	}

	.info-card {
		padding: 1.5rem 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.button,
	.button--outline,
	.gallery__item img {
		transition: none;
	}
}

/* Portrait orientation optimization */
@media (orientation: portrait) {
	.schedule li {
		align-items: center;
	}

	.schedule__description {
		text-align: center;
		padding-left: 0;
		width: 100%;
	}

	.hero {
		background-size: cover;
		background-position: 15% center;
		align-items: flex-end;
		justify-content: flex-end;
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.hero::before {
		width: 100%;
		height: 100%;
	}

	.hero__overlay {
		max-width: 90%;
		margin-left: auto;
		margin-right: 0;
		text-align: right;
	}

	.hero__title {
		font-size: clamp(2rem, 6vw, 3.5rem);
	}

	.hero__subtitle {
		font-size: clamp(1.5rem, 4vw, 2.5rem);
	}

	.hero__details,
	.hero__location {
		font-size: clamp(1.25rem, 3vw, 2rem);
	}
}

/* Landscape orientation optimization */
@media (orientation: landscape) and (min-width: 720px) {
	.hero {
		background-size: 95%;
		background-position: center;
		align-items: center;
		justify-content: flex-end;
		padding-right: 5%;
	}

	.hero::before {
		width: 100%;
		height: 100%;
	}

	.hero__overlay {
		margin-left: 0;
		margin-right: 0;
		max-width: 500px;
		text-align: center;
		padding-right: 2rem;
	}
}

@media (orientation: landscape) and (max-width: 719px) {
	.hero {
		background-size: 95%;
		background-position: center;
		align-items: center;
		justify-content: flex-end;
		padding-right: 3%;
	}

	.hero::before {
		width: 100%;
		height: 100%;
	}

	.hero__overlay {
		margin-left: 0;
		margin-right: 0;
		max-width: 400px;
		text-align: center;
		padding-right: 1rem;
	}
}

/* Landscape mobile optimization */
@media (max-height: 600px) and (orientation: landscape) {
	.hero {
		min-height: auto;
		padding: 2rem 1.25rem;
	}
	
	.hero__title {
		font-size: clamp(1.5rem, 4vw, 2.5rem);
	}

	.hero__subtitle {
		font-size: clamp(1.25rem, 2.5vw, 1.875rem);
	}

	.hero__details,
	.hero__location {
		font-size: clamp(1rem, 2vw, 1.5rem);
	}
}

/* Mobile optimization - reduce padding */
@media (max-width: 768px) {
	.hero {
		padding: 1rem 1rem;
	}
}

/* Improve tap targets for touch devices */
@media (hover: none) and (pointer: coarse) {
	.button {
		min-height: 52px;
		padding: 1.125rem 2.75rem;
	}

	.response-form input,
	.response-form select,
	.response-form textarea {
		min-height: 52px;
		padding: 1rem;
	}
}
