/* The Perfect Posey – split hero ("C · Editorial Split") and header tweaks.
   Loaded site-wide (see functions.php). */

.pp-hero {
	display: flex;
	flex-wrap: wrap;
	min-height: min(800px, calc(100vh - 100px));
	font-family: 'Open Sans', sans-serif;
	color: #1f1c18;
}

/* Inner pages: a shorter hero */
.pp-hero:not(.pp-hero--front) { min-height: min(560px, calc(100vh - 100px)); }

.pp-hero__panel {
	flex: 5 1 440px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 22px;
	padding: 48px 56px;
	background: #faf7f2;
	text-align: center;
	box-sizing: border-box;
}

.pp-hero__logo-link { display: block; line-height: 0; width: 300px; max-width: 80%; }
.pp-hero__logo { display: block; width: 100%; height: auto; }
.pp-hero:not(.pp-hero--front) .pp-hero__logo-link { width: 220px; }

.pp-hero__title {
	margin: 8px 0 0;
	font-family: 'Playfair Display', serif;
	font-style: italic;
	font-weight: 400;
	font-size: 40px;
	line-height: 1.15;
	letter-spacing: 0;
	text-transform: none;
	max-width: 460px;
	color: #1f1c18;
}

.pp-hero__lede {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #4a443c;
	max-width: 400px;
}

.pp-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 8px;
}

.pp-btn,
.pp-btn:visited {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 26px;
	font-family: 'Open Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: #1f1c18;
	box-sizing: border-box;
	transition: background-color .2s, color .2s, border-color .2s;
}
.pp-btn--gold { background: #ca9b52; }
.pp-btn--gold:hover, .pp-btn--gold:focus-visible { background: #b8883f; color: #1f1c18; }
.pp-btn--line { border: 1px solid #1f1c18; }
.pp-btn--line:hover, .pp-btn--line:focus-visible { background: #1f1c18; color: #fff; }
.pp-btn:focus-visible { outline: 2px solid #8a6424; outline-offset: 3px; }

.pp-hero__media {
	flex: 7 1 560px;
	position: relative;
	min-height: 480px;
	overflow: hidden;
	background: #3c4a33;
}
/* Imagify may wrap the image in <picture> and move the class onto it */
.pp-hero__media picture img { object-position: inherit; }
.pp-hero__img,
.pp-hero__media picture,
.pp-hero__media picture img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 47% 30%;
}

/* Phone line */
.pp-hero__phone { margin: -6px 0 0; font-size: 15px; letter-spacing: .04em; color: #4a443c; }
.pp-hero__phone a { color: #1f1c18; font-weight: 600; text-decoration: none; border-bottom: 1px solid #ca9b52; }
.pp-hero__phone a:hover { color: #8a6424; }

/* Header: no top bar; Request a Quote button to the right of the nav icons */
#top-bar { display: none !important; }
#main-nav .main-nav-icons { display: flex; align-items: center; }
#main-nav .pp-nav-quote,
#main-nav .pp-nav-quote:visited {
	display: inline-flex;
	align-items: center;
	height: 40px;
	margin-left: 18px;
	padding: 0 20px;
	background: #ca9b52;
	color: #1f1c18;
	font-family: 'Open Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}
#main-nav .pp-nav-quote:hover { background: #b8883f; color: #1f1c18; }

/* Desktop nav row: hamburger | menu (fills the middle) | icons + quote. Ashe's mobile nav starts at 979px. */
@media (min-width: 980px) {
	#main-nav > div { display: flex; align-items: center; }
	#main-nav .main-menu-container { flex: 1 1 auto; order: 1; padding-left: 56px; }
	#main-nav .main-nav-icons { position: static; order: 2; flex: none; padding-right: 24px; }
}
@media (min-width: 980px) and (max-width: 1199px) {
	#main-nav .main-nav-socials { display: none; }
}

/* Space between the hero and the page content */
.has-pp-hero .page-content { padding-top: 48px; }
@media (max-width: 860px) { .has-pp-hero .page-content { padding-top: 32px; } }

/* Accolades page (1422): jump links, anchor offsets, section rhythm */
.pp-jump { margin: 8px 0 4px; }
.pp-jump .elementor-widget-container, .pp-jump .elementor-text-editor, .pp-jump p { margin: 0; font-size: 12px !important; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #b9a98d; }
.pp-jump a { color: #8a6424; text-decoration: none; padding: 6px 10px; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.pp-jump a:hover, .pp-jump a:focus-visible { color: #1f1c18; border-bottom-color: #ca9b52; }
html { scroll-behavior: smooth; }
#awards, #press, #testimonials { scroll-margin-top: 90px; }
.page-id-1422 .post-content .elementor-top-section { padding-top: 36px; padding-bottom: 36px; }
.page-id-1422 .post-content .elementor-top-section:first-child { padding-top: 24px; }
.page-id-1422 .elementor-widget-divider { margin-bottom: 28px; }
.page-id-1422 .elementor-widget-heading .elementor-heading-title { margin-bottom: 8px; }
.page-id-1422 .elementor-widget-image-box { max-width: 1000px; margin-left: auto; margin-right: auto; }
.page-id-1422 .elementor-widget-image-box .elementor-image-box-title { font-family: 'Playfair Display', serif; font-weight: 400; margin-bottom: 10px; }
.page-id-1422 .elementor-widget-testimonial .elementor-testimonial-content { line-height: 1.7; }
.page-id-1422 .elementor-image-box-title, .page-id-1422 .elementor-image-box-title a { color: #1f1c18 !important; }
.page-id-1422 .elementor-image-box-title a:hover { color: #8a6424 !important; }
.page-id-1422 .elementor-testimonial-name { color: #1f1c18 !important; font-family: 'Playfair Display', serif; }
.page-id-1422 .elementor-testimonial-job { color: #8a7f70 !important; }
/* All Accolades ratings are 5/5: draw five gold stars once (Elementor's icon-font stars rendered as boxes). */
.page-id-1422 .elementor-star-rating i { display: none !important; }
.page-id-1422 .elementor-star-rating:before { content: '\2605\2605\2605\2605\2605'; font-family: Arial, sans-serif; font-size: 18px; letter-spacing: 3px; line-height: 1; color: #ca9b52; }
.page-id-1422 .elementor-element-bd83440 { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Phones and small tablets: compact panel stacked over the photo */
@media (max-width: 860px) {
	.pp-hero, .pp-hero:not(.pp-hero--front) { flex-direction: column; min-height: 0; }
	.pp-hero__panel { flex: none; padding: 20px 24px 24px; gap: 12px; }
	.pp-hero__logo-link, .pp-hero:not(.pp-hero--front) .pp-hero__logo-link { width: 170px; }
	.pp-hero__title { font-size: 26px; line-height: 1.2; margin: 0; }
	.pp-hero__lede, .pp-btn--line { display: none; }
	.pp-hero__phone { margin: 0; font-size: 14px; }
	#main-nav .pp-nav-quote { display: none; }
	.pp-hero__media { flex: none; height: 56vh; min-height: 360px; }
	.pp-hero__img { object-position: 47% 22%; }
	.pp-hero:not(.pp-hero--front) .pp-hero__media { height: 40vh; min-height: 260px; }
}
