/*
Theme Name: Blocksy Child - Wright & Associates
Template: blocksy
Author: 465 Media
Version: 1.0.0
Text Domain: blocksy-child
*/

:root {
	--gb-container-width: min(1680px, calc(100vw - 48px));
}

/* ==========================================================
   Header (1:1 with the Oxygen "Header and Footer" template)
   ========================================================== */

/* Top bar */
#header [data-row*="top"] {
	background-color: #453f38;
}

.wright-topbar-phones {
	margin: 0;
	display: flex;
	align-items: center;
	color: #ffffff;
	font-size: 15px;
	line-height: 29px;
}

.wright-topbar-phones a {
	color: #fcfcfc;
	padding: 0 5px;
	text-decoration: none;
}

.wright-topbar-phones a:hover {
	color: #fcfcfc;
}

.wright-topbar-buttons {
	margin: 0;
	display: flex;
	align-items: center;
}

.wright-hbtn {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	padding: 10px 30px;
	border-radius: 9px;
	color: #f0f0f0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.3s, color 0.3s;
}

.wright-hbtn i {
	margin-right: 15px;
	font-size: 22px;
	color: #f0f0f0;
	transition: color 0.3s;
}

.wright-hbtn--blue {
	margin-right: 15px;
	background-color: #1075b1;
}

.wright-hbtn--blue:hover {
	background-color: #a1ddf6;
	color: #453f38;
}

.wright-hbtn--blue:hover i {
	color: #453f38;
}

.wright-hbtn--orange {
	background-color: #e6551b;
}

.wright-hbtn--orange:hover {
	background-color: #c33a04;
	color: #f0f0f0;
}

@media (min-width: 1681px) {
	.wright-topbar-phones {
		font-size: 24px;
	}

	.wright-hbtn {
		font-size: 16px;
	}
}

/* Main row */
#header [data-row*="middle"] {
	background-color: #1075b1;
}

#header [data-device="desktop"] [data-id="menu"] > ul > li {
	margin-left: 40px;
}

#header [data-device="desktop"] [data-id="menu"] > ul > li > .ct-menu-link {
	padding: 0;
	color: #f0f0f0;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
}

#header [data-device="desktop"] [data-id="menu"] > ul > li > .ct-menu-link:hover,
#header [data-device="desktop"] [data-id="menu"] > ul > li.current-menu-item > .ct-menu-link {
	color: #f0f0f0;
}

#header [data-device="desktop"] [data-id="menu"] .ct-toggle-dropdown-desktop svg {
	width: 14px;
	height: 14px;
	fill: #f0f0f0;
}

#header [data-device="desktop"] [data-id="menu"] .ct-toggle-dropdown-desktop {
	margin-left: 10px;
}

#header [data-device="desktop"] [data-id="menu"] .sub-menu {
	background-color: #1075b1;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
}

#header [data-device="desktop"] [data-id="menu"] .sub-menu .ct-menu-link {
	padding: 10px 20px;
	color: #f0f0f0;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
}

#header [data-device="desktop"] [data-id="menu"] .sub-menu .ct-menu-link:hover {
	background-color: #453f38;
	color: #f0f0f0;
}

@media (min-width: 1681px) {
	#header [data-device="desktop"] [data-id="menu"] > ul > li > .ct-menu-link,
	#header [data-device="desktop"] [data-id="menu"] .sub-menu .ct-menu-link {
		font-size: 18px;
	}
}

/* Logo */
#header .site-logo-container {
	--logo-max-height: 48px;
}

/* Mobile trigger + off-canvas panel */
#header [data-device="mobile"] .ct-header-trigger {
	--theme-icon-size: 30px;
	--theme-icon-color: #ffffff;
	--theme-icon-hover-color: #ffffff;
}

#offcanvas {
	--side-panel-width: 300px;
}

#offcanvas .ct-panel-inner {
	background-color: #ffffff;
}

#offcanvas .ct-toggle-close {
	--theme-icon-color: #004f7e;
	--theme-icon-hover-color: #004f7e;
}

#offcanvas .mobile-menu a,
#offcanvas .mobile-menu .ct-menu-link {
	padding: 10px;
	color: #004f7e;
	text-align: left;
}

#offcanvas .mobile-menu .sub-menu {
	background-color: #a1ddf6;
}
#header .ct-header-text .entry-content > p {
	margin: 0;
	padding: 0;
}

/* Header: match Oxygen's 24px side padding instead of Blocksy's 5vw edge */
#header .ct-container {
	width: 100%;
	max-width: 1680px;
	padding-left: 24px;
	padding-right: 24px;
}

/* ==========================================================
   Editor colour presets carried over from the Oxygen site
   ========================================================== */
:root {
	--wp--preset--color--dark: #453f38;
	--wp--preset--color--grey: #f0f0f0;
	--wp--preset--color--light-blue: #a1ddf6;
	--wp--preset--color--lightest-blue: #c8e9f7;
	--wp--preset--color--med-blue: #0075b1;
	--wp--preset--color--primary-blue: #004f7e;
	--wp--preset--color--dark-blue: #42495b;
	--wp--preset--color--orange: #e65502;
	--wp--preset--color--red: #c33a04;
}

.has-dark-color { color: var(--wp--preset--color--dark) !important; }
.has-grey-color { color: var(--wp--preset--color--grey) !important; }
.has-light-blue-color { color: var(--wp--preset--color--light-blue) !important; }
.has-lightest-blue-color { color: var(--wp--preset--color--lightest-blue) !important; }
.has-med-blue-color { color: var(--wp--preset--color--med-blue) !important; }
.has-primary-blue-color { color: var(--wp--preset--color--primary-blue) !important; }
.has-dark-blue-color { color: var(--wp--preset--color--dark-blue) !important; }
.has-orange-color { color: var(--wp--preset--color--orange) !important; }
.has-red-color { color: var(--wp--preset--color--red) !important; }
.has-dark-background-color { background-color: var(--wp--preset--color--dark) !important; }
.has-grey-background-color { background-color: var(--wp--preset--color--grey) !important; }
.has-light-blue-background-color { background-color: var(--wp--preset--color--light-blue) !important; }
.has-lightest-blue-background-color { background-color: var(--wp--preset--color--lightest-blue) !important; }
.has-med-blue-background-color { background-color: var(--wp--preset--color--med-blue) !important; }
.has-primary-blue-background-color { background-color: var(--wp--preset--color--primary-blue) !important; }
.has-dark-blue-background-color { background-color: var(--wp--preset--color--dark-blue) !important; }
.has-orange-background-color { background-color: var(--wp--preset--color--orange) !important; }
.has-red-background-color { background-color: var(--wp--preset--color--red) !important; }

/* ==========================================================
   Pages: let sections run full width like Oxygen's Inner Content.
   GB containers (V1 + V2) set their own inner widths.
   ========================================================== */
body.single-rank_math_locations [data-content="normal"] > article,
body.page [data-content="normal"] > article {
	--theme-block-width: 100%;
	--theme-block-max-width: 100%;
}

body.page #main .entry-content > * {
	margin-top: 0;
	margin-bottom: 0;
}

body.page #main .entry-content > p,
body.page #main .entry-content > h1,
body.page #main .entry-content > h2,
body.page #main .entry-content > h3,
body.page #main .entry-content > ul,
body.page #main .entry-content > ol {
	max-width: 1680px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	margin-bottom: 1.5em;
}

/* Content rhythm matched to the Oxygen site (16px paragraph gap) */
body.page #main .entry-content,
body.single-rank_math_locations #main .entry-content {
	--theme-content-spacing: 16px;
}

body.single-rank_math_locations #main .entry-content .gb-headline,
body.page #main .entry-content .gb-headline {
	margin-bottom: 15px;
}

/* Separators: full width, 2px solid grey like live */
#main .entry-content hr.wp-block-separator {
	width: 100%;
	max-width: none;
	height: 0;
	margin: 8px auto;
	border: 0;
	border-top: 2px solid #808080;
	background: none;
}

#main .entry-content hr.wp-block-separator.has-text-color {
	border-top-color: currentColor;
}

/* Content links: no underline, like live */
#main .entry-content a:not(.wright-btn):not(.gb-button) {
	text-decoration: none;
}

#main .entry-content a:not(.wright-btn):not(.gb-button):hover {
	text-decoration: underline;
}

/* Lists: blue hanging bullet (OxyMonster style) */
#main .entry-content ul.wp-block-list {
	margin: 16px 0;
	padding-left: 15px;
	list-style: none;
}

#main .entry-content ul.wp-block-list > li {
	margin: 0;
	padding-left: 0;
	line-height: 21px;
}

#main .entry-content ul.wp-block-list > li::before {
	content: "\2022";
	display: inline-block;
	width: 16px;
	margin-left: -16px;
	color: #1075b1;
}

/* Gravity Forms (legacy markup) fields matched to live */
.gform_legacy_markup_wrapper input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.gform_legacy_markup_wrapper select,
.gform_legacy_markup_wrapper textarea {
	height: auto;
	padding: 20px !important;
	border: 1px solid #bcb4b1;
	border-radius: 9px;
	background-color: #ffffff;
	color: #000000;
	font-size: 16px;
}

.gform_legacy_markup_wrapper .gform_footer input[type="submit"],
.gform_legacy_markup_wrapper .gform_footer button {
	padding: 15px 30px;
	border: 0;
	border-radius: 9px;
	background-color: #1075b1;
	color: #ffffff;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}

.gform_legacy_markup_wrapper .gform_footer input[type="submit"]:hover,
.gform_legacy_markup_wrapper .gform_footer button:hover {
	background-color: #a1ddf6;
	color: #453f38;
}

/* Columns holding a centred photo also centre their button (provider bios) */
#main .gb-inside-container:has(> figure.aligncenter) {
	text-align: center;
}

/* ==========================================================
   Buttons (Oxygen .btn-regular / .btn-hero-regular / .btn-lightblue)
   ========================================================== */
.wright-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: 9px;
	color: #ffffff;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s;
}

.wright-btn:hover,
.wright-btn:focus {
	color: #ffffff;
}

.wright-btn i {
	font-size: 16px;
	color: #f0f0f0;
}

.wright-btn--blue {
	background-color: #1075b1;
}

.wright-btn--blue:hover,
.wright-btn--blue:focus {
	background-color: #a1ddf6;
	color: #453f38;
}

.wright-btn--blue:hover i {
	color: #453f38;
}

.wright-btn--orange {
	background-color: #e6551b;
	text-transform: uppercase;
}

.wright-btn--orange i {
	font-size: 20px;
}

.wright-btn--orange:hover,
.wright-btn--orange:focus {
	background-color: #c33a04;
}

.wright-btn--lightblue {
	height: 48px;
	padding: 0 25px;
	background-color: #1075b1;
}

.wright-btn--lightblue:hover,
.wright-btn--lightblue:focus {
	background-color: #004f7e;
}

/* ==========================================================
   Homepage slider
   ========================================================== */
.wright-slider {
	position: relative;
	overflow: hidden;
}

.wright-slider__track {
	display: flex;
	transition: transform 0.75s ease;
}

.wright-slider__track > .wright-slide {
	flex: 0 0 100%;
	min-width: 100%;
}

.wright-slider:not(.is-ready) .wright-slide + .wright-slide {
	display: none;
}

.wright-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	cursor: pointer;
}

.wright-slider__arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-top: 3px solid #ffffff;
	border-right: 3px solid #ffffff;
}

.wright-slider__arrow--prev { left: 20px; }
.wright-slider__arrow--next { right: 20px; }
.wright-slider__arrow--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.wright-slider__arrow--next::before { transform: translate(-70%, -50%) rotate(45deg); }

.wright-slider__arrow:hover { background: rgba(0, 0, 0, 0.65); }

.wright-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.wright-slider__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
}

.wright-slider__dot.is-active {
	background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
	.wright-slider__track { transition: none; }
}

/* Homepage images */
.wright-headshot img {
	width: 90%;
	margin-top: -139px;
	position: relative;
	z-index: 99;
	border-radius: 25px;
}

@media (max-width: 1024px) {
	.wright-headshot img {
		width: 100%;
		margin-top: 0;
	}
}

.wright-rounded-24 img {
	border-radius: 24px;
}

.entry-content .wp-block-image {
	margin: 0;
}

/* ==========================================================
   Footer
   ========================================================== */
.wright-footer .wright-footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wright-footer .wright-footer-menu li {
	margin: 0;
	padding: 0 0 7px;
}

.wright-footer .wright-footer-menu a {
	color: #f0f0f0;
	font-size: 16px;
	text-decoration: none;
}

.wright-footer .wright-footer-menu a:hover {
	color: #c8e9f7;
}

.wright-footer .wright-footer-phones a {
	padding: 0 5px;
	color: #fcfcfc;
	text-decoration: none;
}

.wright-footer a.gb-text:hover {
	color: #ffffff;
}

/* Blocksy wraps Content Block footers; remove its default spacing */
#footer > div:has(.wright-footer),
#footer > div:has(.wright-footer) > *:not(.wright-footer) {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	--theme-content-vertical-spacing: 0px;
}

/* ==========================================================
   Sticky header (desktop): hide the top bar once stuck
   ========================================================== */
@media (min-width: 1000px) {
	#header [data-sticky*="yes"] [data-row*="top"],
	#header [data-sticky] [data-row*="top"].ct-sticky-hidden {
		display: none;
	}
}

/* Images inside GB flex columns keep their natural size */
.wright-rounded-24 {
	width: 100%;
	text-align: center;
}

.wright-rounded-24 img,
.wright-headshot img {
	height: auto;
	max-width: 100%;
}
