/* Koh Lanta Bike Rentals - landing page.
   Tokens and components come from design/mockups/mockup.css (the approved design).
   Only what this page uses is kept here. */

@font-face {
	font-family: "Encode Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
	src: url("/fonts/encode-sans.woff2") format("woff2");
}
@font-face {
	font-family: "Encode Sans Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap;
	src: url("/fonts/encode-sans-sc-600.woff2") format("woff2");
}
@font-face {
	font-family: "Encode Sans Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap;
	src: url("/fonts/encode-sans-sc-700.woff2") format("woff2");
}

:root {
	--ink: #1f0101;
	--ink-2: #574644;
	--ink-3: #75625f;
	--paper: #ffffff;
	--plate: #f4f3f1;
	--plate-2: #ebe8e5;
	--line: #e6e1dd;
	--yellow: #fac611;
	--yellow-press: #e9b300;
	--yellow-soft: #fff5d1;
	--green: #2f6b1f;

	--font: "Encode Sans", system-ui, sans-serif;
	--font-num: "Encode Sans Semi Condensed", "Encode Sans", system-ui, sans-serif;

	--r: 12px;
	--r-lg: 16px;
	--r-xl: 22px;

	--shadow-1: 0 1px 2px rgb(31 1 1 / 0.06), 0 2px 8px rgb(31 1 1 / 0.05);
	--shadow-2: 0 2px 4px rgb(31 1 1 / 0.06), 0 12px 32px rgb(31 1 1 / 0.12);

	--gutter: 20px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0; padding-bottom: 88px;
	font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
::selection { background: var(--yellow); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -4px; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 20px; border-radius: var(--r);
	border: 1px solid transparent; background: var(--plate); color: var(--ink);
	font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
	transition: background 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { background: var(--plate-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); box-shadow: 0 1px 0 rgb(31 1 1 / 0.12) inset, 0 -2px 0 rgb(31 1 1 / 0.08) inset; }
.btn-primary:hover { background: #ffd232; }
.btn-primary:active { background: var(--yellow-press); }
.btn-outline { background: var(--paper); border-color: var(--line); }
.btn-outline:hover { background: var(--plate); }
.btn-lg { min-height: 56px; font-size: 18px; border-radius: var(--r-lg); }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	border: 0; background: transparent; color: var(--ink); text-decoration: none;
}
.icon-btn:hover { background: var(--plate); }

/* the flyer's yellow label tag */
.tag {
	display: inline-flex; align-items: center; height: 28px; padding: 0 12px 0 10px;
	background: var(--yellow); color: var(--ink);
	font-weight: 800; font-size: 13px; letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap;
	transform: skewX(-10deg); border-radius: 5px; box-shadow: 0 1px 2px rgb(31 1 1 / 0.12);
}
.tag > span { display: inline-block; transform: skewX(10deg); }

/* check-mark badge from the flyer */
.check-badge { color: var(--ink); background: var(--yellow); border-radius: 50%; padding: 3px; width: 22px; height: 22px; flex: none; }

/* ---------- top bar ---------- */
.topbar {
	display: flex; align-items: center; justify-content: space-between;
	height: 68px; padding: 0 12px 0 16px; background: var(--paper);
}
.topbar .logo img { height: 60px; width: auto; }
.topbar .nav { display: none; }
.wa-btn { color: #1c8a4a; }
.wa-btn .i { width: 28px; height: 28px; }
.topbar-cta { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-photo { position: relative; height: max(43.5vw, 186px); overflow: hidden; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-photo::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgb(20 12 8 / 0.62) 0%, rgb(20 12 8 / 0.34) 48%, rgb(20 12 8 / 0) 72%);
}
.hero-copy { position: absolute; left: var(--gutter); top: 12.5vw; z-index: 1; color: #fff; max-width: 58%; }
.hero-copy h1 { max-width: 8.5em; }
.hero-copy h1 { font-size: clamp(28px, 6.5vw, 48px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.hero-copy p { margin-top: 6px; font-size: clamp(13px, 2.2vw, 18px); line-height: 1.35; font-weight: 500; }

/* status bar that sits on the hero edge (the approved date bar, without dates) */
.statusbar {
	position: relative; z-index: 2; margin: -24px 20px 0; display: flex; align-items: center; gap: 10px;
	min-height: 48px; padding: 6px 14px; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow-2);
}
.statusbar .i { width: 20px; height: 20px; }
.statusbar .when { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; font-weight: 600; }
.statusbar .when span { color: var(--ink-2); font-weight: 500; }
.statusbar .btn { display: none; }

/* ---------- category jump links ---------- */
.tabs { display: flex; justify-content: space-between; gap: 2px; padding: 2px 20px 0; overflow-x: auto; scrollbar-width: none; }
.tab {
	display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 6px;
	color: var(--ink-2); font-weight: 500; font-size: 13px; white-space: nowrap;
	border-bottom: 3px solid transparent; text-decoration: none;
}
.tab:hover { color: var(--ink); border-bottom-color: var(--yellow); }
.tab .i { width: 18px; height: 18px; }

/* ---------- fleet ---------- */
.fleet-note { padding: 14px 20px 0; font-size: 14px; color: var(--ink-2); }
.fleet { scroll-margin-top: 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; padding: 28px 20px 12px; }
.sec-head h2 { font-size: 24px; font-weight: 700; }
.sec-head p { font-size: 14px; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding: 0 20px; }
.vcard {
	position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
	background: var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.vcard .ph { position: relative; aspect-ratio: 1.9 / 1; background: var(--plate); }
.vcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3px 3% 4px; }
.vcard .tag { position: absolute; left: 8px; bottom: -9px; height: 20px; font-size: 12px; padding: 0 8px 0 7px; font-weight: 700; font-style: italic; }
.vcard .body { padding: 14px 10px 10px; line-height: 1.22; }
.vcard .price { font-family: var(--font-num); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.vcard .price small { font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--ink-2); }
@media (max-width: 389px) { .vcard .tag { font-size: 11px; padding: 0 6px; } }

/* ---------- good to know ---------- */
.know { padding: 40px 20px 0; }
.know h2 { font-size: 24px; font-weight: 700; }
.facts { display: grid; gap: 10px; margin-top: 16px; }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--plate); }
.fact .check-badge { margin-top: 1px; }
.fact b { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; }
.fact span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.4; }

/* ---------- contact ---------- */
.contact { margin: 40px 20px 0; padding: 24px 20px; border-radius: var(--r-xl); background: var(--yellow-soft); }
.contact h2 { font-size: 26px; font-weight: 700; }
.contact .lead { margin-top: 8px; font-size: 16px; color: var(--ink-2); max-width: 46ch; }
.contact-actions { display: grid; gap: 10px; margin-top: 20px; }
.contact-actions .btn { width: 100%; }
.contact-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; font-size: 15px; font-weight: 600; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-links span { color: var(--ink-2); font-weight: 500; }

.footer { padding: 28px 20px 8px; text-align: center; font-size: 14px; color: var(--ink-2); }

/* ---------- sticky WhatsApp button (phone) ---------- */
.cta-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
	background: linear-gradient(to top, var(--paper) 72%, rgb(255 255 255 / 0));
}
.cta-bar .btn { width: 100%; min-height: 48px; border-radius: 12px; }

/* ---------- tablet ---------- */
@media (min-width: 640px) {
	.grid { grid-template-columns: repeat(3, 1fr); }
	.vcard .tag { font-size: 12px; }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
	:root { --gutter: 40px; }
	body { padding-bottom: 0; }
	.topbar { height: 80px; padding: 0 40px; max-width: 1280px; margin: 0 auto; }
	.topbar .nav { display: flex; gap: 28px; margin-left: auto; margin-right: 24px; font-weight: 600; font-size: 15px; }
	.topbar .nav a { text-decoration: none; color: var(--ink-2); }
	.topbar .nav a:hover { color: var(--ink); }
	.wa-btn { display: none; }
	.topbar-cta { display: inline-flex; min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
	.hero, .tabs, .grid, .sec-head, .fleet-note, .know, .contact, .footer { max-width: 1280px; margin-left: auto; margin-right: auto; }
	.hero { padding: 0 40px; }
	.hero-photo { height: 420px; border-radius: var(--r-xl); }
	.hero-copy { left: 88px; top: 120px; max-width: 560px; }
	.hero-copy h1 { font-size: 56px; }
	.hero-copy p { font-size: 18px; margin-top: 14px; }
	.statusbar { margin: -36px 88px 0; min-height: 72px; padding: 0 12px 0 24px; border-radius: 18px; gap: 14px; }
	.statusbar .when { font-size: 18px; }
	.statusbar .when span { font-size: 16px; margin-left: 4px; }
	.statusbar .btn { display: inline-flex; min-height: 52px; padding: 0 28px; font-size: 17px; }
	.tabs { padding: 28px 40px 0; gap: 12px; justify-content: flex-start; }
	.tab { font-size: 16px; padding: 0 12px; }
	.fleet-note { padding: 12px 40px 0; font-size: 15px; }
	.sec-head { padding: 40px 40px 16px; }
	.sec-head h2 { font-size: 30px; }
	.sec-head p { font-size: 15px; }
	.grid { grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 40px; }
	.vcard .ph { aspect-ratio: 4 / 3; }
	.vcard .ph img { padding: 12px 7% 20px; }
	.vcard .tag { height: 28px; font-size: 13px; left: 12px; bottom: -12px; padding: 0 12px 0 10px; }
	.vcard .body { padding: 24px 14px 16px; }
	.vcard .price { font-size: 22px; }
	.know { padding: 64px 40px 0; }
	.know h2 { font-size: 30px; }
	.facts { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
	.fact { padding: 18px 20px; }
	.contact { margin-top: 64px; padding: 40px 48px; display: grid; grid-template-columns: 1fr auto; gap: 8px 48px; align-items: center; width: calc(100% - 80px); max-width: 1200px; }
	.contact h2 { font-size: 34px; }
	.contact-actions { margin-top: 0; grid-column: 2; grid-row: 1 / span 2; min-width: 300px; }
	.contact-links { margin-top: 4px; }
	.footer { padding: 48px 40px 40px; }
	.cta-bar { display: none; }
}
