/*
Theme Name: Sky Departure
Theme URI: https://skydeparture.online
Author: Sky Departure
Author URI: https://skydeparture.online
Description: A light, soothing travel theme for Alicante Airport (ALC) flight sites. Pairs with the ALC Flight Board plugin: live arrivals & departures, weather, bilingual EN/ES content. Penji-inspired typography with aviation warmth — gliding plane routes, drifting clouds, boarding-pass cards — and an animated Sky Departure brand mark. Built for Yoast SEO (titles, meta, sitemaps, breadcrumbs and schema are owned by Yoast; the theme stays out of the way). Translation-ready, EN/ES starter content via Appearance → Sky Departure Setup.
 Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skyexit
Tags: travel, airport, flights, light, two-columns, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   SkyExit design tokens — airy canvas, violet + sky blue,
   sunset amber accents, serif italic display moments.
   ========================================================= */

:root {
	--sx-ink: #241f3a;            /* deep ink */
	--sx-ink-soft: #565072;       /* muted ink */
	--sx-ink-faint: #8d87a8;      /* faint ink */
	--sx-violet: #6c4df6;         /* penji-style signature violet */
	--sx-violet-deep: #4f33d8;
	--sx-sky: #2f8cf4;            /* aviation sky blue */
	--sx-sky-soft: #eaf4ff;       /* pale sky wash */
	--sx-amber: #ffb347;          /* sunset amber (ties to the board) */
	--sx-amber-soft: #fff3e0;
	--sx-paper: #fdfcfd;          /* airy canvas */
	--sx-paper-tint: #f7f5fb;
	--sx-line: #ece9f4;
	--sx-radius: 18px;
	--sx-radius-lg: 28px;
	--sx-shadow: 0 12px 40px rgba(76, 58, 176, 0.10);
	--sx-shadow-soft: 0 6px 20px rgba(76, 58, 176, 0.08);
	--sx-font-sans: "Zalando Sans", "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--sx-font-display: "Wittgenstein", Georgia, "Times New Roman", serif;
	--sx-wrap: 1180px;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sx-font-sans);
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--sx-ink);
	background: var(--sx-paper);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--sx-violet); text-decoration: none; }
a:hover { color: var(--sx-violet-deep); text-decoration: underline; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
:focus-visible { outline: 3px solid var(--sx-amber); outline-offset: 2px; border-radius: 6px; }

.sx-wrap { max-width: var(--sx-wrap); margin: 0 auto; padding: 0 22px; }
.sx-italic { font-family: var(--sx-font-display); font-style: italic; font-weight: 600; letter-spacing: 0; }
.sx-skip-link { position: absolute; left: -9999px; }
.sx-skip-link:focus { left: 12px; top: 12px; background: var(--sx-ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 999; }

/* ---------- header ---------- */
.sx-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(253, 252, 253, 0.86);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--sx-line);
}
.sx-header-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.sx-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--sx-ink); text-decoration: none; }
.sx-brand:hover { text-decoration: none; color: var(--sx-violet); }
.sx-brand img { max-height: 40px; width: auto; }
.sx-brand-logo { display: block; border-radius: 11px; box-shadow: 0 4px 12px rgba(76, 58, 176, 0.22); }
.sx-brand-name em, .sx-brand-accent { font-family: var(--sx-font-display); font-style: italic; font-weight: 600; background: linear-gradient(90deg, var(--sx-violet-deep), var(--sx-sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sx-footer .sx-brand-accent { background: none; color: #fff; }

.sx-nav { margin-left: auto; }
.sx-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.sx-nav a { display: block; padding: 9px 14px; border-radius: 999px; color: var(--sx-ink-soft); font-weight: 600; font-size: 0.95rem; }
.sx-nav a:hover, .sx-nav .current-menu-item > a, .sx-nav .current_page_item > a { color: var(--sx-violet); background: var(--sx-paper-tint); text-decoration: none; }
.sx-nav .sx-lang-item a { color: var(--sx-sky); font-weight: 700; }
.sx-burger { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.sx-burger span { display: block; width: 22px; height: 2px; background: var(--sx-ink); margin: 5px 0; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.sx-nav-open .sx-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sx-nav-open .sx-burger span:nth-child(2) { opacity: 0; }
.sx-nav-open .sx-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sx-breadcrumbs { padding: 10px 0 0; font-size: 0.83rem; color: var(--sx-ink-faint); }
.sx-breadcrumbs a { color: var(--sx-ink-faint); }
.sx-breadcrumbs #breadcrumbs { margin: 0; }

/* ---------- hero ---------- */
.sx-hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 92px) 0 30px; background:
	radial-gradient(900px 420px at 85% -10%, rgba(47, 140, 244, 0.14), transparent 60%),
	radial-gradient(700px 380px at 8% 0%, rgba(108, 77, 246, 0.12), transparent 55%),
	var(--sx-paper);
}
.sx-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.sx-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sx-sky); background: var(--sx-sky-soft); border-radius: 999px; padding: 7px 14px; margin-bottom: 18px; }
.sx-hero h1 { margin-bottom: 16px; }
.sx-hero-sub { font-size: 1.13rem; color: var(--sx-ink-soft); max-width: 54ch; margin-bottom: 26px; }
.sx-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sx-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; border: 0; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.sx-btn-primary { background: linear-gradient(135deg, var(--sx-violet), var(--sx-violet-deep)); color: #fff; box-shadow: 0 10px 26px rgba(108, 77, 246, 0.35); }
.sx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(108, 77, 246, 0.42); color: #fff; text-decoration: none; }
.sx-btn-ghost { background: #fff; color: var(--sx-ink); border: 1.5px solid var(--sx-line); box-shadow: var(--sx-shadow-soft); }
.sx-btn-ghost:hover { border-color: var(--sx-violet); color: var(--sx-violet); text-decoration: none; transform: translateY(-2px); }

/* hero art: dotted route + gliding plane + clouds */
.sx-hero-art { position: relative; min-height: 340px; }
.sx-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.sx-route .sx-route-path { stroke: var(--sx-violet); stroke-opacity: 0.35; stroke-width: 2.5; stroke-dasharray: 1 12; stroke-linecap: round; fill: none; }
.sx-route .sx-route-path.sx-sky-line { stroke: var(--sx-sky); stroke-opacity: 0.3; }
.sx-plane { position: absolute; width: 34px; height: 34px; color: var(--sx-violet); offset-path: path('M20,250 C120,150 260,120 470,60'); offset-rotate: auto; animation: sx-fly 14s linear infinite; }
.sx-plane-2 { width: 22px; height: 22px; color: var(--sx-sky); offset-path: path('M480,300 C360,240 220,250 40,190'); offset-rotate: auto; animation: sx-fly 18s linear infinite reverse; }
@keyframes sx-fly {
	0%   { offset-distance: 0%;   opacity: 0; }
	6%   { opacity: 1; }
	92%  { opacity: 1; }
	100% { offset-distance: 100%; opacity: 0; }
}
@supports not (offset-path: path('M0,0 L10,10')) {
	.sx-plane { left: 8%; top: 55%; animation: sx-drift 10s ease-in-out infinite alternate; }
	.sx-plane-2 { right: 10%; top: 22%; animation: sx-drift 13s ease-in-out infinite alternate-reverse; }
	@keyframes sx-drift { from { transform: translate(0, 0) rotate(-4deg); } to { transform: translate(60px, -26px) rotate(5deg); } }
}
.sx-cloud { position: absolute; background: radial-gradient(closest-side, rgba(47, 140, 244, 0.16), transparent); border-radius: 50%; animation: sx-cloud 26s ease-in-out infinite alternate; }
.sx-cloud-1 { width: 210px; height: 90px; left: -40px; top: 12%; }
.sx-cloud-2 { width: 160px; height: 70px; right: 6%; bottom: 8%; animation-duration: 34s; }
.sx-cloud-3 { width: 120px; height: 56px; left: 38%; top: 4%; animation-duration: 30s; }
@keyframes sx-cloud { from { transform: translateX(0); } to { transform: translateX(46px); } }

.sx-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.sx-stat { background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 16px 18px; box-shadow: var(--sx-shadow-soft); }
.sx-stat b { display: block; font-size: 1.45rem; color: var(--sx-violet); }
.sx-stat span { font-size: 0.86rem; color: var(--sx-ink-soft); }

/* ---------- sections ---------- */
.sx-section { padding: clamp(40px, 6vw, 76px) 0; }
.sx-section-alt { background: linear-gradient(180deg, var(--sx-paper-tint), var(--sx-paper)); }
.sx-section-head { max-width: 62ch; margin: 0 auto 34px; text-align: center; }
.sx-section-head p { color: var(--sx-ink-soft); }
.sx-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sx-card { background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); padding: 26px; box-shadow: var(--sx-shadow-soft); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.sx-card:hover { transform: translateY(-4px); box-shadow: var(--sx-shadow); }
.sx-card-icon { display: inline-flex; width: 46px; height: 46px; border-radius: 14px; align-items: center; justify-content: center; margin-bottom: 14px; color: #fff; }
.sx-card-icon.sx-ic-violet { background: linear-gradient(135deg, var(--sx-violet), var(--sx-violet-deep)); }
.sx-card-icon.sx-ic-sky { background: linear-gradient(135deg, var(--sx-sky), #1f6fd1); }
.sx-card-icon.sx-ic-amber { background: linear-gradient(135deg, var(--sx-amber), #f59e0b); }
.sx-card p { color: var(--sx-ink-soft); margin: 0; }
.sx-card a.sx-card-link { display: inline-block; margin-top: 14px; font-weight: 700; }

/* boarding-pass card */
.sx-pass { display: grid; grid-template-columns: 1fr auto; gap: 0; background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); overflow: hidden; box-shadow: var(--sx-shadow-soft); }
.sx-pass-body { padding: 26px; }
.sx-pass-body h3 { margin-bottom: 6px; }
.sx-pass-body p { color: var(--sx-ink-soft); margin: 0; }
.sx-pass-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px 26px; background: linear-gradient(160deg, var(--sx-sky-soft), #fff); border-left: 1.5px dashed var(--sx-line); }
.sx-pass-stub b { font-size: 1.5rem; letter-spacing: 0.14em; color: var(--sx-sky); }
.sx-pass-stub span { font-size: 0.75rem; color: var(--sx-ink-faint); letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- page/article content ---------- */
.sx-main { padding: 34px 0 60px; }
.sx-page-head { margin-bottom: 26px; }
.sx-page-head .sx-lead { font-size: 1.1rem; color: var(--sx-ink-soft); max-width: 68ch; }
.sx-content { max-width: 76ch; }
.sx-content h2 { margin-top: 1.6em; }
.sx-content h3 { margin-top: 1.4em; }
.sx-content ul, .sx-content ol { padding-left: 1.3em; }
.sx-content li { margin-bottom: 0.4em; }
.sx-content blockquote { margin: 1.4em 0; padding: 14px 22px; border-left: 4px solid var(--sx-amber); background: var(--sx-amber-soft); border-radius: 0 14px 14px 0; font-family: var(--sx-font-display); font-style: italic; font-size: 1.08rem; }
.sx-content img { border-radius: var(--sx-radius); }
.sx-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; }
.sx-content th, .sx-content td { border: 1px solid var(--sx-line); padding: 10px 12px; text-align: left; }
.sx-content th { background: var(--sx-paper-tint); }

/* ---------- weather (plugin output) ---------- */
.alc-weather { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; background: linear-gradient(120deg, var(--sx-sky-soft), #fff 70%); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); padding: 20px 26px; margin: 26px 0; box-shadow: var(--sx-shadow-soft); color: var(--sx-ink); }
.alc-wx-main { display: flex; align-items: center; gap: 14px; }
.alc-wx-icon { color: var(--sx-sky); }
.alc-wx-temp { display: flex; flex-direction: column; line-height: 1.25; }
.alc-wx-deg { font-size: 1.6rem; font-weight: 800; }
.alc-wx-desc { font-size: 0.9rem; color: var(--sx-ink-soft); }
.alc-wx-meta { display: flex; gap: 16px; }
.alc-wx-item { font-size: 0.92rem; color: var(--sx-ink-soft); }
.alc-wx-item strong { color: var(--sx-ink); }
.alc-wx-where { margin-left: auto; font-size: 0.8rem; color: var(--sx-ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- contrail divider ---------- */
.sx-contrail { position: relative; height: 34px; margin: 8px auto; max-width: 640px; }
.sx-contrail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(108, 77, 246, 0.3); }
.sx-contrail svg { position: absolute; right: -8px; top: 50%; transform: translateY(-52%); width: 30px; height: 30px; color: var(--sx-violet); }

/* ---------- ad slots ---------- */
.sx-ad { margin: 26px auto; text-align: center; min-height: 90px; }
.sx-ad-inner { display: block; border: 1.5px dashed var(--sx-line); border-radius: var(--sx-radius); color: var(--sx-ink-faint); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 34px 12px; background: repeating-linear-gradient(45deg, #fff, #fff 12px, var(--sx-paper-tint) 12px, var(--sx-paper-tint) 24px); }

/* ---------- footer ---------- */
.sx-footer { background: var(--sx-ink); color: #cfc9e6; margin-top: 40px; }
.sx-footer a { color: #fff; }
.sx-footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding: 52px 0 30px; }
.sx-footer-in.sx-duo { grid-template-columns: 1.4fr 1fr; }
.sx-footer-in.sx-brandonly { grid-template-columns: 1fr; }
.sx-footer-in.sx-brandonly .sx-footer-brand p { max-width: 60ch; }
.sx-footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; }
.sx-footer ul { list-style: none; margin: 0; padding: 0; }
.sx-footer li { margin-bottom: 8px; }
.sx-footer-brand p { font-size: 0.95rem; color: #a9a2c9; max-width: 40ch; }
.sx-footer-note { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 0.82rem; color: #8f88b5; }

/* ---------- misc widgets ---------- */
.sx-widgets { margin: 30px 0; }
.sx-widget-title { font-size: 1.05rem; margin-bottom: 10px; }
.sx-faq-teaser { display: grid; gap: 12px; }
.sx-details { background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 0; overflow: hidden; }
.sx-details summary { cursor: pointer; font-weight: 700; padding: 16px 20px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.sx-details summary::after { content: "+"; color: var(--sx-violet); font-weight: 800; font-size: 1.2rem; }
.sx-details[open] summary::after { content: "–"; }
.sx-details .sx-details-body { padding: 0 20px 16px; color: var(--sx-ink-soft); }

/* scroll reveal */
.sx-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.sx-reveal.sx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.sx-reveal { opacity: 1; transform: none; transition: none; }
	.sx-plane, .sx-plane-2, .sx-cloud { animation: none !important; }
	html { scroll-behavior: auto; }
}

/* ---------- Yoast FAQ block tuning to theme ---------- */
.schema-faq .schema-faq-question, .schema-faq strong.schema-question { font-weight: 700; }
.wp-block-yoast-faq-block .schema-faq-section { background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 18px 22px; margin-bottom: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
	.sx-hero-grid { grid-template-columns: 1fr; }
	.sx-hero-art { min-height: 240px; }
	.sx-grid-3 { grid-template-columns: 1fr 1fr; }
	.sx-footer-in { grid-template-columns: 1fr 1fr; }
	.sx-footer-in.sx-brandonly { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	.sx-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--sx-line); box-shadow: var(--sx-shadow); padding: 12px 18px 18px; }
	.sx-nav-open .sx-nav { display: block; }
	.sx-nav ul { flex-direction: column; gap: 2px; }
	.sx-nav a { padding: 12px 14px; border-radius: 12px; }
	.sx-burger { display: block; }
	.sx-grid-3 { grid-template-columns: 1fr; }
	.sx-hero-stats { grid-template-columns: 1fr; }
	.sx-footer-in, .sx-footer-in.sx-duo { grid-template-columns: 1fr; }
	.sx-pass { grid-template-columns: 1fr; }
	.sx-pass-stub { border-left: 0; border-top: 1.5px dashed var(--sx-line); }
}
