/* S.A. Hotel Trat - shared stylesheet for index.html and rates-booking-form.php (2026 refresh) */

:root {
	--ink: #1f2a2e;
	--muted: #5b6b70;
	--teal: #0e6b63;
	--teal-dark: #0a4f49;
	--teal-soft: #e6f2f0;
	--sand: #f7f2ea;
	--line: #e4ddd1;
	--coral: #d4562b;
	--coral-dark: #b8461f;
	--white: #fff;
	--radius: 12px;
	--shadow: 0 6px 24px rgba(20, 40, 40, .08);
	--wrap: 1120px;
	--head: "Montserrat", "Segoe UI", Arial, sans-serif;
	--body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font: 17px/1.65 var(--body);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

h1, h2, h3 { font-family: var(--head); line-height: 1.25; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.eyebrow {
	font: 600 13px/1 var(--head);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--teal);
	margin-bottom: 12px;
}

/* ---------- buttons ---------- */

.btn {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 999px;
	font: 600 15px/1 var(--head);
	text-decoration: none;
	border: 2px solid transparent;
	transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .8); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-small { padding: 10px 18px; font-size: 14px; }

/* ---------- site header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.1; margin-right: auto; }
.brand strong { display: block; font: 700 20px var(--head); }
.brand span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--ink); text-decoration: none; font: 500 15px var(--head); }
.site-nav a:hover { color: var(--teal); }

/* ---------- hero ---------- */

.hero {
	position: relative;
	margin: 20px auto 0;
	max-width: calc(var(--wrap) - 40px);
	min-height: 460px;
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	background: var(--teal-dark) center / cover no-repeat;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(8, 34, 32, .86) 0%, rgba(8, 34, 32, .62) 45%, rgba(8, 34, 32, .12) 80%),
		linear-gradient(180deg, rgba(8, 34, 32, 0) 50%, rgba(8, 34, 32, .5) 100%);
}
.hero-text { position: relative; z-index: 1; padding: 40px; max-width: 720px; color: var(--white); }
.hero-text h1 { color: var(--white); }
.hero-text p { font-size: 19px; opacity: .95; }
.hero-text .eyebrow { color: #cdeee8; }
.hero-text h1 { text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.quote {
	display: inline-block;
	font-style: italic;
	border-left: 3px solid var(--coral);
	padding-left: 12px;
}

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section-sand { background: var(--sand); }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.lead { font-size: 19px; color: var(--muted); }

.features {
	list-style: none;
	padding: 0;
	margin: 32px 0 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.features li {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px 14px 42px;
	position: relative;
	font-weight: 600;
	font-size: 16px;
}
.features li::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	width: 14px;
	height: 8px;
	margin-top: -6px;
	border-left: 3px solid var(--teal);
	border-bottom: 3px solid var(--teal);
	transform: rotate(-45deg);
}

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 32px; }
.card {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 430 / 210; object-fit: cover; }
.card-body { padding: 22px 24px 26px; flex: 1; }
.card-body h3 { margin-bottom: 4px; }
.price { font: 700 26px var(--head); color: var(--coral); margin: 6px 0 10px; }
.price small { font: 500 14px var(--body); color: var(--muted); }
.note { color: var(--muted); font-size: 15px; margin-top: 24px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

.map {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	background: var(--teal-soft);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.links { list-style: none; padding: 0; margin: 16px 0 0; }
.links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.links li:last-child { border-bottom: 0; }

.cta {
	background: var(--teal);
	color: var(--white);
	border-radius: var(--radius);
	padding: 48px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.cta h2 { color: var(--white); margin-bottom: 6px; }
.cta p { margin: 0; opacity: .9; }

/* ---------- footer ---------- */

.site-footer { background: #142224; color: #c9d4d2; padding: 48px 0 32px; margin-top: 72px; font-size: 15px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; font-size: 14px; }

/* ---------- booking page ---------- */

.page-banner {
	margin: 20px auto 0;
	max-width: calc(var(--wrap) - 40px);
	height: 220px;
	border-radius: var(--radius);
	background: var(--teal-dark) center / cover no-repeat;
}

#mainContent { padding: 40px 0 0; }
#mainContent h1 { font-size: clamp(26px, 3.4vw, 36px); }
#mainContent h2 { font-size: 24px; margin-top: 1.6em; }
#mainContent hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

table.rates {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	margin: 20px 0 14px;
	font-size: 16px;
}
table.rates th {
	background: var(--teal);
	color: var(--white);
	font: 600 14px var(--head);
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 14px 18px;
	height: auto;
}
table.rates td { padding: 14px 18px; border-top: 1px solid var(--line); height: auto; }
table.rates td:last-child { font: 700 18px var(--head); color: var(--coral); white-space: nowrap; }
table.rates tr:nth-child(even) td { background: #fbf9f5; }
.normalheight { color: var(--muted); font-size: 15px; }

.required-note { color: var(--muted); font-size: 15px; }
.req { color: var(--coral); font-weight: 700; }

.basis {
	background: var(--sand);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 8px 28px 28px;
	margin-top: 16px;
	text-align: left;
}
.basis .bar {
	font: 600 18px var(--head);
	color: var(--teal-dark);
	margin: 24px 0 8px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--line);
}
#basicheader h2, .clr:has(#askamount) { display: none; }
.basis select[name=RoomType] { width: 100%; max-width: 360px; }

.clr { display: flex; align-items: center; gap: 16px; padding: 7px 0; }
.col-25 { width: 30%; text-align: right; font-weight: 600; font-size: 16px; color: var(--ink); }
.col-75 { width: 70%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.col-100 { width: 100%; }

.basis input[type=text], .basis input:not([type]), .basis select, .basis textarea {
	font: 16px var(--body);
	color: var(--ink);
	background: var(--white);
	border: 1px solid #cfc7b9;
	border-radius: 8px;
	padding: 9px 12px;
	min-height: 42px;
}
.basis input:focus, .basis select:focus, .basis textarea:focus {
	outline: none;
	border-color: var(--teal);
	box-shadow: 0 0 0 3px rgba(14, 107, 99, .18);
}
.input { width: 100%; max-width: 360px; }
.input-2 { flex: 1; min-width: 0; max-width: 270px; }
.textarea { width: 100%; max-width: 360px; min-height: 96px; }

#sendbutton { width: 100% !important; display: flex; justify-content: center; margin-top: 18px; }
.clr:has(#sendbutton) { justify-content: center; }
.clr:has(#sendbutton) > .col-25 { display: none; }
input[type=submit] {
	background: var(--coral);
	color: var(--white);
	border: 0;
	border-radius: 999px;
	padding: 15px 40px;
	font: 600 16px var(--head);
	cursor: pointer;
}
input[type=submit]:hover { background: var(--coral-dark); }

.textleft {
	background: #fdecea;
	border: 1px solid #f3c2bb;
	border-radius: 10px;
	padding: 12px 16px;
	margin: 12px 0;
}

/* behaviour the form's PHP output relies on */
#userid { display: none; }
.smallscreen { display: none; }
.widescreen { display: block; }
.clr.widescreen { display: flex; }
.fulltext { display: inline; }
.shorttext { display: none; }
.live-chat { margin: 12px 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
	.split, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.features { grid-template-columns: repeat(2, 1fr); }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.site-nav { display: none; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.section { padding: 52px 0; }
	.hero { margin: 0; border-radius: 0; min-height: 420px; }
	.hero-text { padding: 28px 20px; }
	.hero::after { background: linear-gradient(180deg, rgba(8, 34, 32, .55) 0%, rgba(8, 34, 32, .85) 100%); }
	.page-banner { margin: 0; border-radius: 0; height: 160px; }
	.cards { grid-template-columns: 1fr; }
	.cta { padding: 32px 24px; }
	.basis { padding: 4px 16px 20px; }
	.clr { flex-direction: column; align-items: stretch; gap: 4px; }
	.col-25, .col-75 { width: 100%; text-align: left; }
	.input, .textarea { max-width: none; }
	.smallscreen { display: block; }
	.widescreen, .clr.widescreen { display: none; }
	.clr.smallscreen { display: flex; }
	table.rates th, table.rates td { padding: 12px; }
}

@media (max-width: 380px) {
	.features { grid-template-columns: 1fr; }
	.fulltext { display: none; }
	.shorttext { display: inline; }
}
