/* ==========================================================================
   Shoveler Palmetto Plumbing Drains Rooter Pipeline Fix
   Production Stylesheet
   Pure CSS3 - Fast, Lightweight, Responsive
   ========================================================================== */

:root {
  /* Color Palette - Professional Plumbing & Trade Theme */
  --primary: #0284c7;           /* Vibrant Plumbing Blue */
  --primary-dark: #0369a1;      /* Deep Navy Accent */
  --primary-darker: #0c4a6e;    /* Deep Header/Hero Blue */
  --primary-light: #e0f2fe;     /* Light Sky Blue Tint */
  --secondary: #0f766e;         /* Pipeline Teal */
  --secondary-light: #ccfbf1;   /* Soft Teal Tint */
  
  --accent: #d97706;            /* Emergency Alert Amber */
  --accent-hover: #b45309;
  --accent-light: #fef3c7;
  
  --dark: #0f172a;              /* Slate 900 */
  --dark-surface: #1e293b;      /* Slate 800 */
  --muted: #475569;             /* Slate 600 */
  --muted-light: #64748b;       /* Slate 500 */
  
  --bg-page: #f8fafc;           /* Crisp Slate 50 */
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;       /* Slate 100 */
  
  --border: #e2e8f0;            /* Slate 200 */
  --border-focus: #38bdf8;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-height: 76px;
  --topbar-height: 40px;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--topbar-height) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Safe image handling */
img, svg, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Container Structure */
.container {
  width: min(var(--container-max), calc(100% - 32px));
  margin-inline: auto;
}

.container-narrow {
  width: min(900px, calc(100% - 32px));
  margin-inline: auto;
}

/* Typography Utility */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-tag.urgent {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

.section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 36px;
}

.text-center {
  text-align: center;
}

.text-center .section-desc {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   1. Top Information Bar
   -------------------------------------------------------------------------- */
.topbar {
  background-color: var(--primary-darker);
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 100;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.topbar-item a {
  color: #f8fafc;
  font-weight: 600;
}

.topbar-item a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.badge-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

/* --------------------------------------------------------------------------
   2. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-height);
  padding: 10px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark);
  text-decoration: none;
  max-width: 320px;
  line-height: 1.2;
}

.site-logo svg {
  flex-shrink: 0;
  color: var(--primary);
}

.site-logo .logo-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-logo:hover {
  color: var(--primary-dark);
}

/* Navigation Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 6px 2px;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-phone {
  background-color: #f1f5f9;
  color: var(--dark);
  border: 1px solid var(--border);
  font-weight: 700;
}

.btn-phone:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--dark);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--primary);
}

/* --------------------------------------------------------------------------
   3. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
  color: #ffffff;
  padding: clamp(40px, 6vw, 70px) 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  color: #f0fdf4;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: #38bdf8;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #e0f2fe;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #e2e8f0;
  font-weight: 600;
}

.hero-feature-item svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 420px;
}

.hero-floating-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-floating-card .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.hero-floating-card .card-text h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.hero-floating-card .card-text p {
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   Quick Highlights Bar
   -------------------------------------------------------------------------- */
.highlights-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  box-shadow: var(--shadow-sm);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-text h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.highlight-text p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   4. Services Section
   -------------------------------------------------------------------------- */
.section-padding {
  padding: clamp(50px, 7vw, 85px) 0;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

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

.service-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 0.875rem;
  color: var(--dark-surface);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.service-card-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.service-card-action a {
  font-weight: 700;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   5. Why Choose Us Section
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.why-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.why-feature-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease;
}

.why-feature-box:hover {
  border-color: var(--primary);
}

.why-feature-box .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--secondary-light);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.why-feature-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.why-feature-box p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.why-media-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.why-media-wrapper img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.why-callout {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.why-callout h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 4px;
}

.why-callout p {
  font-size: 0.8125rem;
  color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   6. Service Areas Section
   -------------------------------------------------------------------------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.area-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s ease;
}

.area-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.area-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.area-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.area-info p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

.areas-note {
  margin-top: 24px;
  padding: 14px 20px;
  background-color: #ffffff;
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.areas-note p {
  font-size: 0.9375rem;
  color: var(--dark);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Our Process Section
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process-step {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.process-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. FAQ Section
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 20px 18px 20px;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. Contact / Quote Section
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
}

.contact-info-panel {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.contact-info-header p {
  color: #cbd5e1;
  font-size: 0.9375rem;
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 700;
}

.contact-detail-text p, .contact-detail-text a {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.contact-detail-text a:hover {
  color: #38bdf8;
}

.emergency-direct-call {
  background-color: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(217, 119, 6, 0.5);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.emergency-direct-call p {
  font-size: 0.8125rem;
  color: #fde68a;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Contact Form Card */
.contact-form-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-label span.req {
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #f8fafc;
  font-size: 0.9375rem;
  color: var(--dark);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted-light);
  margin-top: 12px;
  line-height: 1.4;
}

/* Form Alert */
.form-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: none;
}

.form-alert.success {
  display: block;
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-alert.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   10. Final CTA Banner
   -------------------------------------------------------------------------- */
.final-cta {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
  color: #ffffff;
  padding: clamp(40px, 5vw, 60px) 0;
}

.final-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.final-cta-text h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.final-cta-text p {
  color: #e0f2fe;
  font-size: 1rem;
  max-width: 600px;
}

.final-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   11. Footer & Social Links
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #0b1320;
  color: #94a3b8;
  padding-top: 60px;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.footer-brand p {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #94a3b8;
}

.footer-col h5 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: #94a3b8;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 2px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #cbd5e1;
}

.footer-contact-item svg {
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: #f8fafc;
  font-weight: 600;
}

/* Social Links Section in Footer */
.social-section {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.social-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-links-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.social-link-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   Utility / Standalone Download Helper Banner (Floating or Integrated)
   -------------------------------------------------------------------------- */
.download-pill-banner {
  background: #0f172a;
  color: #f8fafc;
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.download-pill-banner a.download-btn {
  background: #22c55e;
  color: #052e16;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.download-pill-banner a.download-btn:hover {
  background: #4ade80;
}

/* --------------------------------------------------------------------------
   Back to top & Sticky Emergency Mobile CTA
   -------------------------------------------------------------------------- */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 98;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.sticky-mobile-cta .btn {
  width: 100%;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN BREAKPOINTS
   Ensures flawless display across 1920, 1440, 1366, 1280, 1200, 1024, 768, 480, 390, 375px
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav-menu {
    gap: 14px;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 960px) {
  /* Switch to Mobile Navigation */
  .mobile-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    display: none;
  }

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

  .nav-link {
    padding: 10px 14px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover, .nav-link.active {
    background-color: var(--primary-light);
  }

  .nav-link.active::after {
    display: none;
  }

  .header-actions .btn-quote-header {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .topbar {
    display: none; /* Mobile screen clean layout */
  }

  .site-logo {
    font-size: 0.92rem;
    max-width: 220px;
  }

  .header-actions .btn-phone {
    padding: 8px 12px;
    font-size: 0.8125rem;
  }

  .header-actions .btn-phone span.phone-text {
    display: none;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .why-card-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .social-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .final-cta-content {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta-actions .btn {
    width: 100%;
  }

  .sticky-mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 64px; /* clearance for sticky mobile call bar */
  }

  .back-to-top {
    bottom: 74px;
  }
}

@media (max-width: 380px) {
  .site-logo {
    font-size: 0.85rem;
    max-width: 180px;
  }

  .btn {
    padding: 8px 14px;
    font-size: 0.875rem;
  }
}

/* Print Styles */
@media print {
  .topbar, .site-header, .mobile-toggle, .sticky-mobile-cta, .back-to-top, .final-cta, .contact-form-card {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
