/* =========================================================================
   Westec Security Systems – public site styles
   Recreated from observed computed styles/screenshots of westecsecuritysystems.com
   Colours/fonts come from CSS variables injected by the admin Settings.
   ========================================================================= */
:root {
  --c-navy: #04145e; --c-blue: #0f1394; --c-indigo: #1d0369; --c-yellow: #eceb1f; --c-orange: #db6b21;
  --c-text: #111; --c-deep: #040547; --c-page: #fff; --c-pill: #dde4f0; --c-grey: #eeeef4;
  --f-head: 'Abel', Arial, sans-serif; --f-body: Arial, Helvetica, sans-serif;
  --container: 1180px; --gutter: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.7; color: var(--c-text); background: var(--c-page); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
button { font: inherit; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.container-fluid { padding: 0 var(--gutter); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { left: -9999px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 2px; }
.sec { position: relative; }
.align-left { text-align: left; } .align-center { text-align: center; } .align-right { text-align: right; }
.center-row { text-align: center; }

/* ---------------- Header ---------------- */
.site-header { position: relative; z-index: 50; color: #fff; background: var(--c-navy); }
.has-header-overlay .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.site-header.is-sticky.is-scrolled { position: fixed; background: rgba(4, 20, 94, .96); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.site-header.is-sticky.is-scrolled .topbar { display: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 84px; border-bottom: 3px solid #fff; font-size: 15px; }
.topbar a { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.topbar-contact { display: flex; gap: 38px; }
.topbar-social { display: flex; gap: 18px; padding-right: 8px; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 26px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-logo img { height: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 6px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 4px 11px; font-family: var(--f-head); font-weight: 700; font-size: 21px; letter-spacing: .3px; text-transform: uppercase; color: #fff; transition: color .2s; }
.main-nav > ul > li > a:hover { color: var(--c-yellow); }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.main-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { display: block; padding: 8px 18px; color: var(--c-blue); font-size: 15px; }
.main-nav .sub-menu a:hover { background: var(--c-grey); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }

/* Mobile menu: full-screen dark overlay (original) */
.mobile-menu { position: fixed; inset: 0 auto 0 0; width: 0; height: 100%; z-index: 200; background: rgba(0,0,0,.9); overflow-x: hidden; transition: width .5s; }
.mobile-menu.is-open { width: 100%; }
.mobile-menu-close { position: absolute; top: 20px; right: 45px; font-size: 60px; line-height: 1; color: #818181; background: none; border: 0; cursor: pointer; }
.mobile-menu-close:hover { color: #f1f1f1; }
.mobile-menu-content { position: relative; top: 25%; width: 100%; text-align: center; margin-top: 30px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; padding: 8px; font-size: 36px; color: #818181; transition: color .3s; white-space: nowrap; }
.mobile-menu a:hover, .mobile-menu a:focus { color: #f1f1f1; }
.mobile-menu ul ul a { font-size: 24px; }
.mobile-menu--drawer { left: auto; right: 0; inset: 0 0 0 auto; background: var(--c-navy); }
.mobile-menu--drawer.is-open { width: min(340px, 85vw); }
.mobile-menu--drawer .mobile-menu-content { top: 90px; text-align: left; padding: 0 28px; }
.mobile-menu--drawer a { font-size: 20px; color: #fff; }
body.menu-open { overflow: hidden; }

/* Flash messages */
.flash-stack { position: fixed; top: 16px; right: 16px; z-index: 300; display: grid; gap: 8px; max-width: 360px; }
.flash { padding: 12px 16px; border-radius: 6px; color: #fff; background: #1d6b35; box-shadow: 0 6px 18px rgba(0,0,0,.2); font-size: 14px; }
.flash--error { background: #b42318; }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; transition: transform .15s, filter .2s, background .2s; }
.btn:hover { filter: brightness(1.06); }
.btn-yellow { background: var(--c-yellow); color: #111; font-family: var(--f-head); font-size: 20px; padding: 11px 18px; border-radius: 6px; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.btn-blue-sm { background: #0b3a9b; color: #fff; font-size: 14px; padding: 6px 22px; border-radius: 16px; }
.btn-orange { background: var(--c-orange); color: #fff; font-size: 15px; padding: 8px 20px; border-radius: 16px; }
.btn-pill { background: var(--c-pill); color: #1a1a50; font-size: 13px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; padding: 16px 48px; border-radius: 30px; }
.btn-pill-wide { min-width: min(640px, 100%); }
.btn-dark-pill { background: #000; color: #fff; font-size: 14px; padding: 5px 20px; border-radius: 16px; }
.btn-ghost-block { width: 100%; justify-content: flex-start; padding: 6px 26px; background: #efeff6; color: #111; font-size: 14px; }
.learn-more { display: inline-flex; align-items: center; gap: 8px; color: #4b4bad; font-size: 14px; }
.learn-more:hover { color: var(--c-blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.align-center { justify-content: center; } .btn-row.align-right { justify-content: flex-end; }

/* ---------------- Hero slider ---------------- */
.hero-slider { position: relative; height: var(--h-desktop); overflow: hidden; background: var(--c-navy); color: #fff; }
.hero-track, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slider[data-transition="slide"] .hero-slide { opacity: 1; transform: translateX(100%); transition: transform .8s ease; }
.hero-slider[data-transition="slide"] .hero-slide.is-active { transform: none; }
.hero-slider[data-transition="slide"] .hero-slide.is-prev { transform: translateX(-100%); visibility: visible; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; }
.hero-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 336px; padding-bottom: 120px; }
.hero-copy { max-width: 560px; }
.hero-slide.is-active .hero-copy { animation: heroIn 1s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-heading { font-family: var(--f-head); font-size: 51px; font-weight: 600; line-height: 1.02; text-transform: uppercase; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.hero-text { font-size: 16px; line-height: 1.75; margin-bottom: 42px; }
.hero-art { flex: 0 1 600px; }
.hero-art img { width: 100%; }
.align-center .hero-inner { justify-content: center; text-align: center; }
.align-right .hero-inner { flex-direction: row-reverse; text-align: right; }
.hero-arrow { position: absolute; top: 50%; z-index: 5; transform: translateY(-50%); background: none; border: 0; padding: 10px; cursor: pointer; opacity: .85; }
.hero-arrow:hover { opacity: 1; }
.hero-prev { left: 4px; } .hero-next { right: 4px; }
.hero-bullets { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-bullets button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-bullets button.is-active { background: #fff; }

/* ---------------- Page banner ---------------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--c-navy); }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; }
.page-hero-overlay { position: absolute; inset: 0; }
.page-hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 110px; }
.page-hero-title { font-family: var(--f-body); font-weight: 700; font-size: 46px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.page-hero-subtitle { font-size: 18px; margin: 8px 0 0; }
.page-hero-band { height: 64px; background: var(--c-deep); }
.post-hero { overflow: hidden; }

/* ---------------- Feature boxes ---------------- */
.feature-band { position: relative; background: var(--band); padding-bottom: 0; }
.feature-band::before { content: ''; position: absolute; inset: 0; background-image: var(--band-img, none); background-size: 220px; opacity: .25; }
.feature-band .container { position: relative; }
.feature-band.is-overlap { margin-top: -64px; background: linear-gradient(to bottom, transparent 64px, var(--band) 64px); }
.feature-band.is-overlap::before { top: 64px; }
.feature-boxes { max-width: 1110px; display: grid; grid-template-columns: repeat(var(--n), 1fr); background: #fff; box-shadow: 0 -2px 24px rgba(0,0,0,.08); position: relative; z-index: 3; }
.feature-boxes::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(172,172,199,.85)); pointer-events: none; }
.feature-box { position: relative; z-index: 1; text-align: center; padding: 22px 26px 26px; border-right: 1px solid #e6e6ee; display: flex; flex-direction: column; align-items: center; }
.feature-box:last-child { border-right: 0; }
.feature-icon { width: auto; height: 58px; margin-bottom: 12px; }
.feature-title { font-family: var(--f-head); font-weight: 400; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; color: #111; line-height: 1.4; margin-bottom: 10px; max-width: 230px; }
.feature-text { font-size: 15px; line-height: 1.75; color: #222; max-width: 250px; margin-bottom: 18px; }
.feature-box .btn { margin-top: auto; }

/* ---------------- Clients ---------------- */
.sec-clients-carousel { padding: 72px 0 0; }
.clients-heading { text-align: center; font-family: var(--f-head); font-size: 21px; color: var(--c-blue); margin-bottom: 20px; }
.logo-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.logo-track { display: flex; gap: 10px; width: max-content; animation: marquee var(--speed) linear infinite; padding: 6px 0 10px; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item { flex: 0 0 auto; width: 185px; height: 95px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #f0f0f4; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 8px 12px; }
.logo-item img { max-height: 78px; width: auto; object-fit: contain; }
.soft-divider { border: 0; border-top: 1px solid #e8e8ee; margin: 50px 0 0; }

/* ---------------- Headings ---------------- */
.spaced-heading, .sec-heading--spaced h2 { font-family: var(--f-head); font-weight: 400; font-size: 26px; letter-spacing: 4px; text-transform: uppercase; color: var(--c-blue); text-align: center; margin: 0 0 60px; }
.sec-heading--bold h2 { font-size: 40px; font-weight: 700; color: var(--c-blue); }
.sec-heading--eyebrow h2 { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--c-blue); }
.sec-heading p { color: var(--c-indigo); margin-top: 12px; }
.sec-section-heading { padding: 60px 0 0; }
.sec-section-heading .spaced-heading, .sec-section-heading h2 { margin-bottom: 30px; }
.blue-rule { border: 0; border-top: 2px solid var(--c-blue); margin: 0 0 30px; }
.blue-rule.thick { border-top-width: 4px; }

/* ---------------- Service cards ---------------- */
.sec-service-cards { padding: 64px 0 70px; }
.service-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 20px; }
.service-grid--boxed .service-card { border: 1px solid #8f8f99; padding: 18px 20px 22px; background: #fff; display: flex; flex-direction: column; min-height: 100%; }
.service-grid--boxed .service-card.is-highlight { background: #f2f2f2; border-color: #f2f2f2; }
.service-grid--boxed .service-icon { height: 62px; width: auto; max-width: 90px; object-fit: contain; align-self: flex-start; margin-bottom: 18px; }
.service-grid--boxed .service-title { font-size: 26px; font-weight: 700; color: var(--c-blue); line-height: 1.12; margin-bottom: 44px; }
.service-grid--boxed .service-text { font-size: 15px; line-height: 1.6; color: var(--c-indigo); }
.service-grid--boxed .learn-more { margin-top: auto; }
.service-grid--ruled { row-gap: 56px; column-gap: 40px; }
.service-grid--ruled .service-icon { height: 72px; width: auto; max-width: 90px; object-fit: contain; margin-bottom: 24px; }
.service-rule { border: 0; border-top: 4px solid var(--c-blue); margin: 0 0 22px; }
.service-grid--ruled .service-title { font-size: 24px; font-weight: 700; color: var(--c-blue); line-height: 1.15; margin-bottom: 14px; }
.service-grid--ruled .service-text { font-size: 16px; line-height: 1.7; color: var(--c-text); }
.service-title a:hover { text-decoration: underline; }
.service-tiles { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 20px; margin-top: 20px; }
.service-tile { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 72px; padding: 10px; background: var(--c-blue); color: #fff; font-weight: 700; font-size: 14px; transition: background .2s; }
.service-tile:hover { background: var(--c-navy); }
.sec-service-cards .center-row { margin-top: 82px; }

/* ---------------- CTA ---------------- */
.cta-band { background: var(--c-grey); padding: 86px 0; }
.cta-band.has-image { background-size: cover; background-position: center; padding: 50px 0; }
.cta-box { color: #fff; text-align: center; padding: 72px 40px 52px; }
.cta-heading { font-size: 40px; font-weight: 700; line-height: 1.25; max-width: 1080px; margin: 0 auto 16px; white-space: pre-line; }
.cta-text { font-size: 18px; margin-bottom: 18px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cta-plain { padding: 40px var(--gutter) 30px; border-top: 1px solid #eee; }
.cta-plain-heading { font-size: 40px; font-weight: 700; color: #1a0b6e; line-height: 1.45; margin-bottom: 18px; white-space: pre-line; }
.cta-plain-text { color: var(--c-blue); font-size: 18px; margin-bottom: 26px; }
.cta-plain .cta-buttons { justify-content: flex-start; margin-bottom: 60px; }
.cta-plain .blue-rule { margin-bottom: 64px; }

/* ---------------- Latest posts ---------------- */
.latest-posts--dark { background: var(--c-blue); color: #fff; padding: 96px 0 110px; }
.band-heading { font-family: var(--f-head); font-weight: 400; font-size: 28px; text-transform: uppercase; margin-bottom: 52px; }
.latest-posts--light { padding: 60px 0 10px; }
.post-row { display: flex; flex-wrap: wrap; gap: 38px; }
.post-card { display: flex; flex-direction: column; width: 265px; }
.post-card-img { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 265 / 150; background: rgba(255,255,255,.08); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-title { display: block; margin-top: 28px; font-size: 19px; line-height: 1.32; text-transform: capitalize; letter-spacing: -.3px; }
.post-card--dark .post-card-title { color: #fff; }
.post-card--light { background: #fbfbfe; border-radius: 6px; padding-bottom: 12px; }
.post-card--light .post-card-title { color: var(--c-blue); padding: 0 2px; margin-top: 22px; font-size: 17px; }
.post-card-excerpt { display: block; font-size: 14px; color: #444; margin-top: 8px; line-height: 1.6; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 32px; }
.post-grid .post-card { width: auto; }
.archive { padding: 60px 0 80px; }
.archive-empty { color: #666; }
.search-form { display: flex; gap: 8px; max-width: 520px; margin-bottom: 40px; }
.search-form input { flex: 1; padding: 10px 14px; border: 1px solid #c8c8d4; border-radius: 4px; font-size: 15px; }
.search-form button { background: var(--c-blue); color: #fff; border: 0; padding: 0 22px; border-radius: 4px; cursor: pointer; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid #d4d4e2; border-radius: 4px; font-size: 14px; color: var(--c-blue); }
.pagination span[aria-current] { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }

/* ---------------- About: image + article list ---------------- */
.sec-image-post-list { padding: 120px 0 60px; }
.about-split { display: grid; grid-template-columns: 335px 1fr; gap: 90px; align-items: start; }
.about-image { width: 100%; margin-bottom: 14px; }
.about-caption-heading { font-weight: 700; font-size: 16px; line-height: 1.3; color: #0c0c45; margin-bottom: 14px; }
.about-caption-text { font-weight: 700; font-size: 15px; color: #0c0c45; margin-bottom: 16px; }
.about-item { padding: 6px 0 20px; }
.about-item-heading { font-size: 27px; font-weight: 700; color: #0c0c35; margin-bottom: 40px; }
.about-item-lead { font-size: 22px; font-weight: 700; color: #0c0c35; line-height: 1.35; margin-bottom: 22px; }
.about-item-title { font-size: 22px; font-weight: 700; color: var(--c-blue); margin-bottom: 14px; }
.about-item-text { font-family: var(--f-head); font-size: 19px; line-height: 1.75; color: #2e2e66; }
.more-link { color: inherit; }
.about-divider { border: 0; border-top: 2px solid #b8bcd0; margin: 40px 0 46px; }

/* ---------------- Video feature ---------------- */
.sec-video-feature { padding: 60px 0; }
.video-feature { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; align-items: center; }
.video-feature-copy { padding: 0 20px; }
.vf-label { font-size: 26px; font-weight: 700; color: var(--c-blue); margin-bottom: 26px; }
.vf-heading { font-size: 29px; font-weight: 700; color: var(--c-blue); line-height: 1.17; margin-bottom: 22px; white-space: pre-line; }
.vf-text { font-size: 16px; line-height: 1.6; color: var(--c-blue); margin-bottom: 26px; }
.video-feature .btn-pill { width: 100%; margin-bottom: 18px; }
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 662 / 476; border: 0; padding: 0; background-color: #000; background-size: cover; background-position: center; cursor: pointer; color: #fff; text-align: left; }
.video-play { position: absolute; left: 22px; bottom: 120px; transition: transform .2s; }
.video-thumb:hover .video-play { transform: scale(1.08); }
.video-caption { position: absolute; left: 22px; bottom: 60px; font-size: 26px; font-weight: 700; }

/* ---------------- Recent activities ---------------- */
.sec-recent-activities { padding: 100px 0 150px; }
.activities { display: grid; grid-template-columns: 335px 1fr; gap: 50px; align-items: start; }
.activities-heading { font-size: 58px; font-weight: 700; color: #1d0369; line-height: .95; letter-spacing: -2px; margin-bottom: 30px; white-space: pre-line; }
.activities-text { font-size: 19px; line-height: 1.45; color: var(--c-blue); margin-bottom: 22px; }
.activities-posts { display: flex; flex-wrap: wrap; gap: 30px; }
.activity-card { width: 175px; }
.activity-card img { width: 100%; aspect-ratio: 175 / 100; object-fit: cover; margin-bottom: 40px; }
.activity-title { display: block; font-size: 23px; font-weight: 700; color: var(--c-indigo); line-height: 1.22; text-transform: capitalize; }
.activity-card:hover .activity-title { color: var(--c-blue); }

/* ---------------- Contact ---------------- */
.sec-contact-block { padding: 70px 0 30px; }
.sec-contact-block .spaced-heading { margin-bottom: 70px; }
.contact-grid { display: grid; grid-template-columns: 420px 1fr; gap: 30px; padding: 40px 0 30px; }
.contact-address { padding-left: 14px; color: var(--c-blue); font-size: 15px; line-height: 1.55; }
.contact-address h3 { font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.contact-address p { margin: 0 0 6px; }
.map-embed { margin-top: 24px; border-top: 1px solid #eee; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-image { margin-top: 24px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.map-image img { width: 100%; height: 510px; object-fit: cover; object-position: 50% 45%; }

/* Forms */
.site-form { font-size: 14px; }
.form-field { position: relative; margin-bottom: 22px; }
.form-field label { display: block; font-size: 12px; font-weight: 700; color: var(--c-blue); margin-bottom: 6px; }
.form-field .req { color: #e53b58; font-size: 26px; vertical-align: -6px; margin-right: 4px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 10px; font: inherit; font-size: 14px; color: #222; border: 1px solid #777; border-radius: 0; background: #fff; }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 2px rgba(15,19,148,.15); }
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error select { border-color: #e53b58; }
.field-error { display: block; color: #e53b58; font-size: 12px; margin-top: 4px; min-height: 0; }
.char-counter { position: absolute; right: -76px; bottom: 0; font-size: 34px; color: var(--c-blue); line-height: 1; }
.form-submit { display: block; margin: 30px auto 0; background: none; border: 0; text-transform: uppercase; font-size: 13px; letter-spacing: .5px; cursor: pointer; padding: 10px 20px; color: #111; transition: background .2s, color .2s; }
.form-submit:hover { background: var(--c-blue); color: #fff; }
.form-submit[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 14px 0 0; font-size: 14px; text-align: center; }
.form-status.is-success { color: #1d6b35; } .form-status.is-error { color: #b42318; }

/* ---------------- Large intro banner (Office Locator) ---------------- */
.split-hero { position: relative; color: #fff; min-height: 680px; overflow: hidden; background: var(--c-deep); }
.split-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.split-hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(4,5,71,.35) 0%, rgba(4,5,71,.55) 60%, var(--c-deep) 100%); }
.split-hero-inner { position: relative; padding-top: 300px; padding-bottom: 90px; max-width: calc(var(--container) + 2 * var(--gutter)); }
.split-eyebrow { color: var(--accent); font-size: 21px; margin: 0 0 4px 34px; }
.split-heading { font-size: 69px; font-weight: 400; line-height: 1.05; max-width: 560px; margin-left: 34px; white-space: pre-line; }
.split-rule { border: 0; border-top: 3px solid var(--accent); width: 795px; max-width: 100%; margin: 28px 0 26px 34px; }
.split-sub { color: var(--accent); font-size: 25px; font-weight: 700; line-height: 1.05; max-width: 280px; margin-left: 34px; white-space: pre-line; }
.split-bullets { columns: 2; column-gap: 40px; max-width: 650px; margin: 14px 0 0 34px; padding-left: 0; list-style: none; font-size: 15px; font-weight: 700; }
.split-bullets li { padding-left: 30px; position: relative; line-height: 1.75; }
.split-bullets li::before { content: '•'; position: absolute; left: 0; }

/* ---------------- Timeline (navy) ---------------- */
.sec-timeline-list { color: #fff; padding: 50px 0 40px; }
.timeline-row { display: grid; grid-template-columns: 450px 70px 1fr; padding: 30px 0; }
.timeline-label { max-width: 300px; }
.timeline-label { color: var(--c-yellow); font-size: 25px; font-weight: 700; line-height: 1.4; padding-top: 6px; }
.timeline-marker { position: relative; display: flex; justify-content: center; }
.timeline-marker img { width: 50px; height: auto; align-self: flex-start; }
.timeline-body { border-left: 3px solid var(--c-yellow); padding-left: 38px; margin-left: -10px; }
.timeline-body h3 { font-size: 27px; font-weight: 700; margin-bottom: 22px; }
.timeline-body p { font-size: 17px; line-height: 1.55; }
.timeline-link { color: var(--c-yellow); font-weight: 700; font-size: 17px; }
.timeline-banner { position: relative; margin: 40px 0 30px; }
.timeline-banner-icon { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); width: 70px; z-index: 1; }
.timeline-banner-img { height: 95px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.timeline-banner-img span { font-size: 28px; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,.6); }

/* ---------------- Generic ---------------- */
.sec-rich-text, .sec-columns, .sec-image, .sec-gallery, .sec-buttons, .sec-form, .sec-map { padding: 50px 0; }
.rich { font-size: 16px; line-height: 1.7; }
.rich h2 { font-size: 30px; color: var(--c-blue); margin: 1em 0 .5em; }
.rich h3 { font-size: 22px; color: var(--c-blue); margin: 1em 0 .5em; }
.rich a { color: var(--c-blue); text-decoration: underline; }
.rich img { height: auto; }
.rich ul, .rich ol { padding-left: 1.4em; }
.rich table { border-collapse: collapse; width: 100%; }
.rich td, .rich th { border: 1px solid #ddd; padding: 8px; }
.text-columns { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 40px; }
.single-image { margin: 0 auto; display: inline-block; }
.align-left .single-image { margin-left: 0; }
.single-image figcaption, .gallery-item figcaption { font-size: 14px; color: #555; margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 16px; }
.gallery-item { margin: 0; }
.gallery-open { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.gallery-open img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-hint { padding: 30px 20px; background: #fff7d6; color: #6a5300; }

/* ---------------- Single post ---------------- */

.post-single { background: #efefef; padding: 64px 0 120px; }
.post-single-title { font-size: 38px; font-weight: 400; color: #111; margin-bottom: 26px; letter-spacing: -.3px; text-transform: capitalize; }
.post-meta { color: #666; font-size: 14px; }
.post-content { font-size: 16px; line-height: 1.8; }
.post-content img { max-width: 100%; }
.post-content .wp-block-columns, .post-content .wp-block-media-text { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; align-items: center; margin-bottom: 0; }
.post-content .wp-block-media-text__content { padding: 0 8%; }
.post-content figure { margin: 0 0 1em; }
.post-content .wp-block-image img { height: auto; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--c-navy); color: #fff; margin-top: 44px; padding: 56px 0 60px; }
.has-footer-flush .site-footer { margin-top: 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 0; }
.footer-widget { flex: 0 0 var(--w); padding: 0 24px 20px 0; }
.footer-title { font-size: 21px; font-weight: 700; margin-bottom: 30px; }
.footer-text { color: #8e94c4; font-size: 15px; line-height: 1.75; }
.footer-text p { margin: 0 0 1em; }
.footer-social { display: flex; gap: 18px; margin-top: 14px; color: #8e9cf7; }
.footer-social svg { width: 20px; height: 20px; }
.footer-social a:hover { color: #fff; }
.footer-menus { display: flex; gap: 56px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #d5dcff; font-size: 15.5px; line-height: 1.65; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-form input[type=email] { flex: 1 1 180px; padding: 9px 12px; border: 1px solid #5c66b8; background: rgba(255,255,255,.06); color: #fff; border-radius: 3px; font-size: 14px; }
.newsletter-form input::placeholder { color: #aab0dd; }
.newsletter-form button { background: var(--c-yellow); color: #111; border: 0; padding: 9px 16px; border-radius: 3px; font-weight: 700; cursor: pointer; }
.newsletter-form .form-status { flex-basis: 100%; text-align: left; margin: 4px 0 0; color: #d5dcff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: 13px; color: #8e94c4; }

/* WhatsApp floating button */
.whatsapp-float { position: fixed; right: 32px; bottom: 34px; z-index: 150; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.07); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox[hidden] { display: none; }
.lightbox-body { width: min(1100px, 100%); }
.lightbox-body iframe, .lightbox-body video { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; display: block; }
.lightbox-body img { max-height: 85vh; margin: 0 auto; width: auto; }
.lightbox-close { position: absolute; top: 16px; right: 20px; color: #fff; background: none; border: 0; cursor: pointer; }

/* Error / maintenance */
.error-page { padding: 120px 0; text-align: center; }
.error-page h1 { font-size: 90px; color: var(--c-blue); font-family: var(--f-head); }
.has-header-overlay .error-page { padding-top: 260px; }
.maintenance { background: var(--c-navy); color: #fff; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.maintenance-box img { margin: 0 auto 30px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .main-nav > ul > li > a { font-size: 16px; padding: 4px 7px; }
  .about-split, .activities { grid-template-columns: 280px 1fr; gap: 40px; }
  .timeline-row { grid-template-columns: 280px 60px 1fr; }
}
@media (max-width: 991px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar-contact { display: none; }
  .topbar { justify-content: flex-end; min-height: 52px; }
  .hero-slider { height: var(--h-mobile); }
  .hero-inner { padding-top: 180px; padding-bottom: 50px; flex-direction: column; justify-content: center; text-align: center; }
  .hero-art { display: none; }
  .hero-heading { font-size: 34px; }
  .feature-band.is-overlap { margin-top: 0; background: var(--band); padding: 30px 0; }
  .feature-boxes { grid-template-columns: 1fr; }
  .feature-box { border-right: 0; border-bottom: 1px solid #e6e6ee; }
  .service-grid, .service-tiles { grid-template-columns: repeat(2, 1fr); }
  .service-grid--ruled { column-gap: 24px; }
  .about-split, .activities, .contact-grid, .video-feature { grid-template-columns: 1fr; }
  .about-aside { max-width: 360px; }
  .char-counter { position: static; display: block; text-align: right; font-size: 20px; }
  .timeline-row { grid-template-columns: 1fr; gap: 10px; }
  .timeline-marker { justify-content: flex-start; }
  .timeline-body { margin-left: 0; }
  .split-heading { font-size: 48px; }
  .text-columns { grid-template-columns: 1fr; }
  .footer-widget { flex-basis: 50%; }
}
@media (max-width: 767px) {
  :root { --gutter: 18px; }
  .hide-mobile { display: none !important; }
  .header-main { padding: 14px 0 18px; }
  .site-logo img { width: 160px !important; }
  .hero-heading { font-size: 32px; }
  .hero-text { font-size: 15px; }
  .page-hero { height: 300px !important; }
  .page-hero-inner { padding-bottom: 50px; }
  .page-hero-title { font-size: 34px; }
  .clients-heading { font-size: 28px; line-height: 1.1; }
  .logo-item { width: 120px; height: 72px; }
  .spaced-heading, .sec-heading--spaced h2 { font-size: 24px; margin-bottom: 40px; }
  .service-grid--boxed .service-card { align-items: center; text-align: center; }
  .service-grid--boxed .service-title { font-size: 17px; margin-bottom: 20px; }
  .service-grid--boxed .service-text { display: none; }
  .service-grid--ruled { grid-template-columns: 1fr; }
  .cta-band { padding: 0; }
  .cta-band .container { padding: 0; }
  .cta-box { padding: 80px 30px; }
  .cta-heading, .cta-plain-heading { font-size: 26px; }
  .latest-posts--dark { padding: 70px 0; }
  .post-row { flex-direction: column; }
  .post-card { width: 100%; }
  .activities-heading { font-size: 44px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-widget { flex-basis: 100%; padding-right: 0; }
  .footer-title { margin-bottom: 20px; }
  .whatsapp-float { right: 18px; bottom: 18px; }
  .split-hero-inner { padding-top: 200px; }
  .split-heading { font-size: 38px; margin-left: 0; }
  .split-eyebrow, .split-rule, .split-sub, .split-bullets { margin-left: 0; }
  .split-bullets { columns: 1; }
  .mobile-menu a { font-size: 28px; }
}
@media (min-width: 768px) { .hide-desktop { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .logo-track { animation: none; }
}
