/*
Theme Name: ATB Lite
Theme URI: https://gc-airporttransfers.com.au/
Author: Gold Coast Airport Transfers
Author URI: https://gc-airporttransfers.com.au/
Description: The companion theme to the Airport Transfer Booking plugin. Lightweight, citation-first markup: semantic landmarks, one H1 per page, breadcrumbs and silo links, an engine-built answer block at the top of every route page, no jQuery, no block-library, a single tiny nav script. Applies no styling of its own to the booking form, so the form always renders exactly as the plugin intends.
Version: 1.2.3
Requires at least: 5.9
Tested up to: 7.1
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atb-lite
Tags: blog, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready, custom-logo, footer-widgets
*/

/* =========================================================================
   Transfer Lite — design tokens
   Neutral, themeable. The owner overrides --ll-accent to brand it.
   ========================================================================= */
:root {
	--ll-bg: #ffffff;
	--ll-surface: #f6f7f9;
	--ll-text: #1a1d21;
	--ll-muted: #5b6470;
	--ll-border: #e3e6ea;
	--ll-accent: #a5802e;          /* Gold Coast Airport Transfers gold — override to rebrand */
	--ll-accent-ink: #ffffff;
	--ll-focus: #a5802e;
	--ll-maxw: 1120px;
	--ll-readw: 68ch;
	--ll-radius: 10px;
	--ll-gap: clamp(1rem, 2.5vw, 2rem);
	--ll-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	--ll-font-head: var(--ll-font);
	--ll-fs-step--1: clamp(0.83rem, 0.78rem + 0.2vw, 0.92rem);
	--ll-fs-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	--ll-fs-1: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
	--ll-fs-2: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem);
	--ll-fs-3: clamp(2.1rem, 1.6rem + 2vw, 3.2rem);
}

/* Dark mode intentionally removed: the site brand (cream + gold) is the
   design, regardless of the visitor's OS theme. */

/* =========================================================================
   Reset — minimal, intentional
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--ll-font);
	font-size: var(--ll-fs-0);
	line-height: 1.65;
	color: var(--ll-text);
	background: var(--ll-bg);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
/* CLS guards: media always reserves space */
img, video, iframe, svg { max-width: 100%; height: auto; }
img[width][height] { height: auto; }

h1, h2, h3, h4 { font-family: var(--ll-font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: var(--ll-fs-3); letter-spacing: -.02em; }
h2 { font-size: var(--ll-fs-2); letter-spacing: -.01em; }
h3 { font-size: var(--ll-fs-1); }
p, ul, ol { margin: 0 0 1rem; }
a { color: var(--ll-accent); text-underline-offset: .15em; }
a:hover { text-decoration: none; }

/* Visible keyboard focus everywhere (accessibility-ready + agent-friendly) */
:focus-visible { outline: 3px solid var(--ll-focus); outline-offset: 2px; border-radius: 3px; }

/* =========================================================================
   Layout primitives
   ========================================================================= */
.ll-wrap { width: 100%; max-width: var(--ll-maxw); margin-inline: auto; padding-inline: var(--ll-gap); }
.ll-flow > * + * { margin-top: 1rem; }
.ll-prose { max-width: var(--ll-readw); }
.ll-section { padding-block: clamp(2rem, 5vw, 4rem); }

/* Skip link */
.ll-skip {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--ll-accent); color: var(--ll-accent-ink);
	padding: .6rem 1rem; border-radius: 0 0 var(--ll-radius) 0;
}
.ll-skip:focus { left: 0; }

/* =========================================================================
   Header / nav
   ========================================================================= */
.ll-header {
	border-bottom: 1px solid var(--ll-border);
	background: var(--ll-bg);
}
.ll-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; padding-block: .85rem;
}
.ll-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ll-text); }
.ll-brand__logo { display: inline-flex; align-items: center; }
.ll-brand__logo img {
	display: block;
	height: auto;
	max-height: 48px;   /* icon sits neatly in the header bar */
	width: auto;
}
.ll-brand__text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.ll-brand__name { font-weight: 700; font-size: var(--ll-fs-2); letter-spacing: -.01em; color: var(--ll-text); }
.ll-brand__tagline { font-weight: 500; font-size: var(--ll-fs--1); color: var(--ll-accent); }
@media (max-width: 720px) {
	.ll-brand__logo img { max-height: 40px; }
	.ll-brand__name { font-size: var(--ll-fs-1); }
	.ll-brand__tagline { display: none; }  /* keep mobile header compact */
}
.ll-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: 0; padding: 0; }
.ll-nav a { display: inline-block; padding: .4rem .2rem; color: var(--ll-text); text-decoration: none; font-weight: 500; }
.ll-nav a:hover, .ll-nav .current-menu-item > a { color: var(--ll-accent); }

/* Desktop dropdown (e.g. "Fixes"): submenu hidden until hover/focus.
   Lives in the theme so no external snippet is needed. */
@media (min-width: 721px) {
	.ll-nav__list .menu-item-has-children { position: relative; }
	.ll-nav__list .sub-menu {
		position: absolute; top: 100%; left: 0; z-index: 50;
		display: block; min-width: 200px; margin: 0; padding: .4rem 0;
		background: var(--ll-bg); border: 1px solid var(--ll-border);
		border-radius: var(--ll-radius); box-shadow: 0 8px 24px rgba(0,0,0,.08);
		opacity: 0; visibility: hidden; transform: translateY(4px);
		transition: opacity .15s ease, transform .15s ease, visibility .15s;
	}
	.ll-nav__list .menu-item-has-children:hover > .sub-menu,
	.ll-nav__list .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1; visibility: visible; transform: translateY(0);
	}
	.ll-nav__list .sub-menu li { display: block; }
	.ll-nav__list .sub-menu a { display: block; padding: .5rem 1rem; white-space: nowrap; }
	/* caret on parent items */
	.ll-nav__list .menu-item-has-children > a::after { content: " \25BE"; font-size: .8em; opacity: .7; }
}

/* Mobile nav toggle — CSS only, no JS dependency for core nav */
.ll-nav__toggle { display: none; }
@media (max-width: 720px) {
	.ll-nav__toggle {
		display: inline-flex; align-items: center; gap: .4rem;
		background: var(--ll-surface); border: 1px solid var(--ll-border);
		border-radius: var(--ll-radius); padding: .5rem .8rem; font: inherit; cursor: pointer; color: var(--ll-text);
	}
	/* Collapse the menu. Specificity (.ll-nav .ll-nav__list = two classes)
	   intentionally beats the generic ".ll-nav ul" rule above so the list
	   actually hides until toggled open. */
	.ll-nav .ll-nav__list { display: none; width: 100%; flex-direction: column; gap: 0; padding-top: .5rem; }
	.ll-nav[data-open="true"] .ll-nav__list { display: flex; }
	.ll-nav__list li { border-top: 1px solid var(--ll-border); }
	.ll-nav__list a { display: block; padding: .7rem .2rem; }
	/* Sub-menu (e.g. Fixes) sits as an indented block inside the open menu. */
	.ll-nav .ll-nav__list .sub-menu { display: flex; flex-direction: column; gap: 0; padding-left: 1rem; }
	.ll-nav .ll-nav__list .sub-menu a { color: var(--ll-muted); }
	.ll-header__inner { flex-wrap: wrap; }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.ll-btn {
	display: inline-block; background: var(--ll-accent); color: var(--ll-accent-ink);
	padding: .7rem 1.2rem; border-radius: var(--ll-radius); text-decoration: none; font-weight: 600;
	border: 1px solid transparent; cursor: pointer;
}
.ll-btn:hover { filter: brightness(.94); }
.ll-btn--ghost { background: transparent; color: var(--ll-accent); border-color: var(--ll-border); }

/* =========================================================================
   Content
   ========================================================================= */
.ll-main { display: block; }
.ll-hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.ll-hero h1 { margin-bottom: .3em; }
.ll-hero p { font-size: var(--ll-fs-1); color: var(--ll-muted); max-width: 55ch; }
.ll-hero__cta { margin-top: 1.5rem; display: flex; gap: .8rem; flex-wrap: wrap; }

.ll-entry__meta { color: var(--ll-muted); font-size: var(--ll-fs-step--1); margin-bottom: 1rem; }
.ll-entry__content > * { max-width: var(--ll-readw); }
.ll-entry__content > .alignwide,
.ll-entry__content > figure,
.ll-entry__content > .wp-block-image { max-width: 100%; }
.ll-entry__content img { border-radius: var(--ll-radius); }
.ll-entry__content figure { margin: 1.5rem 0; }

/* Cards / archive grid */
.ll-grid { display: grid; gap: var(--ll-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ll-card { border: 1px solid var(--ll-border); border-radius: var(--ll-radius); overflow: hidden; background: var(--ll-bg); display: flex; flex-direction: column; }
.ll-card__media { aspect-ratio: 16 / 9; background: var(--ll-surface); }
.ll-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ll-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.ll-card__body h3 { margin: 0; font-size: var(--ll-fs-1); }
.ll-card__body h3 a { color: var(--ll-text); text-decoration: none; }
.ll-card__body h3 a:hover { color: var(--ll-accent); }

/* =========================================================================
   Footer
   ========================================================================= */
.ll-footer { border-top: 1px solid var(--ll-border); background: var(--ll-surface); margin-top: clamp(3rem, 8vw, 6rem); }
.ll-footer__inner { padding-block: 2.5rem; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ll-footer__bottom { border-top: 1px solid var(--ll-border); padding-block: 1.2rem; color: var(--ll-muted); font-size: var(--ll-fs-step--1); }
.ll-footer__widgets .widget { margin-bottom: 1rem; }

/* =========================================================================
   Utilities & WP core classes
   ========================================================================= */
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.alignleft { float: left; margin: .3rem 1.2rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.2rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, .gallery-caption { color: var(--ll-muted); font-size: var(--ll-fs-step--1); }
.sticky, .bypostauthor { display: block; }
.ll-pagination { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.ll-pagination .page-numbers { padding: .5rem .85rem; border: 1px solid var(--ll-border); border-radius: var(--ll-radius); text-decoration: none; color: var(--ll-text); }
.ll-pagination .current { background: var(--ll-accent); color: var(--ll-accent-ink); border-color: var(--ll-accent); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Silo scaffolding — breadcrumbs + section links (silo-ready, not silo-builder)
   ========================================================================= */
.ll-breadcrumb { border-bottom: 1px solid var(--ll-border); background: var(--ll-bg); font-size: var(--ll-fs-step--1); }
.ll-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding-block: .6rem; }
.ll-breadcrumb li { display: flex; align-items: center; gap: .35rem; color: var(--ll-muted); }
.ll-breadcrumb li + li::before { content: "/"; color: var(--ll-border); }
.ll-breadcrumb a { color: var(--ll-muted); text-decoration: none; }
.ll-breadcrumb a:hover { color: var(--ll-accent); }
.ll-breadcrumb [aria-current="page"] { color: var(--ll-text); font-weight: 600; }

.ll-section-links { border-top: 1px solid var(--ll-border); background: var(--ll-surface); margin-top: clamp(2rem, 5vw, 3.5rem); }
.ll-section-links > .ll-wrap { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.ll-section-links__title { font-size: var(--ll-fs-1); margin: 0 0 .8rem; }
.ll-section-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ll-section-links li { margin: 0; }
.ll-section-links a { display: inline-block; padding: .35rem 0; color: var(--ll-text); text-decoration: none; border-bottom: 1px solid transparent; }
.ll-section-links a:hover { color: var(--ll-accent); border-bottom-color: var(--ll-accent); }

/* "Last updated" freshness signal */
.ll-updated { color: var(--ll-muted); font-size: var(--ll-fs--1); margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--ll-border); }

/* ===== 1.1.0: styles for the core blocks in use (block-library is not loaded) ===== */
.ll-entry__content table,.wp-block-table table{width:100%;border-collapse:collapse;margin:0 0 1.2em;font-size:.97rem}
.ll-entry__content th,.ll-entry__content td{border:1px solid var(--ll-border,#d1d5db);padding:8px 10px;text-align:left;vertical-align:top}
.ll-entry__content th{background:var(--ll-bg-soft,#f0f5fa);font-weight:600}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background:var(--ll-bg-soft,#f0f5fa)}
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 1.2em}
.wp-block-button__link{display:inline-block;background:var(--ll-accent,#046bd2);color:#fff;padding:12px 22px;border-radius:8px;font-weight:600;line-height:1.2;text-decoration:none}
.wp-block-button__link:hover{filter:brightness(.92);color:#fff}
.is-style-outline .wp-block-button__link{background:transparent;color:var(--ll-accent,#046bd2);border:2px solid currentColor}
.wp-block-separator{border:0;border-top:1px solid var(--ll-border,#d1d5db);margin:2em auto;max-width:100px}
.wp-block-separator.is-style-wide{max-width:none}
.wp-block-image{margin:0 0 1.2em}.wp-block-image img{display:block;max-width:100%;height:auto}
.wp-block-image figcaption{font-size:.9rem;opacity:.8;text-align:center;margin-top:.5em}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.wp-block-group{margin:0 0 1.2em}
.has-text-align-center{text-align:center}.has-text-align-right{text-align:right}

/* ATB Lite: answer-first block. In critical CSS because it is the first thing on a route page. */
.atb-route-answer{margin:0 0 1.5rem;padding:1rem 1.1rem;border:1px solid var(--ll-border);border-left:4px solid var(--ll-accent);border-radius:var(--ll-radius);background:var(--ll-surface)}
.atb-route-answer h2{font-size:var(--ll-fs-1);margin:0 0 .4em}
.answer-capsule{margin:0;font-size:1.02em;line-height:1.6}
.atb-route-answer__cta{display:inline-block;margin-left:.35em;font-weight:600;white-space:nowrap}
.atb-route-answer__cta::after{content:" \\2192"}

/* ATB Lite 1.2.1: header brand = logo at natural size, no tagline. */
.ll-brand{display:flex;align-items:center;min-height:56px}
.ll-brand .custom-logo-link{display:inline-flex;line-height:0}
.ll-brand img.custom-logo{width:auto;max-width:none;height:56px}
.ll-brand__name{font-weight:700;font-size:var(--ll-fs-1);color:var(--ll-text);text-decoration:none}
.ll-header__inner{padding-block:.6rem}
