/* Outpost Home (code) template. Loaded only on page-templates/outpost-home.php. Tokens come from style.css :root. */

.outpost-home {
	--oh-gutter: clamp(16px, 4vw, 56px);
	--oh-max: 1200px;
	--oh-ink-2: #4a5164;          /* secondary text on light: 7.6:1 on white */
	--oh-gold-line: #cfab79;      /* decorative only, never text */
	background: #fff;
	color: var(--op-ink);
	font-size: 17px;
	line-height: 1.6;
}
.outpost-home p { padding: 0; }
.outpost-home a { color: inherit; }
.outpost-home img { display: block; max-width: 100%; height: auto; }

.oh-wrap { max-width: var(--oh-max); margin: 0 auto; padding: 0 var(--oh-gutter); }
.oh-section { padding: clamp(64px, 9vw, 120px) 0; }

.outpost-home .oh-h2 {
	font-size: clamp(30px, 3.6vw, 44px);
	line-height: 1.1;
	color: var(--op-deep);
	padding: 0;
	margin: 0 0 clamp(24px, 3vw, 40px);
	text-wrap: balance;
}
.outpost-home .oh-h3 { font-size: 20px; line-height: 1.2; padding: 0; margin: 0 0 6px; color: var(--op-deep); }

/* Buttons */
.oh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.outpost-home .oh-btn {
	display: inline-block;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease-out, color .2s ease-out, text-decoration-color .2s ease-out;
}
.outpost-home .oh-btn--primary {
	background: var(--op-cta);
	color: var(--op-on-cta);
	padding: 16px 26px;
	border-radius: var(--op-radius);
}
.outpost-home .oh-btn--primary:hover { background: var(--op-cta-hover); }
.outpost-home .oh-btn--text {
	color: var(--op-deep);
	padding: 8px 0;
	text-decoration: underline;
	text-decoration-color: var(--oh-gold-line);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}
.outpost-home .oh-btn--text:hover { text-decoration-color: var(--op-deep); }

/* Hero */
.oh-hero {
	display: grid;
	grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
	min-height: min(78vh, 720px);
	background: var(--op-surface);
}
.oh-hero__copy {
	display: flex; flex-direction: column; justify-content: center;
	padding: clamp(48px, 6vw, 96px) var(--oh-gutter);
	padding-left: max(var(--oh-gutter), calc((100vw - var(--oh-max)) / 2 + var(--oh-gutter)));
}
.outpost-home .oh-hero__title {
	font-size: clamp(38px, 5vw, 66px);
	line-height: 1.04;
	color: var(--op-deep);
	padding: 0;
	margin: 0 0 20px;
	text-wrap: balance;
	letter-spacing: -0.01em;
}
.oh-hero__lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--oh-ink-2); margin: 0 0 32px; max-width: 40ch; }
.oh-hero__media { position: relative; min-height: 320px; }
.oh-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Events */
.oh-events__list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px);
}
.oh-events__list li { padding: 0; }
.outpost-home .oh-event { display: block; text-decoration: none; }
.oh-event__media { display: block; overflow: hidden; border-radius: var(--op-radius); aspect-ratio: 4 / 5; background: var(--op-surface); }
.oh-event__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.oh-event:hover .oh-event__media img { transform: scale(1.04); }
.oh-event__name {
	display: inline-block; margin-top: 14px;
	font-family: 'Alegreya', serif; font-weight: 700; font-size: 22px; color: var(--op-deep);
	text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 2px;
	transition: text-decoration-color .2s ease-out;
}
.oh-event:hover .oh-event__name { text-decoration-color: var(--oh-gold-line); }

/* Venue / your location */
.oh-where { display: grid; grid-template-columns: 1fr 1fr; background: var(--op-deep); }
.outpost-home .oh-where__panel { position: relative; display: block; min-height: clamp(360px, 42vw, 560px); overflow: hidden; text-decoration: none; color: #fff; }
.oh-where__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.oh-where__panel:hover img { transform: scale(1.03); }
.oh-where__panel::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(18, 24, 44, .92) 0%, rgba(18, 24, 44, .55) 45%, rgba(18, 24, 44, 0) 75%);
}
.oh-where__text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(24px, 4vw, 48px); display: block; }
.oh-where__title { display: block; font-family: 'Alegreya', serif; font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin-bottom: 8px; }
.oh-where__desc { display: block; color: #e3e5ec; max-width: 40ch; margin-bottom: 16px; }
.oh-where__more { display: inline-block; font-weight: 600; border-bottom: 2px solid var(--oh-gold-line); padding-bottom: 2px; }

/* Food */
.oh-food { background: var(--op-surface); }
.oh-food__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.oh-services { margin: 0 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.oh-service { border-top: 1px solid #d9d2c6; padding-top: 16px; }
.oh-services dt { font-family: 'Alegreya', serif; font-weight: 700; font-size: 22px; color: var(--op-deep); margin: 0 0 6px; }
.oh-services dd { margin: 0; color: var(--oh-ink-2); font-size: 16px; line-height: 1.55; }
.oh-food__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: sticky; top: 120px; }
.oh-food__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--op-radius); }
.oh-food__a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.oh-food__b, .oh-food__c { aspect-ratio: 1; }

/* About */
.oh-about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.oh-about__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--op-radius); }
.oh-about__copy p { color: var(--oh-ink-2); max-width: 56ch; margin: 0 0 24px; font-size: 18px; }

/* Glover's add-on */
.oh-addon { padding-top: 0; }
.outpost-home .oh-addon__card {
	display: grid; grid-template-columns: 140px 1fr 110px; align-items: center; gap: clamp(16px, 3vw, 40px);
	padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 48px);
	background: #fff; border: 1px solid #e3ddd2; border-radius: var(--op-radius);
	text-decoration: none; transition: border-color .2s ease-out;
}
.oh-addon__card:hover { border-color: var(--oh-gold-line); }
.oh-addon__logo, .oh-addon__badge { width: 100%; height: auto; }
.oh-addon__title { display: block; font-family: 'Alegreya', serif; font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); color: var(--op-deep); line-height: 1.2; margin-bottom: 4px; }
.oh-addon__desc { display: block; color: var(--oh-ink-2); }

/* Video */
.oh-video { background: var(--op-surface); }
.oh-video__frame { aspect-ratio: 16 / 9; max-width: 960px; border-radius: var(--op-radius); overflow: hidden; background: #000; }
.oh-video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Visit */
.oh-visit__grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 24px 32px; align-items: start; }
.outpost-home .oh-visit__grid .oh-h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); }
.oh-visit p { margin: 0; color: var(--oh-ink-2); }
.oh-visit a { text-decoration: underline; text-decoration-color: var(--oh-gold-line); text-underline-offset: 4px; }
.oh-visit a:hover { text-decoration-color: var(--op-deep); }

/* Tablet */
@media (max-width: 980px) {
	.oh-hero { grid-template-columns: 1fr; min-height: 0; }
	.oh-hero__media { order: -1; aspect-ratio: 16 / 10; min-height: 0; }
	.oh-hero__copy { padding: 40px var(--oh-gutter) 56px; }
	.oh-events__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.oh-where { grid-template-columns: 1fr; }
	.oh-food__grid, .oh-about__grid { grid-template-columns: 1fr; }
	.oh-food__media { position: static; }
	.oh-visit__grid { grid-template-columns: 1fr 1fr; }
	.oh-visit__grid .oh-h2 { grid-column: 1 / -1; }
}
/* Phone */
@media (max-width: 600px) {
	.outpost-home { font-size: 16px; }
	.oh-services { grid-template-columns: 1fr; gap: 20px; }
	.outpost-home .oh-addon__card { grid-template-columns: 88px 1fr; }
	.oh-addon__badge { display: none; }
	.oh-event__name { font-size: 19px; margin-top: 10px; }
	.oh-actions .oh-btn--primary { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.outpost-home * { transition: none !important; }
}
