/* Setter Ridge Kennels — modern refresh, May 2026 */

:root {
	--blue: #214786;
	--blue-dark: #1a3a6e;
	--blue-light: #e6ebf3;
	--accent: #cf0000;
	--text: #1d1f24;
	--muted: #5a6273;
	--rule: #d8dde6;
	--bg: #f5f6f8;
	--card: #ffffff;
	--max: 1180px;
	--radius: 6px;
	--shadow: 0 1px 2px rgba(20, 30, 60, 0.06), 0 8px 24px rgba(20, 30, 60, 0.05);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Layout ---------- */
.site {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 1rem 2rem;
	display: grid;
	grid-template-columns: 220px 1fr;
	grid-template-areas:
		"header  header"
		"nav     main"
		"footer  footer";
	column-gap: 2rem;
	row-gap: 1.5rem;
}

@media (max-width: 768px) {
	.site {
		grid-template-columns: 1fr;
		grid-template-areas:
			"header"
			"nav"
			"main"
			"footer";
		padding: 0 0.75rem 1.5rem;
		column-gap: 0;
		row-gap: 1rem;
	}
}

/* ---------- Header ---------- */
.site-header {
	grid-area: header;
	background: var(--card);
	border-top: 6px solid var(--blue);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.site-header__brand a { display: block; line-height: 0; }
.site-header__logo { width: 100%; max-height: 140px; object-fit: cover; object-position: center; display: block; }

.site-header__contact {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.65rem 1.25rem;
	font-size: 0.85rem;
	color: var(--muted);
	border-top: 1px solid var(--rule);
	background: #fafbfc;
	flex-wrap: wrap;
}

.site-header__email { color: var(--blue); font-weight: 500; }

@media (max-width: 768px) {
	.site-header__contact { font-size: 0.78rem; padding: 0.55rem 0.85rem; gap: 0.4rem; }
	.site-header__address { line-height: 1.4; }
}

/* ---------- Side nav ---------- */
.site-nav {
	grid-area: nav;
	align-self: start;
	position: sticky;
	top: 1rem;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.site-nav__item { margin: 0; }
.site-nav__link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--text);
	border-left: 3px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, padding-left 0.15s ease;
}
/* Chevron flair — slides in on hover, locked in on the active item */
.site-nav__link::after {
	content: "›";
	display: inline-block;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--blue);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.site-nav__link:hover {
	background: var(--blue-light);
	color: var(--blue-dark);
	text-decoration: none;
	border-left-color: var(--blue);
	padding-left: 1.15rem;
}
.site-nav__link:hover::after {
	opacity: 1;
	transform: translateX(0);
}
.site-nav__item.is-active > .site-nav__link {
	background: linear-gradient(90deg, var(--blue-light) 0%, rgba(230, 235, 243, 0.4) 100%);
	color: var(--blue-dark);
	border-left-color: var(--accent);
	font-weight: 600;
}
.site-nav__item.is-active > .site-nav__link::after {
	content: "»";
	opacity: 1;
	transform: translateX(0);
	color: var(--accent);
}

/* Sub-items: indented, smaller, bullet marker, no chevron, connected by
   a subtle vertical line so they read as belonging to the parent above. */
.site-nav__item--sub > .site-nav__link {
	padding-left: 2.1rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--muted);
	position: relative;
}
.site-nav__item--sub > .site-nav__link::before {
	content: "";
	position: absolute;
	left: 1.1rem;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--rule);
}
.site-nav__item--sub > .site-nav__link::after {
	content: "•";
	color: var(--accent);
	opacity: 1;
	transform: none;
	font-size: 0.9rem;
	margin-left: auto;
}
.site-nav__item--sub > .site-nav__link:hover {
	padding-left: 2.25rem;
	color: var(--blue-dark);
	background: var(--blue-light);
	border-left-color: var(--blue);
}
.site-nav__item--sub > .site-nav__link:hover::after {
	color: var(--blue);
}
.site-nav__item--sub.is-active > .site-nav__link {
	color: var(--blue-dark);
	font-weight: 600;
	background: var(--blue-light);
}
.site-nav__item--sub.is-active > .site-nav__link::after {
	content: "•";
	color: var(--accent);
}

.site-nav__extras {
	margin-top: 0.85rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}
.site-nav__social { max-width: 140px; opacity: 0.9; }
.site-nav__social:hover { opacity: 1; }

.site-nav__toggle {
	display: none;
	width: 100%;
	padding: 0.6rem 1rem;
	background: var(--blue);
	color: #fff;
	border: 0;
	border-radius: var(--radius);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

@media (max-width: 768px) {
	.site-nav { position: static; }
	.site-nav__toggle { display: block; }
	.site-nav__list { display: none; margin-top: 0.5rem; }
	.site-nav.is-open .site-nav__list { display: block; }
	.site-nav__extras { display: none; }
}

/* ---------- Main content ---------- */
.site-main {
	grid-area: main;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.5rem 1.75rem;
	min-width: 0; /* prevents wide tables from blowing out grid */
	overflow-wrap: break-word;
}

@media (max-width: 768px) {
	.site-main { padding: 1rem 1.05rem; }
}

/* Typography inside main */
.site-main h1, .site-main h2, .site-main h3, .site-main h4 {
	color: var(--blue-dark);
	margin: 1.3em 0 0.5em;
	line-height: 1.25;
}
.site-main h1 { font-size: 1.6rem; }
.site-main h2 { font-size: 1.25rem; }
.site-main h3 { font-size: 1.05rem; font-weight: 600; }
.site-main h4 { font-size: 0.95rem; font-weight: 600; color: var(--text); }

.site-main h1:first-child,
.site-main h2:first-child,
.site-main h3:first-child { margin-top: 0; }

.site-main p { margin: 0 0 1em; }
.site-main ul, .site-main ol { padding-left: 1.3em; margin: 0 0 1em; }
.site-main li { margin: 0.15em 0; }

.site-main blockquote {
	margin: 1em 0;
	padding: 0.5em 1em;
	border-left: 3px solid var(--blue);
	background: #f7f9fc;
	color: var(--muted);
	font-style: italic;
}

.site-main hr { border: 0; border-top: 1px solid var(--rule); margin: 1.5em 0; }

/* Legacy decorative pieces left in pages */
.site-main center, .site-main [align="center"] { display: block; text-align: center; }

/* Legacy table styling — most pages still use <table> for content sections.
   Make them look intentional rather than 1995-spreadsheet. */
.site-main table {
	border-collapse: collapse;
	margin: 0.5em 0 1.25em;
	max-width: 100%;
	/* Override legacy hard-coded width="595" / width="585" attributes */
	width: auto !important;
}
@media (max-width: 768px) {
	/* Force any inline-width table back inside the column on mobile,
	   and let cells with hard-coded pixel widths flow. */
	.site-main table,
	.site-main table td,
	.site-main table th { width: auto !important; max-width: 100% !important; }
	.site-main table img { max-width: 100%; height: auto; }
}
.site-main table td,
.site-main table th {
	padding: 0.45rem 0.65rem;
	vertical-align: top;
}
/* Heading-bar cells used everywhere as section headers */
.site-main table td[style*="#e6ebf3"] {
	background: var(--blue) !important;
	color: #fff !important;
	border: 0 !important;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	text-align: left !important;
	padding: 0.55rem 0.85rem !important;
	border-radius: var(--radius) var(--radius) 0 0;
}
.site-main table td[style*="#e6ebf3"] b { font-weight: 600; }

/* Legacy <p class="..."> helpers */
.site-main p.center { text-align: center; }
.site-main p.large { font-size: 1.1rem; font-weight: 600; color: var(--accent); text-align: center; }
.site-main p.left { text-align: left; }
.site-main p.right { text-align: right; }

.site-main .error { background: #fbe6e6; border: 1px solid var(--accent); padding: 2px 4px; }

.site-main td.contact { border-bottom: 1px solid var(--rule); }

.nltitle { font-weight: 600; color: var(--blue-dark); font-size: 1.05rem; }
.nldate  { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5em; }

/* Tame stray legacy font tags */
.site-main font { font-size: inherit !important; color: inherit !important; font-family: inherit !important; }

/* Forms */
.site-main input[type=text],
.site-main input[type=email],
.site-main input[type=password],
.site-main input[type=file],
.site-main textarea,
.site-main select {
	font: inherit;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--rule);
	border-radius: 4px;
	background: #fff;
	max-width: 100%;
}
.site-main textarea { line-height: 1.5; }
.site-main input.error,
.site-main textarea.error,
.site-main select.error {
	background: #fbe6e6;
	border-color: var(--accent);
}
.site-main input[type=submit],
.site-main button {
	font: inherit;
	font-weight: 600;
	padding: 0.5rem 1.1rem;
	background: var(--blue);
	color: #fff;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}
.site-main input[type=submit]:hover,
.site-main button:hover { background: var(--blue-dark); }

/* ---------- Sections (modern card-style blocks for content pages) ---------- */
.site-main section {
	padding: 1.25rem 0 1.5rem;
	border-bottom: 1px solid var(--rule);
}
.site-main section:last-of-type { border-bottom: 0; padding-bottom: 0; }
.site-main section:first-of-type { padding-top: 0; }

.site-main section > h2 {
	font-size: 1.4rem;
	color: var(--blue-dark);
	margin: 0 0 0.85rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--blue);
	display: inline-block;
}

/* Home page bits */
.home-intro__photo {
	float: right;
	margin: 0 0 0.75rem 1.25rem;
	max-width: 220px;
	border-radius: var(--radius);
}
@media (max-width: 540px) {
	.home-intro__photo { float: none; display: block; margin: 0 auto 1rem; max-width: 100%; }
}

.home-news__date { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.25rem; }
.home-news__title { margin: 0 0 0.5rem; color: var(--text); font-size: 1.1rem; }

.home-article { padding: 0.5rem 0 1rem; }
.home-article + .home-article { border-top: 1px solid var(--rule); padding-top: 1rem; }
.home-article__meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.4rem; }

.home-signup__form {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
	max-width: 520px;
}
.home-signup__label { font-weight: 500; }
.home-signup__form input[type=email] {
	flex: 1 1 220px;
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--rule);
	border-radius: 4px;
	font: inherit;
}
.home-signup__form .ctct-button,
.home-signup__form button {
	background: var(--blue);
	color: #fff;
	padding: 0.55rem 1.1rem;
	border: 0;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.home-signup__form .ctct-button:hover,
.home-signup__form button:hover { background: var(--blue-dark); }
.home-signup__success {
	padding: 0.75rem;
	background: #e6f4ea;
	border: 1px solid #67a575;
	border-radius: 4px;
	font-weight: 600;
	text-align: center;
}

/* ---------- Dog detail page (semantic rewrite of doginfo.inc.php) ---------- */
.dog-detail {
	max-width: 820px;
	margin: 0 auto;
}

/* Hero block: centered name, photo, caption, carousel, pedigree link */
.dog-detail__hero { text-align: center; }
.dog-detail__name {
	font-size: 1.8rem;
	color: var(--blue-dark);
	margin: 0 0 1rem;
}
.dog-detail__figure {
	margin: 0 auto 0.75rem;
	max-width: 720px;
}
.dog-detail__photo {
	display: block;
	width: 100%;
	max-width: 720px;
	height: auto;
	margin: 0 auto;
	border-radius: var(--radius);
	box-shadow: 0 2px 10px rgba(20, 30, 60, 0.12);
	background: #f0f1f4;
	min-height: 200px;
}
.dog-detail__caption {
	margin: 0.6rem auto 0;
	color: var(--muted);
	font-style: italic;
	font-size: 0.9rem;
}
.dog-detail__carousel {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin: 1rem 0 0.5rem;
	flex-wrap: wrap;
}
.dog-detail__nav-btn {
	font: inherit;
	font-weight: 600;
	padding: 0.45rem 1rem;
	background: var(--blue);
	color: #fff;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}
.dog-detail__nav-btn:hover { background: var(--blue-dark); }
.dog-detail__counter {
	color: var(--muted);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
}
.dog-detail__pedigree-link {
	margin: 1rem 0 1.5rem;
	font-weight: 500;
}

/* For-sale highlight */
.dog-detail__forsale {
	margin: 1rem 0 1.5rem;
	padding: 0.85rem 1.15rem;
	background: #fff4d9;
	border-left: 4px solid #f0a000;
	border-radius: var(--radius);
}
.dog-detail__forsale h2 { margin: 0 0 0.4rem; color: var(--blue-dark); font-size: 1.1rem; }
.dog-detail__forsale p { margin: 0; }

/* Detail rows as definition list — 1 column on mobile, 2 columns on desktop */
.dog-detail__info {
	display: grid;
	grid-template-columns: 130px 1fr;
	column-gap: 1.25rem;
	row-gap: 0.65rem;
	margin: 1.5rem 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--rule);
}
.dog-detail__info dt {
	font-weight: 600;
	color: var(--blue-dark);
	text-align: right;
}
.dog-detail__info dd {
	margin: 0;
}
.dog-detail__info ul {
	margin: 0;
	padding-left: 1.15rem;
}
.dog-detail__info ul li { margin: 0.15rem 0; }

@media (max-width: 600px) {
	.dog-detail__info {
		grid-template-columns: 1fr;
		row-gap: 0.25rem;
	}
	.dog-detail__info dt {
		text-align: left;
		margin-top: 0.6rem;
	}
	.dog-detail__info dt:first-child { margin-top: 0; }
	.dog-detail__name { font-size: 1.5rem; }
}

/* ---------- Dictionary cards ---------- */
.dictionary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin: 1.25rem 0;
}
.dictionary-card {
	background: #fafbfc;
	border: 1px solid var(--rule);
	border-top: 3px solid var(--blue);
	border-radius: var(--radius);
	padding: 1rem 1.15rem 1.1rem;
}
.dictionary-card h3 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	color: var(--blue-dark);
	letter-spacing: 0.02em;
}
.dictionary-card dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	column-gap: 0.85rem;
	row-gap: 0.35rem;
	margin: 0;
}
.dictionary-card dt {
	font-weight: 600;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}
.dictionary-card dd {
	margin: 0;
	color: var(--text);
}

/* ---------- Footer ---------- */
.site-footer {
	grid-area: footer;
	padding: 1rem;
	text-align: center;
	color: var(--muted);
	font-size: 0.85rem;
}
.site-footer__sep { margin: 0 0.5rem; opacity: 0.5; }
.site-footer__link { color: var(--muted); }
.site-footer__link:hover { color: var(--blue); }
