/* ==========================================
   PREMIUM PROFESSIONAL VARIATION VARIABLES
   ========================================== */
:root {
  --green: #59a63a;         /* Electric Green */
  --green-dark: #418225;
  --green-light: #f1f8ee;
  --navy: #102336;          /* Deep Navy Base */
  --navy-dark: #091521;
  --navy-light: #1b354f;
  --sky: #47b3e5;           /* Sky Blue Accent */
  --sky-light: #e6f6fd;
  
  --ink: #1e2833;           
  --muted: #627282;         
  --bg: #ffffff;            
  --light: #f7fafc;         
  --card: #ffffff;
  --border: #e2eaf1;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Adjustments & Pseudo-Element Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  margin: 0;
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, .font-heading {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Defensive container boundaries */
section, header, .hero, .quote-section {
  width: 100%;
  position: relative;
  overflow: hidden;
}

section {
  padding: clamp(3rem, 6vw, 6.5rem) 0;
}

/* Core Responsive Utility Refinements */
.text-navy { color: var(--navy) !important; }
.text-green { color: var(--green) !important; }
.text-sky { color: var(--sky) !important; }
.text-muted-premium { color: var(--muted) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-white { background-color: var(--bg) !important; }

/* Custom Max-Width Wrappers to maintain layout balance on Mobile alignment switches */
.max-w-lg-none { max-width: 100%; }
@media (max-width: 991.98px) {
  .max-w-lg-none { max-width: 550px; }
  .max-w-md-none { max-width: 480px; }
  .max-w-sm-custom { max-width: 400px; }
  .max-w-xs-custom { max-width: 280px; }
}
.style-width-fit { width: fit-content; }

/* Gradient Headings */
.text-gradient {
  background: linear-gradient(135deg, var(--green) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Premium Buttons Button Systems */
.btn-premium-primary {
  background-color: var(--green);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 39px;
  padding: 0.75rem 2rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(89, 166, 58, 0.3);
}
.btn-premium-primary:hover {
  background-color: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(89, 166, 58, 0.4);
}

.btn-premium-accent {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 2.25rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(89, 166, 58, 0.25);
}
.btn-premium-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(89, 166, 58, 0.45);
  color: #fff;
}

.btn-premium-outline {
  background-color: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 2rem;
  transition: var(--transition);
}
.btn-premium-outline:hover {
  background-color: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* Navbar Execution Mobile Optimization */
.navbar {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 0 1rem 1.5rem;
    margin-top: 0.5rem;
  }
}
.navbar .nav-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}
.navbar .nav-link:hover {
  color: var(--green);
}
.phone-link:hover span {
  color: var(--sky);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(16, 35, 54, 0.2);
}
.logo-mark i {
  color: var(--green);
  font-size: 1.2rem;
}
.logo-text {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--navy);
}
.logo-text small {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 2px;
}

/* High-End Hero Section Fluid Framework */
.hero {
  background: radial-gradient(circle at 50% 100%, var(--green-light) 0%, #ffffff 70%, var(--sky-light) 100%);
  padding: 4.5rem 0 5rem;
  min-height: auto;
}
@media (min-width: 992px) {
  .hero {
    background: radial-gradient(circle at 80% 20%, var(--sky-light) 0%, #ffffff 50%, var(--green-light) 100%);
    padding: 8rem 0 7rem;
    min-height: 80vh;
  }
}
.hero-badge {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Fallback wrapping logic for hero strings on absolute mobile viewports */
.hero-perks span {
  white-space: normal;
}
@media (min-width: 768px) {
  .hero-perks span {
    white-space: nowrap;
  }
}

.hero-img-wrapper {
  z-index: 1;
}
.hero-img {
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(16, 35, 54, 0.15);
  transition: transform 0.5s ease;
}
@media (min-width: 576px) {
  .hero-img { border-radius: var(--radius-lg); }
}
.hero-img-wrapper:hover .hero-img {
  transform: scale(1.01);
}
.hero-decorative-bg {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(71,179,229,0.25) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
}
.secondary-glow {
  background: radial-gradient(circle, rgba(89,166,58,0.2) 0%, rgba(255,255,255,0) 70%);
}

/* Float Stat Panel Over Sections - Adaptive Compression */
.stat-strip {
  margin-top: -3.5rem;
  padding: 0 10px;
}
@media (min-width: 576px) {
  .stat-strip {
    margin-top: -4.5rem;
    padding: 0;
  }
}
.stat-card {
  border-radius: var(--radius-md) !important;
  background: #ffffff;
  border: 1px solid var(--border) !important;
}
.stat-num {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 3.5vw, 2.1rem);
  color: var(--navy);
  line-height: 1.2;
}
.text-break-custom {
  word-break: break-word;
  hyphens: auto;
}
.tracking-wider {
  letter-spacing: 0.04em;
  font-size: 0.62rem;
}

/* Division lines for Stats desktop layout */
@media (min-width: 768px) {
  .division-panels > div:not(:last-child) {
    border-right: 1px solid var(--border);
  }
  .tracking-wider {
    letter-spacing: 0.08em;
    font-size: 0.75rem;
  }
}

/* Structural Components */
.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}
.section-eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: var(--green);
}
.section-title {
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  font-weight: 800;
}
.section-bar {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--sky));
  border-radius: 2px;
}

/* Cards Elevation & Premium Micro-Interactions */
.service-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: var(--transition);
}
@media (min-width: 576px) {
  .service-card { padding: 2.25rem 2rem; }
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(16, 35, 54, 0.08);
  border-color: var(--sky);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background-color: var(--sky-light);
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background-color: var(--green);
  color: #fff;
  transform: rotate(6deg);
}

/* Dynamic Step Interlock layout */
.step-num {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--sky) 0%, var(--navy) 100%);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(71,179,229,0.25); /* FIXED: Missing px identifier */
}

/* Why Premium Grid */
.why-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--green-light);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* Dark Mode Quote Form Layout */
.quote-section {
  background-color: var(--navy-dark);
  color: #fff;
}
.quote-bg-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(89,166,58,0.12) 0%, rgba(0,0,0,0) 70%);
  bottom: -20%;
  left: -10%;
  filter: blur(40px);
}
.text-light-opaque {
  color: #a4b3c2;
}
.check-icon-premium {
  width: 26px;
  height: 26px;
  background-color: rgba(71, 179, 229, 0.15);
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.quote-card {
  background-color: #ffffff;
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 100%;
}
@media (min-width: 576px) {
  .quote-card {
    padding: 3rem;
    border-radius: var(--radius-lg);
  }
}

/* Sophisticated Form Fields */
.input-group-premium {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.input-group-premium .form-icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
  font-size: 1rem;
  z-index: 4;
}
.input-group-premium .form-control,
.input-group-premium .form-select {
  padding-left: 45px;
}
.form-control, .form-select {
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--border);
  background-color: var(--light);
  color: var(--navy);
  font-weight: 500;
  transition: var(--transition);
  width: 100%;
}
.form-control:focus, .form-select:focus {
  background-color: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(89, 166, 58, 0.12);
  color: var(--navy);
}
.form-label {
  font-weight: 700;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

/* Premium Footer Ecosystem */
.site-footer {
  background-color: var(--navy);
  border-top: 4px solid var(--green);
  position: relative;
}
.footer-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.footer-links a {
  color: #a4b3c2;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0;
}
.footer-links a:hover {
  color: var(--green);
  transform: translateX(4px);
}
.social-link {
  width: 38px;
  height: 38px;
  background-color: var(--navy-light);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.social-link:hover {
  background-color: var(--sky);
  color: #fff;
  transform: translateY(-3px);
}
.footer-bottom {
  border-color: rgba(255,255,255,0.08) !important;
}

/* Subtle Continuous Keyframe Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.animate-pulse {
  animation: pulse 2.5s infinite ease-in-out;
}

/* Global Grid Layout Safety Overrides */
@media (max-width: 767.98px) {
  .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
  }
  .container, .container-fluid {
    padding-right: 12px !important;
    padding-left: 12px !important;
    overflow: hidden;
  }
}

/* Premium Gallery Grid */
.premium-gallery {
  column-count: 1;
  column-gap: 1.5rem;
}
@media (min-width: 576px) { .premium-gallery { column-count: 2; } }
@media (min-width: 992px) { .premium-gallery { column-count: 3; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(16, 35, 54, 0.1);
  transition: var(--transition);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(16, 35, 54, 0.15);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 35, 54, 0.8) 0%, rgba(16, 35, 54, 0) 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-text {
  color: #fff;
  font-weight: 600;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  font-size: 1.1rem;
}
.gallery-item:hover .gallery-text {
  transform: translateY(0);
}