/* ==========================================================================
   REMARKABLE ESTIMATING — REDESIGN LAYER
   Loaded last on every page. Restyles existing markup only: no content,
   link or structural changes. Brand colours and logo are preserved.
   ========================================================================== */

:root {
  --re-navy:        #0a2540;
  --re-navy-700:    #123255;
  --re-navy-900:    #061a2e;
  --re-orange:      #e8642a;
  --re-orange-600:  #cf5320;
  --re-orange-50:   rgba(232,100,42,.10);
  --re-ink:         #16233a;
  --re-body:        #4d5b70;
  --re-muted:       #7c889b;
  --re-line:        #e4e8ef;
  --re-bg:          #ffffff;
  --re-bg-soft:     #f6f8fb;
  --re-radius:      14px;
  --re-radius-sm:   10px;
  --re-shadow:      0 1px 2px rgba(10,37,64,.04), 0 8px 24px rgba(10,37,64,.06);
  --re-shadow-lg:   0 12px 40px rgba(10,37,64,.12);
  --re-section:     84px;
}

/* ---------- 1. BASE TYPOGRAPHY & RHYTHM ---------------------------------- */
body {
  font-family: 'Open Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--re-body);
  background: var(--re-bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-4, .display-5, .display-7 strong,
.mbr-section-title, .section-heading, .hero-h1 {
  font-family: 'Inter Tight', system-ui, sans-serif;
  color: var(--re-ink);
  letter-spacing: -.01em;
  line-height: 1.22;
}
h1, .hero-h1, .display-1 { font-weight: 800; }
h2, h3, .display-2, .display-5 { font-weight: 700; }
p, li, .mbr-text { color: var(--re-body); }
/* bold text inherits its context colour (nav, footer and dark cards keep white) */
strong, b { color: inherit; }
p > strong, li > strong, .mbr-text > strong, .intro-feature-text strong,
.why-point-body strong, .step-body strong { color: var(--re-ink); }
.navbar strong, .navbar b, [class*="footer"] strong, .item-wrapper strong,
.re-hero strong, .hero-h1 strong, .mbr-section-title strong, .display-1 strong,
.display-2 strong, .card-title strong, .card-text strong { color: inherit !important; }
a { color: var(--re-orange); }
a:hover { color: var(--re-orange-600); }
::selection { background: var(--re-orange); color: #fff; }

/* Section rhythm — consistent on every page type */
section[class*="cid-"] { padding-top: 56px; padding-bottom: 56px; }
section.menu[class*="cid-"] { padding: 0; }
.page-section { padding: var(--re-section) 0; }
.page-section.alt, .page-section:nth-of-type(even of .page-section) { background: var(--re-bg-soft); }
@media (max-width: 767px) {
  :root { --re-section: 56px; }
  section[class*="cid-"] { padding-top: 40px; padding-bottom: 40px; }
}

/* Fixed header never covers content */
html { scroll-padding-top: 110px; }
@media (max-width: 991px) { html { scroll-padding-top: 88px; } }

/* ---------- 2. HEADER / NAVIGATION -------------------------------------- */
section.menu .navbar,
nav.navbar {
  backdrop-filter: saturate(140%) blur(6px);
}
section.menu .container,
nav.navbar > .container {
  background: var(--re-navy) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(10,37,64,.18) !important;
  border: 1px solid rgba(255,255,255,.06);
}
.navbar-caption, .navbar-caption-wrap span {
  font-family: 'Inter Tight', sans-serif;
  font-size: .82rem !important;
  line-height: 1.25 !important;
  letter-spacing: .01em;
  color: rgba(255,255,255,.92) !important;
}
.navbar-nav .nav-link {
  font-family: 'Inter Tight', sans-serif !important;
  font-weight: 600 !important;
  font-size: .95rem !important;
  color: rgba(255,255,255,.86) !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  position: relative;
}
.navbar-nav .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.08) !important; }
/* Active page indicator */
.navbar-nav .nav-item [aria-current="page"],
.navbar-nav .nav-item.re-active > .nav-link {
  color: #fff !important;
  background: rgba(232,100,42,.18) !important;
}
.navbar-nav .nav-item [aria-current="page"]::after,
.navbar-nav .nav-item.re-active > .nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--re-orange);
}
.navbar .dropdown-menu {
  border-radius: 14px !important;
  box-shadow: var(--re-shadow-lg) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  padding: 10px !important;
}
.navbar .dropdown-item {
  color: rgba(255,255,255,.86) !important;
  font-size: .9rem !important;
  border-radius: 8px !important;
}
.navbar .dropdown-item:hover { background: rgba(232,100,42,.18) !important; color: #fff !important; }
.navbar-buttons .btn { box-shadow: 0 6px 18px rgba(232,100,42,.35); }
@media (max-width: 991px) {
  section.menu .container, nav.navbar > .container { border-radius: 14px !important; }
  .navbar-collapse { border-radius: 14px !important; box-shadow: var(--re-shadow-lg); }
}

/* ---------- 3. BUTTONS --------------------------------------------------- */
.btn, .re-btn-primary, .btn-submit, .core-link, .svc-link {
  font-family: 'Inter Tight', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn { border-radius: 10px !important; padding: .85rem 1.6rem !important; border-width: 1.5px !important; }
.mbr-section-btn .btn:not(.btn-form) { border-radius: 10px !important; }
.btn-primary, .btn-primary:active,
.btn-danger, .btn-danger:active,
.btn-orange, .re-btn-primary, .btn-submit {
  background-color: var(--re-orange) !important;
  border-color: var(--re-orange) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-danger:hover, .btn-orange:hover,
.re-btn-primary:hover, .btn-submit:hover, .btn-secondary:hover {
  background-color: var(--re-orange-600) !important;
  border-color: var(--re-orange-600) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(232,100,42,.28);
}
.btn-secondary, .btn-secondary:active {
  background: transparent !important;
  border-color: var(--re-navy) !important;
  color: var(--re-navy) !important;
}
.btn-white, .btn-outline-white {
  background: #fff !important; border-color: #fff !important; color: var(--re-navy) !important;
}
.btn-outline-white:hover { background: rgba(255,255,255,.9) !important; color: var(--re-navy) !important; }
.re-btn-ghost, .core-link, .svc-link { color: var(--re-orange) !important; font-weight: 700; }

/* ---------- 4. CARDS (Mobirise + custom) --------------------------------- */
.item-wrapper, .card-wrapper, .core-card, .service-card, .chip-card, .mini-card,
.service-detail-card, .re-why-card, .faq-item, .intro-card, .ind-card, .why-point {
  border-radius: var(--re-radius) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* Mobirise dark feature cards → refined navy with orange accent */
.item-wrapper {
  background: var(--re-navy) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: var(--re-shadow);
  padding: 2rem !important;
}
.item-wrapper:hover { transform: translateY(-3px); box-shadow: var(--re-shadow-lg); }
.item-wrapper .card-title, .item-wrapper .card-text,
.item-wrapper .mbr-section-subtitle { color: #fff !important; }
.item-wrapper .card-text { color: rgba(255,255,255,.76) !important; }
/* icon tiles: brand orange instead of lime */
.mbr-iconfont {
  background: var(--re-orange) !important;
  color: #fff !important;
  width: 60px !important;
  height: 60px !important;
  font-size: 1.7rem !important;
  border-radius: 14px !important;
}
.item-wrapper img { border-radius: 12px !important; }

/* Light cards */
.core-card, .service-card, .chip-card, .mini-card, .service-detail-card, .re-why-card, .intro-card, .ind-card {
  background: #fff;
  border: 1px solid var(--re-line) !important;
  box-shadow: var(--re-shadow);
}
.core-card:hover, .service-card:hover, .chip-card:hover, .mini-card:hover,
.re-why-card:hover, .ind-card:hover { transform: translateY(-3px); box-shadow: var(--re-shadow-lg); border-color: rgba(232,100,42,.35) !important; }

/* FIX: featured card had white text on a white background */
.core-card.featured { background: linear-gradient(180deg,#fff 0%, #fff7f3 100%) !important; border-color: rgba(232,100,42,.35) !important; }
.core-card.featured h3 { color: var(--re-ink) !important; }
.core-card.featured p  { color: var(--re-body) !important; }
.core-card.featured .core-icon { background: var(--re-orange-50) !important; }
.core-card.featured .core-link { color: var(--re-orange) !important; }

/* ---------- 5. LISTS ----------------------------------------------------- */
/* FIX: two bullet rules in mbr-additional.css are missing a semicolon,
   which made the bullet fall back to black. */
ul li::before { color: var(--re-orange) !important; font-weight: 700 !important; }
.list.mbr-fonts-style li, .mbr-text ul li { margin-bottom: .6rem; }
.service-detail-card li span { color: var(--re-orange) !important; }

/* ---------- 6. HERO / PAGE HEADERS -------------------------------------- */
.re-hero-overlay {
  background: linear-gradient(100deg, rgba(6,26,46,.94) 0%, rgba(10,37,64,.86) 45%, rgba(10,37,64,.55) 100%) !important;
}
.re-hero-eyebrow, .hero-eyebrow, .section-tag {
  letter-spacing: .16em !important;
  text-transform: uppercase;
  font-size: .72rem !important;
  font-weight: 700 !important;
}
.re-hero h1, .hero-h1 { letter-spacing: -.02em; }
.re-hero-lead, .page-hero-tagline { color: rgba(255,255,255,.82) !important; font-size: 1.02rem !important; }
.re-stat-num, .why-visual-stat-num, .stat-num { font-family: 'Inter Tight', sans-serif; letter-spacing: -.02em; }
.trust-strip { background: var(--re-orange) !important; }
.trust-strip-item { font-size: .86rem; }

/* Section headers */
.section-heading, .mbr-section-title { margin-bottom: .35rem; }
.section-sub, .mbr-section-subtitle { color: var(--re-muted) !important; }
.re-section-divider { background: linear-gradient(90deg, var(--re-orange), rgba(232,100,42,0)) !important; }

/* ---------- 7. FAQ / ACCORDIONS ----------------------------------------- */
.faq-item, .re-faq details {
  background: #fff;
  border: 1px solid var(--re-line) !important;
  border-radius: var(--re-radius-sm) !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item.open, .re-faq details[open] { border-color: rgba(232,100,42,.4) !important; box-shadow: var(--re-shadow); }
.faq-q, .re-faq summary {
  font-family: 'Inter Tight', sans-serif !important;
  font-weight: 600 !important;
  color: var(--re-ink) !important;
  padding: 16px 20px !important;
}
.re-faq summary::marker { color: var(--re-orange); }
.faq-item.open .faq-q { color: var(--re-orange) !important; }
.faq-arr { background: var(--re-bg-soft) !important; }
.faq-item.open .faq-arr { background: var(--re-orange) !important; color: #fff !important; }
.faq-body-inner, .re-faq-body { color: var(--re-body) !important; }

/* ---------- 8. FORMS ----------------------------------------------------- */
.form-control, .form-select, input[type="text"], input[type="email"], input[type="tel"],
select, textarea {
  border-radius: 10px !important;
  border: 1.5px solid var(--re-line) !important;
  padding: .8rem 1rem !important;
  font-family: 'Open Sans', sans-serif;
  font-size: .95rem !important;
  background: #fff;
}
.form-control:focus, select:focus, textarea:focus {
  border-color: var(--re-orange) !important;
  box-shadow: 0 0 0 3px rgba(232,100,42,.15) !important;
  outline: none;
}
label { font-family: 'Inter Tight', sans-serif; font-weight: 600; color: var(--re-ink); font-size: .9rem; }
.re-quote-card, .quote-form-card {
  border-radius: 18px !important;
  border: 1px solid var(--re-line);
  box-shadow: var(--re-shadow-lg);
  padding: 32px !important;
}
.re-quote, .quote-form-section { background: var(--re-bg-soft) !important; }

/* ---------- 9. BLOG ------------------------------------------------------ */
/* Listing cards (.item.features-image) — four equal, light cards */
.features-image .item-wrapper {
  background: #fff !important;
  border: 1px solid var(--re-line) !important;
  padding: 0 !important;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--re-shadow);
}
.features-image .item-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: var(--re-shadow-lg);
  border-color: rgba(232,100,42,.35) !important;
}
.features-image .item-img { overflow: hidden; }
.features-image .item-img img {
  width: 100%;
  height: 210px !important;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform .45s ease;
  display: block;
}
.features-image .item-wrapper:hover .item-img img { transform: scale(1.05); }
.features-image .item-content { padding: 22px 24px 8px !important; flex: 1 1 auto; }
.features-image .item-title {
  font-family: 'Inter Tight', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  line-height: 1.32 !important;
  color: var(--re-ink) !important;
  margin-bottom: .45rem;
}
.features-image .item-subtitle {
  color: var(--re-muted) !important;
  font-size: .82rem !important;
  margin-bottom: .6rem !important;
}
.features-image .item-subtitle strong { color: var(--re-ink) !important; }
.features-image .item-subtitle em { font-style: normal; }
.features-image .mbr-text {
  color: var(--re-body) !important;
  font-size: .93rem !important;
  line-height: 1.65;
}
.features-image .item-footer { padding: 0 24px 24px !important; margin-top: auto !important; }
.features-image .item-btn {
  background: var(--re-orange) !important;
  border-color: var(--re-orange) !important;
  color: #fff !important;
  padding: .7rem 1.4rem !important;
  font-size: .88rem !important;
}
.features-image .item { margin-bottom: 26px !important; display: flex; }
/* Article pages: comfortable reading measure */
.cid-uYMrNBgTNY .mbr-overlay, .cid-uWovDMfpFC .mbr-overlay { opacity: .72 !important; }

/* ---------- 10. FOOTER --------------------------------------------------- */
section[class*="footer"] {
  background: var(--re-navy-900) !important;
  padding-top: 56px !important;
  padding-bottom: 28px !important;
  border-top: 3px solid var(--re-orange);
}
section[class*="footer"] .mbr-section-subtitle {
  color: #fff !important;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem !important;
}
section[class*="footer"] .list li, section[class*="footer"] .mbr-text {
  color: rgba(255,255,255,.72) !important;
  font-size: .92rem !important;
}
section[class*="footer"] a { color: rgba(255,255,255,.88) !important; }
section[class*="footer"] a:hover { color: var(--re-orange) !important; }
section[class*="footer"] .soc-item {
  background: rgba(255,255,255,.1) !important;
  transition: background .2s ease, transform .2s ease;
}
section[class*="footer"] .soc-item:hover { background: var(--re-orange) !important; transform: translateY(-2px); }
section[class*="footer"] .soc-item .mbr-iconfont {
  background: transparent !important; color: #fff !important;
  width: auto !important; height: auto !important; font-size: 1.05rem !important; border-radius: 0 !important;
}
section[class*="footer"] .media-wrap img { max-width: 190px; border-radius: 0 !important; }

/* ---------- 11. RESPONSIVE ---------------------------------------------- */
@media (max-width: 1199px) {
  .industries-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 991px) {
  .why-inner, .mission-grid, .intro-grid, .faq-inner,
  .service-detail-grid, .why-visual-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .industries-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .how-steps, .core-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .service-card.wide { grid-column: span 2 !important; }
  [style*="grid-template-columns:420px 1fr"] { grid-template-columns: 1fr !important; gap: 28px !important; }
  [style*="position:sticky"] { position: static !important; }
  .re-hero-content { padding: 90px 28px 70px !important; }
}
@media (max-width: 767px) {
  .stats-row { grid-template-columns: repeat(2, 1fr) !important; }
  .how-steps, .core-grid, .services-grid { grid-template-columns: 1fr !important; }
  .how-steps::before { display: none !important; }
  .service-card.wide { grid-column: span 1 !important; }
  .industries-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .re-hero-stats { gap: 26px !important; }
  .re-quote-card, .quote-form-card { padding: 22px !important; }
  .trust-strip-inner { gap: 18px !important; }
}
@media (max-width: 576px) {
  [style*="grid-template-columns: 1fr 1fr"], [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  .stats-row { grid-template-columns: 1fr !important; }
  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 14px; }
  .stat-item:last-child { border-bottom: none; }
}
/* never let anything push the page sideways */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, table { max-width: 100%; }

/* ---------- 12. ACCESSIBILITY ------------------------------------------- */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid rgba(232,100,42,.55);
  outline-offset: 2px;
  border-radius: 6px;
}
.re-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--re-navy); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
  font-family: 'Inter Tight', sans-serif; font-weight: 700;
}
.re-skip-link:focus { left: 0; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- 13. DARK-SECTION CONTRAST GUARD ------------------------------
   Headings default to ink for light sections; every dark context below is
   restored to white so nothing can render dark-on-dark.                    */
.re-hero h1, .re-hero h2, .re-hero h3, .re-hero .re-hero-lead,
.page-hero h1, .page-hero h2, .page-hero .hero-h1, .page-hero .page-hero-tagline,
.hero-bg h1, .hero-text h1, .hero-text p,
#how h2, #how h3, #how h4, #how p,
#stats h2, #stats .stat-num, #stats .stat-label,
#cta-banner h2, #cta-banner p,
.re-cta-section h2, .re-cta-section p,
.why-visual h3, .why-visual p, .why-visual .step-body strong, .why-visual .why-visual-stat-label,
.item-wrapper h1, .item-wrapper h2, .item-wrapper h3, .item-wrapper h4, .item-wrapper h5,
.item-wrapper .card-title, .item-wrapper p,
.core-card.featured.dark h3,
.faq-contact h3, .faq-contact h4, .faq-contact p,
.service-visual h4, .service-visual strong, .service-visual span,
.trust-strip, .trust-strip-item,
section[class*="footer"] h2, section[class*="footer"] h3, section[class*="footer"] h5 {
  color: #fff !important;
}
#how p, #cta-banner p, .re-cta-section p, .why-visual p { color: rgba(255,255,255,.76) !important; }
.re-hero .re-hero-lead, .page-hero .page-hero-tagline { color: rgba(255,255,255,.84) !important; }
.re-hero h1 em, .hero-text h1 span, .page-hero .hero-h1 em { color: var(--re-orange) !important; }

/* Secondary/ghost buttons sitting on dark backgrounds */
.re-hero .btn-secondary, .hero-actions .btn-secondary, .page-hero .btn-secondary,
#how .btn-secondary, #cta-banner .btn-secondary, .re-cta-section .btn-secondary,
.re-hero .re-btn-ghost, .page-hero .re-btn-ghost {
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,.65) !important;
  color: #fff !important;
}
.re-hero .btn-secondary:hover, .hero-actions .btn-secondary:hover,
.page-hero .btn-secondary:hover, #how .btn-secondary:hover,
#cta-banner .btn-secondary:hover, .re-cta-section .btn-secondary:hover {
  background: #fff !important; color: var(--re-navy) !important; border-color: #fff !important;
}

/* navy buttons sitting on navy sections become outlined */
#cta-banner .btn-navy, #how .btn-navy, .re-cta-section .btn-navy,
.page-hero .btn-navy, .re-hero .btn-navy, section[class*="footer"] .btn-navy {
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,.65) !important;
  color: #fff !important;
}
#cta-banner .btn-navy:hover, #how .btn-navy:hover, .re-cta-section .btn-navy:hover {
  background: #fff !important; color: var(--re-navy) !important; border-color: #fff !important;
}
