/*
Theme Name: MCS 2026
Theme URI: https://www.maranathachristianschool.com/
Author: Maranatha Christian School
Author URI: https://www.maranathachristianschool.com/
Description: The story-and-support website of the Maranatha Christian Schools in Pakistan: tuition-free Christian schools begun in Lahore in 2021. Warm wine, clay and sand palette with Fraunces and Figtree; every text, photo and link editable in Appearance -> Customize -> Site Content; keeps every address of the old site; works with SEOPress; links parents to the official school website www.mchs.edu.pk. See HOW-TO.md.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mcs-2026
*/

/* ───────── tokens ───────── */
:root {
	--wine: #1f4a1c; --wine-2: #2e5c27; --wine-deep: #132e11;
	--clay: #d9a93c; --clay-2: #7d5d0f; --clay-soft: #f6ebcc;
	--sand: #f6f1e4; --sand-2: #ece4cf; --paper: #fffdf7; --white: #fff;
	--ink: #1c211b; --muted: #5b6157; --line: #e3dac3;
	--serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--r: 18px; --r-sm: 10px;
	--shadow: 0 1px 2px rgba(19, 46, 17, .06), 0 12px 32px -12px rgba(19, 46, 17, .18);
	--gutter: 16px;
}
@media (min-width: 700px) { :root { --gutter: 28px; } }

/* ───────── base ───────── */
*, *::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-family: var(--sans); font-size: 17px; line-height: 1.65; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-2); text-underline-offset: 3px; }
a:hover { color: var(--wine); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--wine-deep); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.45rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--wine-2); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; left: 12px; top: 12px; z-index: 1000; background: var(--white); padding: 10px 16px; border-radius: 8px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.ic { width: 20px; height: 20px; flex: none; }

/* ───────── buttons & small parts ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .72em 1.35em; border-radius: 999px; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; text-align: center; }
.btn .ic { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-wine { background: var(--wine); color: var(--white); }
.btn-wine:hover { background: var(--wine-deep); color: var(--white); }
.btn-clay { background: var(--clay); color: var(--wine-deep); }
.btn-clay:hover { background: #c4922a; color: var(--wine-deep); }
.btn-line { border-color: var(--wine); color: var(--wine); background: transparent; }
.btn-line:hover { background: var(--wine); color: var(--white); }
.btn-light { background: var(--white); color: var(--wine); }
.btn-light:hover { background: var(--sand); color: var(--wine-deep); }
.btn-small { min-height: 40px; padding: .5em 1.05em; font-size: .93rem; }
.btn-block { width: 100%; }
.btn-row, .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2.2rem; text-align: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--clay-2); text-decoration: none; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(3px); }
.overline, .kicker { display: inline-block; font: 700 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay-2); margin-bottom: .9rem; }
.numbers .overline, .quote-band .overline, #site-footer .overline, .side-card--wine .overline { color: var(--clay); }
.kicker { display: inline-flex; align-items: center; gap: .6em; }
.kicker::before { content: ''; width: 28px; height: 2px; background: var(--clay); }
.small-note { text-align: center; color: var(--muted); font-size: .93rem; margin-top: 1rem; }
.anchor { position: relative; top: -90px; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks li .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--clay-soft); color: var(--clay-2); margin-top: .15em; }

/* ───────── top line + header ───────── */
.topline { background: var(--wine-deep); color: #e8efe0; font-size: .86rem; }
.topline-inner { display: flex; justify-content: center; align-items: center; gap: .4rem 1rem; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.topline a { color: var(--white); font-weight: 600; text-decoration: none; white-space: nowrap; }
.topline a:hover { color: var(--clay-soft); }
@media (max-width: 599px) { .topline-text { display: none; } .topline-inner::before { content: 'Official school website:'; } }
/* no backdrop-filter here: it would become the containing block of the fixed phone menu and clip it */
#site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
#site-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(19, 46, 17, .35); }
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--wine-deep); min-width: 0; }
.brand img { width: 56px; height: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 600 1.14rem/1.1 var(--serif); letter-spacing: -.01em; }
.brand-sub { font-size: .76rem; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--wine); cursor: pointer; flex: none; }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; color: var(--ink); font-weight: 600; }
.sub-menu { list-style: none; margin: 0; padding: 0; }
.sub-toggle { background: none; border: 0; color: var(--wine); cursor: pointer; padding: 0; }
.sub-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.sub-open > .sub-toggle svg { transform: rotate(180deg); }
/* phone menu: a panel under the header */
@media (max-width: 1079px) {
	.nav-primary { position: fixed; left: 0; right: 0; top: var(--menu-top, 110px); bottom: 0; background: var(--paper); border-top: 1px solid var(--line); overflow-y: auto; padding: 8px var(--gutter) 40px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
	.nav-primary.is-open { opacity: 1; visibility: visible; transform: none; }
	body.menu-open { overflow: hidden; }
	.nav-menu > li { position: relative; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
	.nav-menu > li > a { flex: 1; padding: 15px 0; font-size: 1.12rem; font-family: var(--serif); font-weight: 600; color: var(--wine-deep); }
	.nav-menu .sub-toggle { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; }
	.nav-menu .sub-menu { display: none; width: 100%; padding: 0 0 12px 14px; }
	.nav-menu .sub-open > .sub-menu { display: block; }
	.sub-menu a { display: block; padding: 10px 0; color: var(--muted); font-weight: 500; }
	.nav-menu > li.menu-item-cta { border: 0; margin-top: 18px; }
	.nav-menu > li.menu-item-cta > a { flex: none; width: 100%; text-align: center; background: var(--clay); color: var(--wine-deep); border-radius: 999px; font-family: var(--sans); padding: 14px; }
	.nav-menu .current-menu-item > a { color: var(--clay-2); }
}
@media (min-width: 1080px) {
	.menu-toggle { display: none; }
	.nav-menu { display: flex; align-items: center; gap: 4px; }
	.nav-menu > li { position: relative; display: flex; align-items: center; }
	.nav-menu > li > a { padding: 10px 12px; border-radius: 999px; font-size: .97rem; }
	.nav-menu > li > a:hover, .nav-menu > li.current-menu-item > a, .nav-menu > li.current-menu-ancestor > a { color: var(--clay-2); }
	.nav-menu .sub-toggle { margin-left: -8px; width: 26px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
	.nav-menu .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
	.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu, .nav-menu li.sub-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.sub-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-weight: 500; }
	.sub-menu a:hover { background: var(--sand); color: var(--wine); }
	.nav-menu > li.menu-item-cta { margin-left: 10px; }
	.nav-menu > li.menu-item-cta > a { background: var(--clay); color: var(--wine-deep); padding: 11px 22px; }
	.nav-menu > li.menu-item-cta > a:hover { background: var(--clay-2); color: var(--white); }
}

/* ───────── sections ───────── */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section--sand { background: var(--sand); }
.section--tight { padding: 28px 0; }
@media (min-width: 900px) { .section--tight { padding: 40px 0; } }
.section-head { max-width: 760px; margin: 0 auto 2.4rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head--left { margin-left: 0; text-align: left; }
.prose p { color: #394536; }
.prose a, .entry-content a { color: var(--clay-2); }

/* ───────── home hero ───────── */
.hero { background: var(--sand); position: relative; overflow: hidden; padding: 44px 0 56px; }
.hero::after { content: ''; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 169, 60, .18), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: .45em; }
.h1-top { display: block; font: 700 .9rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--wine); margin-bottom: .7rem; }
.h1-main { display: block; }
.hero-lead { font-size: 1.12rem; color: #3d4a3a; max-width: 36em; }
.hero-note { display: flex; gap: .6rem; align-items: center; margin: 1.6rem 0 0; font-size: .92rem; color: var(--muted); }
.hero-note .ic { color: var(--clay); }
.hero-photo { position: relative; margin: 0 auto; width: min(100%, 340px); }
@media (min-width: 900px) { .hero-photo { width: min(100%, 440px); } }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 26px 26px; box-shadow: var(--shadow); }
.hero-photo::before { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--clay); border-radius: 999px 999px 26px 26px; z-index: -1; }
.hero-stamp { position: absolute; left: -10px; bottom: 26px; background: var(--wine); color: var(--white); border-radius: 16px; padding: 14px 18px; max-width: 210px; box-shadow: var(--shadow); }
.hero-stamp b { display: block; font: 600 2rem/1 var(--serif); }
.hero-stamp span { display: block; font-size: .85rem; line-height: 1.35; margin-top: 6px; color: #e8efe0; }
@media (min-width: 900px) {
	.hero { padding: 72px 0 96px; }
	.hero-grid { grid-template-columns: 1.12fr .88fr; gap: 64px; }
	.hero-photo { margin-right: 14px; }
	.hero-stamp { left: -46px; }
}

/* parents strip */
.parent-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.parent-strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 18px; padding-bottom: 18px; }
.parent-strip-inner > .ic { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--clay-soft); color: var(--clay-2); }
.parent-strip p { margin: 0; flex: 1 1 280px; color: #394536; }
.parent-strip b { color: var(--wine); }

/* numbers band */
.numbers { background: var(--wine); color: var(--white); padding: 36px 0; }
.nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
.num b { display: block; font: 600 clamp(2rem, 5vw, 2.9rem)/1 var(--serif); color: var(--white); }
.num span { display: block; margin-top: 8px; font-size: .92rem; color: #d6e4cc; line-height: 1.4; }
.num { border-left: 2px solid rgba(217, 169, 60, .55); padding-left: 16px; }
@media (min-width: 900px) { .nums { grid-template-columns: repeat(4, 1fr); } .numbers { padding: 48px 0; } }

/* photo + text */
.photo-text { display: grid; gap: 34px; align-items: center; }
.pt-photo { margin: 0; position: relative; }
.pt-photo img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.pt-photo::after { content: ''; position: absolute; width: 90px; height: 90px; right: -12px; top: -12px; border-radius: 50%; background: var(--clay-soft); z-index: -1; }
@media (min-width: 900px) {
	.photo-text { grid-template-columns: 1fr 1fr; gap: 72px; }
	.photo-text--flip .pt-photo { order: 2; }
}

/* campuses */
.campuses { display: grid; gap: 18px; }
@media (min-width: 700px) { .campuses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .campuses { grid-template-columns: repeat(3, 1fr); } }
.campus { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.campus::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--clay); }
.campus-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; font-size: .86rem; color: var(--muted); margin-bottom: 4px; }
.campus-place { display: inline-flex; gap: 5px; align-items: center; font-weight: 600; color: var(--wine); }
.campus-place .ic { width: 16px; height: 16px; color: var(--clay); }
.campus-est { background: var(--sand); border-radius: 999px; padding: 2px 10px; }
.campus h3 { margin-bottom: .3em; }
.campus p { color: #3d4a3a; font-size: .98rem; flex: 1; }
.campus .link-arrow { font-size: .93rem; }

/* cards */
.cards { display: grid; gap: 18px; }
@media (min-width: 700px) { .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border-radius: var(--r); padding: 26px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.section--sand .card { border-color: transparent; }
.card-icon { width: 50px; height: 50px; border-radius: 14px 14px 14px 4px; background: var(--wine); color: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-icon .ic { width: 24px; height: 24px; }
.card p { color: #3d4a3a; }
.card-link { margin-top: auto; margin-bottom: 0; }

/* quote band */
.quote-band { background: var(--wine-deep); color: var(--white); padding: 64px 0; position: relative; overflow: hidden; }
.quote-band::before { content: '\201C'; position: absolute; right: 4%; top: -10px; font: 700 300px/1 var(--serif); color: rgba(255, 255, 255, .06); pointer-events: none; }
.quote-grid { display: grid; gap: 28px; align-items: center; justify-items: center; text-align: center; position: relative; }
.quote-photo { width: 150px; height: 150px; object-fit: cover; object-position: top; border-radius: 50%; border: 4px solid var(--clay); }
.quote-band blockquote { margin: 0; max-width: 820px; }
.quote-band blockquote p { font: 500 clamp(1.3rem, 3.2vw, 1.95rem)/1.4 var(--serif); color: var(--white); margin-bottom: 1rem; }
.quote-band cite { font-style: normal; color: var(--clay-soft); font-weight: 600; letter-spacing: .03em; }
.quote-band blockquote .btn { margin-top: 1.5rem; }
@media (min-width: 900px) {
	.quote-band { padding: 88px 0; }
	.quote-grid { grid-template-columns: 220px 1fr; text-align: left; justify-items: start; gap: 56px; }
	.quote-photo { width: 220px; height: 220px; }
}

/* blog cards */
.blog-grid { display: grid; gap: 22px; }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.post-card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.post-card h3 { font-size: 1.28rem; }
.post-card h3 a { color: var(--wine-deep); text-decoration: none; }
.post-card p { color: #3d4a3a; font-size: .97rem; flex: 1; }
.pagination, .nav-links { margin-top: 2rem; }
.page-numbers { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; }
.page-numbers a, .page-numbers span { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--wine); }
.page-numbers .current { background: var(--wine); color: var(--white); }

/* ───────── inner page hero ───────── */
.page-hero { background: var(--sand); padding: 38px 0 48px; position: relative; overflow: hidden; }
.page-hero-text { max-width: 760px; }
.page-hero h1 { font-size: clamp(2rem, 5.4vw, 3.2rem); }
.page-hero .hero-lead { margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--wine); text-decoration: none; font-weight: 600; }
.page-hero-grid { display: grid; gap: 32px; align-items: center; }
.page-hero-photo { margin: 0; width: min(100%, 360px); }
.page-hero-photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 999px 999px 20px 20px; box-shadow: var(--shadow); }
@media (max-width: 899px) { .page-hero-photo { display: none; } }
@media (min-width: 900px) {
	.page-hero { padding: 56px 0 72px; }
	.page-hero-grid { grid-template-columns: 1fr 340px; gap: 64px; }
	.page-hero--photo { padding: 48px 0 56px; }
}

/* people */
.people { display: grid; gap: 22px; }
@media (min-width: 900px) { .people { grid-template-columns: 1fr 1fr; } }
.person { display: grid; grid-template-columns: 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.person-body { padding: 24px; }
.person-body p { color: #3d4a3a; }
@media (min-width: 600px) { .person { grid-template-columns: 200px 1fr; } .person img { height: 100%; aspect-ratio: auto; } }
.banner-image { margin: 0; }
.banner-image img { width: 100%; border-radius: var(--r); aspect-ratio: 16 / 7; object-fit: cover; }

/* timeline */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 30px 44px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 4px solid var(--clay); }
.tl-year { display: inline-block; font: 700 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--clay-2); background: var(--clay-soft); border-radius: 999px; padding: 6px 12px; margin-bottom: 10px; }
.tl-body h3 { margin-bottom: .25em; }
.tl-body p { color: #3d4a3a; margin: 0; }
@media (min-width: 900px) {
	.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding-left: 52px; }
	.tl-year { justify-self: start; margin-top: 2px; }
}

/* stats (founder) */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 2.2rem; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--wine); color: var(--white); border-radius: var(--r); padding: 22px; }
.stat b { display: block; font: 600 clamp(1.6rem, 4vw, 2.3rem)/1 var(--serif); }
.stat span { display: block; margin-top: 8px; color: #d6e4cc; font-size: .92rem; line-height: 1.4; }

/* two columns, side cards, callout */
.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } .two-col--wide { grid-template-columns: 1.4fr 1fr; } }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.side-card h3, .side-h { font-size: 1.28rem; }
.side-card .row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.side-card .row:first-of-type { border-top: 0; }
.side-card .row .ic { color: var(--clay); margin-top: 3px; }
.side-card .row b { display: block; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-card .row a { font-weight: 600; }
.side-card--wine { background: var(--wine); color: #e8efe0; border-color: var(--wine); }
.side-card--wine h3, .side-card--wine .side-h { color: var(--white); }
.callout { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--clay); border-radius: var(--r-sm); padding: 18px 20px; max-width: 860px; margin: 0 auto; }
.callout .ic { color: var(--clay); margin-top: 3px; }
.callout p { margin: 0; }
.steps { list-style: none; padding: 0; margin: 1.4rem 0 0; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 74px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--clay); color: var(--wine-deep); font: 600 1.1rem/38px var(--serif); text-align: center; }
.steps h3 { margin-bottom: .2em; font-size: 1.15rem; }
.steps p { margin: 0; color: #3d4a3a; }

/* awards, gifts, faq, gallery */
.awards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 800px) { .awards { grid-template-columns: repeat(4, 1fr); } }
.awards img { border-radius: var(--r); aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.gifts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.gift { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.gift b { display: block; font: 600 2rem/1 var(--serif); color: var(--clay-2); margin-bottom: 10px; }
.gift h3 { font-size: 1.12rem; margin-bottom: .3em; }
.gift p { margin: 0; color: #3d4a3a; font-size: .96rem; }
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; color: var(--wine-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--clay); }
.faq details[open] summary::after { content: '\2212'; }
.faq-a { padding: 0 20px 6px; color: #3d4a3a; }
.gallery { columns: 1; column-gap: 14px; }
@media (min-width: 600px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }
.g-item { display: block; margin-bottom: 14px; break-inside: avoid; border-radius: var(--r-sm); overflow: hidden; }
.g-item img { width: 100%; transition: transform .35s; }
.g-item:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 24, 9, .92); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #e8efe0; margin-top: 10px; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: var(--white); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ───────── contact form ───────── */
.contact-layout { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: start; } }
.contact-side { display: grid; gap: 18px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
@media (min-width: 700px) { .form-card { padding: 36px; } }
.form-intro { color: var(--muted); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-group.span { grid-column: 1 / -1; } }
.form-group label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.req { color: #a4251b; }
.form-group input, .form-group select, .form-group textarea, .search-form input, .blog-search input { width: 100%; font: 400 1rem/1.4 var(--sans); padding: 13px 14px; border: 1px solid #d6ccb2; border-radius: 12px; background: var(--paper); color: var(--ink); }
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--clay); border-color: var(--clay); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 20px; }
.form-note-small { color: var(--muted); font-size: .88rem; }
.mcs-form-note { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: var(--sand); }
.mcs-form-note.is-ok { background: #e3f1e6; color: #1e5a2d; }
.mcs-form-note.is-error { background: #f8e1dc; color: #8a2a17; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sand); color: var(--wine); }
.social a:hover { background: var(--wine); color: var(--white); }
.social svg { width: 20px; height: 20px; }
.social--light a { background: rgba(255, 255, 255, .1); color: var(--white); }
.social--light a:hover { background: var(--clay); color: var(--wine-deep); }
.search-form, .blog-search { display: flex; gap: 8px; max-width: 520px; margin-top: 1.4rem; }
.search-form button, .blog-search button { flex: none; border: 0; border-radius: 12px; background: var(--wine); color: var(--white); font: 600 1rem var(--sans); padding: 0 20px; cursor: pointer; }
.empty-state { text-align: center; padding: 1rem 0 2rem; }

/* ───────── single post & content ───────── */
.single-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .93rem; margin-top: 1rem; }
.single-layout { display: grid; gap: 36px; }
@media (min-width: 1000px) { .single-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } .sidebar { position: sticky; top: 110px; align-self: start; } }
.sidebar { display: grid; gap: 18px; }
.side-about img { width: 60px; margin-bottom: 12px; }
.single-featured { margin: 0 0 1.8rem; }
.single-featured img { border-radius: var(--r); width: 100%; }
.entry-content { font-size: 1.06rem; }
.entry-content > * + h2, .entry-content > * + h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--r-sm); }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--clay); font: 500 1.2rem/1.5 var(--serif); color: var(--wine-deep); }
.legacy-img { margin: 0 0 1.4rem; }
.legacy-img img { width: 100%; border-radius: var(--r-sm); }
.legacy-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 1.6rem; }
@media (min-width: 700px) { .legacy-gallery { grid-template-columns: repeat(3, 1fr); } }
.legacy-gallery .legacy-img { margin: 0; }
.legacy-gallery img { aspect-ratio: 2 / 3; object-fit: cover; height: 100%; }
.entry-content .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; columns: auto; }
.entry-content .gallery-item { margin: 0; }
.single-share { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 18px 0; margin-top: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.single-share a { font-weight: 600; }
.post-cta { display: grid; gap: 16px; align-items: center; background: var(--sand); border-radius: var(--r); padding: 24px; margin: 2rem 0; }
.post-cta h2 { font-size: 1.4rem; margin-bottom: .2em; }
.post-cta p { margin: 0; color: #3d4a3a; }
@media (min-width: 700px) { .post-cta { grid-template-columns: 1fr auto; } }
.related { margin-top: 2.6rem; }
.related h2 { font-size: 1.6rem; }
.related .blog-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) { .related .blog-grid { grid-template-columns: repeat(2, 1fr); } }

/* ───────── sponsor band + footer ───────── */
.cta-band { background: var(--clay); color: var(--wine-deep); padding: 56px 0; }
.cta-band-inner { display: grid; gap: 22px; align-items: center; }
.cta-band .overline { color: var(--wine); }
.cta-band h2 { color: var(--wine-deep); }
.cta-band p { color: #2a3a1f; margin: 0; max-width: 40em; }
.cta-band .btn-clay { background: var(--wine-deep); color: var(--white); }
.cta-band .btn-clay:hover { background: var(--wine); color: var(--white); }
.cta-band .hero-actions { margin-top: 0; }
@media (min-width: 900px) { .cta-band-inner { grid-template-columns: 1fr auto; gap: 48px; } }
#site-footer { background: var(--wine-deep); color: #dbe6d2; padding-top: 60px; font-size: .97rem; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 44px; } }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font: 600 1.2rem/1.2 var(--serif); margin-bottom: 14px; }
.footer-brand img { width: 52px; }
.footer-h { font: 700 .8rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay-soft); margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
#site-footer a { color: var(--white); text-decoration: none; }
#site-footer a:hover { color: var(--clay-soft); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { width: 18px; height: 18px; margin-top: 4px; color: var(--clay-soft); }
.footer-official { margin: 40px 0 0; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-official a { font-weight: 600; }
.footer-bottom { background: rgba(0, 0, 0, .18); padding: 16px 0; font-size: .88rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }
.footer-motto { font-family: var(--serif); font-style: italic; color: var(--clay-soft); }
.back-to-top { position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--wine); color: var(--white); box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 40; display: flex; align-items: center; justify-content: center; }
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.show { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topline, #site-header, .cta-band, #site-footer, .back-to-top { display: none; } }
