/*
Theme Name: Ticket Rail
Theme URI: http://localhost:8882
Author: White Pages WP
Author URI: http://localhost:8882
Description: A back-of-house field guide theme for restaurant point-of-sale documentation. Expo-station aesthetic — steel, receipt paper, and heat-lamp amber.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ticket-rail
*/

/* === Global === */

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

body {
	-webkit-font-smoothing: antialiased;
	background-image:
		radial-gradient( circle at 12% -10%, rgba( 232, 98, 44, 0.10 ), transparent 45% ),
		radial-gradient( circle at 92% 4%, rgba( 217, 164, 65, 0.07 ), transparent 40% );
	background-attachment: fixed;
	overflow-wrap: break-word;
}

.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* === Header === */

.site-header {
	position: relative;
	border-bottom: 1px solid rgba( 244, 238, 226, 0.12 );
	backdrop-filter: blur( 8px );
}

/* The dashed rail under the header that gives the theme its name. */
.site-header::after {
	content: "";
	position: absolute;
	inset: auto 0 -4px 0;
	height: 3px;
	background-image: repeating-linear-gradient(
		90deg,
		var( --wp--preset--color--ember ) 0 14px,
		transparent 14px 26px
	);
	opacity: 0.7;
}

.site-header .wp-block-site-title a {
	font-family: var( --wp--preset--font-family--display );
	font-weight: 800;
	letter-spacing: -0.03em;
	text-decoration: none;
	color: var( --wp--preset--color--paper );
}

.site-header .wp-block-site-title a:hover {
	color: var( --wp--preset--color--ember );
}

.site-nav a {
	font-family: var( --wp--preset--font-family--mono );
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var( --wp--preset--color--ash );
	transition: color 0.2s ease;
}

.site-nav a:hover {
	color: var( --wp--preset--color--paper );
}

/* The dashed rail that gives the theme its name. */
.rail-strip {
	height: 6px;
	background-image: repeating-linear-gradient(
		90deg,
		var( --wp--preset--color--ember ) 0 14px,
		transparent 14px 26px
	);
	opacity: 0.65;
}

/* === Eyebrow labels === */

.eyebrow {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	font-family: var( --wp--preset--font-family--mono );
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var( --wp--preset--color--brass );
}

.eyebrow::before,
.eyebrow::after {
	content: "";
	width: 34px;
	height: 1px;
	background: currentColor;
	opacity: 0.5;
}

.eyebrow-left {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 0.75rem;
	font-family: var( --wp--preset--font-family--mono );
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var( --wp--preset--color--brass );
}

.eyebrow-left::after {
	content: "";
	flex: 1;
	height: 1px;
	background: currentColor;
	opacity: 0.35;
}

/* === Hero === */

.hero-band {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid rgba( 244, 238, 226, 0.10 );
}

.hero-band::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 1px;
	background: linear-gradient( 90deg, transparent, var( --wp--preset--color--ember ), transparent );
	opacity: 0.7;
}

.hero-title {
	max-width: 18ch;
	margin-inline: auto;
}

.hero-lede {
	max-width: 58ch;
	margin-inline: auto;
	color: rgba( 244, 238, 226, 0.78 );
}

/* === Receipt-paper cards === */

.receipt-card {
	position: relative;
	background: var( --wp--preset--color--paper );
	color: var( --wp--preset--color--ink );
	padding: 2.25rem 1.75rem 1.75rem;
	border-radius: 2px;
	box-shadow: 0 18px 40px rgba( 0, 0, 0, 0.35 );
}

/* Perforated top edge, like tear-off receipt paper. */
.receipt-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 8px;
	background-image: radial-gradient(
		circle at 6px -2px,
		transparent 0 5px,
		var( --wp--preset--color--paper ) 5px
	);
	background-size: 12px 8px;
	background-repeat: repeat-x;
	transform: translateY( -6px );
}

.receipt-card h3,
.receipt-card h4 {
	color: var( --wp--preset--color--ink );
}

.receipt-card p {
	color: #3B342C;
}

.receipt-card a {
	color: #A8410F;
}

.step-index {
	font-family: var( --wp--preset--font-family--mono );
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	color: #A8410F;
	text-transform: uppercase;
}

/* === Station cards (dark variant) === */

.station-card {
	background-color: var( --wp--preset--color--charcoal );
	background-image: url( "assets/steel-texture.png" );
	background-size: 420px;
	background-blend-mode: soft-light;
	border: 1px solid rgba( 244, 238, 226, 0.10 );
	border-left: 3px solid var( --wp--preset--color--ember );
	padding: 1.75rem;
	border-radius: 2px;
}

/* Brushed-steel texture on the full-width steel band behind the station cards. */
.wp-block-group.has-steel-background-color {
	background-image: url( "assets/steel-texture.png" );
	background-size: 720px;
	background-blend-mode: soft-light;
}

.station-card h3 {
	margin-top: 0;
}

.station-card p {
	color: rgba( 244, 238, 226, 0.72 );
	margin-bottom: 0;
}

/* === Equal-height card rows === */

.equal-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
	flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.equal-cards .cta-bottom {
	margin-top: auto;
	justify-content: center;
}

/* === Ticket list — numbered service steps === */

.ticket-list ol,
.ticket-list ul {
	padding-left: 0;
	list-style: none;
}

.ticket-list li {
	position: relative;
	padding: 0.85rem 0 0.85rem 2.25rem;
	border-bottom: 1px dashed rgba( 244, 238, 226, 0.16 );
}

.ticket-list li::before {
	content: "";
	position: absolute;
	left: 0.35rem;
	top: 1.45rem;
	width: 7px;
	height: 7px;
	background: var( --wp--preset--color--ember );
	transform: rotate( 45deg );
}

.ticket-list li:last-child {
	border-bottom: none;
}

/* === Callout === */

.callout {
	background: var( --wp--preset--color--steel );
	border-left: 3px solid var( --wp--preset--color--brass );
	padding: 1.5rem 1.75rem;
	border-radius: 2px;
}

.callout p {
	margin: 0;
	color: rgba( 244, 238, 226, 0.85 );
}

.callout p + p {
	margin-top: 0.75rem;
}

/* === Page title band === */

.page-title-band {
	border-bottom: 1px solid rgba( 244, 238, 226, 0.10 );
	background:
		linear-gradient( 180deg, rgba( 232, 98, 44, 0.10 ), transparent );
}

.page-title-band .wp-block-post-title {
	max-width: 20ch;
}

/* === Footer === */

.site-footer {
	border-top: 1px solid rgba( 244, 238, 226, 0.12 );
}

.site-footer p,
.site-footer li {
	color: rgba( 244, 238, 226, 0.62 );
	font-size: 0.9375rem;
}

.site-footer a {
	color: rgba( 244, 238, 226, 0.82 );
}

.disclaimer {
	font-family: var( --wp--preset--font-family--mono );
	font-size: 0.75rem;
	line-height: 1.7;
	letter-spacing: 0.02em;
	color: rgba( 244, 238, 226, 0.48 );
}

/* === Content typography === */

.entry-content h2 {
	margin-top: 3rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba( 244, 238, 226, 0.14 );
}

.entry-content h3 {
	margin-top: 2.25rem;
}

.entry-content li {
	margin-bottom: 0.5rem;
}

/* === Notice at collection === */

.notice-at-collection {
	background: rgba( 217, 164, 65, 0.08 );
	border: 1px solid rgba( 217, 164, 65, 0.28 );
	border-radius: 2px;
	padding: 1.25rem 1.5rem;
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* === Lead enquiry form === */

.lead-form {
	background: var( --wp--preset--color--charcoal );
	border: 1px solid rgba( 244, 238, 226, 0.12 );
	border-radius: 2px;
	padding: 2rem;
}

.lead-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1.35rem;
}

.lead-form label {
	font-family: var( --wp--preset--font-family--mono );
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var( --wp--preset--color--brass );
}

.lead-form label .required {
	color: var( --wp--preset--color--ash );
	letter-spacing: 0.06em;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	background: var( --wp--preset--color--ink );
	border: 1px solid rgba( 244, 238, 226, 0.22 );
	border-radius: 2px;
	color: var( --wp--preset--color--paper );
	font-family: var( --wp--preset--font-family--body );
	font-size: 1rem;
}

.lead-form input:focus-visible,
.lead-form textarea:focus-visible {
	outline: 2px solid var( --wp--preset--color--ember );
	outline-offset: 1px;
	border-color: transparent;
}

.lead-form__consent {
	margin-bottom: 1rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: rgba( 244, 238, 226, 0.82 );
}

.lead-form__consent .wpcf7-list-item {
	margin: 0;
}

.lead-form__consent input[type="checkbox"] {
	margin-right: 0.6rem;
	accent-color: var( --wp--preset--color--ember );
	width: 1.05rem;
	height: 1.05rem;
	vertical-align: -0.15rem;
}

.lead-form input[type="submit"] {
	background: var( --wp--preset--color--ember );
	color: var( --wp--preset--color--ink );
	border: none;
	border-radius: 2px;
	padding: 0.85rem 1.9rem;
	font-family: var( --wp--preset--font-family--display );
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.lead-form input[type="submit"]:hover {
	background: var( --wp--preset--color--brass );
}

.lead-form .wpcf7-not-valid-tip {
	color: #FF9E7A;
	font-size: 0.875rem;
}

.lead-form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 1rem 1.25rem;
	border-radius: 2px;
	border-width: 1px;
	font-size: 0.9375rem;
}

/* === Cookie consent === */

.cookie-banner[hidden],
.cookie-settings[hidden] {
	display: none !important;
}

.cookie-banner {
	position: fixed;
	z-index: 99990;
	right: 1.25rem;
	bottom: 1.25rem;
	left: 1.25rem;
	width: min( 860px, calc( 100% - 2.5rem ) );
	margin-inline: auto;
	overflow: hidden;
	background:
		linear-gradient( 135deg, rgba( 232, 98, 44, 0.08 ), transparent 45% ),
		var( --wp--preset--color--charcoal );
	border: 1px solid rgba( 244, 238, 226, 0.18 );
	border-radius: 3px;
	box-shadow: 0 24px 70px rgba( 0, 0, 0, 0.55 );
	color: var( --wp--preset--color--paper );
}

.cookie-banner__rail {
	height: 4px;
	background-image: repeating-linear-gradient(
		90deg,
		var( --wp--preset--color--ember ) 0 14px,
		transparent 14px 26px
	);
	opacity: 0.8;
}

.cookie-banner__content {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto;
	align-items: end;
	gap: 1.5rem;
	padding: 1.5rem;
}

.cookie-banner__copy {
	max-width: 58ch;
}

.cookie-banner__eyebrow {
	margin: 0 0 0.45rem;
	font-family: var( --wp--preset--font-family--mono );
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var( --wp--preset--color--brass );
}

.cookie-banner h2 {
	margin: 0 0 0.55rem;
	font-size: clamp( 1.35rem, 3vw, 1.75rem );
	color: var( --wp--preset--color--paper );
}

.cookie-banner p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: rgba( 244, 238, 226, 0.76 );
}

.cookie-banner a {
	color: var( --wp--preset--color--paper );
}

.cookie-banner__gpc {
	margin-top: 0.65rem !important;
	color: var( --wp--preset--color--brass ) !important;
}

.cookie-banner__actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	width: 170px;
}

.cookie-button,
.cookie-settings {
	min-height: 44px;
	padding: 0.7rem 1rem;
	font-family: var( --wp--preset--font-family--display );
	font-weight: 700;
	font-size: 0.8125rem;
	line-height: 1.2;
	cursor: pointer;
	border-radius: 2px;
}

.cookie-button--primary {
	background: var( --wp--preset--color--ember );
	border: 1px solid var( --wp--preset--color--ember );
	color: var( --wp--preset--color--ink );
}

.cookie-button--secondary {
	background: transparent;
	border: 1px solid rgba( 244, 238, 226, 0.28 );
	color: var( --wp--preset--color--paper );
}

.cookie-button:hover,
.cookie-button:focus-visible,
.cookie-settings:hover,
.cookie-settings:focus-visible {
	border-color: var( --wp--preset--color--brass );
	outline: 2px solid transparent;
}

.cookie-button--primary:hover,
.cookie-button--primary:focus-visible {
	background: var( --wp--preset--color--brass );
}

.cookie-settings {
	position: fixed;
	z-index: 9990;
	right: 1rem;
	bottom: 1rem;
	min-height: 38px;
	padding: 0.55rem 0.8rem;
	background: rgba( 28, 25, 22, 0.94 );
	border: 1px solid rgba( 244, 238, 226, 0.20 );
	color: rgba( 244, 238, 226, 0.82 );
	font-family: var( --wp--preset--font-family--mono );
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.28 );
}

/* === Motion === */

.fade-up {
	opacity: 0;
	transform: translateY( 26px );
	animation: fadeUp 0.7s cubic-bezier( 0.22, 0.61, 0.36, 1 ) forwards;
}

.fade-up-delay-1 { animation-delay: 0.12s; }
.fade-up-delay-2 { animation-delay: 0.24s; }
.fade-up-delay-3 { animation-delay: 0.36s; }

@keyframes fadeUp {
	to {
		opacity: 1;
		transform: translateY( 0 );
	}
}

.animate-on-scroll {
	opacity: 0;
	transform: translateY( 28px );
	transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.is-visible {
	opacity: 1;
	transform: translateY( 0 );
}

.stagger-children > * {
	opacity: 0;
	transform: translateY( 20px );
	animation: fadeUp 0.55s ease forwards;
}

.stagger-children > *:nth-child( 1 ) { animation-delay: 0.08s; }
.stagger-children > *:nth-child( 2 ) { animation-delay: 0.18s; }
.stagger-children > *:nth-child( 3 ) { animation-delay: 0.28s; }
.stagger-children > *:nth-child( 4 ) { animation-delay: 0.38s; }

.hover-lift {
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hover-lift:hover {
	transform: translateY( -5px );
	box-shadow: 0 20px 38px rgba( 0, 0, 0, 0.42 );
}

/* === Responsive === */

@media ( max-width: 781px ) {
	body {
		background-attachment: scroll;
	}

	.site-header {
		z-index: 1000;
		padding-inline: 0.25rem;
	}

	.site-header > .wp-block-group {
		flex-wrap: nowrap;
		gap: 1rem;
	}

	.site-header .wp-block-site-title {
		flex-shrink: 0;
		font-size: 1.15rem !important;
	}

	.site-nav .wp-block-navigation__responsive-container-open,
	.site-nav .wp-block-navigation__responsive-container-close {
		min-width: 44px;
		min-height: 44px;
		align-items: center;
		justify-content: center;
	}

	.site-nav .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed;
		inset: 0;
		z-index: 100000;
		display: flex;
		width: 100%;
		height: 100dvh;
		min-height: 100%;
		padding: 0;
		overflow-y: auto;
		background: var( --wp--preset--color--ink ) !important;
		color: var( --wp--preset--color--paper );
	}

	.site-nav .wp-block-navigation__responsive-close {
		width: 100%;
		max-width: none;
		margin: 0;
	}

	.site-nav .wp-block-navigation__responsive-dialog {
		position: relative;
		display: flex;
		min-height: 100dvh;
		padding: 5.5rem 1.5rem 2rem;
	}

	.site-nav .wp-block-navigation__responsive-container-close {
		position: absolute;
		top: 1rem;
		right: 1rem;
		color: var( --wp--preset--color--paper );
		border: 1px solid rgba( 244, 238, 226, 0.18 );
		border-radius: 2px;
	}

	.site-nav .wp-block-navigation__responsive-container-content,
	.site-nav .wp-block-navigation__container {
		align-items: flex-start !important;
		gap: 0 !important;
		width: 100%;
	}

	.site-nav .wp-block-navigation__responsive-container-content {
		display: flex;
		padding-top: 0 !important;
	}

	.site-nav .wp-block-navigation-item {
		width: 100%;
		border-bottom: 1px solid rgba( 244, 238, 226, 0.12 );
	}

	.site-nav .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		width: 100%;
		min-height: 54px;
		padding: 0.8rem 0;
		font-size: 1rem;
		color: var( --wp--preset--color--paper ) !important;
	}

	.site-nav .current-menu-item > .wp-block-navigation-item__content,
	.site-nav .wp-block-navigation-item__content:hover {
		color: var( --wp--preset--color--ember ) !important;
	}

	.hero-title {
		max-width: 100%;
		font-size: clamp( 2.15rem, 10.5vw, 3rem ) !important;
		line-height: 1.03;
	}

	.hero-lede {
		font-size: 1rem !important;
		line-height: 1.55;
	}

	.hero-band > .wp-block-cover__inner-container > .wp-block-group {
		padding-top: clamp( 4.5rem, 15vw, 6.5rem ) !important;
		padding-bottom: clamp( 3.5rem, 12vw, 5rem ) !important;
	}

	.hero-band .wp-block-buttons {
		gap: 0.75rem;
	}

	.hero-band .wp-block-button,
	.hero-band .wp-block-button__link {
		width: 100%;
	}

	.hero-band .wp-block-button__link {
		text-align: center;
	}

	.eyebrow::before,
	.eyebrow::after {
		width: 18px;
	}

	.eyebrow,
	.eyebrow-left,
	.step-index {
		letter-spacing: 0.14em;
	}

	.equal-cards > .wp-block-column {
		flex-basis: 100% !important;
	}

	.receipt-card,
	.station-card {
		padding: 1.75rem 1.25rem 1.35rem;
	}

	.ticket-list li {
		padding-left: 1.75rem;
	}

	.callout,
	.notice-at-collection,
	.lead-form {
		padding: 1.25rem;
	}

	.page-title-band .wp-block-post-title {
		max-width: 100%;
	}

	.entry-content h2 {
		margin-top: 2.25rem;
	}

	.entry-content h3 {
		margin-top: 1.75rem;
	}

	.site-footer .wp-block-columns {
		gap: 1.75rem;
	}

	.site-footer .wp-block-column {
		flex-basis: 100% !important;
	}

	.site-footer ul {
		padding-left: 1.1rem;
	}

	.disclaimer {
		text-align: left;
	}

	.cookie-banner {
		right: 0.75rem;
		bottom: 0.75rem;
		left: 0.75rem;
		width: calc( 100% - 1.5rem );
	}

	.cookie-banner__content {
		grid-template-columns: 1fr;
		gap: 1.1rem;
		padding: 1.25rem;
	}

	.cookie-banner__actions {
		flex-direction: row;
		width: 100%;
	}

	.cookie-button {
		flex: 1;
	}
}

@media ( max-width: 480px ) {
	.wp-site-blocks {
		overflow-x: clip;
	}

	.eyebrow {
		gap: 0.5rem;
		font-size: 0.6875rem;
	}

	.hero-band .wp-block-buttons {
		width: 100%;
	}

	.lead-form input[type="submit"] {
		width: 100%;
		min-height: 48px;
	}

	.lead-form input[type="text"],
	.lead-form input[type="email"],
	.lead-form input[type="tel"],
	.lead-form textarea {
		min-height: 46px;
	}

	.cookie-banner__content {
		padding: 1.1rem;
	}

	.cookie-banner__actions {
		flex-direction: column;
	}

	.cookie-settings {
		right: 0.75rem;
		bottom: 0.75rem;
	}
}

/* === Reduced motion === */

@media ( prefers-reduced-motion: reduce ) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}

	.animate-on-scroll,
	.fade-up,
	.stagger-children > * {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* === Editor: keep animated content visible while editing === */

.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .stagger-children > * {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
	transition: none !important;
}
