/*
 * Theme Name: Premium Solutions
 * Version: 2.0
 * Description: Custom wordpress theme configured for sites made with Site Builder by Corporate Tools
 * Author: Premium Solutions
 */

/**
 * Custom Styling for the FluentForm Submission Button
 */
form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit {
    background-color: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--background) !important;
    border-color: var(--wp--preset--color--primary) !important;
    transition: filter 0.2s ease !important;
}

form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit:hover {
    filter: brightness(1.1) !important;
}

/*
 * When clicking links, make the scrolling behavior smooth to improve the user experience.
 */
html {
    scroll-behavior: smooth;
}

.wp-block-site-title a:hover {
    opacity: 80%;
}

.wp-block-navigation-item {
    color: var(--wp--preset--color--text);
}

.wp-block-navigation-item:hover {
    opacity: 80%;
}

.wp-block-button:hover {
    opacity: 80%;
}

/*
Get rid of the padding above/below the blocks wrapper,
which was leaving whitespace above/below the header/footer
*/
.wp-site-blocks {
    padding: 0;
}

/*
Get rid of the default margin-top around all of the outer blocks (example: hero section after header),
changing here instead of theme.json so that global blockGap is not changed for inner blocks and elements
 */
:where(.wp-site-blocks)>* {
    margin-block-start: 0;
}

/*
Adjust positioning of the "details" block summary when it is an H4
 */
summary h4 {
    display: inline;
    margin-left: 10px;
}

.header-block {
    position: relative;
    z-index: 1;
    border-bottom: 2px solid;
}

/*
Hide an info box/block from the frontend of the site (like the info box on the contact page block pattern.
 */
.hide-from-site-frontend {
    display: none;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
    margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
    text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
    display: block;
}

/*
 * Fix website header to always show at top of page and have colors from the theme
 */
.site-header {
    position: fixed;
    width: 100%;
    background-color: var(--wp--preset--color--background);
    z-index: 1000;
    border-bottom: 1px solid;
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        0 1px 2px -1px rgb(0 0 0 / 0.1);
    /* Add a bottom box shadow to the header block */
}

.site-header img {
    height: auto;
    width: calc(var(--wp--preset--spacing--40) * 2);
}

/* Adjust for admin bar on desktop */
.admin-bar .site-header {
    top: 32px !important;
    /* WordPress admin bar height on desktop */
}

/* Adjust for admin bar on mobile devices */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px !important;
        /* WordPress admin bar height on mobile */
    }
}

/* For very small screens where WP removes the admin bar */
@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 0 !important;
    }
}

/*
 * Make the separator between the footer and content, not so thick
 */
.wp-block-separator {
    border: none !important;
    border-top: 1px solid !important;
}

#products .wp-block-column {
    transition: scale 0.15s ease-in-out;
}

#products .wp-block-column:hover {
    scale: 105%;
}

/*Fix overflow of some unsplash images in certain browsers  */
img {
    width: 100%;
}

.footer-contact-columns .wp-block-group {
    text-align: center;
}

.footer-contact-columns {
    align-items: center;
}


/*
 * * ========================================
 * *
 * /*
    * * ========================================
    * * Mobile Slide-out Menu Panel (Right-to-Left)
    * * ONLY affects mobile screens (max-width: 782px).
    * * Desktop functionality is completely untouched.
    * * ========================================
    * */
@media (max-width: 782px) {
	
	/* === PANEL CONTAINER: slide in from right, partial width === */
	.wp-block-navigation__responsive-container.is-menu-open {
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		left: auto !important;
		bottom: 0 !important;
		width: 75% !important;
		max-width: 300px !important;
		height: 100vh !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		padding: 1.5rem !important;
		z-index: 100001 !important;
		background-color: #0A0A0A !important;
		box-shadow: -6px 0 24px rgba(0, 0, 0, 0.6) !important;
		animation: mobile-menu-slide-in 0.28s ease-out forwards !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
	}
	
	/* === SLIDE-IN FROM RIGHT ANIMATION === */
	@keyframes mobile-menu-slide-in {
		from {
			transform: translateX(100%);
			opacity: 0;
		}
		to {
			transform: translateX(0);
			opacity: 1;
		}
	}
	
	/* === CLOSE (X) BUTTON: top-left of the panel === */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex !important;
		justify-content: flex-start !important;
		width: 100% !important;
		padding: 0 !important;
		position: relative !important;
		margin-bottom: 1.5rem !important;
	}
	
	/* === CLOSE BUTTON ICON === */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close button {
		color: #C9A84C !important;
		font-size: 1.5rem !important;
		background: none !important;
		border: none !important;
		cursor: pointer !important;
		padding: 0 !important;
		line-height: 1 !important;
	}
	
	/* === CONTENT CONTAINER: column layout for items === */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-end !important;
		width: 100% !important;
		padding-top: 0 !important;
	}
	
	/* === NAV LINK CONTAINER === */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-end !important;
		width: 100% !important;
		gap: 1.5rem !important;
	}
	
	/* === EACH MENU ITEM: right-aligned === */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		display: flex !important;
		justify-content: flex-end !important;
		text-align: right !important;
		width: 100% !important;
	}
	
	/* === LINK TEXT: right-aligned and clickable === */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
		text-align: right !important;
		width: auto !important;
		display: inline-block !important;
		color: rgb(253, 252, 250) !important;
		text-decoration: none !important;
		font-size: 1.1rem !important;
		letter-spacing: 0.05em !important;
		pointer-events: auto !important;
		position: relative !important;
		z-index: 1 !important;
	}
	
	/* === BEGIN YOUR JOURNEY BUTTON === */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a[href="/contact"].wp-block-button__link,
	.wp-block-navigation__responsive-container.is-menu-open > .wp-block-navigation__responsive-container-content > a {
		display: inline-block !important;
		margin-top: 1rem !important;
		text-align: right !important;
	}
	
	/* === MOBILE NAV LINK HOVER / ACTIVE EFFECT: matches desktop opacity === */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:hover,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:active {
  opacity: 0.8 !important;
}


/* === DARK BACKDROP BEHIND THE PANEL === */
	.wp-block-navigation__responsive-container.is-menu-open::before {
		content: '' !important;
		position: fixed !important;
		inset: 0 !important;
		right: 75% !important;
		background: rgba(0, 0, 0, 0.5) !important;
		z-index: -1 !important;
		display: block !important;
	}
}

/* Fix WordPress navigation overlay blocking mobile menu link clicks */
/* The WP nav block creates a fixed overlay div that intercepts clicks */
@media (max-width: 782px) {
	/* Make the navigation overlay backdrop non-interactive so links are clickable */
	html.has-modal-open body > div:not([class]):not([id]) {
		pointer-events: none !important;
	}
	/* Ensure all links inside the mobile panel remain clickable */
	.wp-block-navigation__responsive-container.is-menu-open * {
		pointer-events: auto !important;
	}
}

/* Fix: the custom mobile menu backdrop blocks link clicks - make it non-interactive */
#mobile-menu-backdrop {
	pointer-events: none !important;
}

/* Remove focus outline/ring on navigation links in mobile slide panel */
/* Scoped to only affect mobile (max-width: 782px) */
@media (max-width: 782px) {
	.wp-block-navigation__responsive-container .wp-block-navigation-item__content,
	.wp-block-navigation__responsive-container .wp-block-navigation-item__content:focus,
	.wp-block-navigation__responsive-container .wp-block-navigation-item__content:focus-visible,
	.wp-block-navigation__responsive-container .wp-block-navigation-item__content:active,
	.wp-block-navigation__responsive-container .wp-block-navigation-item__content:hover {
		outline: none !important;
		outline-width: 0 !important;
		outline-style: none !important;
		outline-color: transparent !important;
		box-shadow: none !important;
	}
}

/* =============================================
   MOBILE FORM FIXES
   ============================================= */

/* Fix: Prevent mobile browser auto-zoom on input focus.
   iOS/Android zoom in when input font-size < 16px.
   Setting to 16px prevents this without affecting desktop. */
@media (max-width: 782px) {
	.premeum-contact-form input,
	.premeum-contact-form textarea,
	.premeum-contact-form select,
	.ff-el-form-control,
	.ff-el-form-control-container input,
	.ff-el-form-control-container textarea,
	.ff-el-form-control-container select {
		font-size: 16px !important;
	}
}

/* =============================================
   BUTTON HOVER COLOR FIX
   Keep text gold (not black) on hover for
   "Begin Your Journey" and "Explore Our Services"
   buttons — matching "View All Services" behavior.
   ============================================= */
.nav-cta-button .wp-block-button__link:hover,
.wp-block-navigation .wp-block-button .wp-block-button__link:hover,
.btn-outline-gold .wp-block-button__link:hover {
	color: rgb(201, 168, 76) !important;
}

/* =============================================
/* =============================================
   ANNOUNCEMENT BAR PHONE NUMBER
   Desktop: text left, phone right (same line)
   Mobile: phone centered below text, Maryland hidden
   ============================================= */

/* Make bar a flex container for left/right layout */
.gold-top-bar {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 10px 40px !important;
	font-size: 12px !important;
}

/* Left text */
.gold-top-bar .bar-text {
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	color: #0A0A0A !important;
	text-align: left !important;
}

/* Right phone link */
.gold-top-bar .bar-phone {
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	color: #0A0A0A !important;
	text-decoration: none !important;
	white-space: nowrap !important;
}

.gold-top-bar .bar-phone:hover {
	text-decoration: underline !important;
}

/* Mobile: stack vertically, center both, hide Maryland */
@media (max-width: 782px) {
	.gold-top-bar {
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		padding: 10px 20px !important;
		gap: 4px !important;
	}

	.gold-top-bar .bar-text {
		text-align: center !important;
	}

	.gold-top-bar .bar-phone {
		text-align: center !important;
	}

	/* Hide "— MARYLAND, USA" on mobile */
	.gold-top-bar .bar-location {
		display: none !important;
	}
}

/* Footer phone link */
.footer-phone-link {
	margin-top: 6px !important;
}

.footer-phone-link a {
	color: inherit !important;
	text-decoration: none !important;
	font-size: inherit !important;
}

.footer-phone-link a:hover {
	text-decoration: underline !important;
}