/*
 * Legalwrite Global Styles
 * GP resets, shared layout, header, footer, and universal overlays.
 */

/* ==========================================================================
   GENERATEPRESS RESET - Must override theme styles
   ========================================================================== */
html.lw-shared-layout,
body.lw-shared-layout {
  overflow-x: hidden !important;
  background-color: #0b1331 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  scroll-behavior: smooth;
}

/* CRITICAL: Force vertical stacking AND constrain width on ALL containers */
body.lw-shared-layout #page,
body.lw-shared-layout .site,
body.lw-shared-layout .site-content,
body.lw-shared-layout #content,
body.lw-shared-layout .content-area,
body.lw-shared-layout .site-main,
body.lw-shared-layout .inside-article,
body.lw-shared-layout .entry-content,
body.lw-shared-layout .grid-container {
  max-width: 100vw !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: block !important;
}

/* Explicitly target common flex/grid parent patterns */
body.lw-shared-layout .site-content {
  display: block !important;
  max-width: 100vw !important;
}

body.lw-shared-layout .inside-page,
body.lw-shared-layout .hentry,
body.lw-shared-layout .type-page {
  display: block !important;
  width: 100% !important;
  max-width: 100vw !important;
}

body.lw-shared-layout blockquote {
  border-left: none !important;
  padding-left: 0 !important;
}

/* ==========================================================================
   UNIVERSAL OVERLAYS
   ========================================================================== */
.homepage__noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url('../images/noise-texture.png');
  background-repeat: repeat;
  background-size: 96px 96px;
  opacity: 0.6;
  z-index: 2;
  pointer-events: none;
}

.homepage__dots-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../images/dots.webp');
  background-repeat: repeat;
  background-size: 400px auto;
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   SHARED UTILITIES & BASE
   ========================================================================== */
body.lw-shared-layout {
  color: #ffffff;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.lw-shared-layout * {
  box-sizing: border-box;
}

.lw-shared-layout img {
  max-width: 100%;
  height: auto;
  display: block;
}

.lw-shared-layout h1,
.lw-shared-layout h2,
.lw-shared-layout h3,
.lw-shared-layout h4 {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

.lw-shared-layout .section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #FF9216;
}

.lw-shared-layout p {
  margin: 0;
}

.lw-shared-layout ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lw-shared-layout a {
  color: inherit;
  text-decoration: none;
}

.lw-shared-layout .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.text-white { color: #ffffff !important; }
.text-gray { color: #94a3b8 !important; }
.text-orange { color: #FF9216 !important; }
.text-orange-soft { color: #d4a057 !important; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.lw-shared-layout .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.lw-shared-layout .btn--primary {
  background: #FF9216;
  color: #ffffff !important;
  border-color: #FF9216;
}

.lw-shared-layout .btn--primary:hover {
  background: #ea580c;
  border-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 146, 22, 0.4);
}

.lw-shared-layout .btn--white {
  background: #ffffff;
  color: #0a0f1a !important;
  border-color: #ffffff;
}

.lw-shared-layout .btn--white:hover {
  background: #f1f5f9;
  border-color: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.lw-shared-layout .btn__arrow {
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.2s;
}

.lw-shared-layout .btn:hover .btn__arrow {
  transform: translateX(4px);
}

.lw-shared-layout .btn--outline {
  background: transparent;
  color: #ffffff !important;
  border-color: #1e293b;
}

.lw-shared-layout .btn--outline:hover {
  border-color: #FF9216;
  color: #FF9216 !important;
}

.lw-shared-layout .btn--large {
  padding: 18px 40px;
  font-size: 16px;
}

.lw-shared-layout .btn--full {
  width: 100%;
}

/* ==========================================================================
   HEADER OVERRIDES (GeneratePress)
   ========================================================================== */

/* Outer header - transparent, just for positioning */
body.lw-shared-layout .site-header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent !important;
  padding: 0 !important;
  height: auto !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Handle Admin Bar offset */
body.lw-shared-layout.admin-bar .site-header {
  top: calc(32px + 40px);
}

/* Docked State */
body.lw-shared-layout .site-header.is-sticky {
  top: 0 !important;
}

/* Admin bar offset for sticky header - varies by screen size */
/* Medium mobile (601-782px): admin bar is 46px tall */
@media (min-width: 601px) and (max-width: 782px) {
  body.lw-shared-layout.admin-bar .site-header.is-sticky {
    top: 46px !important;
  }
}
/* Desktop (783px+): admin bar is 32px tall */
@media (min-width: 783px) {
  body.lw-shared-layout.admin-bar .site-header.is-sticky {
    top: 32px !important;
  }
}

/* Inner header container - the dark floating tray */
body.lw-shared-layout .site-header .inside-header.grid-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  height: 72px !important;
  background: rgba(17, 24, 39, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Docked Inner Tray */
body.lw-shared-layout .site-header.is-sticky .inside-header.grid-container {
  max-width: 100% !important;
  height: 54px !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  background: rgba(10, 15, 26, 0.7) !important;
}

/* Logo container and image */
body.lw-shared-layout .site-header .site-logo,
body.lw-shared-layout .site-header .site-branding {
  flex-shrink: 0;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.lw-shared-layout .site-header .site-logo img,
body.lw-shared-layout .site-header .custom-logo {
  max-height: 32px !important;
  width: auto !important;
}

body.lw-shared-layout .site-header.is-sticky .site-logo img,
body.lw-shared-layout .site-header.is-sticky .custom-logo {
  max-height: 24px !important;
}

/* DESKTOP NAVIGATION STYLES */
@media (min-width: 1025px) {
  body.lw-shared-layout .site-header .main-navigation {
    font-family: 'DM Sans', sans-serif;
    background: transparent !important;
    position: static !important;
    float: none !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  body.lw-shared-layout .site-header .main-navigation .main-nav,
  body.lw-shared-layout .site-header .main-navigation ul,
  body.lw-shared-layout .site-header .main-navigation .menu {
    background: transparent !important;
    display: flex !important;
    flex-direction: row;
    align-items: center !important;
    gap: 4px !important;
    height: 100% !important;
    margin: 0 !important;
  }

  body.lw-shared-layout .site-header .main-navigation li {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  body.lw-shared-layout .site-header .main-navigation a {
    color: #e2e8f0 !important;
    font-size: 18px !important;
    font-weight: 500;
    padding: 0 16px !important;
    line-height: 72px !important;
    height: 72px !important;
    transition: all 0.2s;
    background: transparent !important;
    display: block !important;
  }

  body.lw-shared-layout .site-header.is-sticky .main-navigation a {
    line-height: 54px !important;
    height: 54px !important;
  }

  body.lw-shared-layout .site-header .main-navigation a:hover {
    color: #FF9216 !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
  }

  body.lw-shared-layout .site-header .main-navigation .current-menu-item > a,
  body.lw-shared-layout .site-header .main-navigation .current_page_item > a {
    color: #FF9216 !important;
  }

  /* Dropdowns */
  body.lw-shared-layout .site-header .main-navigation ul ul {
    background: rgba(17, 24, 39, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    top: 72px !important;
  }

  /* Hide mobile toggle on desktop */
  body.lw-shared-layout .site-header .menu-toggle {
    display: none !important;
  }
}

/* NUCLEAR: Force transparent on header elements unless overridden */
body.lw-shared-layout .site-header *,
body.lw-shared-layout .site-header *::before,
body.lw-shared-layout .site-header *::after {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Re-apply ONLY the dark tray background */
body.lw-shared-layout .site-header .inside-header.grid-container {
  background: rgba(17, 24, 39, 0.85) !important;
}

/* ==========================================================================
   MOBILE HEADER FIXES
   ========================================================================== */
@media (max-width: 1024px) {
  /* HIDE ALL DEFAULT GP MOBILE NOISE */
  #mobile-header,
  .mobile-header-navigation,
  .secondary-navigation,
  .off-canvas-navigation,
  #generate-slideout-menu,
  .mobile-bar-items {
    display: none !important;
  }

  body.lw-shared-layout .site-header {
    top: 12px;
  }

  /* Admin bar: 32px on desktop, 46px on mobile */
  body.lw-shared-layout.admin-bar .site-header {
    top: calc(46px + 12px); /* 58px - mobile admin bar + gap */
  }
  
  @media (min-width: 783px) {
    body.lw-shared-layout.admin-bar .site-header {
      top: calc(32px + 12px); /* 44px - desktop admin bar + gap */
    }
  }

  body.lw-shared-layout .site-header .inside-header.grid-container {
    height: 60px !important;
    padding: 0 16px !important;
    margin: 0 12px !important;
    width: calc(100% - 24px) !important;
    border-radius: 12px !important;
  }

  /* NUCLEAR: Hide ALL menu toggles site-wide, then show only the one inside nav */
  body.lw-shared-layout .menu-toggle,
  body.lw-shared-layout .site-header .menu-toggle,
  body.lw-shared-layout .inside-header .menu-toggle {
    display: none !important;
  }

  /* Show ONLY the toggle inside navigation containers - position it in header tray */
  /* Base: no admin bar, floating - offset ~13px, header at 12px */
  body.lw-shared-layout .site-header .inside-navigation .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: -1px !important;
    right: 24px !important;
    height: 60px !important;
    width: 48px !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    z-index: 1001 !important;
  }
  
  /* Sticky WITHOUT admin-bar - header at 0px, hamburger aligned to header top */
  body.lw-shared-layout .site-header.is-sticky .inside-navigation .menu-toggle {
    top: 0px !important;
    right: 16px !important;
    height: 54px !important;
  }
  
  /* WITH admin-bar class on MOBILE (offset ~59px, header at 58px) */
  body.lw-shared-layout.admin-bar .site-header .inside-navigation .menu-toggle {
    top: -1px !important; /* 58 - 59 = -1 */
  }
  /* On very small screens (< 601px) with admin-bar, admin bar is hidden, no offset in sticky mode */
  body.lw-shared-layout.admin-bar .site-header.is-sticky .inside-navigation .menu-toggle {
    top: 0px !important; /* No offset in sticky mode - align with header top */
  }
  
  /* Medium mobile (601-782px) where admin bar is visible at 46px */
  @media (min-width: 601px) and (max-width: 782px) {
    body.lw-shared-layout.admin-bar .site-header.is-sticky .inside-navigation .menu-toggle {
      top: 0px !important; /* Header at 46px, offset ~46px, so cssTop = 0 */
    }
  }
  
  /* Desktop (783px+) where admin bar is visible at 32px */
  @media (min-width: 783px) {
    body.lw-shared-layout.admin-bar .site-header.is-sticky .inside-navigation .menu-toggle {
      top: 0px !important; /* Offset ~41px, header at ~41px, so cssTop = 0 */
    }
  }
  
  /* WITH admin-bar on DESKTOP (offset ~45px, header at 44px) */
  @media (min-width: 783px) {
    body.lw-shared-layout.admin-bar .site-header .inside-navigation .menu-toggle {
      top: -1px !important; /* 44 - 45 = -1 */
    }
  }
  
  /* Hide the zero-dimension toggle in main-navigation wrapper (GP artifact) */
  body.lw-shared-layout .site-header .main-navigation.mobile-menu-control-wrapper > .menu-toggle {
    display: none !important;
  }

  /* Hide the "Menu" text label */
  body.lw-shared-layout .site-header .menu-toggle .mobile-menu {
    display: none !important;
  }

  /* Size the icons */
  body.lw-shared-layout .site-header .inside-navigation .menu-toggle svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
  }

  /* Base icon positioning - use flexbox centering from parent */
  body.lw-shared-layout .site-header .inside-navigation .menu-toggle .gp-icon {
    position: static !important;
    line-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* RESET: Hide navigation containers on mobile */
  body.lw-shared-layout .site-header .main-navigation .main-nav,
  body.lw-shared-layout .site-header .main-navigation .inside-navigation {
    display: contents !important; /* Let children be positioned relative to the header */
  }

  /* The actual menu list - dropdown tray */
  body.lw-shared-layout .site-header .main-navigation ul.menu {
    display: none !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 60px !important; /* Adjusted to visually connect with header bottom */
    left: 12px !important;
    right: 12px !important;
    width: calc(100% - 24px) !important;
    background: rgba(10, 15, 26, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px !important;
    border-radius: 0 0 16px 16px !important; /* Flat top, rounded bottom - connects to header */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: none !important; /* Remove top border for seamless connection */
    z-index: 10000 !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8) !important;
    height: auto !important;
    margin: 0 !important;
  }

  /* SHOW ONLY WHEN TOGGLED */
  body.lw-shared-layout .site-header .main-navigation.toggled ul.menu,
  body.lw-shared-layout .site-header #site-navigation.toggled ul.menu,
  body.lw-shared-layout .site-header .inside-navigation.toggled ul.menu {
    display: flex !important;
  }

  body.lw-shared-layout .site-header .main-navigation li {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
  }

  body.lw-shared-layout .site-header .main-navigation a {
    width: 100% !important;
    height: 54px !important;
    line-height: 54px !important;
    padding: 0 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    text-align: left !important;
    color: #cbd5e1 !important;
    display: block !important;
    transition: all 0.2s ease;
  }

  body.lw-shared-layout .site-header .main-navigation li:last-child a {
    border-bottom: none !important;
  }

  body.lw-shared-layout .site-header .main-navigation .current-menu-item > a {
    color: #FF9216 !important;
  }

  /* Sticky dropdown position - header at top:0, height 54px, so dropdown at 54px */
  body.lw-shared-layout .site-header.is-sticky .main-navigation.toggled ul.menu,
  body.lw-shared-layout .site-header.is-sticky .inside-navigation.toggled ul.menu { top: 54px !important; }
  
  /* On very small screens (< 601px) with admin-bar, admin bar is hidden */
  body.lw-shared-layout.admin-bar .site-header.is-sticky .main-navigation.toggled ul.menu,
  body.lw-shared-layout.admin-bar .site-header.is-sticky .inside-navigation.toggled ul.menu { top: 54px !important; }
  
  /* Medium mobile (601-782px) where admin bar is visible at 46px */
  /* Header at 46px + 54px = 100px bottom, offset ~46px, cssTop = 100 - 46 = 54px */
  @media (min-width: 601px) and (max-width: 782px) {
    body.lw-shared-layout.admin-bar .site-header.is-sticky .main-navigation.toggled ul.menu,
    body.lw-shared-layout.admin-bar .site-header.is-sticky .inside-navigation.toggled ul.menu { top: 54px !important; }
  }
  
  /* Desktop (783px+) where admin bar is visible at 32px */
  /* Header at 32px + 54px = 86px bottom, offset ~32px, cssTop = 86 - 32 = 54px */
  @media (min-width: 783px) {
    body.lw-shared-layout.admin-bar .site-header.is-sticky .main-navigation.toggled ul.menu,
    body.lw-shared-layout.admin-bar .site-header.is-sticky .inside-navigation.toggled ul.menu { top: 54px !important; }
  }

  /* Sticky overrides for mobile */
  body.lw-shared-layout .site-header.is-sticky {
    top: 0 !important;
  }
  
  body.lw-shared-layout .site-header.is-sticky .inside-header.grid-container {
    margin: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    height: 54px !important;
  }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.homepage-footer {
  position: relative;
  overflow: visible; 
  padding: 120px 0 60px;
  background: transparent;
  clear: both;
  display: block;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.homepage-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
}

/* Fixed wrapper clips oversized backgrounds to prevent mobile horizontal scroll */
.homepage-footer__bg-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.homepage-footer__bg,
.homepage-footer__dots,
.homepage-footer__bottom-sunrise {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-width: 1640px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.homepage-footer__bg {
  height: 1000px;
  top: auto !important;
  overflow: hidden;
}

.homepage-footer__bg-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 160vw;
  min-width: 1640px;
  height: 520px;
  background: 
    linear-gradient(to top, rgba(255, 150, 0, 0.5) 0%, transparent 50%),
    radial-gradient(50% 100% at 50% 100%, 
      rgba(255, 200, 0, 1) 0%, 
      rgba(255, 160, 0, 0.5) 35%, 
      transparent 80%),
    radial-gradient(50% 100% at 50% 100%, 
      rgba(255, 140, 0, 0.4) 0%, 
      rgba(255, 140, 0, 0) 100%);
  filter: blur(45px) saturate(2.0);
  pointer-events: none;
}

.homepage-footer__dots {
  width: 100%;
  height: 700px;
  background-image: url('../images/dots.webp');
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: 500px auto;
  opacity: 0;
  mask-image: 
    linear-gradient(to top, black 0%, transparent 100%),
    linear-gradient(to right, 
      transparent 0%, 
      transparent calc(50% - 1600px), 
      black calc(50% - 600px), 
      black calc(50% + 600px), 
      transparent calc(50% + 1600px), 
      transparent 100%
    );
  -webkit-mask-image: 
    linear-gradient(to top, black 0%, transparent 100%),
    linear-gradient(to right, 
      transparent 0%, 
      transparent calc(50% - 1600px), 
      black calc(50% - 600px), 
      black calc(50% + 600px), 
      transparent calc(50% + 1600px), 
      transparent 100%
    );
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.homepage-footer__bottom-sunrise {
  height: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: radial-gradient(50% 100% at 50% 100%, #FFC000 0%, #FF9000 30%, #FF7000 60%, transparent 100%);
  filter: blur(12px) brightness(2.5) saturate(3);
  mix-blend-mode: screen;
}

.homepage-footer .container {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.homepage-footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 100px;
}

.homepage-footer__brand {
  flex: 0 0 52%;
  padding-right: 12%;
  box-sizing: border-box;
}

.homepage-footer__logo {
  margin-bottom: 32px;
}

.homepage-footer__logo a,
.footer-logo-fallback {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.homepage-footer__logo img {
  display: block;
  max-width: 100%;
  width: 280px;
  height: 56px;
  object-fit: contain;
}

.homepage-footer__logo-icon {
  width: 38px;
  height: auto;
}

.homepage-footer__logo-text {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.homepage-footer__description {
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.homepage-footer__social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.social-icon--li { background: #0a66c2; }
.social-icon--tt { background: #000000; }

.social-icon:hover {
  filter: brightness(1.2);
  transform: translateY(-3px);
}

.social-icon--li:hover { box-shadow: 0 10px 20px rgba(10, 102, 194, 0.4); }
.social-icon--tt:hover { box-shadow: 0 10px 20px rgba(255, 0, 80, 0.3), 0 10px 20px rgba(0, 242, 234, 0.3); }

.homepage-footer__widgets {
  display: flex;
  flex: 0 0 48%;
}

.homepage-footer__widget-col:first-child {
  flex: 0 0 57.5%;
}

.homepage-footer__widget-col:last-child {
  flex: 0 0 42.5%;
}

.homepage-footer__widget-col h2,
.homepage-footer__widget-col h3,
.homepage-footer__widget-col .widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FF9216;
  margin-bottom: 32px;
}

.homepage-footer__widget-col ul,
.homepage-footer__widget-col .wp-block-navigation__container,
.homepage-footer__widget-col .wp-block-navigation,
.homepage-footer__widget-col .widget_nav_menu ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  align-items: flex-start !important;
  text-align: left !important;
  justify-content: flex-start !important;
}

.homepage-footer__widget-col .wp-block-navigation-item,
.homepage-footer__widget-col .menu-item {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  width: 100% !important;
  text-align: left !important;
}

.homepage-footer__widget-col .wp-block-navigation-item__content,
.homepage-footer__widget-col .menu-item a {
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  display: inline-block !important;
}

.homepage-footer__widget-col ul li a,
.homepage-footer__widget-col .wp-block-navigation-item__content,
.homepage-footer__widget-col .menu-item a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.homepage-footer__widget-col ul li a:hover,
.homepage-footer__widget-col .wp-block-navigation-item__content:hover,
.homepage-footer__widget-col .menu-item a:hover {
  color: #FF9216 !important;
}

.homepage-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.homepage-footer__credit a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.homepage-footer__credit a:hover {
  opacity: 0.8;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .homepage-footer__grid {
    flex-direction: column;
    gap: 60px;
  }
  
  .homepage-footer__widgets {
    gap: 60px;
  }
}

@media (max-width: 767px) {
  .homepage-footer__widgets {
    flex-direction: column;
    gap: 40px;
  }
}

/* ==========================================================================
   MODAL - Global Styles (Hidden by Default)
   ========================================================================== */
.lw-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lw-modal.is-active {
  display: flex;
}

.lw-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lw-modal__container {
  position: relative;
  max-width: 500px;
  width: 100%;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.lw-modal__content .section-label {
  margin-bottom: 16px;
}

.lw-modal__title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.2;
}

.lw-modal__text {
  font-size: 17px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 40px;
}

.lw-modal__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 16px;
}

.lw-modal__actions .btn {
  min-width: 180px;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-page {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  background: transparent;
  position: relative;
  overflow: visible;
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
}

body.lw-contact-page .site-content,
body.lw-contact-page .site-main,
body.lw-contact-page main {
  max-width: 100% !important;
  width: 100% !important;
}

/* --- Contact Intro Section --- */
.contact-intro {
  position: relative;
  padding: 180px 0 60px;
  overflow: visible;
}

.contact-intro__bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 100%;
  margin-left: -720px;
  pointer-events: none;
  z-index: 1;
}

.contact-intro__bg-img {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  max-width: none !important;
  opacity: 0.6;
  pointer-events: none;
}

.contact-intro .container {
  position: relative;
  z-index: 3;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- Contact Intro Grid (image left, copy right) --- */
.contact-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

/* --- Contact Hero Image --- */
.contact-intro__hero-img-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.contact-intro__hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* --- Contact Intro Copy --- */
.contact-intro__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-intro__copy .section-label {
  margin-bottom: 16px;
}

.contact-intro .contact-intro__title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.1;
  color: #ffffff;
}

.contact-intro__text {
  font-size: 17px;
  color: #94a3b8;
  line-height: 1.75;
}

/* --- Contact Page CTA Override (no duplicate background) --- */
.contact-page__cta {
  padding-top: 20px !important;
  padding-bottom: 160px;
  text-align: center;
}

.contact-page__cta .container {
  text-align: center;
}

.contact-page__cta .global-cta__bg {
  display: none;
}

.contact-page__cta .section-title,
.contact-page__cta .section-subtitle {
  display: none;
}

/* Responsive Contact */
@media (max-width: 1024px) {
  .contact-intro__bg,
  .contact-intro__bg-img {
    display: none;
  }
}

@media (max-width: 768px) {
  .contact-intro {
    padding: 140px 0 40px;
  }

  .contact-intro__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 520px;
  }

  .contact-intro__copy {
    align-items: center;
    text-align: center;
  }

  .contact-intro__title {
    font-size: 32px;
  }

  .contact-intro__text {
    font-size: 16px;
  }
}

/* ==========================================================================
   GLOBAL CTA SECTION
   ========================================================================== */
.global-cta {
  position: relative;
  padding: 160px 0;
  background: transparent !important;
  text-align: center;
  overflow: visible;
}

/* --- CTA Background Elements --- */
.global-cta__bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 100%;
  margin-left: -720px;
  pointer-events: none;
  z-index: 1;
}

.global-cta__bg-img {
  position: absolute;
  top: -520px;
  left: 550px;
  height: auto;
  max-width: none !important;
  opacity: 1;
  pointer-events: none;
}

/* --- CTA Foreground Elements --- */
.global-cta .container {
  z-index: 3;
}

.global-cta .section-label {
  color: #FF9216;
  margin-bottom: 24px;
  text-align: center !important;
}

.global-cta .section-title {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1;
  color: #ffffff;
}

section.global-cta .section-subtitle {
  font-size: 20px;
  color: #94a3b8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 64px;
  line-height: 1.6;
}

/* Form Wrapper */
.global-cta__form-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(13, 18, 30, 0.8) !important;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 60px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

/* Contact Form 7 Custom Styling (Global) */
.global-cta .wpcf7-form .contact-form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.global-cta .wpcf7-form .contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.global-cta .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}

.global-cta .wpcf7-form input[type="text"],
.global-cta .wpcf7-form input[type="email"],
.global-cta .wpcf7-form textarea {
  width: 100%;
  background: #334155 !important;
  border: none !important;
  border-radius: 10px;
  padding: 18px 24px;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
}

.global-cta .wpcf7-form input::placeholder,
.global-cta .wpcf7-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.global-cta .wpcf7-form input:focus,
.global-cta .wpcf7-form textarea:focus {
  outline: none;
  background: #475569 !important;
  color: #ffffff !important;
}

.global-cta .wpcf7-form textarea {
  min-height: 200px;
  resize: vertical;
}

.global-cta .wpcf7-form .contact-form-submit {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
  margin-top: 32px;
}

.global-cta .wpcf7-form .wpcf7-submit {
  position: relative;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%) !important;
  border: none !important;
  min-width: 320px;
  padding: 16px 40px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4) !important;
  appearance: none;
  -webkit-appearance: none;
}

.global-cta .wpcf7-form .wpcf7-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5) !important;
  filter: brightness(1.1);
}

/* Arrow for CF7 submit button */
.global-cta .wpcf7-form .contact-form-submit::after {
  content: '→';
  position: absolute;
  left: calc(50% + 72px);
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 22px;
  pointer-events: none;
  z-index: 5;
  transition: all 0.3s ease;
}

@keyframes globalCtaSendOff {
  0% {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
  15% {
    transform: translateY(-50%) translateX(-8px);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) translateX(80px);
    opacity: 0;
  }
}

.global-cta .wpcf7-form .contact-form-submit:hover::after {
  content: '';
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  animation: globalCtaSendOff 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* CF7 Spinner / Response Messages */
.global-cta .wpcf7 .wpcf7-spinner {
  position: absolute;
  bottom: -40px;
  left: 50%;
  margin-left: -12px;
}

.global-cta .wpcf7 .wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  text-align: center !important;
  color: #ffffff !important;
}

/* Responsive CTA */
@media (max-width: 1024px) {
  .global-cta__bg,
  .global-cta__bg-img {
    display: none;
  }

  .global-cta .section-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .global-cta__bg,
  .global-cta__bg-img {
    display: none;
  }

  .global-cta__form-wrapper {
    padding: 32px 24px;
    border-radius: 32px;
  }
  
  .global-cta .wpcf7-form .contact-form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .global-cta .section-title {
    font-size: 32px;
  }
}

/* --- CTA No-Form Variant (Homepage Override) --- */
.global-cta--no-form {
  padding: 120px 0 160px;
}

.global-cta__button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.global-cta__button-wrapper .btn {
  min-width: 240px;
}
