/*
Theme Name: AL Hospitality
Theme URI: https://al-hospitality.com
Author: AL Hospitality
Author URI: https://al-hospitality.com
Description: Custom classic theme for AL Hospitality, a boutique hotel-consulting brochure site.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: al-hospitality
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */


/* About page: remove redundant eyebrow label. */
.alh-about-intro .alh-pages-eyebrow {
    display: none;
}

:root {
	--alh-bg: #F8F2E8;
	--alh-ink: #2E2823;
	--alh-ink-2: #3B342C;
	--alh-muted: #5C5348;
	--alh-muted-2: #8A7E6E;
	--alh-faint: #A99B8A;
	--alh-accent: #B26B4C;
	--alh-footer-bg: #2E2823;
	--alh-footer-ink: #F3EADC;
	--alh-footer-muted: #AC9C88;
	--alh-rule: rgba(46, 40, 35, 0.15);
	--alh-maxw: 1320px;

	/* Alias used by rules ported straight from the prototype (var(--ac)). */
	--ac: var(--alh-accent);

	--alh-header-h: 88px;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */

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

* {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	cursor: pointer;
}

ul[class],
ol[class] {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* ==========================================================================
   3. Base typography
   ========================================================================== */

body {
	font-family: 'Karla', system-ui, -apple-system, sans-serif;
	font-weight: 400;
	font-size: 17px;
	line-height: 1.6;
	color: var(--alh-ink);
	background-color: var(--alh-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
	font-weight: 400;
	color: var(--alh-ink);
	line-height: 1.15;
}

p {
	color: var(--alh-muted);
}

a {
	color: var(--alh-accent);
	transition: color 0.2s ease;
}

a:hover {
	color: var(--alh-ink);
}

::placeholder {
	color: var(--alh-faint);
	opacity: 1;
}

/* ==========================================================================
   4. Accessibility: skip link, focus, motion
   ========================================================================== */

.alh-skip-link {
	position: absolute;
	top: 0;
	left: -9999px;
	z-index: 1000;
	background: var(--alh-ink);
	color: var(--alh-bg);
	padding: 0.85em 1.4em;
	font-size: 14px;
	border-radius: 0 0 6px 0;
}

.alh-skip-link:focus {
	left: 0;
}

:focus-visible {
	outline: 2px solid var(--alh-accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   5. Site header / logo / nav / CTA / burger
   ========================================================================== */

.alh-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(248, 242, 232, 0.93);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(46, 40, 35, 0.13);
}

.alh-header__inner {
	max-width: var(--alh-maxw);
	margin: 0 auto;
	padding: 0 40px;
	min-height: var(--alh-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.alh-logo {
	display: block;
	width: clamp(230px, 22vw, 310px);
	height: 72px;
	overflow: hidden;
	flex-shrink: 0;
}

.alh-logo__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.alh-logo__name {
	/*
	 * Karla, not Newsreader. In the prototype this span carries no font-family
	 * of its own, so it inherits Karla from the page wrapper — only h1/h2/h3
	 * are switched to Newsreader. Verified against AL Hospitality.dc.html.
	 */
	font-family: 'Karla', Helvetica, Arial, sans-serif;
	font-size: 19px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--alh-ink);
}

.alh-logo__eyebrow {
	font-family: 'Karla', sans-serif;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--alh-muted-2);
	margin-top: 2px;
}

.alh-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.alh-nav__list {
	display: flex;
	align-items: center;
	gap: 36px;
}

.alh-nav__list li {
	position: relative;
}

.alh-nav__list a {
	position: relative;
	display: inline-block;
	padding: 8px 2px;
	font-size: 14.5px;
	letter-spacing: 0.02em;
	color: var(--alh-ink-2);
}

.alh-nav__list a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	height: 2px;
	background: var(--ac);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.alh-nav__list a:hover::after,
.alh-nav__list .current-menu-item > a::after,
.alh-nav__list .current_page_item > a::after {
	transform: scaleX(1);
}

.alh-nav__list .current-menu-item > a,
.alh-nav__list .current_page_item > a {
	color: var(--alh-ink);
}

.alh-header__actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-shrink: 0;
}

.alh-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 26px;
	border-radius: 999px;
	background: var(--alh-ink);
	color: var(--alh-bg);
	font-size: 13.5px;
	letter-spacing: 0.03em;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.alh-cta:hover {
	background: var(--ac);
	color: var(--alh-bg);
}

.alh-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex-shrink: 0;
}

.alh-burger:hover {
	background: rgba(46, 40, 35, 0.06);
}

.alh-burger__box {
	position: relative;
	width: 22px;
	height: 16px;
}

.alh-burger__line {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 1px;
	background: var(--alh-ink);
	transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.alh-burger__line:nth-child(1) {
	top: 0;
}

.alh-burger__line:nth-child(2) {
	top: 7px;
}

.alh-burger__line:nth-child(3) {
	top: 14px;
}

.alh-header.is-open .alh-burger__line:nth-child(1) {
	top: 7px;
	transform: rotate(45deg);
}

.alh-header.is-open .alh-burger__line:nth-child(2) {
	opacity: 0;
}

.alh-header.is-open .alh-burger__line:nth-child(3) {
	top: 7px;
	transform: rotate(-45deg);
}

/* ==========================================================================
   6. Main wrapper
   ========================================================================== */

.alh-main {
	min-height: 40vh;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.alh-footer {
	background: var(--alh-footer-bg);
	color: var(--alh-footer-ink);
}

.alh-footer__inner {
	max-width: var(--alh-maxw);
	margin: 0 auto;
	padding: 80px 40px 32px;
}

.alh-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 56px;
}

/*
 * Footer brand lockup mirrors the header lockup exactly in the prototype:
 * Karla (inherited, not Newsreader), 19px/10px, .14em tracking, uppercase.
 * Verified against AL Hospitality.dc.html.
 */
.alh-footer__brand-name {
	font-family: 'Karla', Helvetica, Arial, sans-serif;
	font-size: 19px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--alh-footer-ink);
}

.alh-footer__brand-tag {
	margin-top: 6px;
	font-family: 'Karla', Helvetica, Arial, sans-serif;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--alh-footer-muted);
}

.alh-footer__col-title {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--alh-footer-muted);
	margin-bottom: 18px;
}

.alh-footer__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.alh-footer__list a {
	color: var(--alh-footer-ink);
	font-size: 15px;
}

.alh-footer__list a:hover {
	color: var(--ac);
}

.alh-footer__bottom {
	border-top: 1px solid rgba(243, 234, 220, 0.18);
	padding-top: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	color: var(--alh-footer-muted);
}

.alh-footer__bottom-brand {
	color: var(--alh-footer-ink);
}

.alh-footer__bottom-tagline {
	color: var(--alh-footer-muted);
}

/* ==========================================================================
   8. Prose / page templates (Impressum, Privacy, Terms, generic index)
   ========================================================================== */

.alh-page-hero {
	max-width: var(--alh-maxw);
	margin: 0 auto;
	padding: 64px 40px 32px;
}

.alh-page-hero--compact {
	padding-top: 32px;
	padding-bottom: 16px;
}

.alh-eyebrow {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--alh-muted-2);
	margin-bottom: 14px;
}

.alh-page-hero h1 {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 400;
	color: var(--alh-ink);
}

.alh-prose-wrap {
	max-width: var(--alh-maxw);
	margin: 0 auto;
	padding: 0 40px 96px;
}

.alh-prose {
	max-width: 68ch;
	font-size: 17px;
	line-height: 1.75;
	color: var(--alh-muted);
}

.alh-prose > *:first-child {
	margin-top: 0;
}

.alh-prose h2 {
	font-size: 28px;
	font-weight: 500;
	color: var(--alh-ink);
	margin: 2.2em 0 0.7em;
}

.alh-prose h3 {
	font-size: 21px;
	font-weight: 500;
	color: var(--alh-ink);
	margin: 1.8em 0 0.6em;
}

.alh-prose p {
	margin: 0 0 1.3em;
}

.alh-prose ul,
.alh-prose ol {
	margin: 0 0 1.3em 1.3em;
}

.alh-prose ul {
	list-style: disc;
}

.alh-prose ol {
	list-style: decimal;
}

.alh-prose li {
	margin-bottom: 0.5em;
}

.alh-prose a {
	color: var(--ac);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.alh-prose a:hover {
	color: var(--alh-ink);
}

.alh-prose blockquote {
	border-left: 3px solid var(--ac);
	padding: 0.2em 0 0.2em 1.4em;
	margin: 1.8em 0;
	font-style: italic;
	color: var(--alh-ink-2);
}

.alh-prose table {
	width: 100%;
	margin: 1.8em 0;
	font-size: 15px;
}

.alh-prose th,
.alh-prose td {
	text-align: left;
	padding: 10px 14px;
	border-bottom: 1px solid var(--alh-rule);
}

.alh-prose th {
	font-family: 'Karla', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--alh-muted-2);
}

.alh-page-links {
	margin-top: 2em;
	font-size: 14px;
}

.alh-page-links span {
	margin-right: 8px;
}

.alh-page-links a {
	color: var(--ac);
	text-decoration: underline;
}

/* ==========================================================================
   9. 404
   ========================================================================== */

.alh-404 {
	max-width: var(--alh-maxw);
	margin: 0 auto;
	padding: 140px 40px 160px;
	text-align: center;
}

.alh-404 .alh-eyebrow {
	justify-content: center;
}

.alh-404 h1 {
	font-size: clamp(48px, 8vw, 96px);
	margin-bottom: 20px;
}

.alh-404 p {
	max-width: 46ch;
	margin: 0 auto 36px;
}

.alh-404 .alh-cta {
	display: inline-flex;
}

/* ==========================================================================
   10. Responsive: 1080px (tighten nav), 900px (burger + stacking)
   ========================================================================== */

@media (max-width: 1080px) {
	.alh-header__inner {
		padding: 0 28px;
		gap: 20px;
	}

	.alh-nav__list {
		gap: 22px;
	}

	.alh-footer__inner {
		padding-left: 28px;
		padding-right: 28px;
	}

	.alh-page-hero,
	.alh-prose-wrap {
		padding-left: 28px;
		padding-right: 28px;
	}
}

@media (max-width: 900px) {
	.alh-header__inner {
		padding: 0 24px;
	}

	.alh-logo {
		width: min(220px, calc(100vw - 112px));
		height: 56px;
	}

	.alh-burger {
		display: flex;
	}

	.alh-nav {
		position: fixed;
		top: var(--alh-header-h);
		left: 0;
		right: 0;
		bottom: 0;
		background: var(--alh-bg);
		border-top: 1px solid var(--alh-rule);
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		padding: 32px 24px;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		pointer-events: none;
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}

	.alh-header.is-open .alh-nav {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}

	.alh-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}

	.alh-nav__list a {
		display: block;
		width: 100%;
		padding: 16px 4px;
		font-size: 18px;
		border-bottom: 1px solid var(--alh-rule);
	}

	.alh-nav__list a::after {
		display: none;
	}

	.alh-header__actions {
		gap: 10px;
	}

	.alh-cta {
		padding: 9px 18px;
		font-size: 13px;
	}

	.alh-footer__grid {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-bottom: 40px;
	}

	.alh-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.alh-page-hero,
	.alh-prose-wrap {
		padding-left: 24px;
		padding-right: 24px;
	}

	.alh-404 {
		padding: 100px 24px 120px;
	}
}

/* Keep Contact in the mobile menu; the desktop CTA already links there. */
@media (min-width: 901px) {
	.alh-nav__list > li:last-child {
		display: none;
	}
}


/* Contact form submit button: accessible contrast in all states. */
.gutena-forms-submit-button .wp-block-button__link {
	background-color: #3C1A06 !important;
	color: #F1DFC4 !important;
	border-color: #3C1A06 !important;
}
.gutena-forms-submit-button .wp-block-button__link:hover,
.gutena-forms-submit-button .wp-block-button__link:focus {
	background-color: #F1DFC4 !important;
	color: #3C1A06 !important;
	border-color: #3C1A06 !important;
}

html body .gutena-forms-contact-form .gutena-forms-submit-buttons .gutena-forms-submit-button button.wp-block-button__link {
	background-color: #3C1A06 !important;
	color: #F1DFC4 !important;
	-webkit-text-fill-color: #F1DFC4 !important;
}
html body .gutena-forms-contact-form .gutena-forms-submit-buttons .gutena-forms-submit-button button.wp-block-button__link:hover,
html body .gutena-forms-contact-form .gutena-forms-submit-buttons .gutena-forms-submit-button button.wp-block-button__link:focus {
	background-color: #F1DFC4 !important;
	color: #3C1A06 !important;
	-webkit-text-fill-color: #3C1A06 !important;
}

/* Final contact button contrast: beige surface and solid brown text. */
.gutena-forms-contact-form .gutena-forms-submit-button .wp-block-button__link,
.gutena-forms-contact-form .gutena-forms-submit-button .wp-block-button__link:focus {
	background-color: #F1DFC4 !important;
	color: #3C1A06 !important;
	border: 1px solid #3C1A06 !important;
}
.gutena-forms-contact-form .gutena-forms-submit-button .wp-block-button__link:hover {
	background-color: #E7CDAA !important;
	color: #3C1A06 !important;
}

html body .gutena-forms-contact-form .gutena-forms-submit-buttons .gutena-forms-submit-button button.wp-block-button__link,
html body .gutena-forms-contact-form .gutena-forms-submit-buttons .gutena-forms-submit-button button.wp-block-button__link:focus {
	background-color: #F1DFC4 !important;
	color: #3C1A06 !important;
	-webkit-text-fill-color: #3C1A06 !important;
	border: 1px solid #3C1A06 !important;
}
html body .gutena-forms-contact-form .gutena-forms-submit-buttons .gutena-forms-submit-button button.wp-block-button__link:hover {
	background-color: #E7CDAA !important;
	color: #3C1A06 !important;
	-webkit-text-fill-color: #3C1A06 !important;
}

.alh-main.alh-svc .alh-svc-intro.alh-pages-section {
	padding-bottom: 32px !important;
}
.alh-main.alh-svc .alh-svc-list.alh-pages-section {
	padding-top: 32px !important;
}
@media (max-width: 900px) {
	.alh-main.alh-svc .alh-svc-intro.alh-pages-section {
		padding-bottom: 24px !important;
	}
	.alh-main.alh-svc .alh-svc-list.alh-pages-section {
		padding-top: 24px !important;
	}
}


/* Match About and Services content backgrounds to the Home page. */
.alh-main.alh-about .alh-pages-section,
.alh-main.alh-svc .alh-pages-section {
	background-color: #F1DFC4 !important;
}


/* Mobile navigation: full, clear and touch-friendly panel. */
@media (max-width: 900px) {
	body:has(.alh-header.is-open) { overflow: hidden; }
	.alh-header { z-index: 10000; }
	.alh-nav {
		position: fixed !important;
		top: var(--alh-header-h) !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: calc(100dvh - var(--alh-header-h)) !important;
		padding: 24px 24px 48px !important;
		background-color: #F1DFC4 !important;
		border-top: 1px solid rgba(60, 26, 6, 0.16) !important;
		overflow-y: auto !important;
		z-index: 9999 !important;
	}
	.alh-header.is-open .alh-nav {
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		pointer-events: auto !important;
	}
	.alh-nav__list {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		width: 100% !important;
		gap: 0 !important;
	}
	.alh-nav__list > li { display: block !important; width: 100% !important; }
	.alh-nav__list a {
		display: flex !important;
		align-items: center !important;
		min-height: 64px !important;
		width: 100% !important;
		padding: 16px 4px !important;
		border-bottom: 1px solid rgba(60, 26, 6, 0.18) !important;
		font-family: 'Newsreader', Georgia, serif !important;
		font-size: 22px !important;
		line-height: 1.25 !important;
		color: #3C1A06 !important;
	}
	.alh-nav__list .current-menu-item > a,
	.alh-nav__list .current_page_item > a { font-weight: 600 !important; }
	.alh-burger {
		position: relative;
		z-index: 10001;
		background-color: rgba(60, 26, 6, 0.05);
	}
	.alh-header.is-open .alh-burger { background-color: rgba(60, 26, 6, 0.09); }
}


/* Services: allow the introductory service description to use the available row width. */
@media (min-width: 901px) {
	.alh-main.alh-svc .alh-svc-item-heading {
		max-width: none;
		width: 100%;
	}
	.alh-main.alh-svc .alh-svc-item-lead {
		max-width: none;
		width: 100%;
		margin-bottom: 24px;
	}
}

/* Match Why AL Hospitality content background to the Home page. */
.alh-main.alh-why .alh-pages-section {
	background-color: #F1DFC4 !important;
}
