/* ==========================================================================
   INTEGRITY LANDSCAPES CHATTANOOGA - 2026 MODERN DESIGN SYSTEM
   Exact Owner Colors: Gold (#fcd555) | Slate (#2A3038) | Accent (#9a501e)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* Brand Color Tokens */
  --gold: #fcd555;
  --gold-hover: #fbc20a;
  --gold-light: #fef4cf;
  --gold-dark: #b89308;

  --dark-slate: #1a202c;
  --header-slate: #272f3d;
  --footer-slate: #1e2530;

  --accent-brown: #9a501e;
  --usmc-red: #C8102E;
  --body-bg: #f8fafc;
  --card-bg: #ffffff;
  --section-alt: #f1f5f9;

  --text-dark: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --glass-bg: rgba(39, 47, 61, 0.95);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--dark-slate);
  color: var(--gold);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 500;
}

.top-bar-links a:hover {
  color: var(--gold);
}

/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-md);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
  transition: transform 0.3s ease;
}

.brand-logo:hover img {
  transform: scale(1.06);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.15em;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  background-color: var(--gold);
  color: var(--dark-slate);
}

.nav-cta {
  background-color: var(--gold);
  color: var(--dark-slate) !important;
  font-weight: 800;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(252, 213, 85, 0.3);
}

.nav-cta:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--dark-slate);
  background-image: linear-gradient(135deg, rgba(26, 32, 44, 0.85) 0%, rgba(26, 32, 44, 0.65) 100%), url('../images/hero.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 5rem 0;
  overflow: hidden;
}

.hero-content {
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(252, 213, 85, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--gold);
  display: block;
}

.hero p {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
  text-align: center;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--dark-slate);
  box-shadow: 0 4px 16px rgba(252, 213, 85, 0.4);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 213, 85, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-phone {
  background-color: #22c55e;
  color: #fff;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

.btn-phone:hover {
  background-color: #16a34a;
  transform: translateY(-2px);
}

/* Feature Highlights Bar */
.feature-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--section-alt);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.feature-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
}

.feature-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--section-alt);
}

.section-gold {
  background-color: var(--gold);
  color: var(--dark-slate);
}

.section-dark {
  background-color: var(--dark-slate);
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  color: var(--accent-brown);
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.section-gold .section-subtitle {
  color: var(--dark-slate);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-gold .section-title {
  color: var(--dark-slate);
}

.section-dark .section-title {
  color: #fff;
}

.section-divider {
  width: 60px;
  height: 4px;
  background-color: var(--accent-brown);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-gold .section-divider {
  background-color: var(--dark-slate);
}

/* Problem-Solution Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

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

.service-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--section-alt);
}

/* E-E-A-T Trust Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-grid img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-grid img {
    height: 320px;
  }
}

.about-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.about-content p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.trust-badge-item {
  background: rgba(255,255,255,0.25);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--dark-slate);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,32,44,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: #fff;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: var(--gold);
  font-size: 1rem;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Local Service Area Pills */
.service-area-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.area-pill {
  background: var(--card-bg);
  border: 1px solid var(--gold);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark-slate);
  box-shadow: var(--shadow-sm);

}

/* FAQ Accordion */
.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--section-alt);
}

.accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
}

.accordion-header:hover {
  color: var(--accent-brown);
}

.accordion-icon {
  width: 28px;
  height: 28px;
  background: var(--gold-light);
  color: var(--dark-slate);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  background: var(--gold);
}

.accordion-body {
  padding: 0 1.5rem 1.25rem;
  display: none;
  color: var(--text-main);
  line-height: 1.7;
}

.accordion-item.active .accordion-body {
  display: block;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 640px) {
  .contact-card {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
  }
}

.form-group {
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1.1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--dark-slate);
  box-shadow: 0 0 0 3px rgba(252, 213, 85, 0.3);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
  max-width: 100%;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .map-wrapper {
    min-height: 280px;
  }
  .map-wrapper iframe {
    min-height: 280px;
  }
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* Footer */
.main-footer {
  background-color: var(--footer-slate);
  color: var(--text-light);
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Trident USMC Red Footer Credit */
.trident-credit {
  color: var(--usmc-red) !important;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.trident-credit:hover {
  color: #ff2a55 !important;
  text-decoration: underline;
}

/* SVG Inline Icon Utilities */
.svg-icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
  fill: currentColor;
}

.feature-icon .svg-icon {
  width: 26px;
  height: 26px;
  vertical-align: middle;
}

/* 3D Glassmorphic Category Icons */
.heading-3d-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  margin-right: 0.5rem;
}

/* Responsive Mobile Navigation & Header Optimization */
@media (max-width: 960px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-slate);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 0.75rem;
    display: none;
    box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--gold);
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 0.4rem 0;
    font-size: 0.8rem;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.3rem;
  }

  .top-bar-links {
    gap: 0.85rem;
    justify-content: center;
  }

  .header-wrapper {
    padding: 0.6rem 0;
  }

  .brand-logo {
    gap: 0.6rem;
  }

  .brand-logo img {
    height: 44px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .brand-text span {
    font-size: 0.65rem;
  }
}

@media (max-width: 520px) {
  .top-bar-links a:not([href^="tel:"]) {
    display: none;
  }
  .top-bar-links {
    gap: 0;
  }
}

@media (max-width: 400px) {
  .brand-text span {
    display: none;
  }
  .brand-text {
    font-size: 0.88rem;
  }
  .brand-logo img {
    height: 38px;
  }
}

/* ==========================================================================
   INTERACTIVE PROJECT SCOPE BUILDER WIDGET
   ========================================================================== */
.scope-builder-container {
  max-width: 960px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(252, 213, 85, 0.3);
  overflow: hidden;
  position: relative;
}

.scope-builder-header {
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--header-slate) 100%);
  color: #fff;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.scope-builder-header h3 {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.scope-builder-header p {
  color: #cbd5e1;
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Step Progress Indicator */
.step-progress-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 650px;
  margin: 2rem auto 0;
  position: relative;
}

.step-progress-line {
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.step-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.4s ease;
  border-radius: 2px;
}

.step-progress-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--header-slate);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.step-progress-node.active .step-circle {
  background: var(--gold);
  border-color: #fff;
  color: var(--dark-slate);
  box-shadow: 0 0 15px rgba(252, 213, 85, 0.5);
}

.step-progress-node.completed .step-circle {
  background: var(--gold-hover);
  color: var(--dark-slate);
  border-color: var(--gold);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-progress-node.active .step-label,
.step-progress-node.completed .step-label {
  color: var(--gold);
}

/* Step Content Body */
.scope-builder-body {
  padding: 2.5rem 2rem;
}

.builder-step {
  display: none;
}

.builder-step.active {
  display: block;
  animation: fadeIn 0.35s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-heading {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.step-description {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

/* Step 1: Service Cards Grid (3 Columns x 2 Rows) */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-card-option {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-card-option:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card-option.selected {
  border-color: var(--gold-dark);
  background: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(252, 213, 85, 0.4);
}

.service-card-3d-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
  transition: transform 0.3s ease;
}

.service-card-option:hover .service-card-3d-img {
  transform: scale(1.1);
}

.service-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.3;
}

/* Step 2: Sliders & Customization Options */
.calculator-group {
  background: var(--section-alt);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}

.calculator-group-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sqft-display-badge {
  background: var(--dark-slate);
  color: var(--gold);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-block;
  margin-left: auto;
}

.range-slider-input {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #cbd5e1;
  outline: none;
  accent-color: var(--accent-brown);
  cursor: pointer;
  margin: 1.25rem 0 0.5rem;
}

.range-presets {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Pills Option Selector */
.pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.pill-option {
  padding: 0.6rem 1rem;
  border-radius: 30px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
  text-align: center;
}

.pill-option:hover {
  border-color: var(--dark-slate);
  background: #f8fafc;
}

.pill-option.selected {
  background: var(--dark-slate);
  color: var(--gold);
  border-color: var(--dark-slate);
  box-shadow: var(--shadow-sm);
}

/* Step 3: Summary Card Box */
.summary-card-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border-left: 5px solid var(--gold);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.summary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.summary-card-title {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
}

.summary-badge {
  background: rgba(252, 213, 85, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.summary-details-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.summary-item-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.summary-item-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.summary-disclaimer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Wizard Navigation Buttons */
.builder-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.btn-builder {
  padding: 0.85rem 1.8rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-builder-prev {
  background: #e2e8f0;
  color: var(--text-main);
}

.btn-builder-prev:hover {
  background: #cbd5e1;
}

.btn-builder-next {
  background: var(--gold);
  color: var(--dark-slate);
  box-shadow: 0 4px 12px rgba(252, 213, 85, 0.4);
}

.btn-builder-next:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .service-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .scope-builder-body {
    padding: 1.5rem 1rem;
  }
  .step-label {
    display: none;
  }
  .service-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .builder-actions {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  .btn-builder {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .service-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   INTERACTIVE BEFORE & AFTER SLIDER COMPONENT
   ========================================================================== */
.ba-slider-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  border: 1px solid rgba(252, 213, 85, 0.3);
}

.ba-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ba-tab-btn {
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  border: 2px solid #e2e8f0;
  background: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.ba-tab-btn:hover {
  border-color: var(--gold);
  background: #f8fafc;
}

.ba-tab-btn.active {
  background: var(--dark-slate);
  color: var(--gold);
  border-color: var(--dark-slate);
  box-shadow: var(--shadow-md);
}

.ba-slider-container {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  box-shadow: var(--shadow-md);
  background: #0f172a;
}

.ba-img-before,
.ba-img-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid var(--gold);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  margin-left: -20px;
  z-index: 10;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.ba-handle-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark-slate);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease;
}

.ba-slider-container:hover .ba-handle-button {
  transform: scale(1.1);
}

.ba-badge {
  position: absolute;
  top: 1.25rem;
  z-index: 8;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ba-badge-before {
  left: 1.25rem;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.ba-badge-after {
  right: 1.25rem;
  background: var(--gold);
  color: var(--dark-slate);
  border: 1px solid #fff;
}

@media (max-width: 640px) {
  .ba-slider-container {
    height: 320px;
  }
  .ba-badge {
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   HOMEOWNER SOLUTION CENTER & LAWN GUIDES (guides.html)
   ========================================================================== */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.guide-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.guide-card-banner {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.guide-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.guide-card:hover .guide-card-banner img {
  transform: scale(1.08);
}

.guide-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--dark-slate);
  color: var(--gold);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.guide-card-title {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.guide-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.guide-author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
}

/* Article Modal Popover */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.article-modal.active {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.article-modal-content {
  background: #fff;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 2px solid var(--gold);
}

.article-modal-header {
  background: var(--dark-slate);
  color: #fff;
  padding: 2.5rem 2rem 1.5rem;
  position: relative;
  border-bottom: 3px solid var(--gold);
}

.article-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.article-modal-close:hover {
  background: var(--gold);
  color: var(--dark-slate);
}

.article-modal-body {
  padding: 2.5rem 2rem;
  color: var(--text-main);
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-modal-body h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.article-modal-body p {
  margin-bottom: 1.25rem;
}

.article-modal-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-cta-box {
  background: var(--section-alt);
  border-left: 4px solid var(--gold);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

/* ==========================================================================
   MASTER MOBILE RESPONSIVENESS & OVERFLOW PROTECTION
   ========================================================================== */
@media (max-width: 768px) {
  .section {
    padding: 3.25rem 0;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .hero {
    padding: 3.5rem 0;
    min-height: auto;
  }
  .hero p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .cards-grid,
  .guides-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .scope-builder-header {
    padding: 1.75rem 1.25rem 1.25rem;
  }
  .scope-builder-header h3 {
    font-size: 1.4rem;
  }
  .step-progress-wrapper {
    margin: 1.25rem auto 0;
  }
  .ba-slider-wrapper {
    padding: 1.25rem 0.75rem;
  }
  .ba-slider-container {
    height: 300px;
  }
  .article-modal {
    padding: 0.75rem;
  }
  .article-modal-header {
    padding: 1.75rem 1.25rem 1.25rem;
  }
  .article-modal-body {
    padding: 1.5rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .trust-badges {
    grid-template-columns: 1fr;
  }
  .summary-details-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  #quote-section {
    padding: 2.5rem 0 !important;
    overflow: hidden !important;
  }
  .contact-card {
    padding: 1.25rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: var(--radius-md) !important;
  }
  .form-group {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .form-control,
  input.form-control,
  select.form-control,
  textarea.form-control {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.95rem !important;
    padding: 0.75rem 0.85rem !important;
    -webkit-appearance: none;
  }
}

/* Location Info Card & Mobile Email Text Scaling */
.location-info-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.location-title {
  margin-bottom: 0.5rem;
  color: var(--dark-slate);
}

.info-row {
  margin-top: 0.5rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-link {
  color: var(--accent-brown);
  font-weight: 700;
}

.email-text-link,
a[href^="mailto:"] {
  display: inline-block;
  max-width: 100%;
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 768px) {
  .location-info-card {
    padding: 1.15rem 0.85rem !important;
  }
  .email-text-link,
  a[href^="mailto:"] {
    font-size: 0.82rem !important;
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 400px) {
  .email-text-link,
  a[href^="mailto:"] {
    font-size: 0.74rem !important;
  }
}

/* ==========================================================================
   INSTANT ZIP CODE & NEIGHBORHOOD SERVICE AREA CHECKER
   ========================================================================== */
.zip-checker-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem 2rem;
  border: 2px solid var(--gold);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.zip-checker-title {
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.zip-checker-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.zip-search-box {
  display: flex;
  gap: 0.5rem;
  max-width: 540px;
  margin: 0 auto 1.75rem;
  box-shadow: var(--shadow-sm);
  border-radius: 50px;
  background: #f8fafc;
  padding: 0.35rem;
  border: 1.5px solid #cbd5e1;
  transition: var(--transition);
}

.zip-search-box:focus-within {
  border-color: var(--dark-slate);
  box-shadow: 0 0 0 3px rgba(252, 213, 85, 0.4);
}

.zip-input-field {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  outline: none;
  font-family: var(--font-body);
}

.zip-input-field::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.zip-submit-btn {
  background: var(--gold);
  color: var(--dark-slate);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.5rem;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.zip-submit-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

/* Result Feedback Display Card */
.zip-result-card {
  display: none;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.zip-result-card.active {
  display: block;
}

.zip-result-card.success {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  color: #14532d;
}

.zip-result-card.nearby {
  background: #fefce8;
  border: 2px solid var(--gold);
  color: #713f12;
}

.zip-result-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.zip-result-body {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.zip-claim-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark-slate);
  color: var(--gold);
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  transition: var(--transition);
}

.zip-claim-btn:hover {
  background: #0f172a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Neighborhood Chips Grid */
.neighborhood-chips-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.neighborhood-chips-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.chip-item {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark-slate);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chip-item:hover,
.chip-item.active {
  background: var(--dark-slate);
  color: var(--gold);
  border-color: var(--dark-slate);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .zip-checker-container {
    padding: 1.5rem 1rem;
  }
  .zip-checker-title {
    font-size: 1.3rem;
  }
  .zip-search-box {
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .zip-input-field {
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 30px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  .zip-submit-btn {
    width: 100%;
    border-radius: 30px;
    padding: 0.8rem 1rem;
  }
  .chip-item {
    font-size: 0.78rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ==========================================================================
   GARY'S LEAD COMMAND CENTER (admin.html - Responsive Sidebar Layout)
   ========================================================================== */
.admin-body {
  background-color: #0f172a;
  color: #f8fafc;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Password Authentication Modal Overlay */
.password-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

.password-modal-card {
  background: var(--dark-slate);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.password-modal-logo img {
  height: 60px;
  margin: 0 auto 1rem;
}

.password-modal-card h2 {
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.password-modal-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.password-input-wrapper {
  position: relative;
  margin-bottom: 0.5rem;
}

.password-input-wrapper .form-control {
  background: #1e293b;
  border-color: #334155;
  color: #fff;
  padding-right: 3rem;
  font-size: 1.1rem;
  text-align: center;
}

.password-input-wrapper .form-control:focus {
  border-color: var(--gold);
}

.pass-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
}

.login-error-text {
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.admin-layout-container {
  display: flex;
  min-height: 100vh;
}

/* Left Sidebar Desktop Styles */
.admin-sidebar {
  width: 280px;
  background: #1e293b;
  border-right: 2px solid var(--gold);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  height: 48px;
}

.sidebar-title {
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
}

.sidebar-badge {
  font-size: 0.65rem;
  color: #94a3b8;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* Sidebar KPI Summary Blocks */
.sidebar-kpi-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.sidebar-kpi-item {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.4rem;
  text-align: center;
}

.kpi-num {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.kpi-green .kpi-num { color: #22c55e; }
.kpi-blue .kpi-num { color: #3b82f6; }

.kpi-txt {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0.2rem;
}

/* Sidebar Navigation Menu */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.nav-section-title {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.35rem;
  padding-left: 0.5rem;
}

.sidebar-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.sidebar-nav-btn .nav-icon {
  margin-right: 0.6rem;
}

.sidebar-nav-btn .nav-badge {
  background: #334155;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

.sidebar-nav-btn:hover,
.sidebar-nav-btn.active {
  background: var(--gold);
  color: var(--dark-slate);
  border-color: var(--gold);
}

.sidebar-nav-btn.active .nav-badge {
  background: var(--dark-slate);
  color: var(--gold);
}

.nav-btn-spam.active {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-action-btn {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-gold { background: var(--gold); color: var(--dark-slate); }
.btn-secondary { background: #334155; color: #fff; }
.btn-logout { background: transparent; border: 1px solid #475569; color: #cbd5e1; }
.sidebar-action-btn:hover { transform: translateY(-2px); }

/* Main Right Content Area */
.admin-main-area {
  margin-left: 280px;
  flex-grow: 1;
  padding: 2rem 2.5rem;
  min-height: 100vh;
}

.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #334155;
}

.view-title {
  font-size: 1.8rem;
  color: #fff;
  font-weight: 800;
}

.view-subtitle {
  color: #94a3b8;
  font-size: 0.9rem;
}

.admin-search-box {
  position: relative;
  max-width: 340px;
  width: 100%;
}

.admin-search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.admin-search-box .form-control {
  background: #1e293b;
  border-color: #334155;
  color: #fff;
  padding-left: 2.75rem;
  border-radius: 30px;
}

/* Lead Cards Stream */
.leads-stream-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lead-card {
  background: #1e293b;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--gold);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border-top: 1px solid #334155;
  border-right: 1px solid #334155;
  border-bottom: 1px solid #334155;
  transition: var(--transition);
}

.lead-card.status-new {
  border-left-color: #22c55e;
}

.lead-card.status-contacted {
  border-left-color: #eab308;
}

.lead-card.status-scheduled {
  border-left-color: #3b82f6;
}

.lead-card.status-won {
  border-left-color: #10b981;
}

.lead-card.status-spam {
  border-left-color: #ef4444;
  opacity: 0.75;
}

.lead-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lead-customer-name {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 800;
}

.lead-timestamp {
  font-size: 0.8rem;
  color: #94a3b8;
}

.lead-body-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.lead-info-block {
  font-size: 0.9rem;
}

.lead-info-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.lead-info-value {
  color: #f1f5f9;
  font-weight: 600;
}

.lead-message-box {
  background: #0f172a;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #cbd5e1;
  border: 1px dashed #334155;
  margin-bottom: 1.25rem;
}

.lead-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lead-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.action-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn-call { background: #22c55e; color: #fff; }
.action-btn-sms { background: #3b82f6; color: #fff; }
.action-btn-email { background: #8b5cf6; color: #fff; }
.action-btn-cal { background: var(--gold); color: var(--dark-slate); }
.action-btn-del { background: #ef4444; color: #fff; }

.status-select {
  background: #0f172a;
  color: #fff;
  border: 1.5px solid #334155;
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.notes-input-box {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* Sidebar Mobile Slide-Out Drawer & Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1500;
}

.sidebar-backdrop.active {
  display: block;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

.mobile-menu-btn {
  display: none;
  background: #1e293b;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  align-items: center;
  margin-right: 0.5rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Responsive Mobile Drawer Media Queries (< 992px) */
@media (max-width: 992px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -320px;
    width: 280px;
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .admin-sidebar.mobile-open {
    transform: translateX(320px);
  }

  .sidebar-close-btn {
    display: block;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .admin-main-area {
    margin-left: 0;
    padding: 1.25rem 1rem 3rem 1rem;
  }

  .admin-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .top-bar-left {
    flex-direction: row;
    align-items: center;
  }

  .admin-search-box {
    max-width: 100%;
  }

  .view-title {
    font-size: 1.35rem;
  }

  .view-subtitle {
    font-size: 0.8rem;
  }
}
