/*
Theme Name: Kythnos Guide
Theme URI: https://www.wheretostayinkythnos.com
Author: Where to Stay in Kythnos
Description: Minimal island travel guide theme for Where to Stay in Kythnos. Multilingual (Polylang), schema markup, beach and hotel templates.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: kythnos-guide
*/

:root {
	--paper: #faf8f4;
	--sand: #efe9df;
	--line: #e2dbcf;
	--ink: #1d2a33;
	--muted: #5d6b74;
	--sea: #1f5f8b;
	--sea-dark: #164769;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1160px;
	--read: 700px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 18px/1.7 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sea-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin: 1.8em 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-top: 0; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p, ul, ol { margin: 0 0 1.1em; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 99; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read); margin: 0 auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-size: 1.4rem; color: var(--ink); }
.brand-text small { font-family: var(--sans); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; font: inherit; font-size: .85rem; color: var(--ink); cursor: pointer; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: .92rem; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-page-ancestor > a { color: var(--sea); }
.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch .current-lang a { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; }
	.main-nav.open { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
	.main-nav ul { flex-direction: column; gap: 12px; }
}

/* Breadcrumbs */
.crumbs { font-size: .8rem; color: var(--muted); margin: 26px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--sea); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* Page head */
.page-head { padding: 36px 0 10px; }
.eyebrow { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); margin: 0 0 14px; }
.standfirst { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--muted); max-width: 760px; }
.byline { font-size: .82rem; color: var(--muted); margin-top: 18px; }
.hero-img { margin: 28px 0 0; }
.hero-img img { width: 100%; max-height: 620px; object-fit: cover; }
.hero-img figcaption, .wp-element-caption { font-size: .78rem; color: var(--muted); margin-top: 8px; }

/* Content */
.entry { padding: 20px 0 60px; }
.entry > * { max-width: var(--read); margin-left: auto; margin-right: auto; }
.entry > .alignwide { max-width: var(--wrap); }
.entry > .alignfull { max-width: none; }
.entry figure { margin: 2em auto; }
.entry blockquote { border-left: 2px solid var(--sea); margin: 1.6em auto; padding: .2em 0 .2em 1.2em; font-family: var(--serif); font-size: 1.2rem; }
.entry table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.entry .tip, .entry .note-box { background: var(--sand); padding: 16px 20px; border-radius: 4px; }
.entry details { border-top: 1px solid var(--line); padding: 14px 0; }
.entry details summary { cursor: pointer; font-family: var(--serif); font-size: 1.12rem; }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 3em auto; }

/* Buttons and CTAs */
.btn, .wp-block-button__link {
	display: inline-block; background: var(--ink); color: #fff !important; text-decoration: none;
	padding: 12px 22px; border-radius: 2px; font-size: .9rem; letter-spacing: .02em;
}
.btn:hover, .wp-block-button__link:hover { background: var(--sea); }
.btn-line { background: transparent; color: var(--ink) !important; border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff !important; }
.cta-box { background: var(--sand); padding: 28px; margin: 2.5em auto; border-radius: 4px; }
.cta-box h2, .cta-box h3 { margin-top: 0; }
.cta-box .btn { margin: 6px 8px 0 0; }
.disclosure { font-size: .82rem; color: var(--muted); font-style: italic; border-bottom: 1px solid var(--line); padding-bottom: 14px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; margin: 30px auto 50px; }
.card { text-decoration: none; color: var(--ink); display: block; }
.card .ph { aspect-ratio: 4/3; background: var(--sand); overflow: hidden; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .ph img { transform: scale(1.03); }
.card .ph-mark { font-family: var(--serif); font-size: 2.2rem; color: #c9bfae; }
.card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.card:hover h3 { color: var(--sea); }
.card p { font-size: .92rem; color: var(--muted); margin: 0; }
.card .meta { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sea); margin-bottom: 6px; }

/* Fact box (beach + hotel) */
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.layout-side .entry > * { margin-left: 0; }
.facts { position: sticky; top: 92px; border-top: 2px solid var(--ink); padding-top: 16px; font-size: .9rem; margin-top: 20px; }
.facts h2 { font-size: 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.facts dl { margin: 0 0 18px; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 12px; }
.facts dd { margin: 2px 0 0; }
.facts .btn { width: 100%; text-align: center; margin-top: 6px; }
@media (max-width: 900px) {
	.layout-side { grid-template-columns: 1fr; gap: 0; }
	.facts { position: static; }
}

/* Hotel page */
.hotel-head { text-align: center; padding: 40px 0 0; }
.hotel-head .standfirst { margin: 0 auto; }
.hotel-head .rating { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.verdict { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin: 2em 0; font-family: var(--serif); font-size: 1.2rem; }
.verdict strong { display: block; font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); margin-bottom: 6px; font-weight: 600; }

/* Home */
.home-hero { padding: 64px 0 30px; position: relative; }
.home-hero.has-img { min-height: 78vh; display: flex; align-items: flex-end; padding: 0; color: #fff; }
.home-hero.has-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,22,32,.78) 0%, rgba(8,22,32,.25) 45%, rgba(8,22,32,0) 70%); }
.home-hero.has-img .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 60px; }
.home-hero.has-img h1 { color: #fff; max-width: 900px; }
.home-hero.has-img .standfirst { color: rgba(255,255,255,.92); }
.home-hero.has-img .eyebrow { color: #efd7a6; }
.hero-btns { margin-top: 26px; }
.hero-btns .btn { background: #fff; color: var(--ink) !important; margin: 0 8px 8px 0; }
.hero-btns .btn:hover { background: #efd7a6; }
.hero-btns .btn-line { background: transparent; border: 1px solid rgba(255,255,255,.85); color: #fff !important; }
.home-updated { margin: 18px 0 0; }
.entry > .tiles, .entry > .cards, .entry > .kg-wide { max-width: var(--wrap); }
.entry h2[id] { scroll-margin-top: 96px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 26px auto 50px; }
.tile { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; color: #fff; text-decoration: none; background: var(--sea); border-radius: 2px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,22,32,.8), rgba(8,22,32,0) 58%); }
.tile span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.tile strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.15; color: #fff; }
.tile em { display: block; font-style: normal; font-size: .82rem; opacity: .9; margin-top: 4px; color: #fff; }
.tiles.plan .tile { aspect-ratio: 16/9; }
.tile.no-img { background: var(--ink); }
.tile.no-img:nth-child(2) { background: var(--sea); }
.tile.no-img:nth-child(3) { background: #7a5a34; }
.entry .home-intro { font-family: var(--serif); font-size: 1.3rem; line-height: 1.6; margin-top: 24px; }
.card .ph { background: linear-gradient(160deg, #2f93b5, #1b5a84); }
.card .ph-mark { color: rgba(255,255,255,.55); font-size: 3rem; }
.entry > .wp-block-image { max-width: var(--read); }
.entry > .wp-block-gallery { max-width: var(--read); margin: 26px 0; }
.entry .wp-block-gallery figcaption { font-size: .72rem; }
.photo-credit { font-size: .8rem; color: var(--muted); }
.entry > h2.wp-block-heading:first-of-type { margin-top: 1.2em; }
.kg-btn-row { margin: 1.4em auto 2.4em; }
.entry > .kg-carousel { max-width: var(--wrap); margin: 20px auto 50px; }
.kg-car-nav { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.kg-car-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.05rem; cursor: pointer; }
.kg-car-nav button:hover { border-color: var(--ink); }
.kg-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 3); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.kg-track::-webkit-scrollbar { display: none; }
.kg-track > .card { scroll-snap-align: start; }
@media (max-width: 900px) { .kg-track { grid-auto-columns: 78%; gap: 16px; } }
.lang-switch img { display: inline-block; vertical-align: -1px; margin-right: 4px; width: 16px; height: 11px; }
.home-hero { padding: 64px 0 30px; }
.home-hero h1 { max-width: 880px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 60px auto 0; max-width: var(--wrap); }
.section-title h2 { margin: 0; }
.section-title a { font-size: .85rem; }

/* Contact form */
.kg-form { display: grid; gap: 14px; max-width: var(--read); margin: 0 auto; }
.kg-form label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.kg-form input, .kg-form textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid var(--line); background: #fff; border-radius: 2px; }
.kg-form .hp { position: absolute; left: -9999px; }
.kg-notice { padding: 14px 18px; background: var(--sand); max-width: var(--read); margin: 0 auto 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; font-size: .88rem; color: var(--muted); margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--sea); }
.site-footer .small { margin-top: 30px; font-size: .78rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
