/* ==========================================================================
   Jeriemacos theme — main stylesheet
   ========================================================================== */

/* Lato (SIL Open Font License, see assets/fonts/OFL.txt) — self-hosted */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lato-light.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-regular.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lato-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-bold.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/lato-bolditalic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/lato-black.woff2") format("woff2"); }

/* Montserrat (SIL Open Font License, see assets/fonts/OFL-Montserrat.txt) — headings */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-medium.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-semibold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-bold.woff2") format("woff2"); }

:root {
	--navy: #1f4580;
	--navy-2: #2a58a0;
	--green-deep: #145233;
	--blue-soft: #eaf1fb;
	--blue-line: #d3e0f3;
	--ocean: #2a58a0;
	--ocean-2: #3d73c4;
	--accent: #34a46b;
	--accent-2: #1f8452;
	--accent-3: #176b42;
	--accent-soft: #e3f4ea;
	--on-dark-accent: #d6f2e2;
	--sand: #f2f8f4;
	--line: #dbe9e0;
	--ink: #1e2633;
	--muted: #566170;
	--white: #fff;
	--success: #0f7b4f;
	--danger: #b42318;

	--font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 10px 30px rgba(16, 52, 33, .08);
	--shadow-lg: 0 20px 50px rgba(16, 52, 33, .16);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(56px, 9vw, 104px);
	--header-h: 76px;
	--header-gap: 16px;
	--header-space: calc(var(--header-h) + var(--header-gap));
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-space) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.icon { flex: none; vertical-align: middle; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--accent-2); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #e4edf8; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.site-main:focus { outline: none; }

/* ---------- Typography helpers ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ocean); margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--accent); }
.kicker--light { color: var(--on-dark-accent); }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head .kicker { justify-content: center; }
.section-intro { color: var(--muted); font-size: 1.125rem; margin: 0; }
.section-head--light .section-intro { color: #cbdaf0; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent-2); color: #fff; }
.btn--primary:hover { background: var(--accent-3); color: #fff; }
.btn--dark { background: transparent; color: var(--ocean); border-color: var(--ocean); }
.btn--dark:hover { background: var(--ocean); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .6); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .9375rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-weight: 700; text-decoration: none; color: var(--ocean); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Top bar ---------- */

/* ---------- Social ---------- */
.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .08); transition: background-color .2s, color .2s; }
.social a:hover { background: #fff; color: var(--accent-2); }
.social--top a { width: 28px; height: 28px; }
.social--top .icon { width: 14px; height: 14px; }
.social--footer { margin-top: 20px; }
.social--dark a { background: var(--sand); color: var(--navy); width: 40px; height: 40px; }
.social--dark { margin-top: 24px; }

/* ---------- Header ---------- */
/* Floating header bar: sits over the hero, sticks on scroll */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-space); margin-bottom: calc(-1 * var(--header-space)); padding-top: var(--header-gap); pointer-events: none; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-bar { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 28px; min-height: var(--header-h); padding: 0 14px 0 26px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(16, 40, 70, .14); transition: box-shadow .25s; }
.site-header.is-scrolled .header-bar { box-shadow: 0 12px 34px rgba(16, 40, 70, .22); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); transition: background-color .15s, color .15s; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--sand); color: var(--accent-2); }
.header-cta { margin-left: 6px; }
.header-search { position: absolute; right: 0; top: calc(100% + 10px); width: min(440px, 100%); padding: 14px; background: #fff; border-radius: 12px; box-shadow: 0 14px 34px rgba(16, 40, 70, .18); border-top: 2px solid var(--accent); }
.header-search .search-form { max-width: none; }
.header-search .search-form input { border-radius: 8px; }
.header-search .search-form .btn { border-radius: 8px; }
.brand { flex: none; }
.brand .custom-logo-link { display: block; }
.brand .custom-logo, .brand__logo { display: block; height: 56px; width: auto; max-width: 100%; }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--radius-sm); padding: 8px 12px; }
.footer-logo img { display: block; height: 52px; width: auto; }
@media (max-width: 640px) { .brand .custom-logo, .brand__logo { height: 44px; } :root { --header-h: 64px; --header-gap: 10px; } }
.brand__text { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--accent); }
.brand__name { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.brand__name small { font-size: .62rem; font-weight: 700; letter-spacing: .28em; color: var(--muted); margin-top: 5px; }
.brand__text--light { color: #fff; }
.brand__text--light .brand__mark { background: rgba(255, 255, 255, .1); }
.brand__text--light small { color: #aec3e2; }

.primary-nav { display: flex; align-items: center; justify-content: center; flex: 1; gap: 28px; }
.nav-cta { display: none; }
.primary-nav .menu { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 22px); list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav .menu a { position: relative; display: block; padding: 10px 8px; font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--ink); text-decoration: none; border-radius: 0; }
.primary-nav .menu > li > a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.primary-nav .menu > li > a:hover::after, .primary-nav .menu > .current-menu-item > a::after, .primary-nav .menu > .current-menu-ancestor > a::after, .primary-nav .menu > .current_page_item > a::after { transform: scaleX(1); }
.primary-nav .menu a:hover { color: var(--accent-2); }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_item > a { color: var(--ocean); }
.submenu-toggle { display: grid; place-items: center; width: 24px; height: 28px; margin-left: -6px; border: 0; background: transparent; color: var(--navy); border-radius: 6px; }
.submenu-toggle .icon { transform: rotate(90deg); transition: transform .2s; }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 6px 0; position: absolute; top: calc(100% + 22px); left: -10px; min-width: 270px; background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(16, 52, 33, .10); border: 1px solid var(--line); border-top: 2px solid var(--ocean); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px; }
.primary-nav .sub-menu li + li { border-top: 1px solid #edf4ef; }
.primary-nav .sub-menu a { padding: 10px 18px; font-weight: 400; font-size: .925rem; line-height: 1.35; letter-spacing: .005em; color: var(--ink); border-radius: 0; background: transparent; transition: color .15s, padding-left .15s; }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { color: var(--accent-2); background: transparent; padding-left: 22px; }
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu,
.primary-nav .menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .is-open > .submenu-toggle .icon { transform: rotate(-90deg); }

.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

@media (max-width: 1080px) {
	.nav-toggle { display: grid; }
	.header-cta { display: none; }
	.nav-cta { display: inline-flex; }
	.header-bar { gap: 12px; padding: 0 8px 0 18px; }
	.primary-nav .menu > li > a::after { display: none; }
	.primary-nav { position: fixed; inset: var(--nav-top, 118px) var(--gutter) auto var(--gutter); max-height: calc(100vh - var(--nav-top, 118px) - 16px); border-radius: 14px; box-shadow: 0 18px 40px rgba(16, 40, 70, .2); justify-content: flex-start; flex-direction: column; align-items: stretch; gap: 20px; padding: 16px 16px 20px; background: #fff; overflow-y: auto; opacity: 0; transform: translateY(-12px); visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
	.primary-nav.is-open { opacity: 1; transform: none; visibility: visible; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.primary-nav .menu > li { flex-wrap: wrap; }
	.primary-nav .menu > li > a { flex: 1; padding: 14px 12px; font-size: 1.05rem; }
	.submenu-toggle { width: 48px; height: 48px; margin: 0; }
	.primary-nav .sub-menu { position: static; display: none; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 8px 12px; padding: 0; }
	.primary-nav .sub-menu a:hover { padding-left: 18px; }
	.primary-nav .menu-item-has-children:hover > .sub-menu, .primary-nav .menu-item-has-children:focus-within > .sub-menu { display: none; }
	.primary-nav .menu-item-has-children.is-open > .sub-menu { display: block; }
	.nav-cta { width: 100%; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 900px) { .hide-md { display: none !important; } }
@media (max-width: 640px) {
	.hide-sm { display: none !important; }
			.brand__name { font-size: 1.15rem; }
	.brand__mark { width: 40px; height: 40px; }
}

/* ---------- Hero slider ---------- */
.hero { position: relative; background: linear-gradient(115deg, var(--navy) 0%, var(--ocean) 45%, var(--accent-2) 100%); color: #fff; overflow: hidden; isolation: isolate; }
.hero__slides { display: grid; }
.hero__slide { grid-area: 1 / 1; min-height: clamp(560px, 82vh, 780px); display: flex; align-items: center; padding-block: calc(var(--header-space) + 56px) 140px; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; position: relative; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; z-index: 0; }
.hero__slide.has-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(31, 69, 128, .9) 0%, rgba(31, 90, 100, .65) 50%, rgba(20, 82, 51, .3) 100%); }
.hero__slide.has-image ~ .hero__art, .hero:has(.has-image.is-active) .hero__art { opacity: 0; }
.hero__content { position: relative; z-index: 2; }
.hero__content > * { max-width: 680px; }
.hero__title { color: #fff; font-size: clamp(2rem, 4.8vw, 3.4rem); font-weight: 700; margin-bottom: 20px; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e4edf8; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__slide.is-active .hero__content > * { animation: rise .7s both; }
.hero__slide.is-active .hero__content > :nth-child(2) { animation-delay: .08s; }
.hero__slide.is-active .hero__content > :nth-child(3) { animation-delay: .16s; }
.hero__slide.is-active .hero__content > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__art { position: absolute; right: -4%; bottom: 0; width: min(64%, 900px); aspect-ratio: 1200 / 420; background: url("../img/port-scene.svg") right bottom / contain no-repeat; opacity: .28; z-index: 1; pointer-events: none; transition: opacity .6s; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--ocean) 0 50%, var(--accent) 50%); z-index: 3; }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 36px; display: flex; align-items: center; gap: 12px; z-index: 3; margin-inline: auto; }
.hero__arrow, .hero__pause { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; transition: background-color .2s, color .2s; }
.hero__arrow:hover, .hero__pause:hover { background: #fff; color: var(--navy); }
.hero__pause { width: auto; border-radius: 999px; padding: 0 14px; font-size: .8125rem; font-weight: 600; margin-left: 8px; }
.hero__dots { display: flex; gap: 6px; }
.hero__dot { width: 36px; height: 44px; border: 0; background: transparent; padding: 0; position: relative; }
.hero__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255, 255, 255, .35); transition: background-color .2s; }
.hero__dot[aria-selected="true"]::before { background: #fff; }
@media (max-width: 640px) {
	.hero__art { width: 120%; right: -30%; opacity: .16; }
	.hero__slide { padding-block: calc(var(--header-space) + 40px) 128px; min-height: 600px; }
	.hero__pause { display: none; }
}

/* ---------- Service strip ---------- */
.service-strip { background: #fff; border-bottom: 1px solid var(--line); }
.service-strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.service-strip__list a { display: flex; align-items: center; gap: 12px; padding: 22px 14px; height: 100%; text-decoration: none; color: #111; font-family: var(--font-body); font-weight: 700; font-size: .92rem; line-height: 1.25; border-right: 1px solid var(--line); transition: background-color .2s; }
.service-strip__list li:last-child a { border-right: 0; }
.service-strip__list a:hover { background: var(--sand); color: #111; }
.service-strip__list .icon { color: var(--accent-2); }
@media (max-width: 1080px) { .service-strip__list { grid-template-columns: repeat(3, 1fr); } .service-strip__list a { border-bottom: 1px solid var(--line); } .service-strip__list li:nth-child(3n) a { border-right: 0; } }
@media (max-width: 560px) { .service-strip__list { grid-template-columns: 1fr 1fr; } .service-strip__list li:nth-child(3n) a { border-right: 1px solid var(--line); } .service-strip__list li:nth-child(2n) a { border-right: 0; } .service-strip__list a { padding: 16px 10px; font-size: .85rem; } }

/* ---------- About block (home) ---------- */
.about-block__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-block__media { position: relative; }
.about-block__media img, .about-block__art { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; border-radius: var(--radius); }
.about-block__art { background: url("../img/port-scene.svg") center 85% / 115% auto no-repeat, linear-gradient(160deg, var(--ocean) 0%, var(--accent-2) 100%); }
.about-block__badge { position: absolute; right: -16px; bottom: -20px; background: var(--accent-2); color: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 210px; }
.about-block__badge strong { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.about-block__badge span { display: block; font-size: .85rem; font-weight: 600; margin-top: 6px; order: -1; }
.about-block__badge { display: flex; flex-direction: column-reverse; }
.highlights { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 16px; }
.highlights li { display: flex; gap: 14px; align-items: flex-start; }
.highlights__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); flex: none; margin-top: 2px; }
.highlights strong { display: block; font-family: var(--font-body); color: var(--navy); }
.highlights span { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .about-block__grid { grid-template-columns: 1fr; } .about-block__badge { right: 12px; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.service-card, .post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.service-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--blue-soft); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ocean); background: radial-gradient(circle at 80% 15%, #fff 0, transparent 55%), radial-gradient(circle at 10% 100%, rgba(52, 164, 107, .14) 0, transparent 50%); }
.service-card__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 36px 26px 26px; }
.service-card__icon { position: absolute; top: -26px; left: 26px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-2); color: #fff; box-shadow: 0 8px 20px rgba(31, 132, 82, .3); }
.service-card__title { font-size: 1.25rem; margin-bottom: 10px; }
.service-card__title a { color: inherit; text-decoration: none; }
.service-card__title a:hover { color: var(--ocean); }
.service-card p { color: var(--muted); font-size: .98rem; }
.service-card .link-arrow { margin-top: auto; }
.post-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__body { padding: 24px; }
.post-card__meta { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.post-card__title { font-size: 1.25rem; }
.post-card__title a { color: inherit; text-decoration: none; }

/* ---------- Why ---------- */
.why { position: relative; overflow: hidden; }

.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.why-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); transition: border-color .25s, box-shadow .25s; }
.why-item:hover { border-color: var(--ocean); box-shadow: var(--shadow); }
.why-item__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue-soft); color: var(--ocean); margin-bottom: 18px; }
.why-item h3 { font-size: 1.2rem; }
.why-item p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; border-top: 2px dashed var(--line); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__num { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--ocean); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; box-shadow: 0 0 0 8px var(--blue-soft); position: relative; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.home-contact__grid, .contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .home-contact__grid, .contact-layout { grid-template-columns: 1fr; } }
.contact-cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.contact-card { display: flex; gap: 14px; padding: 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.section--sand .contact-card { border-color: transparent; box-shadow: var(--shadow); }
.contact-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); flex: none; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p, .contact-card address { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-card a { font-size: .95rem; word-break: break-word; }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }

.form-card { background: #fff; border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); border-top: 5px solid var(--accent); }
.form-card__title { font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin: 0 0 18px; display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: .9375rem; color: var(--navy); margin-bottom: 6px; }
.req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #f8fafd; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ocean); background: #fff; box-shadow: 0 0 0 4px rgba(42, 88, 160, .18); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fff6f5; }
.field-error { color: var(--danger); font-size: .875rem; margin-top: 6px; font-weight: 500; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 4px 0 0; }
.form-note { font-size: .85rem; color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-form-wrap { position: relative; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.notice p { margin: 0; }
.notice--success { background: #e7f6ee; color: var(--success); border: 1px solid #b7e3cb; }
.notice--error { background: #fdecea; color: var(--danger); border: 1px solid #f5c2bd; }
.is-submitting button[type="submit"] { opacity: .7; pointer-events: none; }

.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.2); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; background: linear-gradient(115deg, var(--navy) 0%, var(--ocean) 50%, var(--accent-2) 100%); color: #fff; padding: calc(var(--header-space) + clamp(40px, 6vw, 80px)) 0 clamp(44px, 7vw, 80px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -2%; bottom: -6px; width: min(55%, 700px); aspect-ratio: 1200 / 420; background: url("../img/port-scene.svg") right bottom / contain no-repeat; opacity: .14; pointer-events: none; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, var(--ocean) 0 50%, var(--accent) 50%); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 30%; z-index: 0; }
.page-hero--image::before { inset: 0; width: auto; aspect-ratio: auto; opacity: 1; z-index: 1; background: linear-gradient(90deg, rgba(31, 69, 128, .95) 0%, rgba(31, 80, 115, .82) 38%, rgba(31, 90, 100, .25) 58%, rgba(20, 82, 51, .1) 100%); }
.page-hero--image > .container { z-index: 2; }
.page-hero--image::after { z-index: 3; }
.page-hero .container { position: relative; }
.page-hero__title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; margin: 0; max-width: 820px; }
.page-hero__subtitle { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e4edf8; margin: 14px 0 0; max-width: 720px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 16px; padding: 0; font-size: .875rem; color: #cbdaf0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Content ---------- */
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry-content ul li, .entry-content ol li { margin-bottom: .5em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-size: 1.15rem; color: var(--navy); }
.entry-content .alignwide { margin-inline: calc(-1 * min(80px, 6vw)); max-width: none; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry__image { margin: 0 0 32px; }
.entry__image img { width: 100%; border-radius: var(--radius); }
.entry__subhead { font-size: 1.6rem; margin-top: 40px; }
.entry__cta { margin-top: 36px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--sand); font-weight: 500; color: var(--navy); }
.checklist .icon { color: var(--accent-2); margin-top: 1px; }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }
.why-box { display: flex; gap: 18px; margin-top: 36px; padding: 28px; border-radius: var(--radius); background: var(--blue-soft); color: var(--ink); border: 1px solid var(--blue-line); }
.why-box h2 { color: var(--navy); font-size: 1.3rem; margin-bottom: 8px; }
.why-box p { margin: 0; }
.why-box__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--ocean); flex: none; }
@media (max-width: 520px) { .why-box { flex-direction: column; } }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .layout-sidebar { grid-template-columns: 1fr; } }
.sidebar { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) { .sidebar { position: static; } }
.widget { background: var(--sand); border-radius: var(--radius); padding: 26px; }
.widget__title { font-size: 1.2rem; margin-bottom: 16px; }
.service-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.service-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3; transition: background-color .2s, color .2s; }
.service-nav .icon { color: var(--accent-2); }
.service-nav a:hover, .service-nav a.is-current { background: var(--accent-2); color: #fff; }
.service-nav a.is-current .icon, .service-nav a:hover .icon { color: #fff; }
.widget--dark { background: var(--ocean); color: #e4edf8; }
.widget--dark .widget__title { color: #fff; margin-bottom: 6px; }
.widget__phone { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; text-decoration: none; margin-top: 8px; }
.widget__phone .icon { color: var(--on-dark-accent); }
.widget__phone:hover { color: var(--on-dark-accent); }
.widget__hours { font-size: .9rem; margin: 14px 0 0; color: #aec3e2; }

.about-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-page__facts { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 24px); }
.fact { background: var(--sand); border-radius: var(--radius); padding: 22px 24px; border-left: 4px solid var(--accent); }
.fact:nth-child(even) { background: var(--blue-soft); border-left-color: var(--ocean); }
.fact strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--navy); line-height: 1.1; }
.fact span { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .about-page { grid-template-columns: 1fr; } .about-page__facts { position: static; grid-template-columns: 1fr 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(110deg, var(--accent-2) 0%, var(--ocean) 100%); color: #e4edf8; padding-block: clamp(44px, 6vw, 72px); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 720px; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #17335f; color: #aec3e2; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1.1fr; gap: 40px; padding-block: clamp(56px, 7vw, 80px); }
.site-footer p { margin: 18px 0 0; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: #d9e5f5; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--on-dark-accent); margin-top: 3px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px; font-size: .875rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: #d9e5f5; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

.whatsapp-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); transition: transform .2s; }
.whatsapp-fab:hover { transform: scale(1.06); color: #fff; }

/* ---------- 404 / misc ---------- */
.notfound__inner { text-align: center; }
.notfound__icon { display: inline-grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: var(--sand); color: var(--ocean); margin-bottom: 24px; }
.notfound__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input { flex: 1; font: inherit; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--sand); text-decoration: none; color: var(--navy); font-weight: 600; }
.page-numbers.current { background: var(--navy); color: #fff; }
.post-navigation { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { justify-content: space-between; }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; }

@media print {
		body { color: #000; }
}

.section--blue { background: var(--blue-soft); }
.section--blue .steps::before { border-color: var(--blue-line); }
.contact-card:nth-child(even) .contact-card__icon { background: var(--blue-soft); color: var(--ocean); }

.notfound { padding-top: calc(var(--section) + var(--header-space)); }
.sidebar, .about-page__facts { top: calc(var(--header-space) + 24px); }

/* ==========================================================================
   Services mega menu
   ========================================================================== */
.primary-nav .menu > .menu-item-has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: calc(100% + 12px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; padding: 22px; background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(16, 40, 70, .18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; text-align: left; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.primary-nav .menu-item-has-mega:hover > .mega,
.primary-nav .menu-item-has-mega:focus-within > .mega,
.primary-nav .menu-item-has-mega.is-open > .mega { opacity: 1; visibility: visible; transform: none; }

.mega__main { padding-right: 22px; border-right: 1px solid var(--line); min-width: 0; }
.mega__tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; }
.mega__tab { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font: 400 .925rem/1.2 var(--font-body); color: var(--muted); transition: background-color .15s, color .15s, box-shadow .15s; }
.mega__tab:hover { color: var(--ink); }
.mega__tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 40, 70, .14); }
.mega__group-title { display: none; }
.mega__panel.is-inactive { display: none; }
.mega__cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.primary-nav .mega a.mega-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s; }
.primary-nav .mega a.mega-card::after, .primary-nav .mega a.mega-link::after { display: none; }
.primary-nav .mega a.mega-card:hover, .primary-nav .mega a.mega-card.is-current { border-color: var(--accent); background: #fbfefc; }
.mega-card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; flex: none; }
.mega-card:hover .mega-card__icon { background: var(--accent-2); }
.mega-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mega-card__title { font-weight: 500; font-size: .975rem; color: var(--ink); line-height: 1.3; }
.mega-card__desc, .mega-link__desc { font-weight: 400; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.mega-card__arrow { color: var(--accent-2); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.mega-card:hover .mega-card__arrow { opacity: 1; transform: none; }

.mega__side { display: flex; flex-direction: column; gap: 18px; padding-left: 22px; min-width: 0; }
.mega__links { list-style: none; margin: 0; padding: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.primary-nav .mega a.mega-link { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.primary-nav .mega a.mega-link:hover { background: var(--sand); color: var(--ink); }
.mega-link__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--ocean); border: 1px solid var(--blue-line); flex: none; }
.mega-link__title { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: .95rem; line-height: 1.3; }
.mega-link__desc { display: block; margin-top: 2px; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--navy); color: #fff; font-style: normal; font-size: .68rem; font-weight: 500; letter-spacing: .02em; }
.mega__cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: 12px; background: linear-gradient(100deg, #def3e7 0%, #e3edfa 100%); }
.mega__cta p { margin: 0; font-size: 1.02rem; color: var(--ink); font-weight: 400; }
.primary-nav .mega a.mega__cta-btn { flex: none; background: var(--navy); color: #fff; border-radius: 999px; padding: 8px 18px; }
.primary-nav .mega a.mega__cta-btn:hover { background: var(--accent-2); color: #fff; }

@media (max-width: 1240px) { .mega__links { grid-template-columns: 1fr; } }

/* Mobile: the mega menu becomes a tidy grouped list */
@media (max-width: 1080px) {
	.primary-nav .menu > .menu-item-has-mega { position: relative; }
	.mega { position: static; display: none; grid-template-columns: 1fr; padding: 4px 0 8px 12px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; margin: 0 0 8px 12px; width: 100%; }
	.mega::before { display: none; }
	.primary-nav .menu-item-has-mega:hover > .mega, .primary-nav .menu-item-has-mega:focus-within > .mega { display: none; }
	.primary-nav .menu-item-has-mega.is-open > .mega { display: grid; }
	.mega__main { padding: 0; border: 0; }
	.mega__tabs { display: none; }
	.mega__panel.is-inactive { display: block; }
	.mega__panel + .mega__panel { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
	.mega__group-title { display: block; margin: 10px 0 6px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ocean); font-weight: 500; }
	.mega__cards { gap: 0; }
	.primary-nav .mega a.mega-card { border: 0; border-radius: 0; padding: 9px 4px; background: transparent; }
	.mega-card__icon { width: 32px; height: 32px; border-radius: 8px; }
	.mega-card__arrow { display: none; }
	.mega__side { padding: 8px 0 0; }
	.mega__links { display: none; }
	.mega__cta { display: none; }
}
@media (min-width: 1081px) {
	.primary-nav { align-self: stretch; }
	.primary-nav .menu { align-self: stretch; align-items: stretch; }
	.primary-nav .menu > li { align-items: center; }
}
.primary-nav .menu > .menu-item-has-mega:hover > a::after, .primary-nav .menu > .menu-item-has-mega.is-open > a::after { transform: scaleX(1); }

/* Slide photo focal points (keep the subject clear of the headline) */
.hero__slide:nth-child(2) .hero__bg { object-position: center 40%; }
.hero__slide:nth-child(3) .hero__bg { object-position: 75% 30%; }
@media (max-width: 640px) { .hero__slide:nth-child(3) .hero__bg { object-position: 82% 25%; } }
@media (max-width: 760px) {
	.hero__slide.has-image::before { background: linear-gradient(180deg, rgba(31, 69, 128, .82) 0%, rgba(31, 80, 110, .8) 55%, rgba(20, 82, 51, .72) 100%); }
}

/* Contact mega menu */
.mega__heading { margin: 2px 0 14px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ocean); font-weight: 500; }
.mega__cards--grid { grid-template-columns: 1fr 1fr; }
.mega-card--static { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.mega-card--static .mega-card__text { gap: 3px; }
.primary-nav .mega a.mega-card__line { display: inline; padding: 0; font-size: .875rem; font-weight: 400; color: var(--ocean); border-radius: 0; overflow-wrap: anywhere; }
.primary-nav .mega a.mega-card__line::after { display: none; }
.primary-nav .mega a.mega-card__line:hover { color: var(--accent-2); text-decoration: underline; }
.mega-card__icon--wa { background: #1fa855; }
.mega-hours { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--sand); border: 1px solid var(--line); }
.mega-hours p { margin: 0; }
.mega-hours .mega-link__desc { margin-top: 3px; }
.mega--contact .mega__links { grid-template-columns: 1fr 1fr; }
@media (max-width: 1080px) {
	.mega__heading { display: none; }
	.mega__cards--grid { grid-template-columns: 1fr; gap: 0; }
	.mega-card--static { border: 0; border-radius: 0; padding: 9px 4px; background: transparent; }
	.mega--contact .mega__side { padding-top: 4px; }
	.mega--contact .mega-hours { padding: 10px; }
	.mega--contact .mega__links { display: grid; grid-template-columns: 1fr; gap: 0; }
	.mega--contact .mega__links li:last-child { display: none; }
	.primary-nav .mega--contact a.mega-link { padding: 9px 4px; }
}

/* Photo overlay for the CTA band */
.cta-band--photo { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 8vw, 104px); }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 75% 30%; z-index: -2; }
.cta-band--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(31, 128, 82, .96) 0%, rgba(31, 105, 115, .88) 34%, rgba(42, 88, 160, .3) 54%, rgba(42, 88, 160, 0) 72%); }
.cta-band__content { max-width: 600px; display: grid; gap: 14px; }
.cta-band__content .cta-band__title { margin: 0; }
.cta-band__content .cta-band__actions { margin-top: 10px; }
@media (max-width: 760px) {
	.cta-band__bg { object-position: 80% 20%; }
	.cta-band--photo::before { background: linear-gradient(180deg, rgba(31, 128, 82, .9) 0%, rgba(31, 100, 120, .88) 60%, rgba(42, 88, 160, .8) 100%); }
	.page-hero--image::before { background: linear-gradient(180deg, rgba(31, 69, 128, .9), rgba(20, 82, 51, .78)); }
}

.mega__cta-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(16, 40, 70, .15); }
.mega__cta { justify-content: flex-start; }
.mega__cta p { flex: 1; min-width: 0; }

h3, h4, h5, h6 { font-weight: 600; }

/* ==========================================================================
   Header "Contact us" button + contact drawer
   ========================================================================== */
.header-bar { padding-right: 0; }
.header-actions { padding-right: 12px; }
.header-cta.btn--primary { background: #fff; color: var(--accent-2); border-color: var(--accent-2); }
.header-cta.btn--primary:hover { background: var(--accent-2); color: #fff; }
.header-contact { align-self: stretch; display: flex; align-items: center; gap: 10px; padding: 0 18px 0 22px; border: 0; border-radius: 0 14px 14px 0; background: var(--accent-2); color: #fff; font: 400 1rem/1 var(--font-body); white-space: nowrap; transition: background-color .2s; }
.header-contact:hover, .header-contact[aria-expanded="true"] { background: var(--accent-3); }
.header-contact__chev { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .18); transition: transform .2s; }
.header-contact:hover .header-contact__chev { transform: translateX(2px); }
@media (max-width: 1180px) { .header-contact__label { display: none; } .header-contact { padding: 0 16px; } }
@media (max-width: 1080px) { .header-contact__chev { display: none; } .header-contact { padding: 0; width: 56px; justify-content: center; } .header-actions { padding-right: 4px; } }
@media (max-width: 640px) { .header-contact { width: 52px; } }

.drawer-backdrop { position: fixed; inset: 0; z-index: 190; background: rgba(12, 28, 48, .45); opacity: 0; transition: opacity .25s; }
.drawer-backdrop.is-open { opacity: 1; }
.contact-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; width: min(420px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -18px 0 50px rgba(12, 28, 48, .22); transform: translateX(100%); transition: transform .3s ease; }
.contact-drawer.is-open { transform: none; }
.admin-bar .contact-drawer { top: 32px; }
@media (max-width: 782px) { .admin-bar .contact-drawer { top: 46px; } }
.contact-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line); border-top: 4px solid var(--accent-2); }
.contact-drawer__title { margin: 0; font-size: 1.35rem; }
.contact-drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.contact-drawer__intro { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: linear-gradient(100deg, #def3e7 0%, #e3edfa 100%); }
.contact-drawer__intro img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; flex: none; }
.contact-drawer__intro p { margin: 0; font-size: .95rem; color: var(--ink); }
.drawer-list { list-style: none; margin: 12px 0 0; padding: 0; }
.drawer-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-list li:last-child { border-bottom: 0; }
.drawer-list__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--ocean); flex: none; }
.drawer-list__icon--wa { background: #1fa855; color: #fff; }
.drawer-list li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: .95rem; color: var(--muted); }
.drawer-list__label { margin: 0 0 2px; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.drawer-list a { color: var(--ocean); text-decoration: none; overflow-wrap: anywhere; }
.drawer-list a:hover { color: var(--accent-2); text-decoration: underline; }
.contact-drawer__foot { display: grid; gap: 10px; padding: 16px 24px 20px; border-top: 1px solid var(--line); padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.contact-drawer__foot .btn { width: 100%; }
.contact-drawer__foot .social { justify-content: center; margin-top: 4px; }
body.drawer-open { overflow: hidden; }

/* ==========================================================================
   Header style options
   ========================================================================== */
.header-static .site-header { position: relative; top: auto; }
.header-full { --header-gap: 0px; }
.header-full .site-header { height: auto; margin-bottom: 0; padding-top: 0; background: #fff; box-shadow: 0 1px 0 var(--line); pointer-events: auto; }
.header-full .header-bar { border-radius: 0; box-shadow: none; padding-left: 0; }
.header-full .site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 40, 70, .1); }
.header-full .site-header.is-scrolled .header-bar { box-shadow: none; }
.header-full .header-contact { border-radius: 0; }
.header-full .hero__slide { padding-top: 64px; }
.header-full .page-hero { padding-top: clamp(40px, 6vw, 80px); }
.header-full .notfound { padding-top: var(--section); }

/* ==========================================================================
   Page builder compatibility
   ========================================================================== */
.jm-no-banner:not(.header-full) .site-main { padding-top: var(--header-space); }
.jm-canvas .site-main { padding-top: 0; }
.builder-content { display: block; width: 100%; }
.builder-content--boxed { padding-block: var(--section); }
.builder-content img { display: inline-block; vertical-align: middle; }
/* Block-editor content placed on a full-width page keeps a readable column */
.builder-content--full > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, table, pre, .wp-block-group, .wp-block-columns, .wp-block-buttons, .wp-block-image, .wp-block-media-text, .wp-block-gallery):not(.alignfull):not(.alignwide) { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.builder-content--full > .alignwide { max-width: calc(var(--container) + 200px); margin-inline: auto; padding-inline: var(--gutter); }
.builder-content--full > .alignfull { width: 100%; max-width: none; }
/* WPBakery & SiteOrigin standard rows expect a container (stretched rows still go edge to edge) */
.builder-content--full > .wpb-content-wrapper,
.builder-content--full > .panel-layout { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.builder-content--full > .vc_row:not([data-vc-full-width]) { max-width: calc(var(--container) - 2 * var(--gutter) + 30px); margin-inline: auto; }
/* Keep theme heading colours from fighting builder styles */
.builder-content .elementor h1, .builder-content .elementor h2, .builder-content .elementor h3, .builder-content .elementor h4 { margin-bottom: 0; }

/* Footer widget row */
.site-footer__extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; padding-block: 0 40px; }
.site-footer__extra .footer-widget { color: #b5d5c3; }
.site-footer__extra a { color: #dcefe4; }
