/* Specialty Schnauzers — Parent & Puppy database styles.
   Tokens match design-tokens.md. Do not introduce new colors. */

:root {
	--ss-green: #556B3C;
	--ss-goldenrod: #DAA520;
	--ss-cream: #F5F5DC;
	--ss-ink: #2F2F2F;
	--ss-white: #FFFFFF;
}

/* ---- Full-bleed layout overrides ---------------------------------------
   Divi's default page template renders an empty right sidebar and paints
   a vertical divider via a background image on #main-content. The
   body_class filter swaps to et_full_width_page but we also hard-disable
   the divider and widen the container.
*/
body.ss-full-width #sidebar { display: none !important; }

body.ss-full-width #main-content {
	background: transparent !important;
	background-image: none !important;
}

body.ss-full-width #main-content .container,
body.ss-full-width #main-content #content-area,
body.ss-full-width #main-content #left-area {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	padding-right: 0 !important;
	margin-right: 0 !important;
	border-right: 0 !important;
	background: transparent !important;
	background-image: none !important;
}

body.ss-full-width #main-content > .container {
	width: 92% !important;
	max-width: 1600px !important;
}

/* On very wide monitors (>= 1800px), anchor content to the left edge
   instead of centering — keeps the page from "floating in the middle"
   on big displays without affecting normal 1080p / 1440p screens. */
@media (min-width: 1800px) {
	body.ss-full-width #main-content > .container {
		margin-left: 5vw !important;
		margin-right: auto !important;
	}
}

.ss-wrap {
	max-width: none;
	margin: 0 auto;
	padding: 40px 32px 80px;
	font-family: 'DM Sans', Helvetica, Arial, Lucida, sans-serif;
	color: var(--ss-ink);
}

@media (max-width: 980px) {
	.ss-wrap { padding: 32px 20px 64px; }
}

.ss-page-title {
	font-family: 'Alfa Slab One', display, serif;
	font-size: 36px;
	margin: 0 0 16px;
	color: var(--ss-green);
	text-align: center;
}

.ss-page-intro {
	text-align: center;
	font-size: 16px;
	line-height: 1.8em;
	margin: 0 auto 32px;
	max-width: 720px;
}

/* ---- Filter bar ---------------------------------------------------------- */

.ss-filterbar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
	margin-bottom: 32px;
	padding: 16px;
	background: var(--ss-cream);
	border-radius: 12px;
}

.ss-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
}

.ss-filter select,
.ss-filter input[type="search"] {
	font: 400 14px/1 'DM Sans', Helvetica, Arial, sans-serif;
	padding: 8px 12px;
	border: 1px solid rgba(85, 107, 60, 0.35);
	border-radius: 6px;
	background: #fff;
	color: var(--ss-ink);
	min-width: 160px;
}

/* ---- Grids --------------------------------------------------------------- */

.ss-grid {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ss-grid--puppies {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
	.ss-grid--puppies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.ss-grid,
	.ss-grid--puppies { grid-template-columns: 1fr; }
}

/* ---- Card --------------------------------------------------------------- */

.ss-card {
	background: var(--ss-white);
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ss-card__photo-link {
	display: block;
	background: var(--ss-cream);
}

.ss-card__photo {
	display: block;
	width: 100%;
	aspect-ratio: 610 / 500;
	object-fit: cover;
}

.ss-card__body {
	padding: 20px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.ss-card__title {
	margin: 0;
	font-family: 'DM Sans', Helvetica, Arial, Lucida, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.7em;
	color: var(--ss-ink);
}

.ss-card__title a { color: inherit; text-decoration: none; }
.ss-card__title a:hover { color: var(--ss-green); }

.ss-card__meta {
	margin: 0;
	font-size: 16px;
	line-height: 1.8em;
	color: var(--ss-ink);
}

.ss-card__meta strong { font-weight: 700; }

.ss-card__cta {
	margin-top: auto;
}

/* ---- Button ------------------------------------------------------------- */

.ss-btn {
	display: inline-block;
	padding: 15px 30px;
	background: var(--ss-goldenrod);
	color: var(--ss-ink);
	font: 700 16px/1 'DM Sans', Helvetica, Arial, Lucida, sans-serif;
	border: 0;
	border-radius: 100px;
	text-decoration: none;
	transition: background-color 300ms ease, color 300ms ease;
}

.ss-btn:hover {
	background: var(--ss-green);
	color: var(--ss-white);
}

/* ---- Status pills ------------------------------------------------------- */

.ss-pill {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.02em;
}

.ss-pill--available     { background: var(--ss-green);     color: #fff; }
.ss-pill--reserved      { background: var(--ss-goldenrod); color: var(--ss-ink); }
.ss-pill--sold          { background: #888;                color: #fff; }
.ss-pill--coming-soon   { background: #D9D9D9;             color: var(--ss-ink); }

/* ---- Single (detail) page ---------------------------------------------- */

.ss-single {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 48px;
	margin-bottom: 32px;
	align-items: start;
}

.ss-single--no-gallery { grid-template-columns: 1fr; }

@media (max-width: 980px) {
	.ss-single { grid-template-columns: 1fr; gap: 32px; }
}

.ss-single__primary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 28px;
	align-items: start;
}

@media (max-width: 600px) {
	.ss-single__primary { grid-template-columns: 1fr; }
}

.ss-single__photo {
	width: 100%;
	border-radius: 24px;
	overflow: hidden;
	background: var(--ss-cream);
}

.ss-single__photo img,
.ss-single__photo svg {
	width: 100%;
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* ---- Gallery (right of profile) ---------------------------------------- */

.ss-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.ss-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 480px) {
	.ss-gallery,
	.ss-gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ss-gallery__item {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: var(--ss-cream);
	aspect-ratio: 1 / 1;
}

.ss-gallery__item img,
.ss-gallery__item .ss-gallery__placeholder svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}

.ss-gallery__item:hover img { transform: scale(1.05); }

.ss-gallery__item--empty {
	cursor: default;
	pointer-events: none;
}

.ss-gallery__placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.ss-gallery__placeholder svg { display: block; }

/* ---- Content block (under profile) ------------------------------------- */

.ss-content-block {
	margin: 0 0 48px;
	padding: 28px 32px;
	background: var(--ss-cream);
	border-radius: 16px;
	font-size: 16px;
	line-height: 1.8em;
	color: var(--ss-ink);
}

.ss-content-block p { margin: 0 0 16px; }
.ss-content-block p:last-child { margin-bottom: 0; }

/* ---- Meet the Parents (matches approved light-section design) ---------- */

.ss-meet-parents {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 56px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.ss-meet-parents { grid-template-columns: 1fr; gap: 32px; }
}

.ss-meet-parents__card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	font-family: 'DM Sans', Helvetica, Arial, sans-serif;
	color: var(--ss-ink);
	text-align: center;
}

.ss-meet-parents__photo {
	display: block;
	border-radius: 30px;
	overflow: hidden;
	background: var(--ss-cream);
	aspect-ratio: 4 / 3;
	width: 87%;
	margin: 0 auto;
}

.ss-meet-parents__photo img,
.ss-meet-parents__photo svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}

.ss-meet-parents__photo:hover img { transform: scale(1.03); }

.ss-meet-parents__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
}

.ss-meet-parents__name {
	font-family: 'Alfa Slab One', display, serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.2em;
	margin: 0 0 4px;
	color: var(--ss-green);
	text-align: center;
}

.ss-meet-parents__name a {
	color: inherit;
	text-decoration: none;
}

.ss-meet-parents__name a:hover { color: var(--ss-goldenrod); }

@media (max-width: 600px) {
	.ss-meet-parents__name { font-size: 26px; }
}

.ss-meet-parents__meta {
	font-size: 16px;
	line-height: 1.8em;
	margin: 0;
	text-align: left;
	width: 100%;
	max-width: 480px;
}

.ss-meet-parents__meta strong { font-weight: 700; }

.ss-meet-parents__cta {
	margin: 10px 0 0;
	text-align: center;
}

/* More Details button — white text in this section per client request. */
.ss-meet-parents .ss-btn { color: var(--ss-white); }
.ss-meet-parents .ss-btn:hover { color: var(--ss-white); }

/* ---- Meet the Puppies (matches approved dark-section design) ----------- */

.ss-meet-puppies {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

@media (max-width: 980px) {
	.ss-meet-puppies { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 600px) {
	.ss-meet-puppies { grid-template-columns: 1fr; gap: 24px; }
}

.ss-meet-puppies__card {
	display: flex;
	flex-direction: column;
	color: #fff;
	text-decoration: none;
	font-family: 'DM Sans', Helvetica, Arial, sans-serif;
}

.ss-meet-puppies__card:hover { color: #fff; }

.ss-meet-puppies__photo {
	display: block;
	border-radius: 30px;
	overflow: hidden;
	background: var(--ss-cream);
	margin-bottom: 24px;
	aspect-ratio: 1 / 1;
}

.ss-meet-puppies__photo img,
.ss-meet-puppies__photo svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}

.ss-meet-puppies__card:hover .ss-meet-puppies__photo img {
	transform: scale(1.03);
}

.ss-meet-puppies__name {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.7em;
	margin-bottom: 6px;
}

.ss-meet-puppies__meta {
	font-size: 16px;
	line-height: 1.8em;
}

.ss-meet-puppies__meta strong { font-weight: 700; }

.ss-meet-puppies__status {
	display: block;
	margin-top: 14px;
}

/* Button-sized pill on the home feed (slightly larger than the inline pills
   used in the offspring/littermates strips). */
.ss-meet-puppies__status .ss-pill {
	padding: 8px 22px;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ss-meet-puppies__card--empty {
	cursor: default;
	opacity: 0.85;
}

.ss-meet-puppies__card--empty .ss-meet-puppies__photo {
	background: rgba(255,255,255,0.05);
}

/* ---- Available Puppies feed (embedded on home page) -------------------- */

.ss-available-feed {
	padding: 56px 24px 64px;
	background: var(--ss-cream);
}

.ss-available-feed .ss-wrap {
	padding: 0;
	max-width: 1200px;
}

.ss-available-feed .ss-page-title {
	margin-top: 0;
}

.ss-grid--feed { gap: 24px; }

.ss-available-feed .ss-card {
	background: #fff;
}

/* ---- Lightbox ---------------------------------------------------------- */

.ss-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(20, 25, 18, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	animation: ss-lb-fade 200ms ease;
}

.ss-lb[hidden] { display: none; }

@keyframes ss-lb-fade { from { opacity: 0; } to { opacity: 1; } }

.ss-lb__figure {
	margin: 0;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.ss-lb__img {
	max-width: 90vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	display: block;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.5);
	background: var(--ss-cream);
}

.ss-lb__caption {
	color: #fff;
	font: 400 15px/1.5 'DM Sans', Helvetica, Arial, sans-serif;
	text-align: center;
	max-width: 80vw;
	padding: 0 8px;
}

.ss-lb__close,
.ss-lb__nav {
	position: absolute;
	background: rgba(0,0,0,0.4);
	color: #fff;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 200ms ease, transform 200ms ease;
	font-family: 'DM Sans', Helvetica, Arial, sans-serif;
}

.ss-lb__close:hover,
.ss-lb__nav:hover {
	background: var(--ss-goldenrod);
	color: var(--ss-ink);
}

.ss-lb__close {
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	font-size: 28px;
	line-height: 1;
}

.ss-lb__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	font-size: 20px;
	line-height: 1;
}

.ss-lb__nav--prev { left: 20px; }
.ss-lb__nav--next { right: 20px; }

.ss-lb__counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	background: rgba(0,0,0,0.4);
	padding: 6px 14px;
	border-radius: 100px;
	font: 700 13px/1 'DM Sans', Helvetica, Arial, sans-serif;
	letter-spacing: 0.05em;
}

@media (max-width: 600px) {
	.ss-lb { padding: 12px; }
	.ss-lb__img { max-width: 96vw; max-height: 70vh; }
	.ss-lb__close { top: 12px; right: 12px; }
	.ss-lb__nav { width: 44px; height: 44px; }
	.ss-lb__nav--prev { left: 8px; }
	.ss-lb__nav--next { right: 8px; }
}

/* Subtle "tap-to-enlarge" affordance on hover for lightbox triggers. */
[data-ss-lightbox] {
	cursor: zoom-in;
}

/* ---- Inline inquiry form ----------------------------------------------- */

.ss-inquire {
	/* Match the width of the puppy profile section above so the form
	   doesn't look skinny by comparison. */
	margin: 48px 0 56px;
	max-width: none;
	padding: 40px 56px;
	background: var(--ss-cream);
	border-radius: 20px;
	scroll-margin-top: 100px;
}

@media (max-width: 600px) {
	.ss-inquire { padding: 24px 20px; }
}

.ss-inquire .ss-section-title {
	margin-top: 0;
}

.ss-inquire__intro {
	text-align: center;
	font-size: 16px;
	line-height: 1.7em;
	margin: 0 0 24px;
	color: var(--ss-ink);
}

.ss-inquire__form .fluentform .ff-el-form-control,
.ss-inquire__form .fluentform textarea {
	background: #fff;
	border: 1px solid rgba(85,107,60,0.25);
	border-radius: 8px;
	font: 400 15px/1.6 'DM Sans', Helvetica, Arial, sans-serif;
}

.ss-inquire__form .fluentform .ff-el-input--label label {
	font-weight: 700;
}

.ss-inquire__form .fluentform .ff-btn-submit {
	background: var(--ss-goldenrod);
	color: var(--ss-ink);
	border: 0;
	border-radius: 100px;
	padding: 14px 32px;
	font: 700 16px/1 'DM Sans', Helvetica, Arial, sans-serif;
	cursor: pointer;
	transition: background-color 300ms ease, color 300ms ease;
}

.ss-inquire__form .fluentform .ff-btn-submit:hover {
	background: var(--ss-green);
	color: #fff;
}

.ss-single__title {
	font-family: 'Alfa Slab One', display, serif;
	font-size: 40px;
	margin: 0 0 16px;
	color: var(--ss-green);
}

.ss-single__meta {
	font-size: 16px;
	line-height: 1.9em;
	margin: 0 0 20px;
}

.ss-single__bio {
	font-size: 16px;
	line-height: 1.8em;
}

.ss-section-title {
	font-family: 'Oswald', Helvetica, Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 22px;
	color: var(--ss-green);
	margin: 48px 0 20px;
	text-align: center;
}

/* ---- Offspring + parent strips on detail pages -------------------------- */

.ss-strip {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}

.ss-mini {
	background: var(--ss-white);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
	text-align: center;
}

.ss-mini img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

.ss-mini__name {
	font-size: 16px;
	font-weight: 700;
	padding: 12px 12px 4px;
	color: var(--ss-ink);
	text-decoration: none;
	display: block;
}

.ss-mini__sub {
	font-size: 13px;
	color: #555;
	padding: 0 12px 14px;
}

.ss-empty {
	text-align: center;
	font-style: italic;
	color: #666;
	padding: 24px;
}

/* ---- Hide things that don't belong on these archive layouts ------------- */
body.post-type-archive-ss_parent .et_pb_post_title,
body.post-type-archive-ss_puppy .et_pb_post_title { display: none; }
