/*
Theme Name: Mini Valley
Theme URI: https://minivalley.co.za/
Author: Mini Valley Estate
Description: A simple one-page block theme for Mini Valley Estate — large photos, a gallery and WhatsApp-first contact details.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mini-valley
*/

:root {
	--chalk: #F4F5F1;
	--surface: #FFFFFF;
	--ink: #1C2420;
	--ink-soft: #4E5A52;
	--mute: #8C8878;
	--line: #DCDFD8;
	--sage: #3F5A4A;
	--sage-deep: #2C4033;
	--mint: #CADED5;
	--mint-deep: #A7C4B7;
	--display: "Bodoni Moda", Didot, "Bodoni MT", Georgia, serif;
	--sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--pad: clamp(1.25rem, 5vw, 4.5rem);
	--head-h: 70px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--chalk);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
.wp-site-blocks { padding: 0; }

.wrap { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: var(--pad); padding-right: var(--pad); box-sizing: border-box; width: 100%; }

.eyebrow { font-size: .688rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--sage); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.wp-block-image { margin: 0; }

section[id] { scroll-margin-top: var(--head-h); }

/* ---------- buttons ---------- */
.wp-block-buttons { gap: .75rem; }
.wp-block-button .wp-block-button__link,
.head .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	min-height: 46px; padding: .85rem 1.4rem; border-radius: 0; box-sizing: border-box;
	font-family: var(--sans); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2;
	background: var(--sage); color: #fff; border: 1px solid var(--sage); text-decoration: none; white-space: nowrap;
}
.wp-block-button .wp-block-button__link:hover,
.head .btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.wp-block-button.btn-light .wp-block-button__link { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.wp-block-button.btn-light .wp-block-button__link:hover { background: #fff; color: var(--sage-deep); border-color: #fff; }
.wp-block-button.mv-wa .wp-block-button__link::before {
	content: ""; flex: none; width: 18px; height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-linejoin='round'%3E%3Cpath stroke-width='1.6' d='M3.5 20.5l1.3-4.2A8.5 8.5 0 1112 20.5a8.4 8.4 0 01-4.2-1.1z'/%3E%3Cpath stroke-width='1.3' d='M9 8.8c.2 2.8 3.1 5.8 6 6l1-1.4-1.9-1-1 .8a4.5 4.5 0 01-2.5-2.5l.8-1-1-1.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- header ---------- */
.head { position: sticky; top: 0; z-index: 30; background: rgba(244,245,241,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .head { top: 32px; }
@media (max-width: 782px) { .admin-bar .head { top: 46px; } }
.head .wrap { display: flex; align-items: center; gap: 1.5rem; height: var(--head-h); }
.head .mark { font-family: var(--display); font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; line-height: 1.1; }
.head .mark small { display: block; font-family: var(--sans); font-size: .56rem; letter-spacing: .24em; color: var(--mute); margin-top: .15rem; }
.head nav { margin-left: auto; display: flex; gap: 1.5rem; align-items: center; }
.head nav a.navlink { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.head nav a.navlink:hover { color: var(--ink); }
.head .btn svg { flex: none; }

/* ---------- hero & photo band (shared) ---------- */
.mv-hero, .mv-band { position: relative; display: flex; align-items: flex-end; overflow: hidden; background: #1C2420; margin: 0; }
.mv-hero { height: min(86vh, 780px); min-height: 520px; }
.mv-band { height: min(70vh, 620px); min-height: 380px; }
.mv-hero .mv-cover-img, .mv-band .mv-cover-img { position: absolute; inset: 0; margin: 0; }
.mv-hero .mv-cover-img img, .mv-band .mv-cover-img img { width: 100%; height: 100%; object-fit: cover; }
.mv-hero .mv-cover-img img { object-position: center 16%; }
.mv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,17,14,.35) 0%, rgba(12,17,14,0) 35%, rgba(12,17,14,.72) 100%); pointer-events: none; }
.mv-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,17,14,0) 45%, rgba(12,17,14,.65) 100%); pointer-events: none; }
.mv-hero > .wrap, .mv-band > .wrap { position: relative; z-index: 1; }
.mv-hero > .wrap { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.mv-band > .wrap { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.mv-hero .eyebrow { color: rgba(255,255,255,.85); }
.mv-hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.04; margin-top: .6rem; }
.mv-hero .mv-hero-sub { color: rgba(255,255,255,.92); font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 36ch; margin-top: 1rem; }
.mv-hero .cta { margin-top: 1.8rem; }
.mv-band p { font-family: var(--display); color: #fff; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.2; max-width: 22ch; }

/* ---------- intro ---------- */
.mv-intro { background: var(--surface); padding: clamp(3.5rem, 8vw, 6.5rem) 0; margin: 0; }
.mv-intro-cols { gap: clamp(2rem, 5vw, 5rem) !important; margin-bottom: 0; }
.mv-intro-cols > .wp-block-column:last-child { flex-grow: 1.1 !important; }
.mv-intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.12; margin-top: .7rem; }
.mv-intro .lede { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; margin-top: 1.2rem; max-width: 44ch; }
.mv-intro .occasions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.mv-intro .occasions li { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-deep); background: var(--mint); padding: .45rem .8rem; }
.mv-intro .mv-intro-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- gallery ---------- */
.mv-gallery { background: var(--chalk); padding: clamp(3.5rem, 8vw, 6.5rem) 0; margin: 0; }
.mv-gallery h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.12; margin-top: .7rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.wp-block-gallery.mv-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, 1vw, .9rem) !important; margin: 0; }
.wp-block-gallery.mv-grid figure.wp-block-image { width: 100% !important; margin: 0 !important; }
.wp-block-gallery.mv-grid figure.wp-block-image img { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover !important; }

/* ---------- contact ---------- */
.mv-contact { background: var(--sage-deep); color: #EAEFE9; padding: clamp(3.5rem, 8vw, 6.5rem) 0; margin: 0; }
.mv-contact .eyebrow { color: var(--mint-deep); }
.mv-contact h2 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; margin-top: .7rem; }
.mv-contact .sub { color: #C2CFC4; font-size: 1.08rem; margin-top: 1rem; max-width: 40ch; }
.mv-contact .ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.14); margin-top: clamp(2rem, 4vw, 3rem); border: 1px solid rgba(255,255,255,.14); }
.mv-contact .way { display: flex; gap: 1rem; align-items: flex-start; padding: clamp(1.3rem, 2.5vw, 2rem); background: var(--sage-deep); color: #fff; text-decoration: none; }
.mv-contact a.way:hover { background: #34493B; }
.mv-contact .way--wa { grid-column: 1 / -1; }
.mv-contact .way svg { flex: none; margin-top: .2rem; color: var(--mint); }
.mv-contact .way .k { font-size: .688rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mint-deep); }
.mv-contact .way .v { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.35; margin-top: .25rem; overflow-wrap: break-word; }
.mv-contact .way--wa .v { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.mv-contact .way .hint { font-size: .85rem; color: #AFC0B4; margin-top: .3rem; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #8F9A92; padding: 1.8rem 0; font-size: .8rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }

/* ---------- other pages (fallback template) ---------- */
.mv-page { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.mv-page .wp-block-post-title { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; margin-bottom: 1.5rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
	.wp-block-gallery.mv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mv-contact .ways { grid-template-columns: 1fr; }
	.head nav a.navlink { display: none; }
}
@media (max-width: 520px) {
	.head .btn { padding: .6rem .8rem; font-size: .65rem; }
	.mv-contact .way .v, .mv-contact .way--wa .v { font-size: 1.05rem; }
}
