/*
Theme Name: Rossy · Winchester Homes
Theme URI: https://winchesterhomes.example
Description: Child theme of Twenty Twenty-Five for the Rossy Winchester Homes realtor site. Navy, cream, and gold palette with serif display type. Includes a full homepage block pattern.
Author: Rossy
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rossy-winchester
*/

/* ---- Small helpers the block editor can't do natively ---- */

/* Listing + neighborhood cards */
.rossy-card {
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rossy-card:hover {
	box-shadow: 0 10px 30px rgba(27, 42, 71, 0.12);
	transform: translateY(-2px);
}

.rossy-card img {
	display: block;
	width: 100%;
	height: 210px;
	object-fit: cover;
}

/* Hero image fills its column edge-to-edge */
.rossy-hero-image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
}

.rossy-hero-image,
.rossy-hero-image figure {
	height: 100%;
}

/* Testimonial quotes */
.rossy-quote {
	border-top: 3px solid var(--wp--preset--color--gold);
}

@media (prefers-reduced-motion: reduce) {
	.rossy-card {
		transition: none;
	}
	.rossy-card:hover {
		transform: none;
	}
}

/* ---- FAQ page: category tab cards ----
   The cards overlap the navy hero / cream body seam. !important on the
   negative margin is needed because WordPress writes its own spacing
   styles directly on the block, which otherwise outrank a plain class rule. */
.rw-faq-tabs {
	margin-top: -4.5rem !important;
	position: relative;
	z-index: 2;
}

.rw-faq-tab {
	display: block;
	text-decoration: none;
	cursor: pointer;
	background: #fff;
	border: 1px solid #e6e1d6;
	border-radius: 8px;
	padding: 1.5rem;
	transition: box-shadow 0.15s ease;
}

.rw-faq-tab:hover {
	box-shadow: 0 10px 24px rgba(27, 42, 71, 0.1);
}

.rw-faq-tab .rw-faq-tab-num {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--gold);
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.rw-faq-tab .rw-faq-tab-title {
	display: block;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	margin-bottom: 0.35rem;
}

.rw-faq-tab .rw-faq-tab-desc {
	display: block;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--navy);
}

.rw-faq-tab.is-active {
	background: var(--wp--preset--color--gold);
	border-color: var(--wp--preset--color--gold);
}

.rw-faq-tab.is-active .rw-faq-tab-num {
	color: var(--wp--preset--color--navy);
}

.rw-faq-tab.is-active .rw-faq-tab-title {
	color: #fff;
}

.rw-faq-tab.is-active .rw-faq-tab-desc {
	color: #fff;
}

/* ---- FAQ page: accordion items (core Details block) ---- */
.rw-faq-panel {
	display: none;
}

.rw-faq-panel.is-active {
	display: block;
}

/* In the block editor, show all three category panels stacked so every
   FAQ is reachable for editing — the tab-switching only needs to apply
   on the live site, where the JS also runs. */
.editor-styles-wrapper .rw-faq-panel {
	display: block !important;
	border: 1px dashed var(--wp--preset--color--gold);
	border-radius: 6px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
}

.editor-styles-wrapper .rw-faq-panel::before {
	content: "Editing category: " attr(id);
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
	margin-bottom: 1rem;
}

.wp-block-details.rw-faq-item {
	border: 1px solid #e6e1d6;
	border-radius: 6px;
	padding: 1.1rem 1.5rem;
	margin-bottom: 0.75rem;
}

.wp-block-details.rw-faq-item summary {
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.wp-block-details.rw-faq-item summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.rw-faq-item summary::after {
	content: "+";
	flex-shrink: 0;
	color: var(--wp--preset--color--gold);
	font-size: 1.25rem;
	line-height: 1;
}

.wp-block-details.rw-faq-item[open] summary::after {
	content: "\2212";
}

.wp-block-details.rw-faq-item p {
	color: var(--wp--preset--color--stone);
	margin-top: 0.85rem;
	margin-bottom: 0;
}
