/* ==========================================================================
   Brightwood Dressage — hand-written theme styles
   Faithful clone of the Themify Ultra "left-pane" layout.
   Palette: navy #1c2b54 · gold #dcb877 · body #666
   Fonts:   Playfair Display SC (display) · Public Sans (body) · Poppins (ui)
   ========================================================================== */

:root {
	--navy: #1c2b54;
	--navy-70: rgba(28, 43, 84, .7);
	--navy-55: rgba(28, 43, 84, .55);
	--gold: #dcb877;
	--gold-dk: #c9a259;
	--ink: #2b3346;
	--body: #666;
	--muted: #8a8a8a;
	--line: #e7e7e7;
	--bg: #ffffff;
	--cream: #f4f1ea;
	--graycard: #f6f6f6;
	--sidebar-w: 300px;
	--maxw: 1120px;
	--font-display: "Playfair Display SC", Georgia, serif;
	--font-body: "Public Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--font-ui: "Poppins", var(--font-body);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--body);
	background: var(--bg) url("../img/body-bg-lines.png") repeat;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dk); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.2; font-weight: 400; }
p { margin: 0 0 1.1em; }

.bw-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.bw-skip {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--navy); color: #fff; padding: 10px 16px;
}
.bw-skip:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- layout shell ---------- */
.site-main { margin-left: var(--sidebar-w); min-height: 60vh; }

/* ---------- sidebar ---------- */
.bw-sidebar {
	position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
	background: var(--navy); color: #fff;
	display: flex; flex-direction: column;
	padding: 34px 26px 22px;
	overflow-y: auto;
	box-shadow: -3px 0 16px 3px rgba(0, 0, 0, .1);
	z-index: 200;
}
.bw-sidebar__logo { display: block; margin: 0 auto 26px; }
.bw-sidebar__logo img { width: 210px; margin: 0 auto; }

.bw-nav { flex: 1 0 auto; }
.bw-nav__list, .bw-nav__sub { list-style: none; margin: 0; padding: 0; }
.bw-nav__item > a {
	display: block; color: #fff; font-family: var(--font-body);
	font-size: 1.02rem; padding: .62em 0; letter-spacing: .01em;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	transition: color .2s ease;
}
.bw-nav__item > a:hover { color: var(--gold); }
.bw-nav__item.is-active > a { color: var(--gold); }
.bw-nav__sub { margin: 2px 0 6px; }
.bw-nav__sub .bw-nav__item > a {
	font-size: .92rem; padding: .42em 0 .42em 16px;
	color: rgba(255, 255, 255, .82); border-bottom: 0;
}
.bw-nav__sub .bw-nav__item > a:hover { color: var(--gold); }

.bw-sidebar__social { display: flex; gap: 14px; justify-content: center; padding-top: 22px; }
.bw-sidebar__social .bw-soc { color: rgba(255, 255, 255, .85); }
.bw-sidebar__social .bw-soc:hover { color: var(--gold); }

/* ---------- mobile topbar / burger (hidden on desktop) ---------- */
.bw-topbar { display: none; }
.bw-burger { background: none; border: 0; cursor: pointer; width: 42px; height: 42px; padding: 9px; }
.bw-burger span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }

/* ---------- section heading + rosette divider ---------- */
.bw-section { padding: 68px 0; }
.bw-section--alt { background: var(--cream); }
.bw-section__head { text-align: center; margin: 0 auto 40px; max-width: 760px; }
.bw-section__head h2 { font-size: 2.4rem; margin: 0; }
.bw-section__head .bw-sub { color: var(--muted); font-size: 1.05rem; margin-top: .4em; }

.bw-rosette { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px auto 0; color: var(--gold); }
.bw-rosette--navy { color: var(--gold); }
.bw-rosette--light { color: var(--gold); }
.bw-rosette__line { width: 46px; height: 1px; background: currentColor; opacity: .6; }
.bw-rosette svg { flex: 0 0 auto; }

/* ---------- buttons ---------- */
.bw-btn {
	display: inline-block; font-family: var(--font-ui); font-weight: 600;
	font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
	padding: 14px 30px; border-radius: 3px; cursor: pointer; border: 0;
	transition: background .2s ease, color .2s ease;
}
.bw-btn--gold { background: var(--gold); color: var(--navy); }
.bw-btn--gold:hover { background: var(--gold-dk); color: var(--navy); }
.bw-btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }

/* ---------- hero (front page) ---------- */
.bw-hero { position: relative; min-height: 78vh; display: flex; align-items: center;
	background-size: cover; background-position: 0% 100%; background-attachment: fixed; }
.bw-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gold); }
.bw-hero__card {
	margin-left: auto; margin-right: clamp(24px, 6vw, 120px);
	max-width: 420px; background: var(--navy-55); color: #fff;
	border-radius: 16px; padding: 44px 46px; text-align: center;
	backdrop-filter: blur(2px);
}
.bw-hero__card h1 { color: #fff; font-size: 2.6rem; margin: 0; }
.bw-hero__card p { color: rgba(255, 255, 255, .92); margin: 16px 0 0; font-size: 1rem; }
.bw-hero__card .bw-rosette { margin-top: 16px; }

/* ---------- generic page intro banner ---------- */
.bw-pagehead { background: var(--navy); color: #fff; text-align: center; padding: 72px 0 66px; }
.bw-pagehead h1 { color: #fff; font-size: 2.8rem; margin: 0; }
.bw-pagehead .bw-sub { color: rgba(255, 255, 255, .9); margin-top: .5em; font-size: 1.08rem; }
.bw-pagehead .bw-rosette { margin-top: 16px; }

/* Photo banner variant: farm photo behind the title with a navy tint. */
.bw-pagehead--photo { position: relative; background-color: var(--navy); background-size: cover; background-position: center; padding: 86px 0 72px; }
.bw-pagehead--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(16, 24, 48, .12), rgba(16, 24, 48, .34)); }
.bw-pagehead__inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 0 28px; }
.bw-pagehead--photo h1 { text-shadow: 0 2px 10px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .45); }
.bw-pagehead--photo .bw-sub { text-shadow: 0 1px 8px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .45); }

/* ---------- two-column split (text + image) ---------- */
.bw-split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.bw-split--text-right { direction: rtl; }
.bw-split--text-right > * { direction: ltr; }
.bw-split__media img { border-radius: 10px; width: 100%; object-fit: cover; }
.bw-prose p { color: var(--body); }
.bw-prose h3 { font-size: 1.5rem; margin: 1.2em 0 .4em; }

/* ---------- service / icon cards ---------- */
.bw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.bw-card { text-align: center; }
.bw-card__icon { height: 102px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.bw-card__icon img { width: auto; max-height: 102px; margin: 0 auto; }
.bw-card h3 { font-size: 1.4rem; margin: 0 0 .4em; }
.bw-card p { color: var(--body); margin: 0 0 1em; }
.bw-card__link { font-family: var(--font-ui); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dk); }

/* ---------- philosophy cards (image + caption) ---------- */
.bw-philo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bw-philo__item { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bw-philo__item img { width: 100%; height: 190px; object-fit: cover; }
.bw-philo__body { padding: 22px 24px; }
.bw-philo__body h3 { font-size: 1.35rem; margin: 0 0 .35em; color: var(--navy); }
.bw-philo__item p { margin: 0; font-size: .98rem; }

/* Gold accent bands — a signature of the original site. */
.bw-goldband { height: 10px; background: var(--gold); }
.bw-address-band { background: var(--gold); text-align: center; padding: 26px 0; }
.bw-address-band h2 { color: var(--navy); margin: 0; font-size: 1.6rem; }

/* ---------- profiles ---------- */
.bw-profile { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; margin-bottom: 46px; }
.bw-profile--rev { grid-template-columns: 1fr 300px; }
.bw-profile--rev .bw-profile__media { order: 2; }
.bw-profile__media img { border-radius: 10px; width: 100%; }
.bw-profile h3 { font-size: 1.7rem; margin: 0 0 .4em; }

/* ---------- pricing cards ---------- */
.bw-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 900px; margin: 0 auto; }
.bw-price { background: var(--graycard); border-radius: 12px; text-align: center; padding: 34px 24px; }
.bw-price__title { font-family: var(--font-ui); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--ink); }
.bw-price__amt { font-family: var(--font-display); color: var(--navy); font-size: 2.6rem; margin: 10px 0 2px; }
.bw-price__unit { color: var(--muted); font-size: .95rem; }
.bw-price__meta { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.bw-price__note { color: var(--body); font-size: .98rem; margin-top: 6px; }

/* ---------- FAQ ---------- */
.bw-faq { max-width: 820px; margin: 0 auto; }
.bw-faq__item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.bw-faq__q { font-family: var(--font-display); color: var(--navy); font-size: 1.25rem; margin: 0 0 .3em; }
.bw-faq__a { margin: 0; color: var(--body); }

/* ---------- timeline (About › Our Progress) ---------- */
.bw-timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 28px; }
.bw-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.bw-tl { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; padding: 14px 0; }
.bw-tl::before { content: ""; position: absolute; left: -24px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); transform: translateY(-50%); box-shadow: 0 0 0 4px #fff; }
.bw-tl__img img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.bw-tl__date { font-family: var(--font-ui); font-weight: 600; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-dk); display: block; }
.bw-tl__title { font-family: var(--font-display); color: var(--navy); font-size: 1.15rem; }

/* ---------- sponsor + map (home) ---------- */
.bw-sponsor { text-align: center; }
.bw-sponsor__label { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.bw-sponsor img { max-height: 90px; width: auto; margin: 0 auto; }
.bw-map { text-align: center; }
.bw-map h2 { font-size: 1.7rem; }
.bw-map__img { display: inline-block; margin-top: 18px; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.08); }

/* ---------- contact ---------- */
.bw-contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 54px; }
.bw-contact-card { text-align: center; padding: 30px 20px; border: 1px solid var(--line); border-radius: 12px; }
.bw-contact-card__icon { color: var(--gold); margin-bottom: 10px; display: flex; justify-content: center; }
.bw-contact-card h3 { font-size: 1.25rem; margin: 0 0 .3em; }
.bw-contact-card a, .bw-contact-card p { color: var(--body); margin: 0; }

.bw-form { max-width: 680px; margin: 0 auto; }
.bw-form__row { margin-bottom: 18px; }
.bw-form label { display: block; font-family: var(--font-ui); font-weight: 500; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.bw-form input, .bw-form textarea {
	width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
	padding: 13px 15px; border: 1px solid rgba(0, 0, 0, .22); border-radius: 6px; background: #fff;
}
.bw-form input:focus, .bw-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.bw-form textarea { min-height: 150px; resize: vertical; }
.bw-form__hp { position: absolute; left: -5000px; } /* honeypot */
.bw-note { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: .97rem; }
.bw-note--ok { background: #eef7ee; color: #1f5c2e; border: 1px solid #cfe6cf; }
.bw-note--err { background: #fdecec; color: #8a1f1f; border: 1px solid #f3cccc; }

/* ---------- CTA band (shared) ---------- */
.bw-cta { background: var(--navy); color: #fff; text-align: center; padding: 60px 0; }
.bw-cta__title { color: #fff; font-size: 2.2rem; margin: 0; }
.bw-cta__actions { margin-top: 26px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.bw-cta__sms { display: none; } /* SMS button shows on touch/mobile only */

/* ---------- footer ---------- */
.bw-footer { background: var(--navy); color: rgba(255, 255, 255, .85); border-top: 1px solid rgba(255, 255, 255, .08); padding: 46px 0; }
.bw-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.bw-footer__logo img { width: 170px; margin: 0 auto; }
.bw-footer__social { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.bw-footer__social .bw-soc { color: rgba(255, 255, 255, .85); }
.bw-footer__social .bw-soc:hover { color: var(--gold); }
.bw-footer__meta { font-size: .95rem; }
.bw-footer__meta a { color: rgba(255, 255, 255, .85); }
.bw-footer__meta a:hover { color: var(--gold); }
.bw-footer__phone { font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; color: #fff; }
.bw-footer__copy, .bw-footer__addr { margin: 6px 0 0; }

/* ---------- utilities ---------- */
.bw-center { text-align: center; }
.bw-mt { margin-top: 36px; }
.bw-muted { color: var(--muted); font-weight: 400; }
.bw-prose ul { padding-left: 1.2em; }
.bw-prose li { margin-bottom: .5em; }

/* ==========================================================================
   Responsive — collapse the left pane into a top bar + off-canvas nav
   ========================================================================== */
@media (max-width: 1024px) {
	:root { --sidebar-w: 0px; }
	.site-main { margin-left: 0; padding-top: 64px; }

	.bw-topbar {
		display: flex; align-items: center; justify-content: space-between;
		position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 300;
		background: var(--navy); padding: 0 16px;
	}
	.bw-topbar__logo img { height: 42px; width: auto; }

	.bw-sidebar {
		width: 300px; transform: translateX(-110%); transition: transform .28s ease;
		padding-top: 80px;
	}
	.bw-nav-open .bw-sidebar { transform: translateX(0); }
	.bw-nav-open .bw-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.bw-nav-open .bw-burger span:nth-child(2) { opacity: 0; }
	.bw-nav-open .bw-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.bw-cta__sms { display: inline-block; }
	.bw-cta__form { display: none; }

	.bw-hero__card { margin: 0 auto; }
}

@media (max-width: 860px) {
	.bw-split, .bw-cards, .bw-philo, .bw-prices, .bw-contact-cards { grid-template-columns: 1fr; gap: 30px; }
	.bw-split--text-right { direction: ltr; }
	.bw-profile, .bw-profile--rev { grid-template-columns: 1fr; gap: 20px; }
	.bw-profile--rev .bw-profile__media { order: 0; }
	.bw-section { padding: 48px 0; }
	.bw-section__head h2, .bw-pagehead h1 { font-size: 2rem; }
	.bw-hero { min-height: 64vh; background-attachment: scroll; }
	.bw-hero__card { padding: 32px 28px; margin-right: auto; }
	.bw-tl { grid-template-columns: 76px 1fr; }
	.bw-tl__img img { width: 76px; height: 58px; }
}
