/* Weddings page (page-templates/outpost-weddings.php), direction "Two places to say yes". Tokens from style.css :root. */

.outpost-weddings {
	--wd-gutter: clamp(16px, 4vw, 56px);
	--wd-max: 1200px;
	--wd-ease: cubic-bezier(.16, 1, .3, 1);
	--wd-tile-row: clamp(120px, 14vw, 190px);
	background: var(--op-tex-linen), var(--op-surface);
	color: var(--op-ink);
	font-size: 17px;
	line-height: 1.6;
}
.outpost-weddings:focus { outline: none; }
.outpost-weddings p, .outpost-weddings h1, .outpost-weddings h2 { padding: 0; }
.outpost-weddings a { color: inherit; }
.outpost-weddings img { display: block; max-width: 100%; height: auto; }
.outpost-weddings figure { margin: 0; }
.wd-wrap { max-width: var(--wd-max); margin: 0 auto; padding: 0 var(--wd-gutter); }

/* Buttons and links */
.wd-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.outpost-weddings .wd-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
	border-radius: var(--op-radius); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none;
	transition: background-color .25s var(--wd-ease), box-shadow .25s var(--wd-ease);
}
.outpost-weddings .wd-btn--navy { background: var(--op-cta); color: var(--op-on-cta); }
.outpost-weddings .wd-btn--navy:hover { background: var(--op-cta-hover); }
.outpost-weddings .wd-btn--line { color: var(--op-deep); box-shadow: inset 0 0 0 1px #8b90a0; }
.outpost-weddings .wd-btn--line:hover { box-shadow: inset 0 0 0 2px var(--op-deep); }
.outpost-weddings .wd-link {
	display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--op-deep);
	text-decoration: underline; text-decoration-color: var(--op-trim); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.outpost-weddings .wd-link:hover { text-decoration-color: var(--op-deep); }

/* Type */
.outpost-weddings .wd-title { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.02; letter-spacing: 0; color: var(--op-deep); margin: 0 0 14px; text-wrap: balance; }
.outpost-weddings .wd-h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.04; color: var(--op-deep); margin: 0; text-wrap: balance; }
#page-container .wd-kick { font: italic 500 20px/1.3 'Alegreya', Georgia, serif !important; color: var(--op-accent); margin: 0 0 8px; }
.wd-lede { color: var(--op-ink-soft); font-size: 19px; margin: 0; max-width: 50ch; text-wrap: pretty; }

/* Hero: two halves and a framed linen card */
.wd-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: min(88vh, 780px); background: var(--op-deep); }
.outpost-weddings .wd-half { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; }
.wd-half img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--wd-ease); }
.wd-half:hover img { transform: scale(1.03); }
/* Keep the dancing couple clear of the centred title card on wide screens. */
.wd-half--hall img { object-position: 92% 45%; }
.wd-half::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 24, 44, .85), rgba(18, 24, 44, .1) 50%); }
.wd-half__tag { position: absolute; z-index: 1; bottom: clamp(24px, 4vw, 44px); display: grid; gap: 4px; }
.wd-half--hall .wd-half__tag { left: clamp(20px, 4vw, 56px); }
.wd-half--away .wd-half__tag { right: clamp(20px, 4vw, 56px); text-align: right; }
.wd-half__name { font: 700 clamp(26px, 2.8vw, 36px)/1.1 'Alegreya', Georgia, serif; }
.wd-half__tag span + span { color: #e3e5ec; font-size: 16px; }
.wd-card {
	position: absolute; z-index: 2; left: 50%; top: 46%; transform: translate(-50%, -50%);
	width: min(560px, calc(100% - 32px)); padding: clamp(28px, 3.6vw, 48px); text-align: center;
	background: var(--op-tex-linen), var(--op-surface); border-radius: 6px;
	outline: 1px solid var(--op-trim); outline-offset: -9px; box-shadow: 0 30px 60px -30px rgba(10, 14, 28, .7);
}
.wd-card p { color: var(--op-ink-soft); margin: 0 auto 24px; max-width: 36ch; font-size: 18px; text-wrap: pretty; }
.wd-card .wd-acts { justify-content: center; }

/* Hall / away sections */
.wd-place { padding: clamp(72px, 10vw, 136px) 0; scroll-margin-top: 64px; }
.wd-place--away { background: #fff; }
.wd-place__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.wd-mosaic { display: grid; gap: 12px; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: var(--wd-tile-row); }
.wd-tile { position: relative; overflow: hidden; border-radius: var(--op-radius); background: var(--op-rule); }
.wd-tile img { width: 100%; height: 100%; object-fit: cover; }
.wd-tile::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgba(18, 24, 44, .6), rgba(18, 24, 44, 0)); }
.wd-tile figcaption { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; margin: 0; color: #fff; font: italic 500 16px/1.3 'Alegreya', Georgia, serif; }
.wd-tile--a { grid-column: span 5; grid-row: span 3; }
.wd-tile--b { grid-column: span 4; grid-row: span 2; }
.wd-tile--c { grid-column: span 3; grid-row: span 2; }
.wd-tile--d { grid-column: span 3; grid-row: span 1; }
.wd-tile--e { grid-column: span 4; grid-row: span 1; }
.wd-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(32px, 4vw, 48px) 0 0; border-top: 1px solid var(--op-rule); }
.wd-facts div { padding: 18px 20px 4px 0; }
.wd-facts dt { font: 700 20px/1.25 'Alegreya', Georgia, serif; color: var(--op-deep); margin: 0 0 4px; }
.wd-facts dd { margin: 0; color: var(--op-ink-soft); font-size: 16px; line-height: 1.5; }

/* Service styles band */
.wd-styles { background: var(--op-tex-grain-light), var(--op-deep); color: var(--op-on-deep); padding: clamp(72px, 9vw, 120px) 0; }
.wd-styles__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.outpost-weddings .wd-styles .wd-h2 { color: var(--op-on-deep); font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.08; margin: 0 0 clamp(28px, 4vw, 48px); max-width: 20ch; }
.wd-styles__list { margin: 0; border-top: 1px solid rgba(207, 171, 121, .5); }
.wd-styles__list div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(207, 171, 121, .5); }
.wd-styles__list dt { font: 700 22px/1.2 'Alegreya', Georgia, serif; color: var(--op-on-deep); }
.wd-styles__list dd { margin: 0; color: var(--op-on-deep-muted); }
.wd-styles__more { margin: 24px 0 0; }
.outpost-weddings .wd-styles .wd-link { color: var(--op-on-deep); }
.wd-styles__ph { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wd-styles__ph img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--op-radius); }
.wd-styles :focus-visible { outline-color: var(--op-on-deep); }

/* Closing */
.wd-closing { padding: clamp(72px, 9vw, 120px) 0; }
.wd-closing__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.wd-closing__ph img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: var(--op-radius); }
.wd-closing .wd-h2 { margin-bottom: 14px; }
.wd-closing .wd-lede { margin-bottom: 26px; max-width: 42ch; }

@media (max-width: 980px) {
	.wd-hero { display: flex; flex-direction: column; min-height: 0; padding-bottom: 32px; }
	.outpost-weddings .wd-half { aspect-ratio: 4 / 3; }
	.wd-half--hall img { object-position: 55% 45%; }
	.wd-half--away .wd-half__tag { right: auto; left: clamp(20px, 4vw, 56px); text-align: left; bottom: 60px; } /* clear of the card that overlaps by 40px */
	.wd-card { position: relative; left: auto; top: auto; transform: none; width: auto; margin: -40px 16px 0; }
	.wd-place__head, .wd-styles__row, .wd-closing__in { grid-template-columns: 1fr; }
	.wd-mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 120px; }
	.wd-tile--a { grid-column: span 6; grid-row: span 3; }
	.wd-tile--b, .wd-tile--c { grid-column: span 3; grid-row: span 2; }
	.wd-tile--d, .wd-tile--e { grid-column: span 3; grid-row: span 1; }
	.wd-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.outpost-weddings { font-size: 16px; }
	.wd-acts .wd-btn { width: 100%; }
	.wd-styles__list div { grid-template-columns: 1fr; gap: 4px; }
	.wd-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.outpost-weddings * { transition: none !important; }
}
