/* ============================================================
   NexGen Comfort Services — Global Custom CSS
   Roby Services-Inspired Layout | NexGen Brand Colors
   
   HOW TO USE:
   Paste this into WordPress → Appearance → Customize → Additional CSS
   OR Elementor → Site Settings → Custom CSS (wrap in selector)
   ============================================================ */

/* ----------------------------------------------------------
   CSS VARIABLES — UPDATE THESE TO MATCH YOUR BRAND
   ---------------------------------------------------------- */
:root {
  /* Primary Brand Colors — Red, White & Blue (matches logo) */
  --nexgen-primary: #1B3A6B;       /* Deep blue (main brand color) */
  --nexgen-primary-dark: #0F2850;  /* Darker blue for hover states */
  --nexgen-primary-light: #3B6EAE; /* Lighter blue for accents */
  --nexgen-secondary: #C41E3A;     /* Red accent (CTA buttons, highlights) */
  --nexgen-secondary-dark: #A3182F;/* Darker red for hover */
  --nexgen-secondary-light: #E63950;/* Lighter red */
  
  /* Neutrals */
  --nexgen-white: #FFFFFF;
  --nexgen-off-white: #F8F9FA;
  --nexgen-light-gray: #E9ECEF;
  --nexgen-medium-gray: #6C757D;
  --nexgen-dark-gray: #343A40;
  --nexgen-black: #212529;
  
  /* Functional Colors */
  --nexgen-success: #28A745;
  --nexgen-warning: #FFC107;
  --nexgen-danger: #DC3545;
  --nexgen-info: #17A2B8;
  
  /* Typography */
  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --section-padding-mobile: 50px 0;
  --container-max: 1200px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
  
  /* Borders */
  --border-radius: 6px;
  --border-radius-lg: 12px;
  
  /* Transitions */
  --transition: all 0.3s ease;
}


/* ----------------------------------------------------------
   GLOBAL TYPOGRAPHY
   ---------------------------------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--nexgen-dark-gray);
  line-height: 1.7;
  font-size: 16px;
}

html,
body {
  overflow-x: hidden;
}

/* Logo text styles */
.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--nexgen-primary);
  text-decoration: none;
  line-height: 1.2;
  display: inline-block;
  text-align: center;
}
.logo-text span { color: var(--nexgen-secondary); }
.logo-text small {
  display: block;
  text-align: center;
  letter-spacing: 3px;
}
.logo-text-white { color: var(--nexgen-primary); }
.logo-text-white span { color: var(--nexgen-secondary); }
.logo-text-white small { color: rgba(255,255,255,0.9); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--nexgen-primary);
  line-height: 1.3;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }

p {
  margin-bottom: 1rem;
  color: var(--nexgen-dark-gray);
}

a {
  color: var(--nexgen-secondary);
  transition: var(--transition);
}

a:hover {
  color: var(--nexgen-secondary-dark);
  text-decoration: none;
}


/* ----------------------------------------------------------
   TOP UTILITY BAR (Sticky — above main nav)
   Roby-style: dark bar with phone, links, social icons
   ---------------------------------------------------------- */
.nexgen-top-bar {
  background-color: var(--nexgen-primary-dark);
  padding: 8px 0;
  font-size: 14px;
  color: var(--nexgen-white);
  position: relative;
  z-index: 1000;
}

.nexgen-top-bar a {
  color: var(--nexgen-white);
  text-decoration: none;
  transition: var(--transition);
}

.nexgen-top-bar a:hover {
  color: var(--nexgen-secondary);
}

.nexgen-top-bar .phone-link {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.nexgen-top-bar .phone-link i {
  margin-right: 6px;
  color: var(--nexgen-secondary);
}

.nexgen-top-bar .top-bar-cta {
  background-color: var(--nexgen-secondary);
  color: var(--nexgen-white);
  padding: 5px 16px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.nexgen-top-bar .top-bar-cta:hover {
  background-color: var(--nexgen-secondary-dark);
  color: var(--nexgen-white);
}

.nexgen-top-bar .social-icons a {
  margin-left: 12px;
  font-size: 15px;
}

.nexgen-top-bar .social-icons {
  display: none !important;
}

.nexgen-top-bar .social-icons a:hover {
  color: var(--nexgen-secondary);
  transform: scale(1.1);
}


/* ----------------------------------------------------------
   MAIN HEADER / NAVIGATION
   ---------------------------------------------------------- */
.nexgen-header {
  background-color: var(--nexgen-white);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition);
}

.nexgen-header.scrolled {
  padding: 6px 0;
  box-shadow: var(--shadow-md);
}

.nexgen-header .site-logo img {
  max-height: 60px;
  transition: var(--transition);
}

.nexgen-header.scrolled .site-logo img {
  max-height: 45px;
}

/* Badge near logo */
.nexgen-header .header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--nexgen-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 20px;
  margin-right: 24px;
  padding: 6px 14px;
  border: 2px solid var(--nexgen-secondary);
  border-radius: var(--border-radius);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Main navigation links */
.nexgen-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nexgen-nav ul li a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--nexgen-dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.nexgen-nav ul li a:hover,
.nexgen-nav ul li.current a {
  color: var(--nexgen-secondary);
  border-bottom-color: var(--nexgen-secondary);
}

/* Services dropdown */
.nexgen-nav .dropdown {
  position: relative;
}

.nexgen-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nexgen-white);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  min-width: 260px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  display: block;
  flex-direction: unset;
  gap: 0;
}

.nexgen-nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nexgen-nav .dropdown-menu li {
  display: block;
}

.nexgen-nav .dropdown-menu li a {
  padding: 10px 24px;
  display: block;
  font-size: 14px;
  text-transform: none;
  border-bottom: none;
  border-left: 3px solid transparent;
}

.nexgen-nav .dropdown-menu li a:hover {
  background: var(--nexgen-off-white);
  border-left-color: var(--nexgen-secondary);
}

/* Header CTA button */
.nexgen-nav .nav-cta {
  background-color: var(--nexgen-secondary);
  color: var(--nexgen-white) !important;
  padding: 10px 18px !important;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px !important;
  letter-spacing: 0.5px;
  border-bottom: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.nexgen-nav .nav-cta:hover {
  background-color: var(--nexgen-secondary-dark);
  color: var(--nexgen-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* GET A QUOTE button (accent — stands out from other nav) */
.nexgen-nav .quote-cta {
  background-color: var(--nexgen-primary);
  color: var(--nexgen-white) !important;
  padding: 10px 16px !important;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 12px !important;
  text-transform: uppercase;
  border-bottom: none !important;
  margin-left: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nexgen-nav .quote-cta:hover {
  background-color: var(--nexgen-primary-dark);
}


/* ----------------------------------------------------------
   HERO SECTION
   ---------------------------------------------------------- */
.nexgen-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.nexgen-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15,42,69,0.88) 0%, rgba(27,58,92,0.75) 100%);
  z-index: 1;
}

.nexgen-hero .hero-content {
  position: relative;
  z-index: 2;
  color: var(--nexgen-white);
  max-width: 600px;
}

.nexgen-hero h1 {
  color: var(--nexgen-white);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.nexgen-hero h2 {
  color: var(--nexgen-secondary);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 30px;
}

.nexgen-hero .hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero inline form (right side) */
.nexgen-hero .hero-form {
  position: relative;
  z-index: 2;
  background: var(--nexgen-white);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 380px;
}

.nexgen-hero .hero-form h3 {
  color: var(--nexgen-primary);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.nexgen-hero .hero-form p {
  font-size: 14px;
  color: var(--nexgen-medium-gray);
  margin-bottom: 20px;
}


/* ----------------------------------------------------------
   BUTTONS (Global Styles)
   ---------------------------------------------------------- */
.btn-primary {
  background-color: var(--nexgen-secondary);
  color: var(--nexgen-white);
  padding: 14px 32px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--nexgen-secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--nexgen-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--nexgen-white);
  padding: 14px 32px;
  border: 2px solid var(--nexgen-white);
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--nexgen-white);
  color: var(--nexgen-primary);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--nexgen-primary);
  color: var(--nexgen-white);
  padding: 14px 32px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-dark:hover {
  background-color: var(--nexgen-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--nexgen-white);
}


/* ----------------------------------------------------------
   FORM INPUTS (Global)
   ---------------------------------------------------------- */
.nexgen-form input[type="text"],
.nexgen-form input[type="email"],
.nexgen-form input[type="tel"],
.nexgen-form input[type="number"],
.nexgen-form select,
.nexgen-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--nexgen-light-gray);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--nexgen-dark-gray);
  background: var(--nexgen-white);
  transition: var(--transition);
  margin-bottom: 12px;
}

.nexgen-form input:focus,
.nexgen-form select:focus,
.nexgen-form textarea:focus {
  border-color: var(--nexgen-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232,121,43, 0.15);
}

.nexgen-form label {
  font-weight: 600;
  font-size: 14px;
  color: var(--nexgen-dark-gray);
  margin-bottom: 4px;
  display: block;
}

.nexgen-form .form-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}


/* ----------------------------------------------------------
   PROMO / SPECIALS CAROUSEL
   ---------------------------------------------------------- */
.nexgen-promo-carousel {
  background: var(--nexgen-off-white);
  padding: 40px 0;
}

.nexgen-promo-slide {
  background: linear-gradient(135deg, var(--nexgen-primary) 0%, var(--nexgen-primary-light) 100%);
  color: var(--nexgen-white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nexgen-promo-slide h3 {
  color: var(--nexgen-white);
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.nexgen-promo-slide p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin-bottom: 20px;
}

.nexgen-promo-slide .promo-expiry {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 12px;
}


/* ----------------------------------------------------------
   VALUE PROPS STRIP (Why Choose NexGen)
   ---------------------------------------------------------- */
.nexgen-value-props {
  background-color: var(--nexgen-primary);
  padding: 30px 0;
}

.nexgen-value-props .value-item {
  text-align: center;
  color: var(--nexgen-white);
  padding: 16px 12px;
}

.nexgen-value-props .value-item i {
  font-size: 28px;
  color: var(--nexgen-secondary);
  margin-bottom: 10px;
  display: block;
}

.nexgen-value-props .value-item h4 {
  color: var(--nexgen-white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}


/* ----------------------------------------------------------
   SERVICE CARDS GRID
   ---------------------------------------------------------- */
.nexgen-services-grid {
  padding: var(--section-padding);
}

.nexgen-service-card {
  background: var(--nexgen-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.nexgen-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.nexgen-service-card .card-image {
  height: 200px;
  overflow: hidden;
}

.nexgen-service-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.nexgen-service-card:hover .card-image img {
  transform: scale(1.08);
}

.nexgen-service-card .card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.nexgen-service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--nexgen-primary);
}

.nexgen-service-card p {
  font-size: 15px;
  color: var(--nexgen-medium-gray);
  flex-grow: 1;
}

.nexgen-service-card .card-link {
  font-weight: 700;
  color: var(--nexgen-secondary);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.nexgen-service-card .card-link:hover {
  gap: 10px;
}

.nexgen-service-card .card-link::after {
  content: '→';
  transition: var(--transition);
}


/* ----------------------------------------------------------
   ABOUT / GET TO KNOW US SECTION
   ---------------------------------------------------------- */
.nexgen-about-section {
  padding: var(--section-padding);
  background: var(--nexgen-off-white);
}

.nexgen-about-section .about-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.nexgen-about-section .about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ----------------------------------------------------------
   MAINTENANCE MEMBERSHIP PLANS
   ---------------------------------------------------------- */
.nexgen-membership {
  padding: var(--section-padding);
}

.nexgen-plan-card {
  background: var(--nexgen-white);
  border: 2px solid var(--nexgen-light-gray);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  height: 100%;
}

.nexgen-plan-card:hover {
  border-color: var(--nexgen-secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.nexgen-plan-card.featured {
  border-color: var(--nexgen-secondary);
  box-shadow: var(--shadow-md);
}

.nexgen-plan-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nexgen-secondary);
  color: var(--nexgen-white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.nexgen-plan-card .plan-name {
  font-size: 1.25rem;
  color: var(--nexgen-primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.nexgen-plan-card .plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--nexgen-secondary);
  margin-bottom: 4px;
}

.nexgen-plan-card .plan-period {
  font-size: 14px;
  color: var(--nexgen-medium-gray);
  margin-bottom: 24px;
}

.nexgen-plan-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.nexgen-plan-card .plan-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--nexgen-light-gray);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nexgen-plan-card .plan-features li::before {
  content: '✓';
  color: var(--nexgen-success);
  font-weight: 700;
  flex-shrink: 0;
}


/* ----------------------------------------------------------
   TESTIMONIALS / REVIEWS CAROUSEL
   ---------------------------------------------------------- */
.nexgen-testimonials {
  padding: var(--section-padding);
  background: var(--nexgen-off-white);
}

.nexgen-testimonial-card {
  background: var(--nexgen-white);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.nexgen-testimonial-card::before {
  content: '"';
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--nexgen-secondary);
  opacity: 0.2;
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
}

.nexgen-testimonial-card .review-text {
  font-size: 16px;
  font-style: italic;
  color: var(--nexgen-dark-gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.nexgen-testimonial-card .reviewer-name {
  font-weight: 700;
  color: var(--nexgen-primary);
  font-size: 15px;
}

.nexgen-testimonial-card .review-stars {
  color: var(--nexgen-warning);
  font-size: 16px;
  margin-bottom: 12px;
}


/* ----------------------------------------------------------
   SERVICE AREA MAP SECTION
   ---------------------------------------------------------- */
.nexgen-service-area {
  padding: var(--section-padding);
}

.nexgen-service-area .area-map {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.nexgen-service-area .area-map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.nexgen-service-area .area-cities {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.nexgen-service-area .area-cities li {
  padding: 8px 12px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nexgen-service-area .area-cities li::before {
  content: '📍';
  font-size: 14px;
}


/* ----------------------------------------------------------
   TRUST BADGES / ACCREDITATION STRIP
   ---------------------------------------------------------- */
.nexgen-trust-badges {
  padding: 40px 0;
  background: var(--nexgen-off-white);
  border-top: 1px solid var(--nexgen-light-gray);
  border-bottom: 1px solid var(--nexgen-light-gray);
}

.nexgen-trust-badges .badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.nexgen-trust-badges img {
  max-height: 60px;
  opacity: 0.7;
  transition: var(--transition);
  filter: grayscale(30%);
}

.nexgen-trust-badges img:hover {
  opacity: 1;
  filter: grayscale(0%);
}


/* ----------------------------------------------------------
   FOOTER CTA SECTION
   ---------------------------------------------------------- */
.nexgen-footer-cta {
  background: linear-gradient(135deg, var(--nexgen-primary) 0%, var(--nexgen-primary-dark) 100%);
  padding: 60px 0;
  text-align: center;
}

.nexgen-footer-cta h2 {
  color: var(--nexgen-white);
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.nexgen-footer-cta .phone-number {
  color: var(--nexgen-secondary);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 24px;
}


/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
.nexgen-footer {
  background-color: var(--nexgen-black);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.nexgen-footer h4 {
  color: var(--nexgen-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nexgen-footer a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  display: block;
  padding: 4px 0;
  transition: var(--transition);
}

.nexgen-footer a:hover {
  color: var(--nexgen-secondary);
  padding-left: 4px;
}

.nexgen-footer .footer-logo {
  max-width: 180px;
  margin-bottom: 16px;
}

.nexgen-footer .footer-contact p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.nexgen-footer .footer-contact i {
  color: var(--nexgen-secondary);
  width: 20px;
  margin-right: 8px;
}

.nexgen-footer .footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.nexgen-footer .footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 0;
}

.nexgen-footer .footer-social a:hover {
  background: var(--nexgen-secondary);
  color: var(--nexgen-white);
  padding-left: 0;
}

.nexgen-footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 16px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}


/* ----------------------------------------------------------
   PAGE HERO BANNERS (Inner Pages)
   ---------------------------------------------------------- */
.nexgen-page-hero {
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  position: relative;
  text-align: center;
}

.nexgen-page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15,42,69,0.9) 0%, rgba(27,58,92,0.8) 100%);
}

.nexgen-page-hero h1 {
  position: relative;
  z-index: 2;
  color: var(--nexgen-white);
  font-size: 2.5rem;
  margin: 0;
}

.nexgen-page-hero .breadcrumb {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-top: 12px;
}

.nexgen-page-hero .breadcrumb a {
  color: var(--nexgen-secondary);
}


/* ----------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------- */

/* --- TABLET: max-width 1024px --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  :root { --section-padding: 60px 0; }

  .nexgen-header {
    z-index: 3000;
  }

  .nexgen-header > div {
    position: relative;
    gap: 10px;
  }

  .nexgen-header > div > div:first-child {
    min-width: 0;
  }

  .nexgen-header .header-badge {
    margin-left: 10px;
    margin-right: 0;
    padding: 5px 10px;
    font-size: 10px;
    flex-shrink: 1;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-menu-toggle {
    display: block !important;
    position: relative;
    z-index: 3200;
    flex-shrink: 0;
  }

  .nexgen-nav {
    display: none !important;
  }

  .nexgen-nav.open {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--nexgen-white) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 16px !important;
    z-index: 3100 !important;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .nexgen-nav.open ul {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .nexgen-nav.open ul li {
    width: 100%;
  }

  .nexgen-nav.open ul li a {
    display: block !important;
    width: 100%;
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--nexgen-light-gray) !important;
  }

  .nexgen-nav.open .dropdown {
    position: static;
  }

  .nexgen-nav.open .dropdown-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    min-width: 0 !important;
    width: 100% !important;
    background: var(--nexgen-off-white) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none !important;
  }

  .nexgen-nav.open .dropdown:hover .dropdown-menu,
  .nexgen-nav.open .dropdown:focus-within .dropdown-menu {
    display: block !important;
  }

  .nexgen-nav.open .dropdown-menu li a {
    font-size: 15px !important;
    text-transform: none !important;
    padding: 10px 28px !important;
    border-left: none !important;
  }

  .nexgen-nav .quote-cta,
  .nexgen-nav .nav-cta {
    margin-left: 0 !important;
    text-align: center;
  }

  /* Hide header CTA on tablet — hamburger menu takes over */
  .nexgen-header .header-cta {
    display: none !important;
  }

  /* Hero: stack text + form vertically */
  .nexgen-hero .elementor-container {
    flex-direction: column !important;
    gap: 24px !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .nexgen-hero .hero-content,
  .nexgen-hero .hero-form {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .nexgen-hero .hero-form {
    max-width: 480px !important;
  }

  /* About section: stack image + text */
  .nexgen-about-section .elementor-container {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .nexgen-about-section .about-image,
  .nexgen-about-section [style*="flex: 1"] {
    flex: none !important;
    width: 100% !important;
  }

  /* Service area: stack map + cities */
  .nexgen-service-area .elementor-container {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .nexgen-service-area .area-map,
  .nexgen-service-area [style*="flex: 0.8"] {
    flex: none !important;
    width: 100% !important;
  }

  /* Service cards: 2 columns on tablet */
  .nexgen-services-grid [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Footer: 2 columns on tablet */
  .nexgen-footer .footer-grid,
  .nexgen-footer [style*="grid-template-columns: 1.3fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}


/* --- MOBILE: max-width 768px --- */
@media (max-width: 768px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.35rem; }

  :root { --section-padding: var(--section-padding-mobile); }

  /* === HERO === */
  .nexgen-hero {
    min-height: auto !important;
    padding: 40px 0 !important;
  }
  .nexgen-hero h1 {
    font-size: 1.65rem !important;
  }
  .nexgen-hero h2 {
    font-size: 1rem !important;
  }
  .nexgen-hero .hero-form {
    margin-top: 0 !important;
    max-width: 100% !important;
  }
  .hero-buttons {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .hero-buttons a {
    text-align: center !important;
    width: 100% !important;
    justify-content: center !important;
  }

  /* === VALUE PROPS: stack vertically === */
  .nexgen-value-props .elementor-container {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
  }
  .nexgen-value-props .value-item {
    padding: 12px 8px !important;
    width: 100% !important;
    text-align: center !important;
  }
  .nexgen-value-props .value-item h4 {
    font-size: 13px;
  }

  /* === SERVICE CARDS: single column === */
  .nexgen-services-grid [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* === MEMBERSHIP PLANS: single column === */
  .nexgen-membership [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* === TESTIMONIALS: single column === */
  .nexgen-testimonials [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* === SERVICE AREA: cities list single-col === */
  .nexgen-service-area .area-cities {
    grid-template-columns: 1fr !important;
  }

  /* === TRUST BADGES === */
  .nexgen-trust-badges .badges-row {
    gap: 16px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  /* === FOOTER CTA === */
  .nexgen-footer-cta h2 {
    font-size: 1.5rem !important;
  }
  .nexgen-footer-cta .phone-number {
    font-size: 1.6rem !important;
  }
  .nexgen-footer-cta [style*="display: flex"] {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
  }

  /* === FOOTER GRID: single column === */
  .nexgen-footer .footer-grid,
  .nexgen-footer [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* === TOP BAR === */
  .nexgen-top-bar {
    font-size: 13px;
  }
  .nexgen-top-bar .elementor-container,
  .nexgen-top-bar > div {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }

  .logo-text {
    font-size: 18px !important;
  }

  .logo-text small {
    letter-spacing: 2px;
  }

  .nexgen-header .header-badge {
    max-width: 180px;
    font-size: 9px;
    padding: 4px 8px;
  }

  /* === NAV === */
  .nexgen-nav ul {
    gap: 16px;
  }

  /* === ABOUT BUTTONS: stack === */
  .nexgen-about-section [style*="display: flex"][style*="gap: 12px"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .nexgen-about-section [style*="display: flex"][style*="gap: 12px"] a {
    text-align: center !important;
  }

  /* === GENERIC CATCH-ALL: override any remaining inline grids === */
  /* 3-column grids → 1 column */
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  /* 4-column grids → 2 columns */
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* 5-column grids → 2 columns */
  [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Custom-ratio footer grids → 1 column */
  [style*="grid-template-columns: 1.3fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Any flex containers with large gaps → stack */
  [style*="gap: 48px"] {
    flex-direction: column !important;
    gap: 24px !important;
  }
  [style*="gap: 40px"] {
    gap: 24px !important;
  }

  /* === CONTACT PAGE: stack form + sidebar === */
  [style*="display: flex"][style*="gap: 48px"] {
    flex-direction: column !important;
    gap: 24px !important;
  }
  /* 2-col form grids → 1 column on mobile */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* === FINANCING PAGE: 2-col → 1-col === */
  [style*="grid-template-columns: 1fr 1fr"][style*="gap: 32px"] {
    grid-template-columns: 1fr !important;
  }

  /* === REVIEWS PAGE: stats row === */
  [style*="display: flex"][style*="gap: 60px"] {
    flex-direction: column !important;
    gap: 24px !important;
    align-items: center !important;
  }

  /* === PREVIEW BAR: compact on mobile === */
  .preview-bar {
    flex-wrap: wrap !important;
    gap: 6px !important;
    font-size: 10px !important;
    padding: 6px 10px !important;
  }
  .preview-bar a {
    font-size: 9px !important;
    padding: 3px 6px !important;
  }
  .preview-bar span {
    display: none !important;
  }
}


/* --- SMALL MOBILE: max-width 480px --- */
@media (max-width: 480px) {
  .nexgen-hero h1 {
    font-size: 1.4rem !important;
  }
  .nexgen-hero .elementor-container {
    padding: 20px 16px !important;
  }

  /* Tighter section padding */
  section .elementor-container,
  section > div[style*="max-width"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .btn-primary, .btn-secondary, .btn-dark {
    padding: 12px 24px;
    font-size: 14px;
  }

  .nexgen-promo-slide {
    padding: 20px !important;
  }

  .nexgen-footer-cta .phone-number {
    font-size: 1.3rem !important;
  }

  .nexgen-header .header-badge {
    max-width: 160px;
  }

  /* 4-column grids → 1 column on small mobile */
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: 1fr !important;
  }

  /* Value props horizontal scroll or tight wrap */
  .nexgen-value-props .value-item i {
    font-size: 20px !important;
  }
}
