/* ==========================================================================
   Global Reset & Sticky compatibility
   ========================================================================== */

/* Universal Font Override */
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, a, p {
  font-family: 'Roboto', sans-serif !important;
}

html {
  box-sizing: border-box;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  background-color: #f4f9f8;
  /* CRITICAL: Allows position: sticky to work properly */
  overflow-x: visible !important;
  overflow-y: visible !important;
  position: relative;
}

*, *:before, *:after {
  box-sizing: inherit;
}

.main-wrapper {
  min-height: 100vh;
  width: 100%;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */

.announcement-bar {
  background-color: #002643;
  color: #ffffff;
  text-align: center;
  padding: 10px 15px;
  font-size: 13px;
  word-break: break-word;
  position: relative;
  z-index: 1001;
}

/* ==========================================================================
   Sticky Floating Pill Header (Prominent Depth & Shadow)
   ========================================================================== */

header.floating-pill {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 15px !important;
  z-index: 9999 !important;
  margin: 15px auto;
  width: 92%;
  max-width: 1200px;
  border-radius: 50px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;

  /* Frosted Glass Background */
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;

  /* Prominent Multi-Layer Brand Shadow & Border */
  border: 1px solid rgba(13, 60, 71, 0.12) !important;
  box-shadow: 
    0 10px 25px -5px rgba(13, 60, 71, 0.15),
    0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;

  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

header.floating-pill:hover {
  box-shadow: 
    0 20px 35px -5px rgba(13, 60, 71, 0.22),
    0 12px 15px -6px rgba(0, 0, 0, 0.12) !important;
}

header.floating-pill .header-logo img {
  height: 32px;
  width: auto;
  display: block;
}

header.floating-pill .top-menu {
  position: static;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 20px;
}

header.floating-pill .top-menu a {
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

header.floating-pill .top-menu a:hover {
  color: #0d3c47;
}

header.floating-pill .header-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 25px;
  background-color: #6b2b65;
  color: #ffffff;
  font-weight: 700;
  padding: 0 16px;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1;
  font-size: 0.85rem;
}

/* Dynamic JS Scrolled state (optional activation) */
header.floating-pill.is-scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(13, 60, 71, 0.18) !important;
  box-shadow: 
    0 12px 30px -4px rgba(13, 60, 71, 0.22),
    0 6px 12px -4px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   Hero Section & Slider
   ========================================================================== */

.hero-title-section {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  padding: 60px 20px 80px 20px;
  box-sizing: border-box;
}

.hero-title-section .badge-subtitle {
  background-color: #e2f1ec;
  color: #0d3c47;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-block;
  margin-bottom: 16px;
  max-width: 100%;
}

.hero-title-section h2 {
  font-size: 3.5rem;
  color: #0d3c47;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  word-wrap: break-word;
}

.hero-title-section p {
  font-size: 1.5rem;
  color: #5a6a75;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  word-wrap: break-word;
}

.hero-slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 20px auto 60px auto;
  overflow: hidden;
  padding-bottom: 50px;
  touch-action: pan-y;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(13, 60, 71, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 40px 70px;
  overflow: hidden;
  position: relative;
  user-select: none;
}

.slide-text-col {
  flex: 1;
  max-width: 500px;
  padding-right: 30px;
  z-index: 2;
}

.slide-text-col h1 {
  font-size: 3.2rem;
  color: #0d3c47;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.slide-text-col p {
  font-size: 1.15rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 35px;
}

.slide-text-col a {
  font-weight: 700;
  border-radius: 30px;
  padding: 15px 35px;
  text-decoration: none;
  display: inline-block;
}

.slide-text-col .btn-repair { background-color: #303a93; color: #fdfefe; }
.slide-text-col .btn-tms { background-color: #126e3a; color: #ffffff; }
.slide-text-col .btn-sms { background-color: #a3332e; color: #ffffff; }

.slide-img-wrapper {
  flex: 1.2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.slide-img-3d {
  width: 100%;
  max-width: 650px;
  border-radius: 12px;
  box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.15);
  transform: perspective(1200px) rotateY(-18deg) rotateX(6deg) rotateZ(-1deg);
  transform-origin: center right;
  transition: transform 0.5s ease;
  pointer-events: none;
}

/* Slider Navigation Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  color: #0d3c47;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: #c6e9d5;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.slider-dots {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #0d3c47;
  width: 28px;
  border-radius: 10px;
}

/* ==========================================================================
   Scroll Reveal System
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================================================
   Problems We Solve Section (Ambient Glow Backdrop)
   ========================================================================== */

.problems-section-wrapper {
  position: relative;
  background-color: #fcfbfa;
  overflow: hidden;
}

.problems-section-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 80%;
  background: radial-gradient(
    circle at center,
    rgba(240, 215, 205, 0.45) 0%,
    rgba(245, 225, 215, 0.25) 40%,
    rgba(252, 251, 250, 0) 70%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.problems-section-wrapper .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.problems-section {
  margin: 60px auto;
}

.problems-section .section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.problems-section .section-badge {
  color: #0d3c47;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.problems-section h2 {
  font-size: 2.2rem;
  color: #0d3c47;
  font-weight: 700;
  margin-top: 8px;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.problem-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.problem-card .card-tag {
  background: #e2f1ec;
  color: #0d3c47;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 1.3rem;
  color: #0d3c47;
  font-weight: 700;
  margin-bottom: 12px;
}

.problem-card .problem-text {
  color: #e53e3e;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.problem-card .solution-text {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.problem-card .card-link {
  color: #0d3c47;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

/* ==========================================================================
   Call to Action Banner Section & Path Drawing Animation
   ========================================================================== */

.cta-banner-wrapper {
  max-width: 1200px;
  margin: 80px auto 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.cta-banner {
  background: linear-gradient(135deg, #0d3c47 0%, #082931 100%);
  border-radius: 24px;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(13, 60, 71, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.cta-banner-bg-svg {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  opacity: 0.2;
  pointer-events: none;
}

#animatedDottedPath {
  stroke-dasharray: 8 8;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.path-node {
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Scroll reveal triggers path animation */
.reveal-on-scroll.is-visible #animatedDottedPath {
  stroke-dashoffset: 0;
}

.reveal-on-scroll.is-visible .node-1 { opacity: 1; transform: scale(1); transition-delay: 0.6s; }
.reveal-on-scroll.is-visible .node-2 { opacity: 1; transform: scale(1); transition-delay: 1.2s; }
.reveal-on-scroll.is-visible .node-3 { opacity: 1; transform: scale(1); transition-delay: 1.8s; }
.reveal-on-scroll.is-visible .node-4 { opacity: 1; transform: scale(1); transition-delay: 2.2s; }

.cta-content {
  max-width: 580px;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.8rem;
  color: #ffffff;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.15;
}

.cta-content p {
  font-size: 1.15rem;
  color: #c0d8de;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 32px 0;
}

.cta-btn-pill {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  color: #0d3c47;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 40px;
  padding: 6px 6px 6px 24px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-btn-pill .arrow-icon {
  background-color: #0d3c47;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  font-size: 1.1rem;
}

.cta-banner-icons {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 250px;
}

.cta-icon-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  color: #ffffff;
}

.cta-icon-box .icon { font-size: 1.3rem; margin-bottom: 4px; }
.cta-icon-box .label { font-size: 0.75rem; font-weight: 500; color: #e2f1ec; }

/* ==========================================================================
   Footer Section
   ========================================================================== */

.main-footer {
  background-color: #031419;
  margin-top: -120px;
  padding: 180px 20px 40px 20px;
  color: #a0aec0;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #8197a4;
  margin: 0;
}

.footer-links-group {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 16px 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-col a {
  color: #8197a4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 30px;
  font-size: 0.85rem;
  color: #607582;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: #607582;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Mobile & Media Query Styles
   ========================================================================== */

@media (max-width: 900px) {
  .slide {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
  }
  
  .slide-text-col {
    padding-right: 0;
    margin-bottom: 30px;
    max-width: 100%;
    width: 100%;
  }

  .slide-img-wrapper {
    width: 100%;
    justify-content: center;
  }

  .slide-img-3d {
    max-width: 100%;
    transform: perspective(1000px) rotateY(-10deg) rotateX(4deg); 
  }
}

@media (max-width: 768px) {
  h1, .slide h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
  }

  header.floating-pill {
    width: calc(100% - 24px) !important;
    margin: 10px auto !important;
    padding: 8px 14px !important;
    top: 10px !important;
  }

  header.floating-pill .top-menu {
    display: none !important;
  }

  .cta-banner-bg-svg {
    display: none !important;
  }

  .cta-banner-icons {
    max-width: 100% !important;
    justify-content: center !important;
  }
}
/* ==========================================================================
   Simple Contact Us Page (Overlapping Footer Effect)
   ========================================================================== */

.contact-section {
  max-width: 900px;
  margin: 60px auto -140px auto; /* Negative bottom margin pulls footer up */
  padding: 0 20px;
  position: relative;
  z-index: 10; /* Ensures card floats cleanly above the footer */
}

.contact-simple-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  border: 1px solid rgba(13, 60, 71, 0.12);
  /* Enhanced shadow to separate card from dark footer */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-simple-card h2 {
  font-size: 2.8rem;
  color: #0d3c47;
  font-weight: 700;
  margin: 12px 0 16px 0;
  line-height: 1.2;
}

.contact-simple-card > p {
  font-size: 1.15rem;
  color: #5a6a75;
  margin: 0 auto 50px auto;
  max-width: 550px;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.contact-detail-box {
  background: #fcfbfa;
  border-radius: 16px;
  padding: 32px 24px;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-detail-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(13, 60, 71, 0.08);
}

.detail-icon {
  background: #e2f1ec;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px auto;
}

.contact-detail-box h3 {
  font-size: 1.25rem;
  color: #0d3c47;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.contact-detail-box p {
  font-size: 0.95rem;
  color: #5a6a75;
  margin: 0 0 16px 0;
}

.contact-link {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d3c47;
  text-decoration: none;
  border-bottom: 2px solid #0d3c47;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover {
  color: #6b2b65;
  border-color: #6b2b65;
}

.contact-address {
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d3c47;
}

/* Adjust footer top padding specifically when on contact page or overall */
body:has(.contact-section) .main-footer {
  padding-top: 220px; /* Gives the card room to nest neatly inside the dark area */
}

@media (max-width: 600px) {
  .contact-section {
    margin-bottom: -180px;
  }
  
  .contact-simple-card {
    padding: 40px 20px;
  }
  
  .contact-simple-card h2 {
    font-size: 2rem;
  }
}