/*
Theme Name: Station House
Theme URI: https://www.thestationhouse.com/
Author: Anchors Aweigh Media
Description: Custom theme for The Station House restaurant, Lantana FL. Clean rebuild replacing Themify Ultra.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: station-house
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
	--brown:      #602209;   /* lobster-shell brown (brand) */
	--brown-dark: #3d1605;
	--gold:       #c69a4e;   /* warm accent */
	--gold-light: #dfac59;
	--cream:      #fbf8f2;
	--cream-2:    #f1e9dc;
	--ink:        #1c1410;
	--ink-soft:   #4a3f36;
	--dark:       #14110e;   /* header / footer bg */
	--white:      #ffffff;

	--font-display: 'Playfair Display', Georgia, serif;
	--font-serif:   'Lora', Georgia, serif;
	--font-body:    'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;

	--wrap: 1180px;
	--gut: clamp(1.25rem, 4vw, 3rem);
	--header-h: 84px;
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.2em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.eyebrow {
	font-family: var(--font-body);
	text-transform: uppercase;
	letter-spacing: .22em;
	font-size: .8rem;
	font-weight: 700;
	color: var(--brown); /* AA contrast on light backgrounds */
	margin-bottom: 1rem;
}
/* on dark sections the eyebrow switches to light gold for contrast */
.features .eyebrow, .page-hero .eyebrow { color: var(--gold-light); }
.center { text-align: center; }

/* Buttons */
.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .85rem;
	padding: .95em 2.2em;
	border-radius: 2px;
	border: 2px solid var(--gold);
	background: var(--gold);
	color: var(--ink);
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
	position: sticky; top: 0; z-index: 100;
	height: var(--header-h);
	display: flex; align-items: center;
	background: var(--white);
	border-bottom: 1px solid rgba(0,0,0,.08);
	transition: box-shadow .3s;
}
.site-header.is-solid { box-shadow: 0 2px 18px rgba(0,0,0,.12); }
/* logo left, nav right; wrap fills the bar so the nav can center vertically */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 100%; }
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 50px; width: auto; }

/* Nav — items fill the full header height so the dropdown opens flush with
   no gap for the cursor to fall through. */
.nav { display: flex; align-items: stretch; gap: 1.4rem; height: 100%; }
.nav .menu-item { position: relative; display: flex; align-items: center; }
.nav .menu-item > a {
	display: flex; align-items: center; height: 100%;
	color: var(--ink); font-weight: 600; font-size: .95rem; letter-spacing: .03em;
}
.nav .menu-item > a:hover { color: var(--brown); }

/* dropdown */
.nav .has-sub > .submenu {
	position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
	background: var(--white); min-width: 210px; padding: .4rem 0;
	border-top: 2px solid var(--gold);
	opacity: 0; visibility: hidden; transition: opacity .18s ease;
	box-shadow: 0 14px 32px rgba(0,0,0,.16);
}
.nav .has-sub:hover > .submenu,
.nav .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; }
/* Escape dismisses the hover/focus dropdown (WCAG 1.4.13) */
.nav .has-sub.is-dismissed > .submenu { opacity: 0; visibility: hidden; }
.nav .submenu a { display: block; padding: .6rem 1.4rem; font-size: .9rem; height: auto; }
.nav .submenu a:hover { background: var(--cream-2); color: var(--brown); }

/* caret indicator */
.caret {
	display: inline-block; width: .42em; height: .42em; margin-left: .5em;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .25s; position: relative; top: -.12em;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ============================================================
   Hero carousel
   ============================================================ */
.hero { position: relative; height: calc(100vh - var(--header-h)); min-height: 540px; overflow: hidden; }
.hero__slide {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	opacity: 0; transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.65)); }
.hero__inner {
	position: relative; z-index: 2;
	height: 100%; display: flex; flex-direction: column;
	align-items: center; justify-content: center; text-align: center;
	color: var(--white); padding: var(--gut);
}
.hero__inner h1 { color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.5); max-width: 16ch; }
.hero__tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-bottom: 2rem; opacity: .95; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero__dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: .15rem; }
/* 24x24 tap target (WCAG 2.5.8) with the small visual dot drawn inside it */
.hero__dots button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; padding: 0; display: grid; place-items: center; }
.hero__dots button::before { content: ''; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--white); box-sizing: border-box; }
.hero__dots button.is-active::before { background: var(--gold); border-color: var(--gold); }

/* ============================================================
   About
   ============================================================ */
.about { background: var(--cream); text-align: center; }
.about .lead { font-family: var(--font-serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink-soft); max-width: 60ch; margin-inline: auto; }
.rule { width: 70px; height: 3px; background: var(--gold); margin: 1.5rem auto; border: 0; }

/* ============================================================
   Features grid
   ============================================================ */
.features { background: var(--ink); color: var(--cream); }
.features h2 { color: var(--white); }
.features__grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
	margin-top: 3rem;
}
.feature {
	border: 1px solid rgba(255,255,255,.12);
	text-align: center;
	background: rgba(255,255,255,.03);
	overflow: hidden;
	transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.feature__media { aspect-ratio: 3 / 2; overflow: hidden; }
.feature__media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .5s ease;
}
.feature:hover .feature__media img { transform: scale(1.06); }
.feature__body { padding: 1.8rem 1.6rem 2rem; }
.feature h3 { color: var(--gold-light); margin-bottom: .5rem; }
.feature p { color: rgba(255,255,255,.75); font-size: .98rem; margin: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); padding-block: 3.5rem 2rem; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.site-footer .footer-heading { color: var(--white); font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 1rem; }
.footer-happy { margin-top: 1rem; font-size: .9rem; opacity: .82; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--gold-light); }
/* keep the footer's gold button on dark text (footer link color was overriding it) */
.site-footer .btn { color: var(--ink); }
.site-footer .btn:hover { color: var(--gold-light); }
.footer-hours li { display: flex; justify-content: space-between; max-width: 260px; padding: .15rem 0; list-style: none; }
.footer-hours ul { margin: 0; padding: 0; }
.footer-social { display: flex; gap: .7rem; margin-top: .75rem; }
.icon { width: 1.2rem; height: 1.2rem; display: block; }
/* circular icon links */
.footer-social a, .contact-social a {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	transition: background .2s, color .2s, border-color .2s;
}
.footer-social a { border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85); }
.footer-social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer-bottom { text-align: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: rgba(255,255,255,.5); }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.rule--left { margin-left: 0; margin-right: 0; }
.contact-block { margin-bottom: 1.8rem; }
.contact-block h3 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--brown); margin-bottom: .4rem; }
.contact-block p { margin: 0; font-size: 1.08rem; }
.contact-hours { list-style: none; margin: 0; padding: 0; }
.contact-hours li { display: flex; justify-content: space-between; max-width: 280px; padding: .2rem 0; border-bottom: 1px dotted rgba(0,0,0,.15); }
.contact-note { margin-top: .8rem !important; font-size: .92rem; color: var(--ink-soft); font-style: italic; }
.contact-social { display: flex; gap: .7rem; }
.contact-social a { border: 1px solid rgba(96,34,9,.3); color: var(--brown); }
.contact-social a:hover { background: var(--brown); color: var(--white); border-color: var(--brown); }
.contact-form-wrap { background: var(--cream-2); padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: 3px; }
.contact-map { line-height: 0; }

/* Light styling pass over the Forminator form to match the theme */
.contact-form-wrap .forminator-input,
.contact-form-wrap textarea { font-family: var(--font-body) !important; }
.contact-form-wrap .forminator-button-submit {
	background: var(--gold) !important; border-color: var(--gold) !important;
	color: var(--ink) !important; text-transform: uppercase; letter-spacing: .1em;
}
.contact-form-wrap .forminator-button-submit:hover { background: var(--brown) !important; border-color: var(--brown) !important; color: var(--white) !important; }

/* ============================================================
   Interior page building blocks (Banquet, Club, etc.)
   ============================================================ */
.section--muted { background: var(--cream-2); }

/* text + image split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split__text h2 { margin-top: 0; }
.split__media img { width: 100%; border-radius: 4px; box-shadow: 0 18px 44px rgba(0,0,0,.18); }

/* detail cards */
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; text-align: center; }
.detail-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 920px; margin-inline: auto; }
.detail { padding: 1.8rem 1.4rem; background: var(--white); border: 1px solid rgba(0,0,0,.07); border-radius: 4px; }
.detail h3 { color: var(--brown); margin-bottom: .5rem; }
.detail p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* two-image gallery */
.gallery-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.gallery-2 img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.15); }

/* Links inside sentences need more than colour to stand out (WCAG 1.4.1) */
.inline-link,
.page-body a:not(.btn) { text-decoration: underline; text-underline-offset: .15em; }

/* Generic page content */
.page-hero { background: var(--dark); color: var(--white); padding-top: 3.5rem; padding-bottom: 3rem; text-align: center; }
.page-hero h1 { color: var(--white); }
/* photo hero with dark overlay so text stays legible */
.page-hero--image { position: relative; background-size: cover; background-position: center; padding-block: clamp(4rem, 10vw, 6.5rem); }
.page-hero--image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(20,17,14,.5), rgba(20,17,14,.72)); }
.page-hero--image .wrap { position: relative; z-index: 1; }

/* three-up photo strip */
.img-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.img-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
@media (max-width: 700px) { .img-strip { grid-template-columns: 1fr; } }
.page-body { padding-block: clamp(3rem, 7vw, 5rem); }
.page-body .wrap { max-width: 820px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
	.nav-toggle { display: block; }
	.nav {
		position: fixed; top: var(--header-h); right: 0; left: 0; bottom: auto;
		z-index: 90;
		flex-direction: column; align-items: stretch; gap: 0; height: auto;
		background: var(--white); padding: 0;
		max-height: 0; overflow: hidden; transition: max-height .35s ease;
	}
	.nav.is-open {
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		border-bottom: 1px solid rgba(0,0,0,.08);
		box-shadow: 0 14px 24px rgba(0,0,0,.12);
	}

	/* full-width rows, larger text, one clean divider per row */
	.nav .menu-item { display: block; }
	.nav .menu-item > a {
		height: auto; display: flex; align-items: center; justify-content: space-between;
		padding: 1.05rem var(--gut); font-size: 1.15rem;
		border-top: 1px solid rgba(0,0,0,.09);
	}
	.nav .menu-item:first-child > a { border-top: 0; }

	/* collapsible submenu — closed by default, opens on tap */
	.nav .has-sub > .submenu {
		position: static; transform: none; opacity: 1; visibility: visible;
		box-shadow: none; border-top: 0; background: var(--cream);
		min-width: 0; padding: 0;
		max-height: 0; overflow: hidden; transition: max-height .3s ease;
	}
	.nav .has-sub.is-open-sub > .submenu { max-height: 60vh; }
	.nav .submenu a {
		padding: .95rem calc(var(--gut) + 1rem); font-size: 1.02rem;
		color: var(--ink-soft); border-top: 1px solid rgba(0,0,0,.07);
	}
	.nav .has-sub.is-open-sub > a .caret { transform: rotate(-135deg); top: .12em; }

	.features__grid { grid-template-columns: 1fr 1fr; }
	.site-footer .wrap { grid-template-columns: 1fr; }
	.contact-grid { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; }
	.split__media { order: -1; }
	.detail-grid, .detail-grid--3 { grid-template-columns: 1fr 1fr; }
	.gallery-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.detail-grid, .detail-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.features__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Accessibility
   ============================================================ */
/* Skip link — hidden until focused */
.skip-link {
	position: absolute; left: 8px; top: -60px; z-index: 1000;
	background: var(--ink); color: var(--white); padding: .7rem 1.2rem;
	border-radius: 3px; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 8px; color: var(--white); }
/* programmatic focus target — no visible ring on the whole <main> */
#main:focus { outline: none; }

/* Visible, consistent focus outline for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
	border-radius: 2px;
}
/* On dark backgrounds use the lighter gold so the ring stays visible */
.hero :focus-visible, .features :focus-visible, .site-header :focus-visible,
.site-footer :focus-visible, .page-hero :focus-visible { outline-color: var(--gold-light); }

/* Screen-reader-only utility */
.sr-only {
	position: absolute !important; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Hero carousel pause/play control */
.hero__controls { position: absolute; bottom: 24px; right: 24px; z-index: 3; }
.hero__pause {
	width: 40px; height: 40px; border-radius: 50%;
	border: 1.5px solid rgba(255,255,255,.7); background: rgba(0,0,0,.35);
	color: var(--white); cursor: pointer; display: grid; place-items: center;
	font-size: 1rem; line-height: 1;
}
.hero__pause:hover { background: rgba(0,0,0,.6); }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero__slide { transition: none; }
	.feature, .feature__media img, .skip-link, .caret, .nav, .submenu { transition: none !important; }
	.feature:hover { transform: none; }
	.feature:hover .feature__media img { transform: none; }
}

/* ============================================================
   Menus (text, accessible)
   ============================================================ */
/* Switch between menus */
.menu-switch { background: var(--ink); }
.menu-switch ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; margin: 0; padding-block: .9rem; list-style: none; }
.menu-switch a { color: rgba(255,255,255,.8); font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .2rem; }
.menu-switch a:hover { color: var(--gold-light); }
.menu-switch a[aria-current="page"] { color: var(--gold-light); border-bottom: 2px solid var(--gold); }

.menu .wrap, .menu.wrap { max-width: 1100px; }
.menu__intro { text-align: center; font-family: var(--font-serif); font-style: italic; color: var(--ink-soft); max-width: 60ch; margin: 0 auto 2.5rem; }

/* sections flow in columns like a printed menu, but never break mid-section */
.menu__sections { column-count: 2; column-gap: 3.5rem; }
.menu-section { break-inside: avoid; margin-bottom: 2.6rem; }
.menu-section__title {
	font-family: var(--font-display); color: var(--brown);
	font-size: 1.5rem; letter-spacing: .02em;
	border-bottom: 2px solid var(--gold); padding-bottom: .35rem; margin-bottom: 1rem;
}
.menu-section__note { font-style: italic; color: var(--ink-soft); font-size: .9rem; margin: -.5rem 0 1rem; }
.menu-section__items { list-style: none; margin: 0; padding: 0; }
.menu-section__items > .menu-item { margin-bottom: 1.1rem; } /* scoped: nav links also use .menu-item */
.menu-item__head { display: flex; align-items: baseline; gap: .4rem; }
.menu-item__name { font-weight: 700; color: var(--ink); }
.menu-item__dots { flex: 1 1 auto; border-bottom: 1px dotted rgba(0,0,0,.28); transform: translateY(-.25em); min-width: 1.5rem; }
.menu-item__price { flex: 0 0 auto; font-weight: 700; color: var(--brown); white-space: nowrap; }
.menu-item__desc { margin: .15rem 0 0; font-size: .94rem; color: var(--ink-soft); line-height: 1.5; }
.menu-item__variants { list-style: none; margin: .35rem 0 0; padding: 0; font-size: .9rem; color: var(--ink-soft); }
.menu-item__variants li { display: flex; justify-content: space-between; max-width: 320px; padding: .1rem 0; }
.variant__price { font-weight: 600; color: var(--brown); }

.menu-item__tags { display: inline-flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.menu-tag {
	font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	padding: .15rem .5rem; border-radius: 999px; background: var(--cream-2); color: var(--brown-dark);
	border: 1px solid rgba(96,34,9,.25);
}

.menu__disclaimer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,.1); font-size: .82rem; color: var(--ink-soft); text-align: center; }
.menu-page__cta { margin-top: 2.5rem; }
.menu__empty { text-align: center; color: var(--ink-soft); font-style: italic; }

/* Menus landing cards */
.menu-cards { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 720px; }
.menu-card__link {
	display: flex; align-items: center; justify-content: center; min-height: 130px;
	background: var(--ink); color: var(--white); border-radius: 4px;
	font-family: var(--font-display); font-size: 1.5rem; transition: background .2s, transform .2s;
}
.menu-card__link:hover { background: var(--brown); color: var(--white); transform: translateY(-3px); }
.menu-card__title { color: var(--gold-light); }
.menu-card__link:hover .menu-card__title { color: var(--white); }
.menu-archive__note { max-width: 60ch; margin: 2.5rem auto 0; color: var(--ink-soft); }

@media (max-width: 760px) {
	.menu__sections { column-count: 1; }
	.menu-cards { grid-template-columns: 1fr; }
}
