/* ==========================================================================
   New Braunfels Foundation Repair - Modern High-Performance Stylesheet
   Mobile-First, High-Contrast, Conversion-Engineered
   ========================================================================== */

:root {
  --primary-dark: #0b132b;
  --secondary-dark: #1c2541;
  --steel-slate: #334155;
  --border-slate: #e2e8f0;
  --surface-light: #f8fafc;
  --surface-card: #ffffff;
  
  --accent-amber: #f59e0b;
  --accent-orange: #ea580c;
  --accent-orange-hover: #c2410c;
  --accent-cyan: #0284c7;
  --accent-green: #10b981;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #f8fafc;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition-fast: 0.18s ease-in-out;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--surface-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   Top Alert Bar
   ========================================================================== */
.alert-bar {
  background: linear-gradient(90deg, #b45309, #d97706);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.alert-bar svg {
  flex-shrink: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(11, 19, 43, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-amber);
  letter-spacing: 0.08em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Call Button Header */
.btn-phone-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  min-height: 46px;
}

.btn-phone-header:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-amber);
  transform: translateY(-1px);
}

.btn-phone-header svg {
  color: var(--accent-amber);
}

/* Primary CTA Header */
.btn-primary-header {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.925rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all var(--transition-fast);
  min-height: 46px;
  cursor: pointer;
  border: none;
}

.btn-primary-header:hover {
  background: linear-gradient(135deg, #f59e0b, var(--accent-orange-hover));
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.mobile-nav-toggle {
  display: flex;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Dropdown Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--primary-dark);
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 1rem;
}

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

.mobile-menu .nav-link {
  font-size: 1.1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu .btn-primary-header {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   Hero Section & Above-The-Fold Form
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(165deg, var(--primary-dark) 0%, var(--secondary-dark) 60%, #0f172a 100%);
  color: #ffffff;
  padding: 3rem 0 4.5rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(11, 19, 43, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-amber);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-title span {
  color: var(--accent-amber);
  display: inline;
}

.hero-subhead {
  font-size: 1.125rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.hero-trust-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}

.trust-item svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

/* ==========================================================================
   Lead Capture Card (High-Intent Above-The-Fold)
   ========================================================================== */
.form-card {
  background-color: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  position: relative;
}

.form-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-slate);
  padding-bottom: 1rem;
}

.form-badge {
  display: inline-block;
  background-color: #fee2e2;
  color: #b91c1c;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.form-title {
  font-size: 1.45rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--steel-slate);
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1.5px solid var(--border-slate);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background-color: #ffffff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
  cursor: pointer;
}

/* Interactive Pill Checkboxes for Observed Issues */
.issues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.issue-pill {
  position: relative;
  cursor: pointer;
}

.issue-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.pill-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background-color: var(--surface-light);
  border: 1.5px solid var(--border-slate);
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--steel-slate);
  transition: all var(--transition-fast);
  user-select: none;
  min-height: 48px;
}

.pill-box svg {
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity var(--transition-fast);
}

.issue-pill input[type="checkbox"]:checked + .pill-box {
  background-color: #fff7ed;
  border-color: var(--accent-orange);
  color: var(--accent-orange-hover);
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.1);
}

.issue-pill input[type="checkbox"]:checked + .pill-box svg {
  opacity: 1;
  color: var(--accent-orange);
}

.btn-submit-lead {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-orange) 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-submit-lead:hover {
  background: linear-gradient(135deg, #f59e0b 0%, var(--accent-orange-hover) 100%);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
  transform: translateY(-2px);
}

.form-privacy-note {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.form-privacy-note svg {
  color: var(--accent-green);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-padding {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-tag {
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
}

.section-subtitle {
  font-size: 1.05rem;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-orange));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: #fff7ed;
  border: 1px solid #ffedd5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
}

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

.service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-slate);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--steel-slate);
}

.service-features li svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-section {
  background-color: #ffffff;
  border-top: 1px solid var(--border-slate);
  border-bottom: 1px solid var(--border-slate);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.why-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background-color: var(--surface-light);
  border: 1px solid var(--border-slate);
}

.why-badge-num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(11, 19, 43, 0.2);
}

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

.why-desc {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Soil Engineer Insight Highlight */
.geotech-callout {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.geotech-callout h3 {
  color: #ffffff;
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.geotech-callout p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.geotech-stat-box {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-unit {
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-amber);
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ==========================================================================
   Service Area Hub
   ========================================================================== */
.area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.area-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.area-card:hover {
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-md);
}

.area-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.area-city-title {
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.area-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #e0f2fe;
  color: var(--accent-cyan);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.area-details {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.area-dispatch-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-orange);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Bottom Conversion Banner
   ========================================================================== */
.conversion-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-xl);
  margin-top: 3rem;
}

.conversion-cta h2 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.conversion-cta p {
  color: #cbd5e1;
  max-width: 620px;
}

.cta-button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 440px;
  margin-top: 0.5rem;
}

.btn-cta-phone {
  height: 52px;
  background-color: #ffffff;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform var(--transition-fast);
}

.btn-cta-phone:hover {
  transform: translateY(-2px);
}

.btn-cta-eval {
  height: 52px;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.btn-cta-eval:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.925rem;
  transition: color var(--transition-fast);
}

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

.footer-contractor-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  width: fit-content;
}

.footer-contractor-highlight:hover {
  background-color: rgba(245, 158, 11, 0.2);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   Contractor Portal (/billing) Styles
   ========================================================================== */
.portal-header {
  background-color: var(--secondary-dark);
  color: #ffffff;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.portal-auth-card {
  background-color: #ffffff;
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.portal-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-slate);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.portal-tab {
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.portal-tab.active {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

.job-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background-color: var(--surface-light);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.job-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-status-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.status-dispatched {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-completed {
  background-color: #dcfce7;
  color: #166534;
}

/* ==========================================================================
   Success Modal Dialog
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.25rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-icon-success {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.btn-close-modal {
  width: 100%;
  height: 48px;
  background-color: var(--primary-dark);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .issues-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-button-group {
    flex-direction: row;
  }

  .cta-button-group a {
    flex: 1;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .btn-primary-header {
    display: inline-flex;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .area-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .portal-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }

  .area-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .geotech-callout {
    grid-template-columns: 1.4fr 1fr;
  }
}
