/* ============================================================
   CI Thai — Water & Land Contact Festival  ·  v2
   ============================================================ */

:root {
	--cithai-sea: #1E8FA6;
	--cithai-sea-dark: #16788C;
	--cithai-sky: #4FB6DC;
	--cithai-sand: #EADBBC;
	--cithai-sand-soft: #F6EEDF;
	--cithai-cream: #FCFAF5;
	--cithai-terra: #C6573B;
	--cithai-terra-dark: #A8462E;
	--cithai-ink: #223037;
	--cithai-body: #44535b;

	--theme-palette-color-1: #1E8FA6;
	--theme-palette-color-2: #16788C;
	--theme-palette-color-3: #223037;
	--theme-palette-color-4: #44535b;
	--theme-palette-color-5: #e6ddcb;
	--theme-palette-color-6: #F6EEDF;
	--theme-palette-color-7: #FCFAF5;
	--theme-palette-color-8: #ffffff;

	--theme-link-initial-color: var(--cithai-sea);
	--theme-link-hover-color: var(--cithai-sea-dark);
	--theme-text-color: var(--cithai-body);
	--theme-headings-color: var(--cithai-ink);
	--theme-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--theme-content-width: 1200px;
	--theme-normal-container-max-width: 1120px;
	--theme-narrow-container-max-width: 760px;
}

/* ---------- Base typography ---------- */
body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--cithai-body);
	background-color: var(--cithai-cream);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.entry-title, .ct-page-title {
	font-family: 'Spectral', Georgia, serif;
	color: var(--cithai-ink);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.7rem); }
h2 { font-size: clamp(2rem, 4.2vw, 2.95rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1.05em; }
a { color: var(--cithai-sea); text-underline-offset: 2px; }
a:hover { color: var(--cithai-sea-dark); }

/* ---------- Header: logo + wordmark on one line ---------- */
.ct-header [data-id="logo"] {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 12px;
}
.ct-header [data-id="logo"] .site-logo-container { display: inline-flex; margin: 0; }
.ct-header [data-id="logo"] img.default-logo,
.ct-header [data-id="logo"] .site-logo-container img {
	max-height: 46px !important;
	width: auto !important;
	height: auto !important;
}
.ct-header [data-id="logo"] .site-title-container { margin: 0; }
.ct-header [data-id="logo"] img.default-logo,
.ct-header [data-id="logo"] .site-logo-container img { max-height: 36px !important; }
.ct-header [data-id="logo"] .site-title {
	--theme-font-size: 17px;
	font-family: 'Inter', sans-serif !important;
	font-weight: 600 !important;
	font-size: 17px !important;
	line-height: 1.2 !important;
	color: var(--cithai-ink) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.ct-header [data-id="logo"] .site-title a { color: var(--cithai-ink) !important; }
@media (max-width: 500px) {
	.ct-header [data-id="logo"] .site-title { font-size: 14px !important; }
	.ct-header [data-id="logo"] img.default-logo { max-height: 30px !important; }
}

/* Remove Blocksy content vertical spacing on pages (kills the gap above full-width hero) */
body.page #main .ct-container-full { padding-top: 0 !important; padding-bottom: 0 !important; }
body.page #main .ct-container-full > .entry-content { margin-top: 0 !important; }

/* Footer copyright override */
.ct-footer [data-id="copyright"] { font-size: 0 !important; }
.ct-footer [data-id="copyright"] * { font-size: 0 !important; }
.ct-footer [data-id="copyright"]::after {
	content: "Copyright © 2012–2027";
	font-size: 15px;
	font-family: 'Inter', sans-serif;
	color: var(--cithai-body);
}

/* ---------- Utility ---------- */
.eyebrow {
	font-family: 'Inter', sans-serif !important;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--cithai-sea);
	margin-bottom: 0.3em !important;
}
.lede { font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.6; color: #3a474e; }
.muted { color: #6a767c; font-size: 0.92rem; }
.section-sand { background-color: var(--cithai-sand-soft) !important; }

/* Tight section rhythm */
.cithai-section {
	padding-top: clamp(1.4rem, 2.8vw, 2.2rem) !important;
	padding-bottom: clamp(1.4rem, 2.8vw, 2.2rem) !important;
}
.cithai-section > .wp-block-heading:first-child,
.cithai-section > .eyebrow:first-child { margin-top: 0; }
.cithai-section > *:last-child { margin-bottom: 0; }

/* Cards */
.card {
	background: #fff;
	border: 1px solid #ece3d2;
	border-radius: 16px;
	padding: 1.5rem 1.6rem;
	box-shadow: 0 10px 30px -22px rgba(34,48,55,0.35);
	height: 100%;
}
.card h3 { margin-top: 0; }

/* ---------- Buttons ---------- */
.wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link {
	background-color: var(--cithai-terra);
	color: #fff !important;
	border-radius: 999px;
	padding: 0.85em 2em;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 1rem;
	border: 2px solid var(--cithai-terra);
	transition: all 0.2s ease;
	box-shadow: 0 14px 28px -16px rgba(198,87,59,0.85);
}
.wp-block-button__link:hover {
	background-color: var(--cithai-terra-dark);
	border-color: var(--cithai-terra-dark);
	color: #fff !important;
	transform: translateY(-2px);
}
/* Outline / secondary — white on photos */
.wp-block-button.is-style-outline .wp-block-button__link,
:root :where(.wp-block-button.is-style-outline > .wp-block-button__link) {
	background: transparent;
	color: #fff !important;
	border: 2px solid rgba(255,255,255,0.9);
	box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255,255,255,0.14);
	border-color: #fff;
	color: #fff !important;
}

/* ---------- Hero ---------- */
.wp-block-cover.cithai-hero {
	min-height: 82vh !important;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.wp-block-cover.cithai-hero .wp-block-cover__inner-container {
	max-width: 880px; margin-left: auto; margin-right: auto; text-align: center;
}
.wp-block-cover.cithai-hero h1 {
	color: #fff;
	font-size: clamp(2.6rem, 6.5vw, 4.6rem);
	text-shadow: 0 2px 34px rgba(0,0,0,0.38);
	margin-bottom: 0.25em;
}
.wp-block-cover.cithai-hero p { color: rgba(255,255,255,0.96); }
.hero-dates {
	font-family: 'Inter', sans-serif !important;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 600;
	font-size: clamp(0.82rem, 1.3vw, 1rem);
	color: #fff;
	text-align: center !important;
	width: 100%;
	margin-bottom: 0.7em !important;
}

/* ---------- Full-width photo band ---------- */
.wp-block-cover.cithai-band {
	min-height: 360px !important;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.wp-block-cover.cithai-band .wp-block-cover__inner-container {
	max-width: 720px; margin-left: auto; margin-right: auto; text-align: center;
}
.wp-block-cover.cithai-band h1,
.wp-block-cover.cithai-band h2 { color: #fff; margin-bottom: 0.2em; }
.wp-block-cover.cithai-band p { color: rgba(255,255,255,0.96); }

/* Center buttons inside any cover reliably + equal-sized buttons */
.wp-block-cover .wp-block-buttons { justify-content: center !important; width: 100%; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.wp-block-cover .wp-block-button__link {
	min-width: 220px;
	text-align: center;
	justify-content: center;
	padding: 0.92em 1.8em !important;
	font-size: 1rem !important;
}

/* ---------- Preview grid (home "What awaits you") ---------- */
.preview-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.6rem;
	margin-top: 1.4rem;
}
.preview-grid > * { max-width: none !important; margin: 0 !important; }
.preview-cell {
	background: #fff;
	border: 1px solid #ece3d2;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 14px 34px -26px rgba(34,48,55,0.4);
	display: flex;
	flex-direction: column;
}
.preview-cell .wp-block-image { margin: 0; }
.preview-cell img {
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 210px;
	object-fit: cover;
	border-radius: 0;
	display: block;
}
.preview-cell .preview-body { padding: 1.2rem 1.3rem 1.4rem; }
.preview-cell h3 { margin: 0 0 0.4rem; font-size: 1.5rem; }
.preview-cell p { margin: 0 0 0.7rem; font-size: 0.98rem; color: var(--cithai-body); }
.preview-cell .preview-link { font-weight: 600; color: var(--cithai-sea); text-decoration: none; }
.preview-cell .preview-link:hover { color: var(--cithai-sea-dark); }
@media (max-width: 860px) {
	.preview-grid { grid-template-columns: 1fr; }
	.preview-cell img { max-height: 260px; }
}

/* Rounded content images */
.entry-content .wp-block-image img { border-radius: 14px; }

/* ---------- Lists ---------- */
.entry-content ul { padding-left: 1.1em; }
.entry-content li { margin-bottom: 0.4em; }

/* ---------- Teacher grid ---------- */
.teacher-card img { border-radius: 14px; aspect-ratio: 3/4; object-fit: cover; width: 100%; max-height: 420px; }
.teacher-name { font-family: 'Spectral', serif !important; font-size: 1.2rem !important; color: var(--cithai-ink); margin: 0.6rem 0 0.1rem !important; }
.teacher-role { font-size: 0.82rem !important; color: var(--cithai-sea) !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4em !important; }

/* ---------- Hide Blocksy default page-title bar ---------- */
body.page .hero-section[data-type],
body.page .page-title,
body.page header.entry-header { display: none !important; }
body.page .entry-content { margin-top: 0; }

/* ---------- Footer tidy ---------- */
.ct-footer [data-column] { font-size: 0.9rem; }

/* ---------- Mobile ---------- */
@media (max-width: 782px) {
	body { font-size: 16px; }
	.wp-block-cover.cithai-hero { min-height: 74vh !important; }
	.wp-block-cover.cithai-band { min-height: 300px !important; }
	.card { padding: 1.3rem 1.3rem; }
	.preview-card img { max-height: 220px; }
}
