/*
Theme Name: Pattaya Water Villa
Description: A child theme of twentytwentyfive, scaffolded by Studio Code.
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pattaya-water-villa
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

:root {
	--villa-ivory: var(--wp--preset--color--ivory);
	--villa-white: var(--wp--preset--color--white);
	--villa-ink: var(--wp--preset--color--ink);
	--villa-lagoon: var(--wp--preset--color--lagoon);
	--villa-mint: var(--wp--preset--color--mint);
	--villa-sand: var(--wp--preset--color--sand);
	--villa-coral: var(--wp--preset--color--coral);
	--villa-muted: var(--wp--preset--color--muted);
	--villa-shadow: 0 24px 70px rgba(22, 51, 46, .12);
}

.wp-site-blocks > * + * { margin-block-start: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* === header === */
.villa-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding-block: .8rem;
	background: rgba(247, 244, 236, .94);
	border-bottom: 1px solid rgba(22, 51, 46, .1);
	backdrop-filter: blur(16px);
}
.villa-header-inner { min-height: 52px; align-items: center; }
.villa-brand { display: flex; align-items: center; }
.villa-brand a { display: block; line-height: 0; }
.villa-brand img { height: 60px; width: auto; display: block; }
.villa-nav { font-size: .98rem; font-weight: 700; letter-spacing: .025em; }
.villa-nav a {
	color: var(--villa-ink);
	text-decoration: none;
	padding: .55rem 1.1rem;
	border-radius: 999px;
	background: rgba(22,51,46,.06);
	transition: background-color .2s ease, color .2s ease;
}
.villa-nav a:hover { color: var(--villa-white); background: var(--villa-coral); }
.header-actions { align-items: center; gap: .9rem; }
.header-book .wp-element-button { padding: .72rem 1.15rem; }
.wc-block-mini-cart__button { color: var(--villa-ink); }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--villa-ivory) !important;
	color: var(--villa-ink) !important;
	padding: 2rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
}

/* === hero === */
.villa-hero { color: var(--villa-white); }
.villa-hero .wp-block-cover__image-background { object-position: center 54%; }
.hero-content { margin-inline: 0 !important; }
.hero-content h1 {
	max-width: 10ch;
	margin-block: .22em .08em;
	letter-spacing: -.045em;
	text-wrap: balance;
}
.hero-tagline { max-width: 16ch; margin-block: 0 .5rem; color: var(--villa-white); }
.hero-copy { max-width: 650px; margin-block: 0 1.5rem; color: rgba(255,255,255,.9); }
.eyebrow,
.section-kicker {
	margin: 0;
	color: var(--villa-coral);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .15em;
	text-transform: uppercase;
}
.eyebrow {
	padding: .5rem .85rem;
	color: var(--villa-ink);
	background: var(--villa-sand);
	border-radius: 999px;
}
.hero-actions { gap: .7rem; }
.villa-hero .is-style-villa-outline .wp-element-button {
	color: var(--villa-white);
	background: transparent;
	border: 1px solid rgba(255,255,255,.72);
}
.villa-hero .is-style-villa-outline .wp-element-button:hover { background: var(--villa-white); color: var(--villa-ink); }
.hero-facts { padding-block: 1.25rem; }
.hero-facts .wp-block-columns { align-items: center !important; gap: 1rem; }
.fact-line, .price-line { margin: 0; }
.fact-line span { padding-inline: .5rem; color: var(--villa-sand); }
.price-line { color: rgba(255,255,255,.76); }
.price-line strong { color: var(--villa-white); font-size: 1.08rem; }

/* === sections === */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-heading { margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-heading h2,
.villa-intro h2,
.entire-villa h2,
.location-card h2,
.contact-section h2,
.notes-section h2 { margin-block: .3rem 1.2rem; letter-spacing: -.03em; text-wrap: balance; }
.section-lead { max-width: 560px; margin: 0; color: var(--villa-muted); }
.split-heading { align-items: flex-end; gap: 2rem; }
.centered-heading { text-align: center; }
.intro-grid { gap: clamp(2.5rem, 7vw, 7rem); }
.is-style-villa-photo img {
	border-radius: 28px;
	box-shadow: var(--villa-shadow);
}
.intro-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.pool-section { background: linear-gradient(180deg, var(--villa-ivory) 0%, var(--villa-white) 100%); }
.pool-photo img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; border-radius: 34px; }
.entire-villa { overflow: hidden; }
.villa-offer-grid { gap: clamp(2.5rem, 7vw, 6rem); }
.offer-photo img { min-height: 560px; object-fit: cover; }
.light-kicker { color: var(--villa-sand); }
.offer-price { margin-block: .4rem 1rem; color: var(--villa-sand); font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1; }
.offer-price span { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.offer-clarity { padding: 1rem 1.15rem; background: rgba(255,255,255,.1); border-left: 3px solid var(--villa-sand); }
.check-list { padding-left: 1.2rem; }
.check-list li { margin-bottom: .45rem; }
.breakfast-notice { margin-top: 1.5rem; padding: 1.2rem 1.5rem; border-radius: 18px; }
.breakfast-notice p { margin: 0; }
.location-grid { gap: 0; }
.location-card,
.map-panel { min-height: 500px; padding: clamp(2rem, 5vw, 4.5rem); border-radius: 28px 0 0 28px; }
.map-panel {
	background-color: var(--villa-mint);
	padding: 0;
	overflow: hidden;
	background-size: 36px 36px, 120px 120px;
	border-radius: 0 28px 28px 0;
}
.map-embed { width: 100%; height: 100%; min-height: inherit; }
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 500px; border: 0; }
.notes-grid { gap: clamp(2rem, 8vw, 8rem); }
.notice-list { margin: 0; padding: 0; list-style: none; }
.notice-list li { padding: .72rem 0 .72rem 1.65rem; border-bottom: 1px solid rgba(22,51,46,.18); position: relative; }
.notice-list li::before { content: "✓"; position: absolute; left: 0; color: var(--villa-lagoon); font-weight: 900; }

/* === cards === */
.facility-grid { margin-top: clamp(2.5rem, 5vw, 5rem); gap: 1rem; }
.is-style-villa-card {
	background: var(--villa-white);
	border: 1px solid rgba(22,51,46,.1);
	border-radius: 24px;
	box-shadow: 0 16px 45px rgba(22,51,46,.07);
}
.facility-card { min-height: 145px; padding: 1.4rem; }
.facility-card h3 { margin: .35rem 0 0; font-size: 1.25rem; }
.facility-number { margin: 0; color: var(--villa-coral); font-size: .8rem; font-weight: 800; letter-spacing: .12em; }
.room-grid { gap: 1.4rem; }
.room-card { height: 100%; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.room-card:hover { transform: translateY(-6px); box-shadow: 0 28px 70px rgba(22,51,46,.14); }
.room-photo { margin: 0; }
.room-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room-card-body { padding: 1.4rem; }
.room-card-body h3 { margin: 0; font-size: 2rem; }
.room-price { margin: 0; color: var(--villa-lagoon); }
.bath-badge { padding: .55rem .7rem; border-radius: 10px; font-size: .82rem; }
.bath-badge.shared { color: var(--villa-ink); background: var(--villa-mint); }
.bath-badge.private { color: var(--villa-white); background: var(--villa-lagoon); }
.featured-room { border: 2px solid var(--villa-lagoon); }
.room-actions { gap: .55rem; margin-top: 1.2rem; }
.room-actions .wp-element-button { padding: .72rem .9rem; font-size: .78rem; }
.is-style-villa-outline .wp-element-button {
	color: var(--villa-ink);
	background: transparent;
	border: 1px solid currentColor;
}
.is-style-villa-outline .wp-element-button:hover { color: var(--villa-white); background: var(--villa-ink); }
.bathroom-note { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--villa-mint); border-radius: 16px; }
.bathroom-note p { margin: 0; }
.pricing-table { overflow: hidden; border-radius: 24px; box-shadow: var(--villa-shadow); }
.pricing-table table { margin: 0; border: 0; background: var(--villa-white); }
.pricing-table th { padding: 1.2rem 1.4rem; color: var(--villa-white); background: var(--villa-ink); border-color: rgba(255,255,255,.14); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; }
.pricing-table td { padding: 1.2rem 1.4rem; border-color: rgba(22,51,46,.1); }
.pricing-table tbody tr:hover { background: var(--villa-mint); }

/* === form === */
.contact-grid { gap: clamp(2.5rem, 7vw, 6rem); }
.direct-contact { margin-top: 2rem; padding: 1.4rem; background: rgba(255,255,255,.45); border-radius: 20px; }
.direct-contact p { margin-top: 0; font-size: 1.15rem; }
.direct-contact a { font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.booking-form-card { padding: clamp(1.4rem, 4vw, 2.5rem); border-radius: 28px; box-shadow: var(--villa-shadow); }
.booking-form { gap: 1rem; }
.booking-form label { color: var(--villa-ink); font-size: .82rem; font-weight: 800; }
.booking-form input,
.booking-form select,
.booking-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .85rem 1rem;
	color: var(--villa-ink);
	background: var(--villa-ivory);
	border: 1px solid rgba(22,51,46,.2) !important;
	border-radius: 12px;
	font: inherit;
}
.booking-form textarea { min-height: 120px; resize: vertical; }
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus { outline: 3px solid rgba(12,107,102,.2); border-color: var(--villa-lagoon) !important; }
.booking-form .wp-element-button { width: 100%; justify-content: center; cursor: pointer; }
/* === footer === */
.villa-footer { padding-block: clamp(4rem, 8vw, 7rem) 2rem; }
.villa-footer .wp-block-columns { gap: clamp(2rem, 6vw, 6rem); }
.footer-logo { margin-bottom: 1.1rem; width: fit-content; }
.footer-logo img { height: 52px; width: auto; display: block; filter: drop-shadow(0 0 3px rgba(247,244,236,.65)) drop-shadow(0 0 10px rgba(247,244,236,.4)); }
.villa-footer h3 { color: var(--villa-sand); font-size: 1rem; font-family: var(--wp--preset--font-family--body); text-transform: uppercase; letter-spacing: .1em; }
.villa-footer p { color: rgba(255,255,255,.72); }
.villa-footer a { color: var(--villa-white); }
.footer-tagline { color: var(--villa-sand) !important; }
.footer-links { gap: .5rem; }
.footer-links a { text-decoration: none; }
.footer-rule { margin-block: 3rem 1.5rem; opacity: .35; }

/* === responsive === */
@media (max-width: 1100px) {
	.room-grid { flex-wrap: wrap !important; }
	.room-grid > .wp-block-column { flex-basis: calc(50% - 1rem) !important; }
	.room-grid > .wp-block-column:last-child { flex-basis: 100% !important; }
	.featured-room .room-photo img { aspect-ratio: 16 / 7; }
}

@media (max-width: 781px) {
	.villa-header { padding-block: .55rem; }
	.header-book { display: none; }
	.villa-nav { display: flex; }
	.villa-hero { min-height: 680px !important; }
	.villa-hero .wp-block-cover__image-background { object-position: 58% center; }
	.hero-content h1 { max-width: 9ch; }
	.hero-actions { align-items: stretch; }
	.hero-actions .wp-block-button { width: 100%; }
	.hero-actions .wp-element-button { width: 100%; box-sizing: border-box; text-align: center; }
	.hero-facts { padding-block: 1.4rem; }
	.fact-line, .price-line { text-align: left !important; }
	.section { padding-block: 4.5rem; }
	.split-heading { align-items: flex-start; }
	.facility-grid { display: grid; grid-template-columns: 1fr 1fr; }
	.room-grid > .wp-block-column { flex-basis: 100% !important; }
	.featured-room .room-photo img,
	.room-photo img { aspect-ratio: 4 / 3; }
	.offer-photo img { min-height: 360px; }
	.location-card { min-height: auto; padding: 2rem; border-radius: 24px; margin-bottom: 1rem; }
	.map-panel { min-height: auto; padding: 0; border-radius: 24px; }
	.map-embed iframe { min-height: 320px; }
	.pricing-table { overflow-x: auto; }
	.pricing-table table { min-width: 620px; }
}

@media (max-width: 480px) {
	.facility-grid { grid-template-columns: 1fr; }
	.facility-card { min-height: auto; }
	.villa-brand a { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.room-card:hover { transform: none; }
}

