/*
Theme Name:  Hello Elementor Child — Your Windows & Doors
Theme URI:   https://yourwindowsanddoors.com/
Description: Child theme of Hello Elementor. Holds the custom PHP location-page template and related styles. Managed by WebTek — edit locally, upload via Appearance > Themes.
Author:      WebTek
Template:    hello-elementor
Version:     1.0.0
Text Domain: hello-elementor-child
*/

/* ── Location page template (template-location.php) ──────────────────
   Colors/fonts pull from Elementor's global CSS variables so these
   pages track the site's Elementor Site Settings automatically. */

.ywd-location {
	/* Site brand (Elementor kit): green = global primary, dark blue = global
	   accent. Structural/heading color is the blue; CTAs are the green.
	   --ywd-accent-hover is the kit's custom darker green (df2b4e1), used as
	   the button hover state across the site. */
	--ywd-primary: var(--e-global-color-accent, #004E7C);
	--ywd-accent: var(--e-global-color-primary, #81BA41);
	--ywd-accent-hover: var(--e-global-color-df2b4e1, #628526);
	--ywd-text: var(--e-global-color-text, #333333);
	font-family: var(--e-global-typography-text-font-family, "Be Vietnam Pro"), sans-serif;
	font-size: var(--e-global-typography-text-font-size, 18px);
	color: var(--ywd-text);
	line-height: 1.6;
}

.ywd-location h1,
.ywd-location h2,
.ywd-location h3 {
	font-family: var(--e-global-typography-primary-font-family, "Marcellus"), serif;
	font-weight: 400;
	text-transform: uppercase;
	color: var(--ywd-primary);
	line-height: 1.2;
	margin: 0 0 0.5em;
}

/* Heading sizes matching the Elementor kit (primary 55px / secondary 36px),
   clamped so they scale down on small screens. */
.ywd-location h1 {
	font-size: clamp(32px, 5vw, 55px);
}

.ywd-location h2 {
	font-size: clamp(26px, 3.5vw, 36px);
}

.ywd-location h3 {
	font-size: clamp(20px, 2.5vw, 26px);
}

.ywd-section {
	max-width: 1140px;
	margin: 0 auto;
	padding: 48px 20px;
}

/* Hero — the blue ProVia entry-door photo the homepage hero uses, under a
   brand-blue overlay so the white text stays readable. */
.ywd-hero {
	background:
		linear-gradient(rgba(0, 78, 124, 0.72), rgba(0, 78, 124, 0.72)),
		var(--ywd-primary)
		url("https://yourwindowsanddoors.com/wp-content/uploads/2023/05/Background-2023-05-25T023759.083.jpg")
		center / cover no-repeat;
	text-align: center;
}

.ywd-hero .ywd-section {
	padding-top: 72px;
	padding-bottom: 72px;
}

.ywd-hero h1,
.ywd-hero p {
	color: #ffffff;
}

.ywd-hero p {
	font-size: 1.15em;
	max-width: 720px;
	margin: 0 auto 1.5em;
}

/* Buttons — matches the Elementor button widgets used sitewide:
   green bg, darker-green hover, Marcellus SC 20px/500, 20px radius. */
.ywd-btn {
	display: inline-block;
	background: var(--ywd-accent);
	color: #ffffff;
	padding: 12px 28px;
	border-radius: 20px;
	font-family: var(--e-global-typography-accent-font-family, "Marcellus SC"), sans-serif;
	font-size: var(--e-global-typography-accent-font-size, 20px);
	font-weight: var(--e-global-typography-accent-font-weight, 500);
	line-height: var(--e-global-typography-accent-line-height, 24px);
	text-decoration: none;
	margin: 0 8px 8px 0;
	transition: background-color 0.2s ease;
}

.ywd-btn:hover,
.ywd-btn:focus {
	color: #ffffff;
	background: var(--ywd-accent-hover);
}

.ywd-btn--ghost {
	background: transparent;
	box-shadow: inset 0 0 0 2px #ffffff;
}

/* Intro — text + photo */
.ywd-intro {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 40px;
	align-items: center;
}

.ywd-intro-media {
	margin: 0;
}

.ywd-intro-media img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

@media (max-width: 767px) {
	.ywd-intro {
		grid-template-columns: 1fr;
	}
}

.ywd-neighborhoods {
	margin-top: 1.25em;
}

/* Two-column services */
.ywd-services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px;
}

.ywd-card {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 28px;
}

.ywd-card ul {
	margin: 0.75em 0 0;
	padding-left: 1.2em;
}

.ywd-card img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
	margin-bottom: 20px;
}

.ywd-card h3 a {
	color: inherit;
	text-decoration: none;
}

.ywd-card h3 a:hover {
	text-decoration: underline;
}

/* Gallery strip */
.ywd-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 1.25em;
}

.ywd-gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
	display: block;
	aspect-ratio: 3 / 4;
}

@media (max-width: 767px) {
	.ywd-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* FAQ */
.ywd-faq-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	padding: 14px 0;
}

.ywd-faq-item summary {
	font-weight: 700;
	cursor: pointer;
	color: var(--ywd-primary);
}

.ywd-faq-item p {
	margin: 0.75em 0 0;
}

/* Testimonial */
.ywd-testimonial {
	background: rgba(0, 0, 0, 0.04);
}

.ywd-testimonial blockquote {
	font-size: 1.15em;
	font-style: italic;
	margin: 0;
	max-width: 800px;
}

.ywd-testimonial cite {
	display: block;
	margin-top: 1em;
	font-style: normal;
	font-weight: 700;
}

/* Estimate form (embedded Elementor template) — center the form card,
   which carries a fixed width from its homepage design. */
#ywd-estimate .elementor > .e-con {
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
}

/* Nearby areas */
.ywd-nearby ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ywd-nearby a {
	display: inline-block;
	border: 1px solid var(--ywd-primary);
	border-radius: 4px;
	padding: 8px 16px;
	text-decoration: none;
	color: var(--ywd-primary);
}

.ywd-nearby a:hover {
	background: var(--ywd-primary);
	color: #ffffff;
}
