/*
Theme Name:   TaxiInKrabi
Theme URI:    https://taxiinkrabi.com
Author:       taxiinkrabi.com
Description:  Hand-written lightweight theme for taxiinkrabi.com built for Lighthouse 100: no page builder, no jQuery, no webfont requests, critical CSS inlined, deferred JS. Pairs with the TaxiInKrabi Core plugin, Yoast SEO, LiteSpeed Cache, and Polylang.
Version:      1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain:  taxiinkrabi
*/

/* =========================================================================
   This file is the theme's ONLY stylesheet (deliberately -- one CSS file
   means one render-blocking request instead of several, and no
   framework/reset library is imported). Kept small enough (a few KB
   gzipped) that render-blocking it in <head> the normal way costs less
   than the complexity and flash-of-unstyled-content risk of splitting out
   an inlined "critical CSS" subset would.
   ========================================================================= */

/* ---------- Design tokens -------------------------------------------- */
:root {
	/* Deep sea/teal blue: trust, and a nod to Krabi's water. */
	--tik-color-primary: #0e5a63;
	--tik-color-primary-dark: #093f46;
	--tik-color-primary-light: #e4f0f1;

	/* Warm amber/terracotta: the limestone-cliffs-at-sunset accent, used
	   only for calls to action so it keeps its attention-getting power. */
	--tik-color-accent: #d97b29;
	--tik-color-accent-dark: #b5621c;

	--tik-color-text: #202b2d;
	--tik-color-text-muted: #5b6b6e;
	--tik-color-bg: #ffffff;
	--tik-color-bg-alt: #f6f8f8;
	--tik-color-border: #dfe6e7;

	--tik-radius: 10px;
	--tik-container: 1160px;

	/* System font stack: zero network requests, and correctly renders
	   Latin, Cyrillic (Russian), and CJK (Chinese) without needing
	   separate webfont subsets per language -- important for a
	   4-language (EN/ZH/RU/DE) site where a single self-hosted Latin
	   webfont would silently fall back to a different, unstyled font for
	   Chinese/Russian visitors anyway. */
	--tik-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
}

/* ---------- Reset (minimal) ------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--tik-font);
	color: var(--tik-color-text);
	background: var(--tik-color-bg);
	line-height: 1.55;
	font-size: 17px;
}

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

a {
	color: var(--tik-color-primary);
	text-decoration-thickness: 1px;
}

h1,
h2,
h3,
h4 {
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 700;
}

h1 {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h2 {
	font-size: clamp(1.4rem, 3vw, 1.9rem);
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	padding-left: 1.2em;
}

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

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--tik-color-primary);
	color: #fff;
	padding: 0.75em 1.25em;
	z-index: 1000;
}

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

/* ---------- Layout ------------------------------------------------------ */
.tik-container {
	max-width: var(--tik-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.tik-section {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.tik-section--alt {
	background: var(--tik-color-bg-alt);
}

/* ---------- Site header -------------------------------------------------- */
.tik-header {
	border-bottom: 1px solid var(--tik-color-border);
	background: var(--tik-color-bg);
	position: sticky;
	top: 0;
	z-index: 100;
}

.tik-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 14px;
}

.tik-logo {
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--tik-color-primary-dark);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tik-logo img {
	max-height: 40px;
	width: auto;
}

.tik-nav {
	display: none;
}

.tik-nav ul {
	list-style: none;
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 0;
}

.tik-nav a {
	color: var(--tik-color-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}

.tik-nav a:hover {
	color: var(--tik-color-primary);
}

.tik-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tik-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 1px solid var(--tik-color-border);
	border-radius: var(--tik-radius);
	padding: 8px 12px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.tik-mobile-nav {
	display: none;
	border-top: 1px solid var(--tik-color-border);
	padding: 10px 0 16px;
}

.tik-mobile-nav.is-open {
	display: block;
}

.tik-mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.tik-mobile-nav a {
	color: var(--tik-color-text);
	text-decoration: none;
	font-weight: 600;
}

@media (min-width: 860px) {
	.tik-nav {
		display: block;
	}

	.tik-menu-toggle {
		display: none;
	}

	.tik-mobile-nav {
		display: none !important;
	}
}

/* ---------- Buttons ------------------------------------------------------ */
.tik-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: var(--tik-radius);
	font-weight: 700;
	text-decoration: none;
	border: 2px solid transparent;
	font-size: 0.95rem;
	cursor: pointer;
}

.tik-btn--primary {
	background: var(--tik-color-accent);
	color: #fff;
}

.tik-btn--primary:hover {
	background: var(--tik-color-accent-dark);
}

.tik-btn--outline {
	border-color: var(--tik-color-primary);
	color: var(--tik-color-primary);
	background: transparent;
}

.tik-btn--outline:hover {
	background: var(--tik-color-primary-light);
}

/* Click-to-chat buttons (rendered by the plugin's shortcodes). */
.tik-chat-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 1.2em 0;
}

.tik-chat-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: var(--tik-radius);
	text-decoration: none;
	font-weight: 700;
	color: #fff;
}

.tik-chat-button--whatsapp {
	background: #25a866;
}

.tik-chat-button--whatsapp:hover {
	background: #1e8a53;
}

.tik-chat-button--line {
	background: #06c655;
}

.tik-chat-button--line:hover {
	background: #05a648;
}

/* ---------- Hero ---------------------------------------------------------- */
.tik-hero {
	background: linear-gradient(180deg, var(--tik-color-primary-light) 0%, var(--tik-color-bg) 100%);
}

.tik-hero__grid {
	display: grid;
	gap: 28px;
	padding-block: clamp(2.5rem, 7vw, 5rem);
}

.tik-hero__eyebrow {
	display: inline-block;
	color: var(--tik-color-primary-dark);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.8rem;
	margin-bottom: 10px;
}

.tik-hero__lede {
	font-size: 1.1rem;
	color: var(--tik-color-text-muted);
	max-width: 60ch;
}

.tik-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.tik-trust-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 24px;
	color: var(--tik-color-text-muted);
	font-size: 0.9rem;
}

.tik-trust-strip li {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tik-trust-strip {
	padding: 0;
}

/* ---------- Price / vehicle tables (rendered by the plugin) -------------- */
.tik-price-table-wrap,
.tik-vehicle-table-wrap {
	overflow-x: auto;
	margin: 1.4em 0;
}

.tik-price-table,
.tik-vehicle-table {
	border: 1px solid var(--tik-color-border);
	border-radius: var(--tik-radius);
	overflow: hidden;
}

.tik-price-table th,
.tik-price-table td,
.tik-vehicle-table th,
.tik-vehicle-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--tik-color-border);
}

.tik-price-table thead th,
.tik-vehicle-table thead th {
	background: var(--tik-color-primary);
	color: #fff;
	font-weight: 700;
}

.tik-price-table tbody tr:last-child td,
.tik-vehicle-table tbody tr:last-child td {
	border-bottom: none;
}

.tik-price-table tbody tr:nth-child(even),
.tik-vehicle-table tbody tr:nth-child(even) {
	background: var(--tik-color-bg-alt);
}

.tik-price-table__link {
	font-weight: 700;
	white-space: nowrap;
}

.tik-price-note {
	color: var(--tik-color-text-muted);
	font-size: 0.9rem;
}

/* ---------- Route hero (single-route.php) --------------------------------- */
.tik-route-hero {
	background: var(--tik-color-bg-alt);
	border: 1px solid var(--tik-color-border);
	border-radius: var(--tik-radius);
	padding: 20px;
	margin: 1.4em 0;
}

.tik-route-hero__path {
	font-size: 1.3rem;
	font-weight: 800;
	margin: 0 0 10px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tik-route-hero__arrow {
	color: var(--tik-color-accent);
}

.tik-route-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tik-route-hero__facts li {
	font-size: 0.95rem;
}

.tik-route-hero__facts strong {
	display: block;
	color: var(--tik-color-text-muted);
	font-weight: 600;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* ---------- FAQ ------------------------------------------------------------ */
.tik-faq {
	margin: 1.6em 0;
}

.tik-faq__item {
	border: 1px solid var(--tik-color-border);
	border-radius: var(--tik-radius);
	padding: 14px 16px;
	margin-bottom: 10px;
}

.tik-faq__item summary {
	font-weight: 700;
	cursor: pointer;
}

.tik-faq__item p {
	margin-top: 10px;
	margin-bottom: 0;
	color: var(--tik-color-text-muted);
}

/* ---------- Breadcrumbs ----------------------------------------------------- */
.tik-breadcrumbs {
	font-size: 0.85rem;
	color: var(--tik-color-text-muted);
	margin-block: 14px;
}

.tik-breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.tik-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 6px;
	color: var(--tik-color-border);
}

.tik-breadcrumbs a {
	color: var(--tik-color-text-muted);
	text-decoration: none;
}

.tik-breadcrumbs a:hover {
	color: var(--tik-color-primary);
}

/* ---------- Cards (routes / areas / destinations grids) -------------------- */
.tik-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
	margin: 1.6em 0;
}

.tik-card {
	border: 1px solid var(--tik-color-border);
	border-radius: var(--tik-radius);
	padding: 18px;
	text-decoration: none;
	color: inherit;
	display: block;
	background: var(--tik-color-bg);
}

.tik-card:hover {
	border-color: var(--tik-color-primary);
}

.tik-card h3 {
	margin: 0 0 6px;
	font-size: 1.05rem;
	color: var(--tik-color-primary-dark);
}

.tik-card p {
	margin: 0;
	color: var(--tik-color-text-muted);
	font-size: 0.92rem;
}

/* ---------- Language switcher ----------------------------------------------- */
.tik-lang-switcher {
	position: relative;
}

.tik-lang-switcher__toggle {
	background: none;
	border: 1px solid var(--tik-color-border);
	border-radius: var(--tik-radius);
	padding: 8px 10px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.tik-lang-switcher__list {
	list-style: none;
	margin: 0;
	padding: 6px;
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	background: #fff;
	border: 1px solid var(--tik-color-border);
	border-radius: var(--tik-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	min-width: 160px;
	z-index: 200;
}

.tik-lang-switcher.is-open .tik-lang-switcher__list {
	display: block;
}

.tik-lang-switcher__list a {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	text-decoration: none;
	color: var(--tik-color-text);
	font-size: 0.92rem;
}

.tik-lang-switcher__list a:hover {
	background: var(--tik-color-bg-alt);
}

.tik-lang-switcher__list [aria-current="true"] {
	color: var(--tik-color-primary);
	font-weight: 700;
}

/* No-JS fallback: show the list as a plain inline row instead of a hidden
   dropdown, so the switcher still works if assets/js/main.js fails/blocks. */
.no-js .tik-lang-switcher__list {
	display: flex;
	position: static;
	flex-wrap: wrap;
	box-shadow: none;
	border: none;
	padding: 0;
	gap: 10px;
}

.no-js .tik-lang-switcher__toggle {
	display: none;
}

/* ---------- Footer ----------------------------------------------------------- */
.tik-footer {
	background: var(--tik-color-primary-dark);
	color: #eaf2f2;
	padding-block: 40px;
	margin-top: 40px;
}

.tik-footer a {
	color: #eaf2f2;
}

.tik-footer__grid {
	display: grid;
	gap: 26px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tik-footer h2 {
	font-size: 1rem;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 12px;
}

.tik-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
	font-size: 0.92rem;
}

.tik-footer__bottom {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.85rem;
	color: #cfe0e0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	justify-content: space-between;
}

/* ---------- Utility -------------------------------------------------------- */
.tik-text-center {
	text-align: center;
}

.tik-mt-0 {
	margin-top: 0;
}

/* Respect reduced-motion users; nothing here animates by default anyway. */
@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
	}
}
