/*
Theme Name: Alhambra Travel Site
Version: 1.0
*/

:root {
	--terracotta: #b0502d;
	--terracotta-dark: #8f3e22;
	--sand: #ead9bd;
	--sand-light: #f4eadb;
	--paper: #fbf7f0;
	--night: #1b2440;
	--night-soft: #4a536d;
	--turquoise: #2a9d9a;
	--turquoise-dark: #1d7572;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Helvetica, sans-serif;
	--wrap: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--night);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--terracotta-dark); text-underline-offset: 3px; }
a:hover { color: var(--turquoise-dark); }

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
	text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--terracotta-dark);
	margin-bottom: 12px;
}

.section { padding: 96px 0; }
.section-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 46px); }
.section-head p { color: var(--night-soft); font-size: 18px; }

.pattern-band {
	height: 28px;
	background: var(--terracotta) url("assets/pattern.svg") repeat-x center / auto 100%;
}
.pattern-band--night { background-color: var(--night); background-image: url("assets/pattern-night.svg"); }

.skip-link {
	position: absolute; left: -9999px; top: 8px;
	background: var(--night); color: var(--paper); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 28px;
	background: var(--terracotta); color: var(--paper);
	border: 0; border-radius: 999px;
	font: 600 16px/1 var(--sans);
	text-decoration: none; cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--terracotta-dark); color: var(--paper); transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, .nav-toggle:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 247, 240, .96);
	border-bottom: 1px solid var(--sand);
	backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }

.wordmark {
	display: flex; align-items: center; gap: 12px;
	color: var(--night); text-decoration: none;
	font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: .01em;
	white-space: nowrap;
}
.wordmark:hover { color: var(--night); }
.wordmark svg { width: 34px; height: 34px; flex: none; }
.wordmark small {
	display: block; font-family: var(--sans); font-size: 11px; font-weight: 600;
	letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta-dark); margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--night); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--terracotta-dark); }
.nav .phone {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px; border: 1.5px solid var(--night); border-radius: 999px; font-weight: 600;
}
.nav .phone:hover { background: var(--night); color: var(--paper); }
.nav .phone svg { width: 16px; height: 16px; }

.nav-toggle {
	display: none; margin-left: auto;
	width: 46px; height: 46px; border: 1.5px solid var(--night); border-radius: 50%;
	background: transparent; color: var(--night); cursor: pointer;
	align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Hero */
.hero { background: var(--sand-light); overflow: hidden; }
.hero-inner {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 80px;
}
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -.01em; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--terracotta-dark); }
.hero-lede { font-size: 20px; color: var(--night-soft); max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero-actions .text-link { color: var(--night); font-weight: 600; }
.hero-facts {
	display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none;
	margin: 48px 0 0; padding: 24px 0 0; border-top: 1px solid var(--sand);
	font-size: 15px; color: var(--night-soft);
}
.hero-facts strong { display: block; font-family: var(--serif); font-size: 26px; color: var(--night); line-height: 1.2; }

.hero-art { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.hero-art .arch {
	border-radius: 999px 999px 0 0; overflow: hidden;
	border: 10px solid var(--paper);
	box-shadow: 0 0 0 1.5px var(--terracotta), 0 30px 60px -30px rgba(27, 36, 64, .35);
}
.hero-art svg { width: 100%; height: auto; }
.hero-art figcaption {
	margin-top: 14px; text-align: center; font-size: 14px; font-style: italic;
	font-family: var(--serif); color: var(--night-soft);
}
.hero-art .star {
	position: absolute; width: 64px; height: 64px; right: -16px; top: 32%;
}

/* Destinations */
.dest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.dest-card {
	background: var(--paper); border: 1px solid var(--sand); border-radius: 18px; overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}
.dest-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(27, 36, 64, .35); }
.dest-card svg { width: 100%; height: auto; aspect-ratio: 8 / 5; }
.dest-body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.dest-body h3 { font-size: 24px; }
.dest-country {
	font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--turquoise-dark);
}
.dest-body p { color: var(--night-soft); font-size: 16px; }

/* Tours */
.tours { background: var(--night); color: var(--paper); }
.tours .eyebrow { color: #e9a27a; }
.tours .section-head p { color: #c9cddb; }
.tour-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tour-card {
	background: var(--paper); color: var(--night); border-radius: 18px;
	display: flex; flex-direction: column; overflow: hidden;
}
.tour-top { height: 10px; background: var(--terracotta) url("assets/pattern.svg") repeat-x center / auto 100%; }
.tour-body { padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tour-tag {
	align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	padding: 5px 10px; border-radius: 999px; background: var(--sand-light); color: var(--terracotta-dark);
}
.tour-tag--group { background: #d9efee; color: var(--turquoise-dark); }
.tour-body h3 { font-size: 23px; }
.tour-route { font-size: 15px; color: var(--night-soft); }
.tour-foot {
	display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
	margin: 0 24px; padding: 18px 0 22px; border-top: 1px dashed var(--sand);
}
.tour-duration { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tour-duration svg { width: 16px; height: 16px; }
.tour-price { text-align: right; font-size: 13px; color: var(--night-soft); line-height: 1.3; }
.tour-price strong { display: block; font-family: var(--serif); font-size: 26px; color: var(--terracotta-dark); }
.tour-note { margin-top: 28px; font-size: 14px; color: #c9cddb; }

/* Why us */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 64px; align-items: start; }
.about-grid .section-head { margin-bottom: 0; }
.why-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.why-item {
	display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px;
	padding: 28px 0; border-top: 1px solid var(--sand);
}
.why-item:last-child { border-bottom: 1px solid var(--sand); }
.why-item svg { width: 48px; height: 48px; color: var(--turquoise-dark); }
.why-item h3 { font-size: 24px; margin-bottom: 6px; }
.why-item p { color: var(--night-soft); }

/* Reviews */
.reviews { background: var(--terracotta-dark); color: var(--paper); }
.reviews .eyebrow { color: var(--sand); }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.review {
	margin: 0; padding: 32px 30px; border-radius: 18px;
	background: rgba(251, 247, 240, .07); border: 1px solid rgba(234, 217, 189, .35);
	display: flex; flex-direction: column; gap: 22px;
}
.review blockquote { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.45; }
.review blockquote::before { content: "\201C"; display: block; font-size: 56px; line-height: .6; color: var(--sand); margin-bottom: 8px; }
.review figcaption { margin-top: auto; font-size: 15px; }
.review figcaption strong { display: block; }
.review figcaption span { color: var(--sand); }
.stars { display: flex; gap: 4px; color: #f2c46d; }
.stars svg { width: 16px; height: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.contact-list svg { width: 22px; height: 22px; color: var(--terracotta); margin-top: 3px; }
.contact-list .label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--night-soft); }
.contact-list a { color: var(--night); font-weight: 600; }

.enquiry {
	background: var(--sand-light); border-radius: 22px; padding: 36px;
	border: 1px solid var(--sand);
}
.demo-note {
	display: flex; gap: 10px; align-items: center;
	font-size: 14px; padding: 10px 14px; border-radius: 10px; margin-bottom: 24px;
	background: #d9efee; color: #134f4d;
}
.demo-note svg { width: 18px; height: 18px; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 11px 14px;
	font: inherit; font-size: 16px; color: var(--night);
	background: var(--paper); border: 1.5px solid #d8c6a6; border-radius: 10px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(42, 157, 154, .2); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-status { font-size: 15px; color: var(--turquoise-dark); font-weight: 600; }

/* Footer */
.site-footer { background: var(--night); color: #c9cddb; font-size: 15px; }
.footer-inner {
	display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 48px;
	padding-top: 56px; padding-bottom: 40px;
}
.site-footer .wordmark { color: var(--paper); margin-bottom: 14px; }
.site-footer .wordmark small { color: #e9a27a; }
.site-footer h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c9cddb; text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.footer-base {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(201, 205, 219, .2); font-size: 13px;
}

/* Responsive */
@media (max-width: 1080px) {
	.tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nav ul { gap: 20px; }
}

@media (max-width: 900px) {
	.section { padding: 72px 0; }
	.nav-toggle { display: inline-flex; }
	.nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--paper); border-bottom: 1px solid var(--sand); padding: 8px 24px 24px;
	}
	.nav.is-open { display: flex; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--sand); font-size: 18px; }
	.nav .phone { justify-content: center; margin-top: 18px; min-height: 48px; }
	.hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 64px; }
	.hero-art { max-width: 380px; }
	.dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.review-grid { grid-template-columns: minmax(0, 1fr); }
	.footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.footer-inner > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.wrap { padding: 0 20px; }
	.wordmark { font-size: 20px; }
	.wordmark small { display: none; }
	.hero-lede { font-size: 18px; }
	.hero-art .star { display: none; }
	.dest-grid, .tour-grid { grid-template-columns: minmax(0, 1fr); }
	.form-grid { grid-template-columns: minmax(0, 1fr); }
	.enquiry { padding: 24px 20px; }
	.why-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.footer-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn, .dest-card { transition: none; }
}
