/* ═══════════════════════════════════════════════════════════════════════════
   MT CONSTRUCTION LLC — styles.css
   Shared site stylesheet: navbar, mobile menu, footer, back-to-top,
   mobile float CTA bar, plus the v6.1 premium design-system layer.

   Load order in head.php:
     1. head.php <style> block  → brand color tokens (--color-primary, etc.)
     2. THIS FILE               → shared component layout & visual styles
     3. Page inline <style>     → page-specific rules, also defines spacing/
                                  shadow tokens used below

   Every var() call below includes a fallback so styles.css is safe to use
   even if a page's inline <style> hasn't loaded yet.
═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR / SITE HEADER
═══════════════════════════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Homepage: nav is transparent over the hero, glassmorphism after scroll. */
body.page-home .site-header:not(.scrolled) {
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
}

/* Inner pages: glassmorphism nav by default (hero is shorter / not full-bleed). */
body:not(.page-home) .site-header:not(.scrolled) {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* White navbar — subtle shadow deepens on scroll */
.navbar {
  height: var(--navbar-height, 88px);
  display: flex;
  align-items: center;
  transition: height 0.3s ease;
}

/* Scrolled state: tighter height + deeper shadow */
.site-header.scrolled .navbar {
  height: calc(var(--navbar-height, 88px) - 12px);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Transparent (homepage hero) nav — light treatment for legibility ─────
   Applies only on the homepage while the nav is NOT scrolled. Once .scrolled
   is added the glassmorphism nav takes over and the default dark text returns. */
body.page-home .site-header:not(.scrolled) .nav-link { color: #ffffff; }
body.page-home .site-header:not(.scrolled) .nav-link:hover,
body.page-home .site-header:not(.scrolled) .nav-link--active { color: var(--color-accent); }

body.page-home .site-header:not(.scrolled) .navbar-phone { color: #ffffff; }
body.page-home .site-header:not(.scrolled) .navbar-phone i,
body.page-home .site-header:not(.scrolled) .navbar-phone svg { color: var(--color-accent); }

body.page-home .site-header:not(.scrolled) .navbar-license-badge {
  background: rgba(0, 0, 0, 0.30);
  border-color: rgba(255, 255, 255, 0.25);
}
body.page-home .site-header:not(.scrolled) .license-badge-text strong { color: #ffffff; }
body.page-home .site-header:not(.scrolled) .license-badge-text small { color: rgba(255, 255, 255, 0.72); }

body.page-home .site-header:not(.scrolled) .hamburger { border-color: rgba(255, 255, 255, 0.55); }
body.page-home .site-header:not(.scrolled) .hamburger-line { background: #ffffff; }

/* Homepage logo — enlarged (78px → 104px). Opaque white-background color logo,
   so on the transparent hero nav it is presented as a padded white chip on the
   .navbar-logo wrapper. Scoped to body.page-home; inner pages keep the 78px logo
   in their 80px navbar untouched. */
body.page-home .navbar-logo-img { height: 104px; }
body.page-home .site-header.scrolled .navbar-logo-img { height: 80px; }
body.page-home .site-header:not(.scrolled) .navbar-logo {
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg, 24px);
  width: 100%;
  max-width: var(--max-width, 1200px);
  margin-inline: auto;
  padding-inline: var(--space-lg, 24px);
}

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.3s ease, padding 0.3s ease,
              box-shadow 0.3s ease, border-radius 0.3s ease;
}

.navbar-logo-img {
  height: 78px;
  width: auto;
  display: block;
  padding: 0;
  background: transparent;
  border-radius: 0;
  transition: transform 0.3s ease, height 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
}

.site-header.scrolled .navbar-logo-img {
  height: 62px;
}

.navbar-logo:hover .navbar-logo-img {
  transform: scale(1.03);
}

/* ── Desktop nav links ────────────────────────────────────────────────────── */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary, #1a3478);
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: var(--space-sm, 8px) var(--space-md, 16px);
  border-radius: var(--radius, 8px);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

/* Animated underline on hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: var(--space-md, 16px);
  right: var(--space-md, 16px);
  height: 2.5px;
  background: var(--color-accent, #f07020);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link--active {
  color: var(--color-accent, #f07020);
}

.nav-link:hover::after,
.nav-link--active::after {
  transform: scaleX(1);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* ── Services dropdown ────────────────────────────────────────────────────── */
.has-dropdown {
  position: relative;
  list-style: none;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius, 8px);
  padding: var(--space-sm, 8px) 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

/* Failsafe: dropdown <ul> carries inline style="display:none"; hover/focus
   forces display:block with !important so a stale cache can't leave it open. */
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

.dropdown-link {
  display: block;
  padding: 9px var(--space-lg, 24px);
  color: var(--color-text, #1a1a1a);
  font-family: var(--font-body, 'Open Sans', sans-serif);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.dropdown-link:hover {
  color: var(--color-accent, #f07020);
  background: rgba(var(--color-accent-rgb, 240,112,32), 0.06);
}

.dropdown-link--all {
  color: var(--color-accent, #f07020);
  font-weight: 600;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: var(--space-xs, 4px);
  padding-top: var(--space-md, 16px);
}

/* ── VA Class A License Badge ────────────────────────────────────────────── */
.navbar-license-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--color-primary-rgb, 26,52,120), 0.06);
  border: 1.5px solid rgba(var(--color-primary-rgb, 26,52,120), 0.15);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  flex-shrink: 0;
}

.navbar-license-badge i,
.navbar-license-badge svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent, #f07020);
  flex-shrink: 0;
}

.license-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.license-badge-text strong {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary, #1a3478);
}

.license-badge-text small {
  font-size: 0.62rem;
  color: var(--color-text-light, #555);
  letter-spacing: 0.03em;
}

@media (max-width: 1199px) {
  .navbar-license-badge { display: none; }
}

/* ── Navbar CTA (phone + button) ─────────────────────────────────────────── */
.navbar-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md, 16px);
  flex-shrink: 0;
}

.navbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary, #1a3478);
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.navbar-phone i {
  width: 15px;
  height: 15px;
}

.navbar-phone:hover {
  color: var(--color-accent, #f07020);
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent, #f07020);
  color: #fff;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px var(--space-lg, 24px);
  border-radius: var(--radius, 8px);
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
}

.btn-nav-cta:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* ── Hamburger (mobile toggle) ───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1.5px solid var(--color-primary, #1a3478);
  border-radius: var(--radius, 8px);
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.hamburger:hover {
  border-color: var(--color-accent, #f07020);
  background: rgba(var(--color-accent-rgb, 240,112,32), 0.06);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary, #1a3478);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Responsive: hide desktop nav on tablet/mobile ───────────────────────── */
@media (max-width: 1023px) {
  .navbar-links {
    display: none;
  }

  .navbar-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 767px) {
  .navbar-inner {
    padding-inline: var(--space-md, 16px);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE FULL-SCREEN MENU
═══════════════════════════════════════════════════════════════════════════ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* Tap-outside backdrop */
.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open .mobile-menu-overlay {
  opacity: 1;
}

/* Slide-in panel from right */
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 90vw);
  background: var(--color-primary, #1a2b3c);
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl, 48px) var(--space-xl, 32px);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.35);
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}

/* Close button */
.mobile-close {
  position: absolute;
  top: var(--space-lg, 24px);
  right: var(--space-lg, 24px);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mobile-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mobile-close i {
  width: 18px;
  height: 18px;
}

/* Nav list */
.mobile-nav {
  padding-top: var(--space-xl, 32px);
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-md, 16px) 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link--active {
  color: var(--color-accent, #06b6d4);
}

/* Service sub-links under mobile Services link */
.mobile-sub-links {
  list-style: none;
  margin: 0;
  padding: var(--space-sm, 8px) 0 var(--space-sm, 8px) var(--space-md, 16px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-sub-link {
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-body, 'Open Sans', sans-serif);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mobile-sub-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.mobile-sub-link--all {
  color: var(--color-accent, #06b6d4);
  font-weight: 600;
  margin-top: var(--space-xs, 4px);
}

/* Phone link inside mobile menu */
.mobile-phone-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 8px);
  margin-top: var(--space-2xl, 48px);
  padding: var(--space-md, 16px);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius, 8px);
  color: #fff;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.mobile-phone-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.mobile-phone-cta i {
  width: 20px;
  height: 20px;
  color: var(--color-accent, #06b6d4);
}

/* Estimate CTA button at bottom of panel */
.mobile-cta-btn {
  display: block;
  text-align: center;
  margin-top: var(--space-md, 16px);
  padding: var(--space-md, 16px);
  background: var(--color-accent, #06b6d4);
  color: #fff;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius, 8px);
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  position: relative;
}

.mobile-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--color-primary, #1a2b3c);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body, 'Open Sans', sans-serif);
}

/* ── Footer Top ───────────────────────────────────────────────────────────── */
.footer-top {
  padding: var(--space-4xl, 96px) 0 var(--space-3xl, 64px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl, 64px);
}

/* Logo */
.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: var(--space-lg, 24px);
}

.footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  transition: opacity 0.2s ease;
}

.footer-logo:hover .footer-logo-img {
  opacity: 0.9;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 38ch;
  margin-bottom: var(--space-lg, 24px);
}

/* Trust badges */
.footer-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm, 8px);
  margin-bottom: var(--space-lg, 24px);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  padding: 4px var(--space-sm, 8px);
  border-radius: 100px;
}

.trust-badge i {
  width: 12px;
  height: 12px;
  color: var(--color-accent, #f07020);
}

.trust-badge--featured {
  background: rgba(var(--color-accent-rgb, 240,112,32), 0.12);
  border-color: rgba(var(--color-accent-rgb, 240,112,32), 0.3);
  color: var(--color-accent, #f07020);
  font-weight: 600;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: var(--space-sm, 8px);
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  background: var(--color-accent, #06b6d4);
  color: #fff;
  border-color: var(--color-accent, #06b6d4);
}

.social-link i {
  width: 16px;
  height: 16px;
}

/* Column headings */
.footer-heading {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: var(--space-lg, 24px);
}

/* Link lists */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 8px);
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--color-accent, #06b6d4);
}

.footer-link--all {
  color: var(--color-accent, #06b6d4);
  font-weight: 600;
  margin-top: var(--space-sm, 8px);
}

/* Contact column */
.footer-address {
  font-style: normal;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm, 8px);
  margin-bottom: var(--space-md, 16px);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-contact-item i {
  width: 16px;
  height: 16px;
  color: var(--color-accent, #06b6d4);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-contact-item a:hover {
  color: var(--color-accent, #06b6d4);
}

.footer-cta-btn {
  display: block;
  text-align: center;
  margin-top: var(--space-lg, 24px);
  padding: var(--space-md, 16px) var(--space-xl, 32px);
  background: var(--color-accent, #06b6d4);
  color: #fff;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius, 8px);
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
}

/* ── AEO entity block ─────────────────────────────────────────────────────── */
.footer-entity {
  background: rgba(0, 0, 0, 0.2);
  padding: var(--space-xl, 32px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-entity p {
  font-size: 0.8rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.35);
  max-width: 90ch;
}

.footer-entity a {
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
}

.footer-entity a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Footer bottom bar ────────────────────────────────────────────────────── */
.footer-bottom-bar {
  padding: var(--space-lg, 24px) 0;
  background: rgba(0, 0, 0, 0.18);
}

.footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm, 8px);
  margin-bottom: var(--space-md, 16px);
}

.footer-legal-row a {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal-row a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal-row .divider {
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  user-select: none;
}

.footer-copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md, 16px);
}

.footer-copyright p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-credit a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Footer responsive ────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl, 48px);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl, 32px);
  }

  .footer-top {
    padding: var(--space-3xl, 64px) 0 var(--space-2xl, 48px);
  }

  .footer-copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm, 8px);
  }

  .footer-legal-row {
    gap: 4px var(--space-sm, 8px);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BACK TO TOP BUTTON
═══════════════════════════════════════════════════════════════════════════ */

.back-to-top {
  position: fixed;
  bottom: var(--space-xl, 32px);
  right: var(--space-xl, 32px);
  width: 44px;
  height: 44px;
  background: var(--color-primary, #1a2b3c);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
              background 0.2s ease, border-color 0.2s ease;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent, #06b6d4);
  border-color: var(--color-accent, #06b6d4);
}

.back-to-top i {
  width: 20px;
  height: 20px;
}

@media (max-width: 767px) {
  /* Sit above the mobile floating CTA bar (60px tall) */
  .back-to-top {
    bottom: 70px;
    right: var(--space-md, 16px);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE FLOATING CTA BAR  (visible < 768px)
═══════════════════════════════════════════════════════════════════════════ */

.mobile-float-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-primary, #1a2b3c);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.mobile-float-call,
.mobile-float-estimate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm, 8px);
  flex: 1;
  height: 100%;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease;
}

.mobile-float-call {
  color: #fff;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-float-call:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.mobile-float-estimate {
  color: #fff;
  background: var(--color-accent, #06b6d4);
}

.mobile-float-estimate:hover {
  opacity: 0.92;
  color: #fff;
}

.mobile-float-call i,
.mobile-float-estimate i {
  width: 18px;
  height: 18px;
}

@media (max-width: 767px) {
  .mobile-float-cta {
    display: flex;
  }

  /* Push page content above the floating bar on mobile */
  body {
    padding-bottom: 60px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SKIP LINK  (accessibility — first element, visually hidden until focused)
═══════════════════════════════════════════════════════════════════════════ */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md, 16px);
  background: var(--color-accent, #06b6d4);
  color: #fff;
  padding: var(--space-sm, 8px) var(--space-md, 16px);
  border-radius: 0 0 var(--radius, 8px) var(--radius, 8px);
  z-index: 9999;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHARED DESIGN SYSTEM  (v6.1 — premium utility & component layer)
   Brand color tokens + the 3-font system are injected by includes/head.php
   BEFORE this file loads, so they are intentionally NOT redefined here.
   Per-page inline <style> blocks (loaded after this file) may still override.
═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Design tokens (neutrals, layout, spacing, elevation) ───────────────── */
:root {
  /* Neutrals */
  --color-text:        #2a2f38;
  --color-text-light:  #5d6470;
  --color-heading:     var(--color-primary, #1a3478);
  --color-bg:          #ffffff;
  --color-bg-alt:      #f5f7fa;
  --color-bg-dark:     var(--color-primary, #1a3478);
  --color-border:      #e3e7ee;

  /* Accent font (matches the token injected by head.php) */
  --font-accent: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Layout */
  --navbar-height:  80px;
  --max-width:      1200px;
  --max-width-wide: 1380px;
  --content-width:  760px;

  /* Spacing scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 20px;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(15, 32, 96, 0.06);
  --shadow:    0 10px 30px rgba(15, 32, 96, 0.10);
  --shadow-lg: 0 26px 60px rgba(15, 32, 96, 0.18);

  /* Transitions */
  --transition:      0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 0.84, 0.44, 1);
}

/* ── Containers ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 28px);
}
.container-wide {
  width: 100%;
  max-width: var(--max-width-wide);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 28px);
}
.content-narrow {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
}
.prose {
  font-family: var(--font-body, 'Open Sans', sans-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-light);
}
.prose p { margin-bottom: 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose-centered { text-align: center; }
.prose-centered p { margin-inline: auto; }

/* ── Eyebrow + section headings ─────────────────────────────────────────── */
.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent, #f07020);
}
.section-subtitle {
  display: block;
  font-family: var(--font-accent, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.2;
  color: var(--color-accent, #f07020);
  margin-bottom: 0.35em;
}
.section-title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-primary, #1a3478);
}
/* Accent-font emphasis word inside any heading */
.text-accent {
  font-family: var(--font-accent, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-accent, #f07020);
}

/* ── Buttons (3D press effect) ──────────────────────────────────────────── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition);
}
.btn-primary {
  background: var(--color-accent, #f07020);
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.26);
  color: #fff;
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.26);
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary, #1a3478);
  box-shadow: inset 0 0 0 2px var(--color-primary, #1a3478);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--color-primary, #1a3478);
  color: #fff;
}
.btn-secondary:active { transform: translateY(1px); }
.btn-primary i, .btn-secondary i { width: 18px; height: 18px; }

/* ── Cards + tinted backgrounds ─────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: rgba(var(--color-accent-rgb, 240,112,32), 0.12);
  color: var(--color-accent, #f07020);
  margin-bottom: var(--space-lg);
}
.card-icon i { width: 30px; height: 30px; }
.card-tint-1       { background: var(--color-card-tint-1, rgba(26,52,120,0.07)); }
.card-tint-2       { background: var(--color-card-tint-2, rgba(15,32,96,0.06)); }
.card-tint-3       { background: var(--color-card-tint-3, rgba(240,112,32,0.08)); }
.card-tint-neutral { background: var(--color-card-tint-neutral, #f5f7fa); }

/* ── Answer block (AEO) ─────────────────────────────────────────────────── */
.answer-block {
  background: var(--color-card-tint-1, rgba(26,52,120,0.07));
  border-left: 4px solid var(--color-accent, #f07020);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-lg) var(--space-xl);
}
.answer-block h3 {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.15rem;
  color: var(--color-primary, #1a3478);
  margin-bottom: 0.5em;
}
.answer-block p {
  font-family: var(--font-body, 'Open Sans', sans-serif);
  line-height: 1.75;
  color: var(--color-text);
}

/* ── Grids ──────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-asymmetric {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--space-3xl);
  align-items: center;
}
.grid-asymmetric--reverse { grid-template-columns: 0.75fr 1.25fr; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2,
  .grid-asymmetric,
  .grid-asymmetric--reverse,
  .about-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
}

/* ── Overlapping image composition ──────────────────────────────────────── */
.image-stack {
  position: relative;
  padding: 0 var(--space-xl) var(--space-2xl) 0;
}
.about-image-primary {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.about-image-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  border: 7px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(3.5deg);
  object-fit: cover;
}
@media (max-width: 600px) {
  .about-image-secondary { width: 52%; }
}

/* ── SVG section dividers ───────────────────────────────────────────────── */
.section-divider {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}
.section-divider svg { display: block; width: 100%; height: auto; }
.section-divider--top    { margin-top: -1px; }
.section-divider--bottom { margin-bottom: -1px; }

/* ── Floating decorative accents ────────────────────────────────────────── */
.floating-accent {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--float-rot, 0deg)); }
  50%      { transform: translateY(-22px) rotate(var(--float-rot, 0deg)); }
}
.float-animate      { animation: floaty 7s ease-in-out infinite; }
.float-animate-slow { animation: floaty 11s ease-in-out infinite; }

/* ── Stat blocks ────────────────────────────────────────────────────────── */
.stat-block {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-lg);
}
.stat-number {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.9rem);
  line-height: 1;
  color: var(--color-primary, #1a3478);
}
.stat-number .stat-suffix { color: var(--color-accent, #f07020); }
.stat-label {
  position: relative;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: 0.5em;
}
.stat-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-weight: 700;
  font-size: 11rem;
  line-height: 1;
  color: rgba(var(--color-primary-rgb, 26,52,120), 0.05);
  pointer-events: none;
  z-index: 0;
}
/* Visible content sits above the watermark. The watermark is excluded so the
   .stat-block > * rule cannot override its position:absolute back to relative. */
.stat-block > *:not(.stat-watermark) { position: relative; z-index: 1; }

/* ── Multi-directional scroll reveals ───────────────────────────────────── */
.reveal-up, .reveal-down, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  will-change: opacity, transform;
}
.reveal-up    { transform: translateY(44px); }
.reveal-down  { transform: translateY(-44px); }
.reveal-left  { transform: translateX(-52px); }
.reveal-right { transform: translateX(52px); }
.reveal-scale { transform: scale(0.9); }
.reveal-up.is-visible, .reveal-down.is-visible, .reveal-left.is-visible,
.reveal-right.is-visible, .reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-down, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.82rem;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  letter-spacing: 0.04em;
}
.breadcrumb li { list-style: none; }
.breadcrumb a { color: inherit; opacity: 0.8; transition: opacity var(--transition); }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb-sep { opacity: 0.45; }

/* ── CTA banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg,
    var(--color-primary-dark, #0f2060) 0%,
    var(--color-primary, #1a3478) 55%,
    var(--color-secondary, #3a5494) 100%);
  color: #fff;
  text-align: center;
}

/* ── Focus visibility (a11y) ────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--color-secondary, #3a5494);
  outline-offset: 2px;
}
