/* ============================================================
   app.css — interaction/layout support for the Astro rebuild.
   Loads AFTER flatsome.css + site.css, so it wins the cascade.
   Provides behavior the original theme JS used to drive
   (mobile drawer, sticky header, gallery slider) plus the map.
   ============================================================ */

/* ---- Reveal background layers (theme JS normally fades these in) ---- */
.section-bg,
.bg.section-bg,
.section-bg.bg-loaded,
.message-box-bg-image,
.box-image .bg { opacity: 1 !important; }

/* ---- Sticky header (replaces flatsome.js scroll behavior) ---- */
#header .header-main { transition: background-color .25s ease, height .25s ease, box-shadow .25s ease; }
#header.stuck .header-main {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  background-color: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
#header.stuck .header-bg-color { opacity: 1 !important; }
/* when scrolled: switch nav links + logo to the "solid header" treatment */
#header.stuck .header-nav-main.nav > li > a { color: #000 !important; }
#header.stuck .header-logo { display: none !important; }
#header.stuck .header-logo-dark { display: inline-block !important; }
body.home #header:not(.stuck) .header-logo-dark { display: none !important; }

/* ---- Inner pages: solid white header (no hero behind it) ---- */
body:not(.home) #header { position: relative; }
body:not(.home) #header .header-main { background-color: #fff !important; }
body:not(.home) #header .header-bg-color { opacity: 1 !important; }
body:not(.home) #header .header-nav-main.nav > li > a { color: #000 !important; }
body:not(.home) #header .header-nav-main.nav > li > a:hover,
body:not(.home) #header .header-nav-main.nav > li.active > a { color: var(--fs-color-secondary, #f47321) !important; }
body:not(.home) #header .header-logo { display: none !important; }
body:not(.home) #header .header-logo-dark { display: inline-block !important; }
body:not(.home) #header .mobile-nav i,
body:not(.home) #header [data-open="#main-menu"] i { color: #000 !important; }

/* ---- Mobile off-canvas menu (replaces magnific popup) ---- */
#main-menu.mobile-sidebar {
  display: block !important;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 320px; max-width: 84vw;
  background: #fff; z-index: 1000;
  transform: translateX(100%) !important;
  transition: transform .3s ease;
  overflow-y: auto; box-shadow: -4px 0 24px rgba(0,0,0,.25);
  padding: 24px 20px;
}
#main-menu.mobile-sidebar.is-open { transform: translateX(0) !important; }
.menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transition: opacity .3s ease; z-index: 999;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
#main-menu .nav-sidebar > li { list-style: none; }
#main-menu .nav-sidebar > li > a { display: block; padding: 10px 0; font-weight: 600; }
#main-menu .sub-menu { padding-left: 14px; }

/* ---- Commercial gallery slider (replaces flickity) ---- */
.row-slider {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 10px;
}
.row-slider::-webkit-scrollbar { display: none; }
.row-slider > .gallery-col {
  min-width: 100% !important;
  flex: 0 0 100% !important;
  scroll-snap-align: center;
  padding: 0 !important;
}
.slider-wrap { position: relative; }
.slider-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #000080; border: 0;
  font-size: 20px; cursor: pointer; z-index: 5; display: flex;
  align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.slider-nav-btn:hover { background: #fff; }
.slider-nav-btn.prev { left: 12px; }
.slider-nav-btn.next { right: 12px; }
.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; cursor: pointer; padding: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.slider-dots button.active { background: #fff; }

/* ---- Google map embed ---- */
#section_findus { padding-top: 30px; padding-bottom: 40px; }
.map-embed { margin-top: 18px; }
.map-embed iframe { display: block; }

/* ---- Back-to-top visibility ---- */
#top-link { opacity: 0; visibility: hidden; transition: opacity .3s ease; }
#top-link.show { opacity: 1; visibility: visible; }

/* ---- Homepage only: nav legibility over the transparent hero ---- */
body.home #header:not(.stuck) .header-nav-main.nav > li > a { color: #fff !important; }
body.home #header:not(.stuck) .mobile-nav a,
body.home #header:not(.stuck) .mobile-nav i,
body.home #header:not(.stuck) [data-open="#main-menu"] i { color: #fff !important; }
body.home #header:not(.stuck) .header-nav-main.nav > li > a:hover,
body.home #header:not(.stuck) .header-nav-main.nav > li.active > a { color: var(--fs-color-secondary, #f47321) !important; }

/* ---- Circular van image (from the missing child stylesheet) ---- */
.image-circle-border img { border-radius: 50%; }

/* ---- Small safety: keep body visible (no theme JS loader) ---- */
html.js body { opacity: 1 !important; }

/* ============================================================
   Added for the multi-page rebuild (SEO / lead-gen upgrade)
   ============================================================ */
:root { --r1-navy: #000080; --r1-orange: #f47321; --r1-blue: #0592d9; --r1-alert: #ed1f17; }

/* ---- Cookie consent bar ---- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: center;
  padding: 12px 18px; background: #0a0a2a; color: #fff;
  font-size: 13.5px; line-height: 1.4; box-shadow: 0 -2px 14px rgba(0,0,0,.25);
}
.cookie-bar__text { margin: 0; max-width: 780px; }
.cookie-bar__text a { color: #4db8e8; text-decoration: underline; }
.cookie-bar__actions { display: flex; gap: 10px; }
.cookie-btn { border: 0; border-radius: 99px; padding: 8px 20px; font-weight: 600; cursor: pointer; font-size: 13px; }
.cookie-btn--accept { background: var(--r1-orange); color: #fff; }
.cookie-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.cookie-btn--accept:hover { filter: brightness(1.05); }
.cookie-btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ---- Inner-page hero banner ---- */
.page-hero {
  background: linear-gradient(135deg, #000080 0%, #001a66 55%, #0592d9 140%);
  color: #fff; padding: 54px 20px 46px; text-align: center;
}
.page-hero h1 { color: #fff; margin: 0 0 8px; font-size: 2.1rem; line-height: 1.15; }
.page-hero p { color: rgba(255,255,255,.9); margin: 0 auto; max-width: 720px; font-size: 1.05rem; }
.breadcrumbs { font-size: .8rem; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.breadcrumbs a { color: rgba(255,255,255,.9); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--r1-orange); }

/* ---- Generic content container / prose ---- */
.content { max-width: 900px; margin: 0 auto; padding: 46px 20px; }
.content--wide { max-width: 1140px; }
.prose { color: #222; font-size: 1rem; line-height: 1.7; }
.prose h2 { color: var(--r1-navy); margin: 1.6em 0 .5em; font-size: 1.55rem; }
.prose h3 { color: var(--r1-navy); margin: 1.3em 0 .4em; font-size: 1.2rem; }
.prose p { margin: 0 0 1.1em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--r1-navy); text-decoration: underline; }
.prose a:hover { color: var(--r1-blue); }
.prose strong { color: #111; }
.muted { color: #667; font-size: .85rem; }

/* ---- Feature bullet list (checkmarks, semantic) ---- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding: 6px 0 6px 30px; border-bottom: 1px solid #eee; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--r1-blue); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}

/* ---- Two-column layout for service pages ---- */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; }
.split img { border-radius: 12px; width: 100%; height: auto; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

/* ---- Service / card grid ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid #e8e8ef; border-radius: 14px; padding: 22px;
  box-shadow: 0 4px 18px rgba(0,0,0,.05); display: flex; flex-direction: column;
}
.card img { width: 56px; height: 56px; }
.card h3 { margin: 12px 0 6px; color: var(--r1-navy); font-size: 1.15rem; }
.card p { margin: 0 0 14px; color: #444; font-size: .93rem; line-height: 1.55; flex: 1; }
.card .card-link { color: var(--r1-orange); font-weight: 600; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }

/* ---- Services chip list (full GMB list) ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { background: #f2f4fb; color: #22346b; border: 1px solid #e2e6f5; border-radius: 99px; padding: 6px 14px; font-size: .85rem; }

/* ---- Reviews grid ---- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; text-align: left; }
.review-card { background: #fff; border: 1px solid #e8e8ef; border-radius: 14px; padding: 20px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.review-stars { color: #fbbc05; font-size: 1rem; letter-spacing: 1px; }
.review-card blockquote { margin: 8px 0 12px; font-size: .93rem; line-height: 1.6; color: #333; }
.review-card cite { font-style: normal; font-weight: 600; color: var(--r1-navy); font-size: .9rem; }
.rating-summary { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 22px; }
.rating-summary .score { font-size: 2.4rem; font-weight: 800; color: var(--r1-navy); line-height: 1; }
.rating-summary .stars { color: #fbbc05; font-size: 1.2rem; }
.rating-summary .count { color: #667; font-size: .9rem; }

/* ---- CTA band ---- */
.cta-band { background: var(--r1-navy); color: #fff; text-align: center; padding: 40px 20px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0 0 18px; }
.cta-phone {
  display: inline-flex; align-items: center; gap: 10px; background: var(--r1-alert); color: #fff;
  padding: 12px 34px; border-radius: 99px; font-weight: 700; font-size: 1.15rem; text-decoration: none;
}
.cta-phone:hover { filter: brightness(1.06); color: #fff; }

/* ---- Contact form ---- */
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.lead-form { background: #fff; border: 1px solid #e6e6ef; border-radius: 16px; padding: 26px; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.lead-form .field { margin-bottom: 14px; }
.lead-form label { display: block; font-weight: 600; font-size: .85rem; color: #22346b; margin-bottom: 5px; }
.lead-form label .req { color: var(--r1-alert); }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #cfd4e6; border-radius: 9px; font: inherit; font-size: .95rem; background: #fbfbfe;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--r1-blue); border-color: var(--r1-blue); }
.lead-form textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-form .submit-btn { width: 100%; background: var(--r1-alert); color: #fff; border: 0; border-radius: 99px; padding: 14px; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.lead-form .submit-btn:hover { filter: brightness(1.06); }
.lead-form .submit-btn:disabled { opacity: .7; cursor: default; }
.form-status { margin-top: 12px; font-size: .9rem; }
.form-status--error { color: var(--r1-alert); }
.form-consent { font-size: .78rem; color: #667; margin-top: 10px; }

/* ---- Contact info sidebar ---- */
.info-card { background: #f7f8fc; border: 1px solid #e6e8f3; border-radius: 16px; padding: 24px; }
.info-card h3 { color: var(--r1-navy); margin-top: 0; }
.info-card ul { list-style: none; padding: 0; margin: 0 0 16px; }
.info-card li { padding: 7px 0; border-bottom: 1px solid #e8eaf2; font-size: .93rem; }
.info-card a { color: var(--r1-navy); text-decoration: none; font-weight: 600; }
.info-card a:hover { color: var(--r1-blue); }
.info-card iframe { width: 100%; height: 240px; border: 0; border-radius: 12px; margin-top: 10px; }

/* ---- Homepage reviews section (replaces empty widget) ---- */
#reviews-home .reviews-grid { max-width: 1180px; margin: 0 auto; }

