/*
Theme Name:   Atom Pavilion
Theme URI:    https://atomexterminators.com/
Description:  Modern, professional child theme for Atom Exterminators, built on top of the BoldGrid Pavilion theme. Adds a refined design system (typography, colour, spacing), a sticky header, card-style image grids, a mobile click-to-call bar, a back-to-top button, subtle scroll animations, LocalBusiness structured data and two content shortcodes ([atom_trust_bar] and [atom_cta]).
Author:       Atom Exterminators
Template:     boldgrid-pavilion
Version:      1.8.4
Requires at least: 5.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:  atom-pavilion
*/

/* Note: Pavilion sets html { font-size: 10px }, so this theme uses px, not rem. */

/* ==========================================================================
   1. Design tokens
   Change the brand colours here – everything else follows.
   ========================================================================== */
:root {
	--atom-navy:        #0a0e2e;   /* deep blue-black: headings, footer (logo black) */
	--atom-navy-2:      #161c4f;
	--atom-accent:       #0000fa;   /* logo blue */
	--atom-accent-dark:  #0000c4;
	--atom-accent-soft:  #eceeff;
	--atom-amber:       #f5a524;   /* call-to-action highlight */
	--atom-amber-dark:  #d98b0b;
	--atom-ink:         #1c2733;   /* body text */
	--atom-muted:       #5b6b7c;
	--atom-line:        #e3e8ee;
	--atom-surface:     #ffffff;
	--atom-surface-2:   #f5f7fa;

	--atom-font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--atom-font-heading: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--atom-radius-sm: 8px;
	--atom-radius:    14px;
	--atom-radius-lg: 22px;
	--atom-shadow-sm: 0 1px 2px rgba(10, 14, 46, .06), 0 1px 3px rgba(10, 14, 46, .08);
	--atom-shadow:    0 6px 18px rgba(10, 14, 46, .08), 0 2px 6px rgba(10, 14, 46, .06);
	--atom-shadow-lg: 0 18px 40px rgba(10, 14, 46, .14);
	--atom-ease:      cubic-bezier(.2, .7, .2, 1);
	--atom-max:       1200px;
	--atom-header-h:  76px;
}

/* ==========================================================================
   2. Base typography
   ========================================================================== */
html { scroll-behavior: smooth; }

/* Pavilion's rows overflow the viewport slightly; clip (unlike hidden) keeps sticky working */
html, body { overflow-x: clip; }

body {
	font-family: var(--atom-font-body) !important;
	color: var(--atom-ink);
	background-color: var(--atom-surface);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body h1, body h2, body h3, body h4, body h5, body h6,
body .h1, body .h2, body .h3, body .h4, body .h5, body .h6 {
	font-family: var(--atom-font-heading) !important;
	color: var(--atom-navy);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin-top: 0;
}

body h1, body .h1 { font-size: clamp(33.6px, 22.4px + 2.6vw, 54.4px); margin-bottom: .5em; }
body h2, body .h2 { font-size: clamp(27.2px, 20px + 1.6vw, 40px); margin-bottom: .6em; }
body h3, body .h3 { font-size: clamp(20.8px, 17.6px + .8vw, 28px); font-weight: 700; margin-bottom: .6em; }
body h4, body .h4 { font-size: 20px; font-weight: 700; }
body h5, body .h5 { font-size: 16.8px; font-weight: 700; }
body h6, body .h6 {
	font-size: 12.8px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .12em; color: var(--atom-accent);
}

body p { margin: 0 0 1.15em; }
body p, body li { color: var(--atom-ink); }

body .entry-content strong, body .entry-content b { color: var(--atom-navy); font-weight: 700; }

body a {
	color: var(--atom-accent-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .2s var(--atom-ease);
}
body a:hover, body a:focus { color: var(--atom-navy); }

body :focus-visible {
	outline: 3px solid var(--atom-amber);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--atom-accent); color: #fff; }

body img { max-width: 100%; height: auto; }

body hr {
	border: 0; height: 1px; background: var(--atom-line); margin: 40px 0;
}

body blockquote {
	border-left: 4px solid var(--atom-accent);
	background: var(--atom-surface-2);
	padding: 20px 24px;
	border-radius: 0 var(--atom-radius) var(--atom-radius) 0;
	font-size: 17.6px;
	color: var(--atom-navy);
}

/* Wider, calmer container */
body .container { max-width: var(--atom-max); }
@media (min-width: 1200px) { body .container { width: var(--atom-max); } }

/* Skip link (accessibility) */
.atom-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100000;
	background: var(--atom-navy); color: #fff !important; padding: 12px 20px;
	border-radius: 0 0 var(--atom-radius-sm) 0; font-weight: 600;
}
.atom-skip-link:focus { left: 0; }

/* ==========================================================================
   2b. Pavilion overrides
   Pavilion's Customizer prints rules such as `h3:not(.alt-font)` and
   `.color2-color { … !important }` that outrank plain element selectors.
   The `:not(.atom-off)` hop below lifts specificity just enough to win,
   without resorting to !important on sizes (so per-block sizes set in the
   page builder via inline styles still apply).
   ========================================================================== */
body .site-content,
body .site-footer,
body #colophon {
	font-family: var(--atom-font-body) !important;
	font-size: 17px;
}
body p, body li, body td, body dd {
	font-family: inherit;
	font-size: inherit;
}
body.atom-pavilion:not(.atom-off) h1:not(.site-title),
body.atom-pavilion:not(.atom-off) .h1 { font-size: clamp(33.6px, 22.4px + 2.6vw, 54.4px); }
body.atom-pavilion:not(.atom-off) h2:not(.widget-title),
body.atom-pavilion:not(.atom-off) .h2 { font-size: clamp(27.2px, 20px + 1.6vw, 40px); }
body.atom-pavilion:not(.atom-off) h3:not(.site-description),
body.atom-pavilion:not(.atom-off) .h3 { font-size: clamp(20.8px, 17.6px + .8vw, 28px); }
body.atom-pavilion:not(.atom-off) h4 { font-size: 20px; }
body.atom-pavilion:not(.atom-off).home .entry-content h1:first-of-type {
	font-size: clamp(36.8px, 22.4px + 3.2vw, 62.4px);
	letter-spacing: -0.03em;
}
body.atom-pavilion:not(.atom-off) .entry-content h1 + h3,
body.atom-pavilion:not(.atom-off) .entry-content h1 + .h3 {
	font-size: clamp(17.6px, 16px + .4vw, 21.6px);
	font-weight: 500;
	color: var(--atom-muted);
	letter-spacing: 0;
	line-height: 1.55;
}

/* Map Pavilion's palette text colours onto the brand */
body.atom-pavilion .color1-color,
body.atom-pavilion .color2-color { color: var(--atom-navy) !important; }
body.atom-pavilion .color3-color { color: var(--atom-accent) !important; }

/* Pavilion "button-primary" / "button-secondary" links */
body.atom-pavilion .button-primary,
body.atom-pavilion .button-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--atom-font-body) !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	line-height: 1.2 !important;
	height: auto !important;
	padding: 13.6px 25.6px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--atom-navy) !important;
	color: #fff !important;
	text-decoration: none !important;
	text-shadow: none !important;
	box-shadow: 0 6px 16px rgba(10, 14, 46, .2) !important;
	transition: background .2s, transform .2s var(--atom-ease) !important;
	max-width: 100%;
	white-space: normal !important;
	text-align: center;
}
body.atom-pavilion .button-primary::after { content: "\2192"; }
body.atom-pavilion .button-primary:hover,
body.atom-pavilion .button-secondary:hover {
	background: var(--atom-accent) !important;
	transform: translateY(-2px);
}
body.atom-pavilion .button-secondary {
	background: transparent !important;
	color: var(--atom-navy) !important;
	box-shadow: inset 0 0 0 2px var(--atom-navy) !important;
}

/* Header: drop the theme's large logo margins and the hidden tagline box */
body #masthead .site-title { margin: 0 !important; }
/* Pavilion pulls the logo 15px left of the column; line it up with the page */
body #masthead .logo-site-title { margin-left: 0 !important; }
body #masthead .site-description.invisible { display: none; }

/* ==========================================================================
   2c. Readable colours
   Pavilion's colour palette (orange #EF7928, slate #25374A, grey-blue #738599,
   light grey #F3F3F3) styles links, headings and coloured boxes with rules
   that outrank plain selectors. Several combinations fail WCAG contrast
   (e.g. orange links on white 2.8:1, white on grey-blue 3.8:1). Here the
   palette is mapped onto the brand and text on coloured boxes is made legible.
   ========================================================================== */

/* Links and headings: brand colours, beating ".palette-primary a/h*" */
body.atom-pavilion a { color: var(--atom-accent-dark); }
body.atom-pavilion a:hover,
body.atom-pavilion a:focus { color: var(--atom-navy); }
body.atom-pavilion h1, body.atom-pavilion h2, body.atom-pavilion h3,
body.atom-pavilion h4, body.atom-pavilion h5 { color: var(--atom-navy); }
body.atom-pavilion h6 { color: var(--atom-accent); }

/* Palette backgrounds → brand backgrounds */
body.atom-pavilion .color1-background-color { background-color: var(--atom-accent) !important; }      /* was orange */
body.atom-pavilion .color2-background-color,
body.atom-pavilion .color4-background-color { background-color: var(--atom-navy) !important; }        /* was slate */
body.atom-pavilion .color3-background-color { background-color: var(--atom-navy-2) !important; }      /* was grey-blue */
body.atom-pavilion .color5-background-color { background-color: var(--atom-surface-2) !important; }   /* was light grey */
body.atom-pavilion .color4-color { color: var(--atom-navy) !important; }

/* Text on the dark brand backgrounds is white */
body.atom-pavilion :is(.color1-background-color, .color2-background-color, .color3-background-color, .color4-background-color),
body.atom-pavilion :is(.color1-background-color, .color2-background-color, .color3-background-color, .color4-background-color)
	:is(p, li, span, div, h1, h2, h3, h4, h5, h6, strong, b, em, small, label, td, th, blockquote, figcaption, dt, dd) {
	color: #fff !important;
}
body.atom-pavilion :is(.color1-background-color, .color2-background-color, .color3-background-color, .color4-background-color)
	a:not(.btn):not([class*="button"]) {
	color: #fff !important;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, .55);
}
body.atom-pavilion :is(.color1-background-color, .color2-background-color, .color3-background-color, .color4-background-color)
	a:not(.btn):not([class*="button"]):hover { text-decoration-color: #fff; }
/* …and feature cards inside a dark box stay dark instead of turning white */
body.atom-pavilion :is(.color1-background-color, .color2-background-color, .color3-background-color, .color4-background-color)
	.row > [class*="col-"]:has(> h4):has(img) {
	background: rgba(255, 255, 255, .06) !important;
	border-color: rgba(255, 255, 255, .14) !important;
	box-shadow: none !important;
}

/* Page-builder buttons: Pavilion forces e.g. grey-on-grey with !important */
html body.atom-pavilion .btn:not(.btn-neutral-color):not(.btn-color-2):not(.btn-border):not(.btn-color-3) {
	color: #fff !important;
	background-color: var(--atom-accent) !important;
}

/* Page-builder quote blocks (grey-blue text by default) */
body.atom-pavilion .entry-content .mod-blockquote,
body.atom-pavilion .entry-content .mod-blockquote p { color: var(--atom-muted) !important; }

/* ==========================================================================
   3. Header
   ========================================================================== */
body #masthead,
body .site-header {
	background-color: rgba(255, 255, 255, .96) !important;
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--atom-line);
	position: relative;
	z-index: 999;
	transition: box-shadow .25s var(--atom-ease), padding .25s var(--atom-ease);
}

/* Sticky header – class added by JS so it degrades gracefully */
body.atom-sticky-header #masthead,
body.atom-sticky-header .site-header {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
}
body.admin-bar.atom-sticky-header #masthead,
body.admin-bar.atom-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar.atom-sticky-header #masthead,
	body.admin-bar.atom-sticky-header .site-header { top: 0; }
}
body.atom-scrolled #masthead,
body.atom-scrolled .site-header { box-shadow: var(--atom-shadow); }

/* Header rows: vertically centre logo / badges / phone */
body #masthead .row:not(:empty) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
body #masthead .row::before,
body #masthead .row::after { display: none; }
body #masthead .row.header-8 {
	border-top: 1px solid var(--atom-line);
	border-bottom: 1px solid var(--atom-line);
	margin-left: 0; margin-right: 0;
}
body #masthead .row.header-8 > [class*="col-"] { padding-left: 0; padding-right: 0; }
body #masthead .row.header-9 { padding: 5.6px 0 9.6px; }
body #masthead [class*="col-"].header-10 { text-align: right; }
body #masthead [class*="col-"].header-10 .widget-title { display: none; }
body #masthead [class*="col-"].header-10 .phone p { margin: 0; font-size: 16px; }
body #masthead [class*="col-"].header-10 .phone .fa-phone { display: none; }

/* Certification badges, moved from the old custom background into the header */
body.atom-header-badges #masthead [class*="col-"].header-7 {
	flex: 0 0 auto;
	width: min(460px, 48%);
	margin: 10px 0 10px auto;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: right center;
}
body.atom-bg-moved.custom-background { background-image: none !important; }

/* Logo + pest-icon row (default). Proportions follow the agreed mock-up:
   the logo is ~54% of the icon row's width, the row sits just below it. */
body.atom-pest-header #masthead [class*="col-"].header-6 {
	flex: 1 1 0;
	min-width: 300px;
	width: auto;
}
body.atom-pest-header #masthead .site-branding {
	padding: 14px 0 12px;
}
body.atom-pest-header #masthead .site-branding img,
body.atom-pest-header #masthead .custom-logo {
	max-height: 120px;
}
body.atom-pest-header #masthead .site-branding::after {
	content: "";
	display: block;
	width: 690px;           /* 120px logo ≈ 370px wide ÷ 0.535 */
	max-width: 100%;
	margin: 10px 0 0;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
}
body.atom-pest-header.atom-header-badges #masthead [class*="col-"].header-7 {
	width: min(420px, 38%);
}
@media (max-width: 991px) {
	body.atom-pest-header #masthead .site-branding img,
	body.atom-pest-header #masthead .custom-logo { max-height: 100px; }
	body.atom-pest-header #masthead .site-branding::after { width: 576px; }
	body.atom-pest-header.atom-header-badges #masthead [class*="col-"].header-7 { width: min(300px, 38%); }
}
@media (max-width: 767px) {
	body.atom-pest-header #masthead [class*="col-"].header-6 { flex-basis: 100%; }
	/* phones: the logo leads, certifications sit smaller underneath */
	body.atom-pest-header #masthead .site-branding img,
	body.atom-pest-header #masthead .custom-logo { max-height: none; width: min(100%, 300px); height: auto; }
	body.atom-pest-header #masthead .site-branding::after { width: 100%; margin: 8px 0 0; }
	body.atom-pest-header.atom-header-badges #masthead [class*="col-"].header-7 { width: min(calc(100% - 24px), 240px); }
	/* leave room for TranslatePress's floating language button (top corner) */
	body.atom-pest-header:has(#trp-floater-ls[class*="trp-top"]) #masthead .site-branding img { width: min(100%, calc(100vw - 156px), 300px); }
	body.atom-pest-header:has(#trp-floater-ls[class*="trp-top"]).atom-header-badges #masthead [class*="col-"].header-7 { width: min(calc(100% - 24px), 200px); }
}

/* Quality / licensed badges and crossed-out pest icons, under the home page
   title (image URL set by PHP; bundled at 2x for sharp high-DPI screens) */
body.atom-pest-row .entry-content h1:first-of-type::after {
	content: "";
	display: block;
	width: 100%;
	max-width: 760px;
	margin: 18px 0 4px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
}
body.atom-pest-row .entry-content h1:first-of-type[align="center"]::after,
body.atom-pest-row .entry-content .text-center h1:first-of-type::after,
body.atom-pest-row .entry-content h1:first-of-type[style*="center"]::after {
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 991px) {
	body.atom-header-badges #masthead [class*="col-"].header-7 { width: min(360px, 48%); }
}
@media (max-width: 767px) {
	/* phones: certifications go on their own line under the logo */
	body.atom-header-badges #masthead [class*="col-"].header-7 {
		width: calc(100% - 24px);
		max-width: 420px;
		margin: 0 12px 10px;
		background-position: left center;
	}
}

/* Animated vector logo (image URL printed by PHP). The original <img> keeps
   its size, link and alt text but is made transparent. */
body.atom-svg-logo #masthead .site-title a.logo-site-title {
	display: inline-block;
	background-repeat: no-repeat !important;
	background-position: left center !important;
	background-size: contain !important;
	background-color: transparent !important;
	line-height: 0;
}
body.atom-svg-logo #masthead .logo-site-title img { opacity: 0; }
@media (forced-colors: active) {
	body.atom-svg-logo #masthead .logo-site-title img { opacity: 1; }
}
@media print {
	body.atom-svg-logo #masthead .logo-site-title img { opacity: 1; }
}

/* Branding */
body .site-branding { padding: 9.6px 0; }
body .site-branding img,
body .custom-logo,
body .site-branding .logo-site-title img {
	max-height: 70px;
	width: auto;
	transition: max-height .25s var(--atom-ease);
}
body.atom-sticky-header.atom-scrolled .site-branding img,
body.atom-sticky-header.atom-scrolled .custom-logo { max-height: 52px; }

body .site-title,
body .site-title a {
	font-family: var(--atom-font-heading) !important;
	color: var(--atom-navy) !important;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-decoration: none;
}

/* Tagline ("Pest Control in Cyprus") */
body .site-description {
	font-family: var(--atom-font-body) !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--atom-accent) !important;
	margin: 2.4px 0 0;
}

/* Header widget areas (e.g. the "Call Today" phone widget) */
body .site-header .widget,
body #masthead .widget { margin: 0; }
body .site-header .widget-title,
body #masthead .widget-title {
	font-size: 11.5px !important;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--atom-muted) !important;
	font-weight: 700;
	margin: 0 0 3.2px;
}
body .site-header a[href^="tel:"],
body #masthead a[href^="tel:"] {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--atom-amber);
	color: var(--atom-navy) !important;
	font-family: var(--atom-font-heading);
	font-weight: 800;
	padding: 10.4px 18.4px;
	border-radius: 999px;
	text-decoration: none !important;
	box-shadow: 0 6px 16px rgba(245, 165, 36, .35);
	transition: transform .2s var(--atom-ease), box-shadow .2s var(--atom-ease), background .2s;
	white-space: nowrap;
}
body .site-header a[href^="tel:"]::before,
body #masthead a[href^="tel:"]::before {
	content: "";
	width: 1em; height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body .site-header a[href^="tel:"]:hover,
body #masthead a[href^="tel:"]:hover {
	background: #ffb83f;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(245, 165, 36, .45);
}

/* ==========================================================================
   4. Primary navigation
   Covers both BoldGrid Theme Framework menu markups:
   Bootstrap navbar (.navbar-nav / .dropdown-menu) and SmartMenus (.sm).
   ========================================================================== */
body .main-navigation,
body .navbar,
body #navi,
body #navi-wrap {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	margin-bottom: 0;
	min-height: 0;
}

body .main-navigation ul li a,
body .navbar-nav > li > a,
body #main-menu > li > a,
body .sm > li > a {
	font-family: var(--atom-font-body) !important;
	font-size: 15.2px !important;
	font-weight: 600 !important;
	color: var(--atom-navy) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	padding: 11.2px 15.2px !important;
	border-radius: var(--atom-radius-sm);
	background: transparent !important;
	position: relative;
	transition: color .2s, background .2s;
}

body .navbar-nav > li > a::after,
body #main-menu > li > a::after,
body .sm > li > a::after {
	content: "";
	position: absolute;
	left: 15.2px; right: 15.2px; bottom: 5.6px;
	height: 2px;
	background: var(--atom-accent);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--atom-ease);
}

body .navbar-nav > li > a:hover,
body .navbar-nav > li > a:focus,
body #main-menu > li > a:hover,
body .sm > li > a:hover,
body .navbar-nav > .open > a,
body .navbar-nav > .active > a,
body .navbar-nav > .current-menu-item > a,
body .navbar-nav > .current-menu-ancestor > a,
body #main-menu > .current-menu-item > a,
body #main-menu > .current-menu-ancestor > a {
	color: var(--atom-accent-dark) !important;
	background: var(--atom-accent-soft) !important;
}

body .navbar-nav > li > a:hover::after,
body .navbar-nav > .current-menu-item > a::after,
body .navbar-nav > .current-menu-ancestor > a::after,
body #main-menu > li > a:hover::after,
body #main-menu > .current-menu-item > a::after,
body #main-menu > .current-menu-ancestor > a::after,
body .sm > li > a:hover::after { transform: scaleX(1); }

/* Dropdowns */
body .dropdown-menu,
body .main-navigation ul ul,
body .sm ul {
	background: #fff !important;
	border: 1px solid var(--atom-line) !important;
	border-radius: var(--atom-radius) !important;
	box-shadow: var(--atom-shadow-lg) !important;
	padding: 8px !important;
	min-width: 240px !important;
	margin-top: 5.6px !important;
}
body .dropdown-menu > li > a,
body .main-navigation ul ul li a,
body .sm ul a {
	font-family: var(--atom-font-body) !important;
	font-size: 14.7px !important;
	font-weight: 500 !important;
	color: var(--atom-ink) !important;
	padding: 9.6px 13.6px !important;
	border-radius: var(--atom-radius-sm) !important;
	background: transparent !important;
	white-space: normal;
	line-height: 1.35;
	text-transform: none !important;
}
body .dropdown-menu > li > a:hover,
body .dropdown-menu > li > a:focus,
body .dropdown-menu > .active > a,
body .dropdown-menu > .current-menu-item > a,
body .main-navigation ul ul li a:hover,
body .sm ul a:hover {
	background: var(--atom-accent-soft) !important;
	color: var(--atom-accent-dark) !important;
}
body .dropdown-menu > li > a::after,
body .sm ul a::after { display: none; }

/* Mobile toggle */
body .navbar-toggle,
body .menu-toggle,
body .hamburger {
	border: 1px solid var(--atom-line) !important;
	border-radius: var(--atom-radius-sm) !important;
	background: #fff !important;
	padding: 9.6px 11.2px !important;
	transition: background .2s;
}
body .navbar-toggle:hover,
body .navbar-toggle:focus { background: var(--atom-accent-soft) !important; }
body .navbar-toggle .icon-bar {
	background: var(--atom-navy) !important;
	width: 22px; height: 2px; border-radius: 2px;
}

@media (max-width: 767px) {
	body .navbar-collapse,
	body .main-navigation .menu-primary-container {
		border-top: 1px solid var(--atom-line) !important;
		box-shadow: none !important;
		padding: 8px 0 16px;
	}
	body .navbar-nav > li > a::after,
	body #main-menu > li > a::after { display: none; }
	body .navbar-nav .open .dropdown-menu,
	body .sm ul {
		box-shadow: none !important;
		border: 0 !important;
		background: var(--atom-surface-2) !important;
		margin: 4px 0 8px !important;
	}
}

/* Social icons in header/menu (Facebook, YouTube) */
body .social-menu a,
body .menu-social a,
body .social-media-menu a {
	color: var(--atom-navy) !important;
	transition: color .2s, transform .2s;
}
body .social-menu a:hover,
body .menu-social a:hover,
body .social-media-menu a:hover { color: var(--atom-accent) !important; transform: translateY(-2px); }

/* ==========================================================================
   4b. Max Mega Menu (the site's primary menu is built with this plugin)
   ========================================================================== */
body #mega-menu-wrap-primary,
body #mega-menu-wrap-primary #mega-menu-primary {
	background: transparent !important;
	border-radius: 0 !important;
}
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
	font-family: var(--atom-font-body) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: var(--atom-navy) !important;
	background: transparent !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	height: 46px !important;
	line-height: 46px !important;
	padding: 0 16px !important;
	border-radius: var(--atom-radius-sm) !important;
	transition: color .2s, background .2s !important;
}
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover,
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-toggle-on > a.mega-menu-link,
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link,
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link,
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link {
	color: var(--atom-accent) !important;
	background: var(--atom-accent-soft) !important;
}
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link > span.mega-indicator::after {
	opacity: .55;
}
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu,
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu {
	background: #fff !important;
	border: 1px solid var(--atom-line) !important;
	border-radius: var(--atom-radius) !important;
	box-shadow: var(--atom-shadow-lg) !important;
	padding: 8px !important;
	min-width: 250px;
	margin-top: 6px !important;
}
body #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link,
body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
	font-family: var(--atom-font-body) !important;
	font-size: 14.5px !important;
	font-weight: 500 !important;
	color: var(--atom-ink) !important;
	background: transparent !important;
	padding: 10px 12px !important;
	line-height: 1.35 !important;
	border-radius: var(--atom-radius-sm) !important;
	text-transform: none !important;
}
body #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link:hover,
body #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout ul.mega-sub-menu li.mega-current-menu-item > a.mega-menu-link {
	background: var(--atom-accent-soft) !important;
	color: var(--atom-accent) !important;
}
/* Pavilion's own navbar header (and toggle) is unused when Max Mega Menu runs */
body.mega-menu-primary #site-navigation .navbar-header { display: none; }

/* Mobile toggle bar: one full-width navy bar with a single control */
body #mega-menu-wrap-primary .mega-menu-toggle {
	background: var(--atom-navy) !important;
	border-radius: var(--atom-radius-sm) !important;
	width: 100%;
	margin: 8px 0;
}
body #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-2 { display: none !important; }
body #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-1 button {
	font-family: var(--atom-font-body) !important;
	font-weight: 700 !important;
	letter-spacing: .06em;
}
@media (max-width: 768px) {
	body #mega-menu-wrap-primary #mega-menu-primary {
		background: #fff !important;
		border: 1px solid var(--atom-line) !important;
		border-radius: var(--atom-radius) !important;
		box-shadow: var(--atom-shadow) !important;
		padding: 6px !important;
		margin-top: 6px !important;
	}
	body #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout ul.mega-sub-menu {
		box-shadow: none !important; border: 0 !important;
		background: var(--atom-surface-2) !important; margin: 0 0 6px !important;
	}
}

/* ==========================================================================
   5. Hero / page title areas
   ========================================================================== */
body .page-header,
body .entry-header {
	margin-bottom: 24px;
}

body.home .entry-content > *:first-child h1,
body.home .entry-content h1:first-of-type,
body.home .boldgrid-section:first-of-type h1 {
	font-size: clamp(36.8px, 22.4px + 3.2vw, 62.4px);
	letter-spacing: -0.03em;
}

/* Lead paragraph directly under a heading */
/* (only paragraphs of text: a paragraph holding an image straight after the
   title must keep the full width, e.g. the banner on /cleaning/) */
body .entry-content h1 + h3,
body .entry-content h1 + .h3,
body .entry-content h1 + p:not(:has(img, iframe, video, figure)) {
	font-family: var(--atom-font-body) !important;
	font-weight: 500;
	color: var(--atom-muted);
	font-size: clamp(17.6px, 16px + .4vw, 21.6px);
	line-height: 1.55;
	letter-spacing: 0;
	max-width: 736px;
}

/* Sub-page title. Pavilion makes it a link (so it took the link colour) and
   draws thin lines either side of it. */
body .entry-title a,
body .entry-title a:hover {
	color: var(--atom-navy) !important;
	text-decoration: none !important;
}
body:not(.home) .entry-header { margin-bottom: 8px; }
body .entry-title::before,
body .entry-title::after { border-color: var(--atom-line) !important; }
body:not(.home) .page-header .page-title {
	position: relative;
	padding-bottom: 9.6px;
}
body:not(.home) .page-header .page-title::after {
	content: "";
	position: absolute; left: 0; bottom: 0;
	width: 56px; height: 4px; border-radius: 4px;
	background: linear-gradient(90deg, var(--atom-accent), var(--atom-amber));
}

/* ==========================================================================
   6. Sections & content
   ========================================================================== */
body .site-content,
body #content { padding-top: 24px; padding-bottom: 32px; }
body.home .site-content,
body.home #content { padding-top: 0; }

/* Section spacing. Pavilion's page builder already spaces its rows, so
   sub-pages get no extra section padding (adding it made long pages such as
   About Us ~1,200px taller). The home page gets a moderate rhythm. */
body.home .entry-content .boldgrid-section {
	padding-top: 16px;
	padding-bottom: 16px;
}
/* Home page: even out the extra padding typed into page-builder rows
   (56–84px in places) – the hero photo row keeps its own height */
body.home .entry-content .row[style*="padding"]:not([style*="background-image"]) {
	padding-top: 24px !important;
	padding-bottom: 24px !important;
}
/* Empty sections and empty spacer paragraphs (<p>&nbsp;</p>) add blank space */
body.home .entry-content .boldgrid-section:not(:has(.row)):not([style*="background"]) { display: none; }
body.home .entry-content p.atom-empty { display: none; }
body.home .site-content,
body.home #content { padding-bottom: 0; }
body .entry-content .boldgrid-section .boldgrid-section { padding-top: 0; padding-bottom: 0; }

/* Rows that use a background photo (e.g. the team photo hero) */
body .entry-content .row[style*="background-image"] {
	border-radius: var(--atom-radius-lg);
	overflow: hidden;
	box-shadow: var(--atom-shadow);
}

/* Content images: rounded, soft shadow, gentle zoom on hover */
body .entry-content img:not(.custom-logo):not(.emoji):not([src*="flags"]):not(.wp-smiley) {
	border-radius: var(--atom-radius);
}
body .entry-content .gallery img,
body .entry-content .wp-block-image img,
body .entry-content .bg-box-flush img,
body .entry-content .bg-box-cover img,
body .entry-content [class*="col-"]:has(> h4):has(img) img {
	box-shadow: var(--atom-shadow-sm);
	transition: transform .45s var(--atom-ease), box-shadow .45s var(--atom-ease), filter .45s;
}
body .entry-content a:hover img,
body .entry-content .gallery a:hover img {
	transform: translateY(-4px) scale(1.015);
	box-shadow: var(--atom-shadow-lg);
}

/* Image grid on the homepage: consistent crop so mixed sizes line up */
body.home .entry-content .row img:not(.custom-logo):not([src*="flags"]) {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

/* "Why choose us" style feature columns – turn linked image + h4 + strong into cards */
body .entry-content .row > [class*="col-"] > a:only-child img,
body .entry-content .row > [class*="col-"] > p > a > img { margin-bottom: 16px; }

body .entry-content .row > [class*="col-"]:has(> h4):has(img) {
	background: #fff;
	border: 1px solid var(--atom-line);
	border-radius: var(--atom-radius-lg);
	padding: 16px 16px 20px;
	box-shadow: var(--atom-shadow-sm);
	transition: transform .3s var(--atom-ease), box-shadow .3s var(--atom-ease), border-color .3s;
	margin-bottom: 24px;
}
body .entry-content .row > [class*="col-"]:has(> h4):has(img):hover {
	transform: translateY(-6px);
	box-shadow: var(--atom-shadow-lg);
	border-color: transparent;
}
/* Rows of feature cards: real gutters and equal heights */
body .entry-content .row:has(> [class*="col-"] > h4):has(> [class*="col-"] img) {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-left: 0;
	margin-right: 0;
}
body .entry-content .row:has(> [class*="col-"] > h4):has(> [class*="col-"] img)::before,
body .entry-content .row:has(> [class*="col-"] > h4):has(> [class*="col-"] img)::after { display: none; }
body .entry-content .row:has(> [class*="col-"] > h4):has(> [class*="col-"] img) > [class*="col-"] {
	flex: 1 1 220px;
	width: auto;
	float: none;
	margin-bottom: 0;
}

/* Flush photo tiles (Post & Page Builder "bg-box-flush"): add a small gutter */
body .entry-content .row > [class*="col-"] > .bg-box-flush { padding: 6px; }
body .entry-content .bg-box-flush img { display: block; }

/* Pavilion image frames (double border, circle, padding) → clean rounded photos */
body .entry-content img[class*="bg-img-border"],
body .entry-content img[class*="bg-img-pad"],
body .entry-content img.bg-img-circle {
	border: 0 !important;
	padding: 0 !important;
	outline: 0 !important;
	border-radius: var(--atom-radius) !important;
}

body .entry-content .row > [class*="col-"] h4 { margin: 4px 0 5.6px; }
body .entry-content .row > [class*="col-"] h4 + p strong,
body .entry-content .row > [class*="col-"] h4 + strong {
	font-weight: 500;
	color: var(--atom-muted);
	font-size: 15.2px;
}

/* Linked icon graphics in service grids (e.g. the crossed-out pest icons on
   /services/) are 300px+ originals: show them at a tidy size */
body .entry-content .row > [class*="col-"] > p.mod-img > a > img[src$=".png"] {
	max-width: 190px;
	margin-bottom: 8px;
}

body.atom-pavilion:not(.atom-off) .entry-content .row > [class*="col-"]:has(> p.mod-img) :is(h2, h3) {
	font-size: 20px;
	margin-top: 4px;
}

/* Gallery */
body .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
body .gallery .gallery-item { width: auto !important; margin: 0 !important; padding: 0 !important; }
body .gallery br { display: none; }

/* Embedded video */
body .entry-content iframe[src*="youtube"],
body .entry-content iframe[src*="vimeo"] {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border-radius: var(--atom-radius);
	box-shadow: var(--atom-shadow);
}

/* Lists */
body .entry-content ul:not([class]) { padding-left: 0; list-style: none; }
body .entry-content ul:not([class]) > li {
	position: relative; padding-left: 30.4px; margin-bottom: 8.8px;
}
body .entry-content ul:not([class]) > li::before {
	content: "";
	position: absolute; left: 0; top: .38em;
	width: 18.4px; height: 18.4px; border-radius: 50%;
	background: var(--atom-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230000fa' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Tables */
body .entry-content table {
	width: 100%; border-collapse: separate; border-spacing: 0;
	border: 1px solid var(--atom-line); border-radius: var(--atom-radius);
	overflow: hidden; margin-bottom: 24px; font-size: 15.2px;
}
body .entry-content th {
	background: var(--atom-navy); color: #fff; font-weight: 600; text-align: left;
}
body .entry-content th, body .entry-content td { padding: 12.8px 16px; border-bottom: 1px solid var(--atom-line); }
body .entry-content tr:last-child td { border-bottom: 0; }
body .entry-content tbody tr:nth-child(even) td { background: var(--atom-surface-2); }

/* Phone number call-outs inside content become prominent */
body .entry-content h1 a[href^="tel:"],
body .entry-content h2 a[href^="tel:"],
body .entry-content h3 a[href^="tel:"] {
	display: inline-flex; align-items: center; gap: 8.8px;
	background: var(--atom-accent);
	color: #fff !important;
	padding: .55em 1.1em;
	border-radius: 999px;
	text-decoration: none !important;
	font-style: normal;
	box-shadow: 0 10px 24px rgba(0, 0, 250, .3);
	transition: transform .2s var(--atom-ease), background .2s;
}
body .entry-content h1 a[href^="tel:"] em,
body .entry-content h2 a[href^="tel:"] em,
body .entry-content h3 a[href^="tel:"] em { font-style: normal; }
body .entry-content h1 a[href^="tel:"]:hover,
body .entry-content h2 a[href^="tel:"]:hover,
body .entry-content h3 a[href^="tel:"]:hover { background: var(--atom-accent-dark); transform: translateY(-2px); }

/* Headings that are links (e.g. "Our Services") become pill buttons */
body .entry-content h3 > a:only-child:not([href^="tel:"]),
body .entry-content h3.btn-heading > a {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 16.8px;
	background: var(--atom-navy);
	color: #fff !important;
	padding: 13.6px 25.6px;
	border-radius: 999px;
	text-decoration: none !important;
	transition: background .2s, transform .2s var(--atom-ease);
}
body .entry-content h3 > a:only-child:not([href^="tel:"])::after {
	content: "\2192";
	transition: transform .2s var(--atom-ease);
}
body .entry-content h3 > a:only-child:not([href^="tel:"]):hover { background: var(--atom-navy-2); transform: translateY(-2px); }
body .entry-content h3 > a:only-child:not([href^="tel:"]):hover::after { transform: translateX(4px); }

/* Home page only: the closing "Call us now" section (a section with a phone
   link and no page title) becomes a navy call-to-action band. Sub-pages such
   as the location pages mention phone numbers in ordinary content. */
body.home .entry-content .boldgrid-section:has(a[href^="tel:"]):not(:has(h1)) {
	background:
		radial-gradient(700px 320px at 100% 0%, rgba(0, 0, 250, .45), transparent 60%),
		linear-gradient(135deg, var(--atom-navy) 0%, var(--atom-navy-2) 100%) !important;
	color: #fff;
	text-align: center;
	padding-top: 40px !important;
	padding-bottom: 40px !important;
}
body.home .entry-content .boldgrid-section:has(a[href^="tel:"]):not(:has(h1)) p,
body.home .entry-content .boldgrid-section:has(a[href^="tel:"]):not(:has(h1)) h2,
body.home .entry-content .boldgrid-section:has(a[href^="tel:"]):not(:has(h1)) h3 {
	color: #fff !important;
}
body.home .entry-content .boldgrid-section:has(a[href^="tel:"]):not(:has(h1)) p {
	font-family: var(--atom-font-heading) !important;
	font-size: clamp(20px, 16px + 1.2vw, 30px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.3;
}
body.home .entry-content .boldgrid-section:has(a[href^="tel:"]):not(:has(h1)) .row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}
body.home .entry-content .boldgrid-section:has(a[href^="tel:"]):not(:has(h1)) a[href^="tel:"] {
	background: var(--atom-amber) !important;
	color: var(--atom-navy) !important;
	box-shadow: 0 10px 24px rgba(245, 165, 36, .35) !important;
}
body.home .entry-content .boldgrid-section:has(a[href^="tel:"]):not(:has(h1)) .button-primary {
	background: rgba(255, 255, 255, .1) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3) !important;
}
body.home .entry-content .boldgrid-section:has(a[href^="tel:"]):not(:has(h1)) .row,
body.home .entry-content .boldgrid-section:has(a[href^="tel:"]):not(:has(h1)) [class*="background-color"] {
	background: transparent !important;
}
/* Stack the band's columns so text, phone and button each get full width */
body.home .entry-content .boldgrid-section:has(a[href^="tel:"]):not(:has(h1)) .row > [class*="col-"] {
	flex: 1 1 100%;
	width: 100%;
}
/* Some phone links have their number typed inside the icon element itself */
body .entry-content a[href^="tel:"] i.fa {
	font-family: var(--atom-font-heading) !important;
	font-style: normal;
}
body .entry-content a[href^="tel:"] i.fa::before {
	font-family: FontAwesome;
	font-weight: normal;
	margin-right: .45em;
}
body .entry-content a[href^="tel:"],
body .entry-content a[href^="tel:"] *:not(.fa):not([class*="dashicons"]) {
	font-family: var(--atom-font-heading) !important;
	font-weight: 800;
	font-style: normal;
}

/* ==========================================================================
   7. Buttons & forms
   ========================================================================== */
body .btn,
body .button,
body .entry-content button[type="submit"],
body input[type="submit"],
body input[type="button"],
body .wp-block-button__link,
body .wpcf7-submit,
body .woocommerce a.button,
body .woocommerce button.button {
	font-family: var(--atom-font-body) !important;
	font-weight: 700 !important;
	font-size: 16px;
	letter-spacing: 0 !important;
	text-transform: none !important;
	border-radius: 999px !important;
	padding: 12.8px 25.6px !important;
	border: 2px solid transparent !important;
	background: var(--atom-accent) !important;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(0, 0, 250, .25);
	transition: background .2s, transform .2s var(--atom-ease), box-shadow .2s;
	text-shadow: none !important;
	line-height: 1.2;
}
body .btn:hover,
body .button:hover,
body input[type="submit"]:hover,
body .wp-block-button__link:hover,
body .wpcf7-submit:hover,
body .woocommerce a.button:hover {
	background: var(--atom-accent-dark) !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 250, .32);
	color: #fff !important;
}
/* Secondary / outline variants used by BoldGrid button classes */
body .btn-neutral-color,
body .btn-color-2,
body .btn-border,
body .is-style-outline .wp-block-button__link {
	background: transparent !important;
	border-color: var(--atom-navy) !important;
	color: var(--atom-navy) !important;
	box-shadow: none;
}
body .btn-neutral-color:hover,
body .btn-color-2:hover,
body .btn-border:hover,
body .is-style-outline .wp-block-button__link:hover {
	background: var(--atom-navy) !important;
	color: #fff !important;
}
body .btn-color-3,
body .btn-accent {
	background: var(--atom-amber) !important;
	color: var(--atom-navy) !important;
	box-shadow: 0 6px 16px rgba(245, 165, 36, .3);
}

body input[type="text"],
body input[type="email"],
body input[type="tel"],
body input[type="url"],
body input[type="search"],
body input[type="number"],
body input[type="password"],
body select,
body textarea {
	font-family: var(--atom-font-body);
	font-size: 16px;
	width: 100%;
	padding: 12.8px 16px !important;
	border: 1.5px solid var(--atom-line) !important;
	border-radius: var(--atom-radius-sm) !important;
	background: #fff !important;
	color: var(--atom-ink) !important;
	box-shadow: none !important;
	height: auto !important;
	transition: border-color .2s, box-shadow .2s;
}
body input:focus,
body select:focus,
body textarea:focus {
	border-color: var(--atom-accent) !important;
	box-shadow: 0 0 0 4px rgba(0, 0, 250, .15) !important;
	outline: none;
}
body label { font-weight: 600; color: var(--atom-navy); font-size: 15.2px; }

/* ==========================================================================
   8. Sidebar & widgets
   ========================================================================== */
body #secondary .widget,
body .sidebar:not(.entry-content .sidebar) .widget {
	background: var(--atom-surface-2);
	border-radius: var(--atom-radius);
	padding: 24px;
	margin-bottom: 24px;
	border: 1px solid var(--atom-line);
}
body #secondary .widget-title,
body .sidebar:not(.entry-content .sidebar) .widget-title {
	font-size: 16.8px !important;
	margin-bottom: 14.4px;
}

/* Blog / archive cards */
body.blog article.post,
body.archive article.post,
body.search article {
	background: #fff;
	border: 1px solid var(--atom-line);
	border-radius: var(--atom-radius-lg);
	padding: 28px;
	margin-bottom: 28px;
	box-shadow: var(--atom-shadow-sm);
	transition: box-shadow .3s, transform .3s var(--atom-ease);
}
body.blog article.post:hover,
body.archive article.post:hover { box-shadow: var(--atom-shadow); transform: translateY(-3px); }
body .entry-meta, body .entry-footer { font-size: 13.6px; color: var(--atom-muted); }

/* ==========================================================================
   9. Footer
   ========================================================================== */
body #colophon,
body .site-footer {
	background: var(--atom-navy) !important;
	color: rgba(255, 255, 255, .78) !important;
	padding-top: 56px;
	padding-bottom: 24px;
	position: relative;
	border-top: 0 !important;
}
body #colophon::before,
body .site-footer::before {
	content: "";
	position: absolute; top: 0; left: 0; right: 0; height: 4px;
	background: var(--atom-accent);
}
/* Pavilion wraps #colophon in a .site-footer div: style one, not both */
body .site-footer:has(#colophon) { padding: 0 !important; }
body .site-footer:has(#colophon)::before { display: none; }

body #colophon .boldgrid-section,
body #colophon .bgtfw,
body #colophon > div,
body #colophon .widget,
body #colophon .well {
	background: transparent !important;
	box-shadow: none !important;
}
/* Remove Pavilion's "Built with BoldGrid" credit (and its empty footer row) */
body #colophon .attribution-theme-mods,
body #colophon .boldgrid-attribution-link,
body #colophon .row:has(> [class*="col-"] > .attribution-theme-mods) { display: none !important; }

body #colophon *,
body .site-footer * { border-color: rgba(255, 255, 255, .12) !important; }
body #colophon p, body #colophon li, body #colophon span, body #colophon div,
body .site-footer p, body .site-footer li {
	color: rgba(255, 255, 255, .78) !important;
}
body #colophon h1, body #colophon h2, body #colophon h3,
body #colophon h4, body #colophon h5, body #colophon h6,
body #colophon .widget-title,
body .site-footer .widget-title {
	color: #fff !important;
}
body #colophon a,
body .site-footer a {
	color: #fff !important;
	text-decoration: none;
	opacity: .9;
	transition: opacity .2s, color .2s;
}
body #colophon a:hover,
body .site-footer a:hover { opacity: 1; color: var(--atom-amber) !important; }
body #colophon .site-info,
body #colophon .attribution,
body .site-footer .site-info {
	font-size: 13.6px;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .12) !important;
}

/* ==========================================================================
   10. TranslatePress language switcher (EN / EL)
   ========================================================================== */
body .trp-language-switcher-container a,
body .trp-ls-shortcode-language a,
body .trp-floater-ls-names a {
	font-weight: 600 !important;
	font-size: 13.6px !important;
}
body #trp-floater-ls {
	border-radius: 12px 12px 0 0 !important;
	box-shadow: var(--atom-shadow) !important;
	border: 1px solid var(--atom-line) !important;
}

/* ==========================================================================
   11. Child-theme components
   ========================================================================== */

/* 11a. Mobile click-to-call bar */
.atom-callbar {
	position: fixed;
	left: 12px; right: 12px; bottom: 12px;
	z-index: 9998;
	display: none;
	gap: 10px;
	padding: 8px;
	background: rgba(10, 14, 46, .96);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-radius: 18px;
	box-shadow: 0 14px 34px rgba(10, 14, 46, .35);
	transform: translateY(140%);
	transition: transform .35s var(--atom-ease);
}
.atom-callbar.is-visible { transform: translateY(0); }
.atom-callbar a {
	flex: 1;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px;
	border-radius: 12px;
	font-family: var(--atom-font-heading);
	font-weight: 800;
	font-size: 16px;
	text-decoration: none !important;
}
.atom-callbar .atom-callbar__call { background: var(--atom-amber); color: var(--atom-navy) !important; }
.atom-callbar .atom-callbar__contact { background: rgba(255, 255, 255, .1); color: #fff !important; flex: .75; }
.atom-callbar svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 767px) {
	.atom-callbar { display: flex; }
	body.atom-has-callbar { padding-bottom: 84px; }
	/* keep TranslatePress floater clear of the bar */
	body.atom-has-callbar #trp-floater-ls { bottom: 84px !important; }
}

/* 11b. Back to top */
.atom-to-top {
	position: fixed;
	right: 22px; bottom: 22px;
	width: 46px; height: 46px;
	border: 0; border-radius: 50%;
	background: var(--atom-navy);
	color: #fff;
	display: grid; place-items: center;
	cursor: pointer;
	z-index: 9997;
	box-shadow: var(--atom-shadow);
	opacity: 0; visibility: hidden;
	transform: translateY(12px);
	transition: opacity .3s, transform .3s var(--atom-ease), visibility .3s, background .2s;
	padding: 0;
}
.atom-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.atom-to-top:hover { background: var(--atom-accent); }
.atom-to-top svg { width: 20px; height: 20px; }
@media (max-width: 767px) {
	body.atom-has-callbar .atom-to-top { bottom: 96px; right: 16px; width: 42px; height: 42px; }
}

/* 11c. Trust bar shortcode [atom_trust_bar] */
.atom-trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px;
	margin: 32px 0;
	padding: 0;
	list-style: none;
}
.entry-content ul.atom-trust > li { padding-left: 0; margin: 0; }
.entry-content ul.atom-trust > li::before { display: none; }
.atom-trust__item {
	display: flex; align-items: flex-start; gap: 13.6px;
	background: #fff;
	border: 1px solid var(--atom-line);
	border-radius: var(--atom-radius);
	padding: 17.6px 18.4px;
	box-shadow: var(--atom-shadow-sm);
}
.atom-trust__icon {
	flex: none;
	width: 44px; height: 44px; border-radius: 12px;
	display: grid; place-items: center;
	background: var(--atom-accent-soft); color: var(--atom-accent-dark);
}
.atom-trust__icon svg { width: 22px; height: 22px; }
.atom-trust__title {
	display: block;
	font-family: var(--atom-font-heading);
	font-weight: 800; color: var(--atom-navy); line-height: 1.3; font-size: 16px;
}
.atom-trust__text { display: block; color: var(--atom-muted); font-size: 14.4px; line-height: 1.45; margin-top: 2.4px; }

/* 11d. CTA band shortcode [atom_cta] */
.atom-cta {
	position: relative;
	overflow: hidden;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 24px;
	margin: 48px 0;
	padding: clamp(28px, 20px + 2vw, 48px);
	border-radius: var(--atom-radius-lg);
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(0, 0, 250, .45), transparent 60%),
		linear-gradient(135deg, var(--atom-navy) 0%, var(--atom-navy-2) 100%);
	color: #fff;
	box-shadow: var(--atom-shadow-lg);
}
.atom-cta__text { flex: 1 1 320px; }
.entry-content .atom-cta h2,
.atom-cta .atom-cta__title {
	color: #fff !important;
	font-size: clamp(24px, 19.2px + 1.2vw, 35.2px);
	margin: 0 0 5.6px;
}
.entry-content .atom-cta p,
.atom-cta p { color: rgba(255, 255, 255, .82) !important; margin: 0; font-size: 16.8px; }
.atom-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.entry-content .atom-cta a.atom-cta__btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 14.4px 24px;
	border-radius: 999px;
	font-family: var(--atom-font-heading);
	font-weight: 800;
	text-decoration: none !important;
	transition: transform .2s var(--atom-ease), background .2s;
}
.entry-content .atom-cta a.atom-cta__btn--primary { background: var(--atom-amber); color: var(--atom-navy) !important; }
.entry-content .atom-cta a.atom-cta__btn--primary:hover { background: #ffb83f; transform: translateY(-2px); }
.entry-content .atom-cta a.atom-cta__btn--ghost { background: rgba(255, 255, 255, .1); color: #fff !important; border: 1px solid rgba(255, 255, 255, .25); }
.entry-content .atom-cta a.atom-cta__btn--ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.atom-cta svg { width: 18px; height: 18px; }

/* 11e. Lightbox (images open over the page instead of an attachment page) */
html.atom-lb-open { overflow: hidden; }
.atom-lb {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 72px;
	background: rgba(6, 8, 26, .92);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s var(--atom-ease), visibility .25s;
}
.atom-lb.is-open { opacity: 1; visibility: visible; }
.atom-lb__figure {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.atom-lb__stage { position: relative; display: flex; align-items: center; justify-content: center; min-width: 60px; min-height: 60px; }
.atom-lb__img {
	display: block;
	max-width: calc(100vw - 144px);
	max-height: calc(100vh - 150px);
	width: auto;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
	transition: opacity .2s;
	user-select: none;
}
.atom-lb.is-loading .atom-lb__img { opacity: 0; }
.atom-lb__spinner {
	position: absolute;
	width: 36px; height: 36px;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: atom-spin .8s linear infinite;
	display: none;
}
.atom-lb.is-loading .atom-lb__spinner { display: block; }
@keyframes atom-spin { to { transform: rotate(360deg); } }
.atom-lb__caption {
	display: flex;
	gap: 16px;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	color: rgba(255, 255, 255, .88);
	font-family: var(--atom-font-body);
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
	max-width: 900px;
}
.atom-lb__count { color: rgba(255, 255, 255, .55); font-size: 13px; font-variant-numeric: tabular-nums; }
.atom-lb button {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	cursor: pointer;
	box-shadow: none;
	transition: background .2s;
}
.atom-lb button:hover { background: rgba(255, 255, 255, .22); }
.atom-lb button:focus-visible { outline: 3px solid var(--atom-amber); outline-offset: 2px; }
.atom-lb button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.atom-lb__close { top: 16px; right: 16px; }
.atom-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.atom-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.atom-lb.is-single .atom-lb__nav { display: none; }
@media (max-width: 767px) {
	.atom-lb { padding: 64px 8px 88px; }
	.atom-lb__img { max-width: calc(100vw - 16px); max-height: calc(100vh - 170px); border-radius: 6px; }
	.atom-lb__prev, .atom-lb__next { top: auto; bottom: 20px; transform: none; }
	.atom-lb__prev { left: calc(50% - 60px); }
	.atom-lb__next { right: calc(50% - 60px); }
}
/* Image links get a zoom cursor so people know they open */
body.atom-pavilion .entry-content a[href$=".jpg"] img,
body.atom-pavilion .entry-content a[href$=".jpeg"] img,
body.atom-pavilion .entry-content a[href$=".png"] img,
body.atom-pavilion .entry-content a[href$=".webp"] img { cursor: zoom-in; }

/* 11f. Scroll reveal (only when JS is running and motion is allowed) */
.atom-js .atom-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s var(--atom-ease), transform .7s var(--atom-ease);
	will-change: opacity, transform;
}
.atom-js .atom-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
	.atom-js .atom-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   12. Responsive tweaks
   ========================================================================== */
@media (max-width: 991px) {
	body { font-size: 16px; }
	body .site-header a[href^="tel:"],
	body #masthead a[href^="tel:"] { padding: 8.8px 15.2px; font-size: 15.2px; }
}
@media (max-width: 767px) {
	body #masthead .site-branding { padding-left: 12px; padding-right: 12px; }
	/* the bottom call bar replaces the header phone button on phones */
	body.atom-has-callbar #masthead [class*="col-"].header-10 { display: none; }
	body #masthead .row.header-8 { border-bottom: 0; }
	body .site-branding { text-align: left; }
	body .site-branding img, body .custom-logo { max-height: 52px; }
	body .entry-content .row > [class*="col-"]:has(> h4):has(img) { margin-bottom: 16px; }
	body .atom-cta { text-align: left; }
}

/* Print */
@media print {
	.atom-callbar, .atom-to-top, #trp-floater-ls { display: none !important; }
	body #colophon { background: none !important; color: #000 !important; }
}
