/* =========================================================================
   Asgard sites - shared stylesheet (identical for both sites)
   Source: common/assets/css/site.css - copied to dist/assets/css/ by build.py.
   Built on Bootstrap 5.3 (loaded from CDN). Brand colours live in :root.
   ========================================================================= */

:root {
  --brand: #2bb254;          /* primary green */
  --brand-dark: #1e823c;     /* primary hover */
  --accent: #1a1829;         /* headings, dark buttons, overlays */
  --accent-2: #212033;       /* body text */
  --base-100: #f8fafc;       /* page background */
  --base-200: #f1f5f9;       /* panels */
  --base-300: #e2e8f0;       /* borders */
  --dark-band: #212121;
  --pattern: url("../../images/shared/section-bg.jpg");   /* light background pattern used by .band-pattern */

  --bs-body-font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.75;
  --bs-body-color: var(--accent-2);
  --bs-body-bg: var(--base-100);
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 43, 178, 84;
  --bs-link-hover-color: var(--brand-dark);
  --bs-link-hover-color-rgb: 30, 130, 60;
  --bs-heading-color: var(--accent);
  --bs-border-color: var(--base-300);
}

/* ---------- Base ------------------------------------------------------- */
body { -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.container { --bs-gutter-x: 3rem; }
@media (min-width: 1200px) { .container { max-width: 1188px; } }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--bs-heading-color); }
h1, .h1 { font-size: 3rem; line-height: 1.11; }   /* .h1 / .h2: heading size on another heading level */
h2, .h2 { font-size: 2.25rem; line-height: 1.33; margin: 1.2rem 0 .75rem; }
h3 { font-size: 1.875rem; line-height: 1.4; margin: 1rem 0 .75rem; }
h4 { font-size: 1.5rem; line-height: 1.5; font-weight: 700; margin: 1rem 0 .75rem; }
h2:first-child, h3:first-child, h4:first-child { margin-top: 0; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.5rem; margin: 1rem 0; }
img { max-width: 100%; height: auto; }
figure { margin: 0 0 1rem; }
figcaption { font-size: .875rem; text-align: center; margin-top: .5rem; }
hr.separator { border: 0; border-top: 2px solid var(--base-300); opacity: 1; margin: 12px auto; }
@media (max-width: 767.98px) {
  h1, .h1 { font-size: 2.25rem; }
  h2, .h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

.text-brand { color: var(--brand) !important; }
.fs-medium { font-size: 1.25rem; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.text-soft { color: rgba(255, 255, 255, .75); }
.heading-narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.heading-wide { max-width: 740px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  --bs-btn-font-size: .875rem;
  --bs-btn-font-weight: 500;
  --bs-btn-line-height: 1;
  --bs-btn-padding-x: 16px;
  --bs-btn-padding-y: 12px;
  --bs-btn-border-radius: 2px;
  --bs-btn-border-width: 2px;
}
.btn-brand {
  --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
}
.btn-accent {
  --bs-btn-color: #fff; --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand);
}
.btn-pill { --bs-btn-border-radius: 999px; min-width: 200px; }
.btn-pill.btn-brand { --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1rem; }
.buttons + .buttons { margin-top: -0.25rem; }

/* ---------- Header ----------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1030; }
.topbar { background: var(--brand); font-size: .85rem; font-weight: 500; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 41px; }
.topbar a { color: rgba(255, 255, 255, .7); text-decoration: none; text-transform: capitalize; padding: 4px 8px; }
.topbar a:hover { color: #fff; }
.topbar a strong { color: #fff; font-weight: 500; }
.navbar-main { background: #fff; border-bottom: 1px solid var(--base-300); }
.navbar-main .container { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 1rem; }
.site-logo img { height: 47px; width: auto; display: block; }
.primary-nav { display: flex; align-items: center; gap: .25rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.primary-nav a {
  display: block; padding: 4px 8px; font-size: .85rem; font-weight: 500; text-transform: capitalize;
  color: var(--accent); text-decoration: none;
}
.primary-nav a:hover { color: var(--brand); }
.menu-toggle {
  display: inline-flex; align-items: center; gap: .5rem; border: 0; border-radius: 3px;
  background: var(--brand); color: #fff; font-size: .875rem; font-weight: 500; padding: 10px 14px; line-height: 1;
}
.menu-toggle:hover { background: var(--brand-dark); }
@media (max-width: 1199.98px) { .primary-nav { display: none; } }
@media (max-width: 575.98px) {
  .site-logo img { height: 38px; }
  .navbar-main .container { min-height: 72px; }
}

/* Off-canvas "All Services" menu */
.services-menu { --bs-offcanvas-width: 500px; --bs-offcanvas-bg: #fff; }
.services-menu .offcanvas-header { justify-content: flex-end; padding: 12px 16px; }
.services-menu .btn-close-x { background: none; border: 0; font-size: 1.5rem; color: var(--accent); line-height: 1; padding: 6px; }
.services-menu .offcanvas-body { padding: 0 24px 24px; }
.menu-tree, .menu-tree ul { list-style: none; margin: 0; padding: 0; }
.menu-tree a {
  display: block; padding: 12px; color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--base-200);
}
.menu-tree a:hover { color: var(--brand); }
.menu-tree > li > a, .menu-tree > li > span { font-weight: 600; }
.menu-tree span { display: block; padding: 12px; color: var(--accent); border-bottom: 1px solid var(--base-200); }
.menu-tree ul a { padding-left: 12px; }
.menu-socials { display: flex; gap: .5rem; margin-top: 1.5rem; }
.menu-socials a {
  display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--base-200); color: var(--accent); text-decoration: none;
}
.menu-socials a:hover { background: var(--brand); color: #fff; }

/* ---------- Page title ------------------------------------------------- */
.page-title { padding: 80px 0 48px; text-align: center; }
.page-title h1 { margin: 0; }
@media (min-width: 1200px) { .page-title .container { max-width: 1240px; } }
@media (max-width: 767.98px) { .page-title { padding: 48px 0 24px; } }

/* ---------- Sections & bands ------------------------------------------ */
/* .section = plain content on the page background (container width).
   .band    = full-width coloured / image strip. Pick ONE modifier:
              band-primary | band-dark | band-white | band-pattern | band-image
   Padding: band-pad-sm (24px) | default (68px) | band-pad-lg (88px)          */
.section { padding: 48px 0; }
.section + .section { padding-top: 0; }
.band {
  position: relative; padding: 68px 0;
  background-size: cover; background-repeat: no-repeat; background-position: var(--band-pos, 50% 50%);
  display: flex; flex-direction: column; justify-content: center; min-height: var(--band-min-h, 0);
}
.band > .container, .band > .container-fluid { position: relative; z-index: 1; }
.band-pad-sm { padding: 24px 0; }
.band-pad-lg { padding: 88px 0; }
.band-primary { background-color: var(--brand); color: #fff; --bs-heading-color: #fff; }
.band-dark { background-color: var(--dark-band); color: #fff; --bs-heading-color: #fff; }
.band-white { background-color: #fff; border-top: 1px solid var(--base-300); border-bottom: 1px solid var(--base-300); }
.band-pattern { background-image: var(--pattern); border-top: 1px solid var(--base-300); border-bottom: 1px solid var(--base-300); }
.band-image { background-color: #ccc; color: #fff; --bs-heading-color: #fff; } /* background-image is set inline on the element */
.band-fixed { background-attachment: fixed; }
@supports (-webkit-touch-callout: none) { .band-fixed { background-attachment: scroll; } }
@media (max-width: 991.98px) { .band-fixed { background-attachment: scroll; } }
.band-overlay::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--overlay-color, var(--accent)); opacity: var(--overlay-opacity, .7);
}
.band-primary a:not(.btn), .band-dark a:not(.btn), .band-image a:not(.btn) { color: #fff; }
.band-full-map { padding-left: 0; padding-right: 0; }

/* light boxes always use dark text, even when placed on a photo band */
.band-white, .band-pattern, .panel, .card-pad, .card-bordered, .faq-card, .review-card, .form-panel {
  color: var(--accent-2); --bs-heading-color: var(--accent);
}
.band-white a:not(.btn), .band-pattern a:not(.btn), .panel a:not(.btn), .card-pad a:not(.btn) { color: var(--brand); }
.panel { background: var(--base-200); padding: 24px; height: 100%; }
.card-bordered { border: 1px solid var(--base-300); background: #fff; height: 100%; display: flex; flex-direction: column; }
.card-bordered > figure { margin: 0; }
.card-bordered > figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-pad { background: #fff; padding: 24px; flex: 1; }
.card-pad .btn { width: 100%; }
.pull-up { position: relative; z-index: 5; margin-top: -128px; }
@media (max-width: 991.98px) { .pull-up { margin-top: 0; } }

.icon-lg { font-size: 60px; line-height: 1; margin-bottom: .5rem; }
.icon-sm { font-size: 20px; width: 20px; text-align: center; flex: none; }
.icon-circle {
  display: inline-flex; flex: none; width: 3.6rem; height: 3.6rem; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.2rem;
}
.icon-row { display: flex; gap: 24px; align-items: flex-start; }
.icon-row + .icon-row { margin-top: 24px; }
.icon-row h3 { text-transform: capitalize; margin: 0; }
.icon-row p { margin: 0; }
.info-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1rem; }
.info-item { display: flex; gap: 12px; align-items: center; }
.info-list p { margin: 0; }

.map-embed iframe { display: block; width: 100%; height: 600px; border: 0; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- Hero ------------------------------------------------------- */
.hero {
  position: relative; min-height: 600px; display: flex; align-items: center; color: #fff;
  background-color: #ccc; background-repeat: no-repeat; background-size: cover; background-position: var(--band-pos, 50% 50%);
  --bs-heading-color: #fff; text-align: center; padding: 24px 0 124px;
}
.hero::after { content: ""; position: absolute; inset: 0; background: #0c0c0c; opacity: .65; }
.hero > .container { position: relative; z-index: 1; max-width: 1140px; }
.hero .hero-eyebrow { color: rgba(255, 255, 255, .75); text-transform: uppercase; margin: 0; }
.hero h1 { font-size: 3rem; line-height: 1.5; text-transform: uppercase; margin: 12px auto 24px; }
.hero .hero-text { color: rgba(255, 255, 255, .75); max-width: 551px; margin: 0 auto 36px; }
@media (max-width: 767.98px) { .hero h1 { font-size: 2.5rem; } .hero { padding-bottom: 48px; } }

/* ---------- FAQ -------------------------------------------------------- */
.faq-heading .faq-icon { font-size: 60px; display: block; margin-bottom: .5rem; }
.faq-heading h2 { margin: 0; }
.faq-card { background: var(--base-200); padding: 24px; height: 100%; }
.faq-card h4 { margin-top: 0; }

/* ---------- Galleries / sliders --------------------------------------- */
.work-slider { max-width: 800px; margin: 0 auto; }
.work-slider .swiper-main img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; display: block; }
.work-slider .swiper-thumbs { margin-top: 5px; }
.work-slider .swiper-thumbs .swiper-slide { width: 140px; height: 80px; opacity: .6; cursor: pointer; }
.work-slider .swiper-thumbs .swiper-slide-thumb-active { opacity: 1; }
.work-slider .swiper-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swiper { --swiper-theme-color: #fff; --swiper-navigation-size: 28px; }

.reviews-slider { margin: 0 0 48px; --swiper-theme-color: var(--accent); }
.reviews-slider .swiper { padding: 4px 4px 40px; }
.review-card {
  background: #fff; border: 1px solid var(--base-300); border-radius: 4px; padding: 20px;
  height: 100%; text-align: left; font-size: .9rem; line-height: 1.6;
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.review-name { font-weight: 600; color: var(--accent); }
.review-source { font-size: .75rem; color: #6b7280; }
.review-stars { color: #f6bb06; margin-bottom: 8px; font-size: .85rem; }
.review-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review-more { background: none; border: 0; padding: 0; color: #6b7280; font-size: .8rem; text-decoration: underline; }
.review-empty { color: #6b7280; font-style: italic; }
.reviews-slider .swiper-slide { height: auto; }

/* ---------- Forms ------------------------------------------------------ */
.site-form .form-control, .site-form .form-select {
  border-radius: 0; border: 1px solid var(--base-300); background: #fff;
  font-size: .875rem; padding: 12px; color: var(--accent-2);
}
.site-form .form-control:focus, .site-form .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .15rem rgba(43, 178, 84, .2); }
.site-form .mb-field { margin-bottom: 12px; }
.site-form .btn-submit { width: 100%; padding: 14px 16px; }
.site-form .hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-form fieldset legend, .site-form .form-label { font-size: 1rem; font-weight: 500; color: var(--accent); }
.site-form .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-panel { background: var(--base-200); padding: 24px; }

/* ---------- Footer ----------------------------------------------------- */
.site-footer { background: #fff; padding: 24px 0; font-size: .875rem; color: var(--accent); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--accent-2); }
.footer-brand img { width: 48px; height: 48px; }

/* ---------- Contact popup --------------------------------------------- */
.contact-popup .modal-dialog { max-width: 650px; }
.contact-popup .modal-content { border: 0; border-radius: 0; padding: 20px; }
.contact-popup .popup-close {
  position: absolute; top: 4px; right: 10px; background: none; border: 0; font-size: 50px; line-height: 1;
  color: #666; text-shadow: 0 0 1px #000; z-index: 2; padding: 0 6px;
}
.contact-popup .popup-close:hover { color: #000; }
.contact-popup .popup-logo { display: block; margin: 0 auto; width: auto; }
.contact-popup .popup-lead { text-align: center; padding-top: 20px; font-weight: 700; font-style: italic; }
.contact-popup .popup-sub { text-align: center; padding: 20px 0; }
.contact-popup .popup-more { text-align: center; padding: 20px 0; font-size: .875em; }
.contact-popup .popup-more a { color: #339966; }
.contact-popup .popup-close-text { font-size: .875rem; }
.modal-backdrop.show { opacity: .5; }
body.popup-open .site-header, body.popup-open main, body.popup-open .site-footer { filter: blur(2px); }

/* ---------- Cookie notice --------------------------------------------- */
.cookie-notice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff; color: var(--accent-2);
  box-shadow: 0 0 24px rgba(44, 62, 80, .15); padding: 24px; font-size: .875rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice .btn { --bs-btn-font-size: .75rem; --bs-btn-padding-y: 10px; --bs-btn-padding-x: 15px; --bs-btn-border-width: 0; }
.cookie-notice .btn-decline { --bs-btn-bg: var(--base-200); --bs-btn-color: var(--accent); --bs-btn-hover-bg: var(--base-300); --bs-btn-hover-color: var(--accent); }

/* ---------- Back to top ----------------------------------------------- */
.back-to-top {
  position: fixed; right: 48px; bottom: 48px; z-index: 1020; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-2); color: #fff; border: 0; display: none; align-items: center; justify-content: center;
}
.back-to-top.is-visible { display: inline-flex; }
@media (max-width: 767.98px) { .back-to-top { right: 16px; bottom: 16px; } }

/* ---------- Blog ------------------------------------------------------- */
.post-card { background: #fff; box-shadow: 0 0 14px rgba(44, 62, 80, .12); padding: 24px; height: 100%; }
.post-card .post-cat { font-size: .75rem; color: var(--brand); text-decoration: none; }
.post-card h2 { font-size: 1.5rem; margin: .5rem 0; }
.post-card h2 a { color: var(--accent); text-decoration: none; }
.post-meta { font-size: .75rem; color: #6b7280; margin-bottom: .75rem; }
.post-meta a { color: inherit; text-decoration: none; }
.post-card hr { margin: 1rem -24px; border-color: var(--base-300); opacity: 1; }
.prose { max-width: 768px; margin: 0 auto; }
