/* Saviors of the Strays — Pet Adoption front-end styles
   Colors match the brand guidelines. Change the variables below if your palette changes. */

.sots-pet-grid-wrap,
.sots-single-pet {
	--sots-primary: #FF7A3D;
	--sots-maroon: #3D2020;
	--sots-terracotta: #A54B3C;
	--sots-cream: #FFF8F0;
	--sots-text: #2B2320;
	--sots-muted: #8A7A72;
	--sots-available: #FF7A3D;
	--sots-pending: #E0A339;
	--sots-adopted: #6B8F71;
	font-family: 'Nunito', sans-serif;
	color: var(--sots-text);
}

/* Filters */
.sots-filters {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.sots-filter-btn {
	font-family: 'Baloo 2', sans-serif;
	font-weight: 600;
	padding: 8px 20px;
	border-radius: 999px;
	border: 2px solid var(--sots-maroon);
	background: transparent;
	color: var(--sots-maroon);
	cursor: pointer;
	transition: all .2s ease;
}
.sots-filter-btn:hover {
	background: var(--sots-cream);
}
.sots-filter-btn.is-active {
	background: var(--sots-maroon);
	color: #fff;
}

/* Grid */
.sots-pet-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, 1fr);
}
.sots-pet-grid.sots-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sots-pet-grid.sots-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sots-pet-grid.sots-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.sots-pet-grid.sots-cols-3,
	.sots-pet-grid.sots-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 560px) {
	.sots-pet-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Card */
.sots-pet-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(61, 32, 32, 0.08);
	transition: transform .2s ease, box-shadow .2s ease;
	display: flex;
	flex-direction: column;
}
.sots-pet-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(61, 32, 32, 0.14);
}
.sots-card-img-link {
	position: relative;
	display: block;
	line-height: 0;
}
.sots-card-img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}
.sots-card-img--placeholder {
	width: 100%;
	height: 220px;
	background: var(--sots-cream);
}

/* Badge */
.sots-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	font-family: 'Baloo 2', sans-serif;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .5px;
	text-transform: uppercase;
	padding: 4px 14px;
	border-radius: 999px;
	color: #fff;
}
.sots-badge--available { background: var(--sots-available); }
.sots-badge--pending { background: var(--sots-pending); }
.sots-badge--adopted { background: var(--sots-adopted); }
.sots-badge--vax {
	left: auto;
	right: 12px;
	background: var(--sots-adopted);
}

/* Card body */
.sots-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex-grow: 1;
}
.sots-card-name {
	font-family: 'Baloo 2', sans-serif;
	font-size: 20px;
	margin: 0;
}
.sots-card-name a {
	color: var(--sots-maroon);
	text-decoration: none;
}
.sots-card-meta {
	color: var(--sots-muted);
	font-size: 14px;
	margin: 0;
}
.sots-card-location {
	color: var(--sots-muted);
	font-size: 13px;
	margin: 0 0 8px;
}

/* Buttons */
.sots-btn {
	display: inline-block;
	text-align: center;
	font-family: 'Baloo 2', sans-serif;
	font-weight: 600;
	font-size: 15px;
	padding: 10px 20px;
	border-radius: 999px;
	text-decoration: none;
	border: 2px solid transparent;
	transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
	color: #fff;
}
.sots-btn--primary {
	background: #FF7A3D;
	background-color: #FF7A3D;
	color: #fff !important;
	border-color: #FF7A3D;
}
.sots-btn--primary:hover,
.sots-btn--primary:focus,
.sots-btn--primary:active {
	opacity: 1;
	background: #E86A2E;
	background-color: #E86A2E;
	color: #fff !important;
	border-color: #E86A2E;
}
.sots-card-btn {
	margin-top: auto;
}

.sots-empty {
	color: var(--sots-muted);
	font-style: italic;
}

/* ===== Single Pet Page ===== */
.sots-single-pet {
	font-family: 'Nunito', sans-serif;
	color: var(--sots-text);
}
.sots-single-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin-bottom: 32px;
}
@media (max-width: 782px) {
	.sots-single-top {
		grid-template-columns: 1fr;
	}
}
.sots-single-main-img {
	width: 100%;
	border-radius: 16px;
	object-fit: cover;
	max-height: 480px;
}
.sots-single-gallery {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}
.sots-gallery-thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
}
.sots-single-info .sots-badge {
	position: static;
	display: inline-block;
	margin-bottom: 10px;
}
.sots-single-name {
	font-family: 'Baloo 2', sans-serif;
	font-size: 36px;
	color: var(--sots-maroon);
	margin: 0 0 16px;
}
.sots-fact-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 16px;
}
.sots-fact-list li strong {
	color: var(--sots-maroon);
}
.sots-single-description h2,
.sots-single-health h2 {
	font-family: 'Baloo 2', sans-serif;
	color: var(--sots-maroon);
	font-size: 24px;
}

/* Meet button (reset button styles) */
button.sots-btn {
	cursor: pointer;
	font: inherit;
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
}
.sots-single-btn {
	width: auto;
	min-width: 180px;
}

/* ===== Meet inquiry modal ===== */
body.sots-modal-open {
	overflow: hidden;
}
.sots-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.sots-modal[hidden] {
	display: none !important;
}
.sots-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(43, 35, 32, 0.55);
}
.sots-modal__dialog {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 20px;
	padding: 28px 24px 24px;
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 50px rgba(61, 32, 32, 0.25);
	font-family: 'Nunito', sans-serif;
	color: var(--sots-text, #2B2320);
}
.sots-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--sots-muted, #8A7A72);
}
.sots-modal__title {
	font-family: 'Baloo 2', sans-serif;
	font-size: 26px;
	color: var(--sots-maroon, #3D2020);
	margin: 0 0 6px;
	padding-right: 28px;
}
.sots-modal__intro {
	margin: 0 0 18px;
	color: var(--sots-muted, #8A7A72);
	font-size: 14px;
}
.sots-meet-form__field {
	display: block;
	margin-bottom: 14px;
}
.sots-meet-form__field > span,
.sots-meet-form__intent legend {
	display: block;
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 6px;
	color: var(--sots-maroon, #3D2020);
}
.sots-meet-form__field em {
	color: var(--sots-primary, #FF7A3D);
	font-style: normal;
}
.sots-meet-form__field input[type="text"],
.sots-meet-form__field input[type="tel"],
.sots-meet-form__field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid #e2d8d0;
	border-radius: 10px;
	font: inherit;
	color: inherit;
	background: #FFF8F0;
	box-sizing: border-box;
}
.sots-meet-form__field input:focus,
.sots-meet-form__field textarea:focus {
	outline: 2px solid var(--sots-primary, #FF7A3D);
	outline-offset: 1px;
	border-color: transparent;
}
.sots-meet-form__intent {
	border: 0;
	padding: 0;
	margin: 0 0 14px;
}
.sots-meet-form__radio {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
	font-weight: 400;
	cursor: pointer;
}
.sots-meet-form__radio input {
	margin-top: 3px;
}
.sots-meet-form__error {
	color: #A54B3C;
	font-size: 14px;
	margin: 0 0 10px;
}
.sots-meet-form__success {
	color: #6B8F71;
	font-size: 15px;
	font-weight: 600;
	margin: 8px 0 0;
}
.sots-meet-form__submit {
	width: 100%;
	border: 0 !important;
	cursor: pointer;
	background: #FF7A3D !important;
	background-color: #FF7A3D !important;
	color: #ffffff !important;
	opacity: 1 !important;
	visibility: visible !important;
	-webkit-text-fill-color: #ffffff !important;
}
.sots-meet-form__submit span {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	opacity: 1 !important;
	visibility: visible !important;
}
.sots-meet-form__submit:hover,
.sots-meet-form__submit:focus,
.sots-meet-form__submit:active {
	background: #E86A2E !important;
	background-color: #E86A2E !important;
	color: #ffffff !important;
	opacity: 1 !important;
	-webkit-text-fill-color: #ffffff !important;
}
.sots-meet-form__submit:disabled {
	opacity: 0.7 !important;
	cursor: wait;
}
