/*
Theme Name: Dirty O'Sullivans
Theme URI: https://5xj.co.uk/dirtyosullivans/
Author: Linux Internet
Description: Lightweight, Elementor-first theme for Dirty O'Sullivans Irish Tavern. Supports every Elementor Pro Theme Builder location (header, footer, single, archive, 404, search, popups), Canvas / Full Width templates, custom logo, menus and WooCommerce.
Version: 1.4.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dirty-osullivans
*/

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

html {
	-webkit-text-size-adjust: 100%;
	background: #005d37;
}

html.dos-menu-open {
	overflow: hidden;
}

/* Elementor Site Settings also locks body; that makes body a scroller and shifts the sticky header by the admin bar height */
html.dos-menu-open body {
	overflow: visible !important;
}

body {
	margin: 0;
	font-family: 'Crimson Text', Georgia, serif;
	line-height: 1.5;
	color: #1a1a1a;
	background: #005d37;
	-webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: #005d37;
}

a:hover {
	color: #ab842d;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: #fff3de;
	color: #005d37;
}

/* Fallback layout – only used when no Elementor template covers a page */
.dos-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
}

.dos-site-main {
	padding: 40px 0;
}

.dos-fallback-header,
.dos-fallback-footer {
	background: #005d37;
	color: #fff3de;
	padding: 16px 0;
}

.dos-fallback-header a,
.dos-fallback-footer a {
	color: #fff3de;
	text-decoration: none;
}

.dos-fallback-header .dos-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.dos-fallback-header ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	text-transform: uppercase;
}

.dos-fallback-header .custom-logo {
	max-height: 65px;
	width: auto;
}

.entry-title {
	margin-top: 0;
}

.dos-post+.dos-post {
	margin-top: 40px;
}

.alignwide {
	max-width: 1340px;
}

.alignfull {
	max-width: none;
}

/* ---------- Looping word animation (hero "Welcome Home") ---------- */
.dos-reveal-words .dos-word {
	display: inline-block;
	opacity: 0;
	animation: dosWordLoop 5s ease-in-out infinite;
}

.dos-reveal-words .dos-word:nth-of-type(2) {
	animation-delay: .6s;
}

@keyframes dosWordLoop {
	0% {
		opacity: 0;
	}

	14% {
		opacity: 1;
	}

	74% {
		opacity: 1;
	}

	88% {
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

/* Hero "Welcome Home" lettering – Amarante widened to match the original artwork */
.dos-reveal-words .elementor-heading-title {
	font-family: 'Amarante', 'Balthazar', serif;
}

.dos-reveal-words .dos-word {
	transform: scaleX(1.25);
	-webkit-text-stroke: .015em currentColor;
}

/* ---------- Scroll reveal (.dos-reveal) ---------- */
.dos-anim .dos-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .8s ease, transform .8s ease;
}

.dos-anim .dos-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Sticky folding header ---------- */
.elementor-location-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 999;
	background: transparent;
}

.elementor-location-header .dos-header {
	clip-path: inset(0 0 0 0);
	transform: translateZ(0);
	backface-visibility: hidden;
	transition: clip-path .45s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease;
}

.dos-header-scrolled .elementor-location-header .dos-header {
	box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
	clip-path: inset(0 0 -30px 0);
}

.dos-header-hidden .elementor-location-header .dos-header {
	clip-path: inset(0 0 100% 0);
	box-shadow: none;
	pointer-events: none;
}

/* clip-path/transform would trap Elementor's full-screen mobile dropdown inside the 91px header */
.dos-menu-open .elementor-location-header .dos-header {
	clip-path: none;
	transform: none;
	pointer-events: auto;
	transition: box-shadow .3s ease;
}

@media (prefers-reduced-motion: reduce) {
	.dos-reveal-words .dos-word {
		animation: none;
		opacity: 1;
	}

	.dos-anim .dos-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.elementor-location-header .dos-header {
		transition: none;
	}
}
