/* ==========================================================================
   SALT LAKE PLUMBING - MASTER DESIGN SYSTEM
   Inspired by clean modern home-service aesthetic (Outfit + Manrope)
   ========================================================================== */

:root {
  /* Typography Tokens */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Refined Color Palette */
  --primary-navy: #0C2340;       /* Deep Authoritative Navy */
  --primary-dark: #071424;       /* Darkest Navy for Hero Overlay */
  --accent-blue: #2B98E6;        /* Clean Trustworthy CTA Blue */
  --accent-blue-hover: #167FC7;   /* Darker Blue Hover */
  --accent-amber: #F4B33A;       /* Highlight Amber for Special Badges */
  
  --text-dark: #0C2340;
  --text-body: #334155;
  --text-muted: #64748B;
  
  --bg-light: #F4F7FA;
  --bg-white: #FFFFFF;
  --bg-warm: #F8FAFC;
  
  --border-light: #E2E8F0;
  --border-subtle: #CBD5E1;

  /* Layout Tokens */
  --container-width: 1240px;
  --container-narrow: 860px;
  --container-article: 780px;
  
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  
  --shadow-subtle: 0 4px 15px rgba(12, 35, 64, 0.05);
  --shadow-card: 0 6px 20px rgba(12, 35, 64, 0.07);
  --shadow-elevated: 0 12px 32px rgba(12, 35, 64, 0.12);
  
  --transition: all 0.25s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-navy);
  letter-spacing: -0.01em;
}

h1 { font-size: 3.25rem; font-weight: 800; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent-blue);
  color: var(--bg-white);
  padding: 12px 24px;
  z-index: 10000;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* Subtitles & Eyebrow Badges */
.section-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  background-color: rgba(43, 152, 230, 0.08);
  padding: 6px 14px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.75rem;
}

.section-subtitle.dark {
  background-color: rgba(255, 255, 255, 0.12);
  color: #7DD3FC;
}

/* Button System */
.btn, .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.2;
}

.btn-blue, .cta-button.primary {
  background-color: var(--accent-blue);
  color: var(--bg-white) !important;
}
.btn-blue:hover, .cta-button.primary:hover {
  background-color: var(--accent-blue-hover);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(43, 152, 230, 0.3);
}

.btn-navy, .cta-button.secondary {
  background-color: var(--primary-navy);
  color: var(--bg-white) !important;
}
.btn-navy:hover, .cta-button.secondary:hover {
  background-color: var(--accent-blue);
  color: var(--bg-white);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--bg-white) !important;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline-white:hover {
  background-color: var(--bg-white);
  color: var(--primary-navy) !important;
  border-color: var(--bg-white);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--primary-navy) !important;
  border-color: var(--primary-navy);
}
.btn-outline-navy:hover {
  background-color: var(--primary-navy);
  color: var(--bg-white) !important;
}

/* Double-Row Header */
.site-utility-bar {
  background-color: var(--primary-dark);
  color: #94A3B8;
  font-size: 0.8125rem;
  font-family: var(--font-heading);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

.site-utility-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-utility-info {
  display: flex;
  gap: 24px;
}

.site-utility-info span strong {
  color: var(--bg-white);
}

.site-utility-link {
  color: var(--accent-blue);
  font-weight: 600;
}
.site-utility-link:hover {
  text-decoration: underline;
}

/* Main Navigation Header */
.site-header {
  background-color: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(12, 35, 64, 0.06);
}

.site-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  text-decoration: none;
}

.site-logo-img {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 50%;
  background-color: var(--bg-white);
  padding: 2px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.site-logo-icon {
  width: 36px;
  height: 36px;
  background-color: var(--accent-blue);
  color: var(--bg-white);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.site-logo span {
  color: var(--accent-blue);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-navy);
  padding: 10px 0;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(12, 35, 64, 0.12);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1100;
}

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

.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--primary-navy);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-link:hover {
  background-color: rgba(43, 152, 230, 0.08);
  color: var(--accent-blue);
  padding-left: 24px;
}

/* Breadcrumbs Bar */
.breadcrumbs-bar {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.84375rem;
  color: var(--text-muted);
}

.breadcrumbs-item a {
  color: var(--text-body);
  text-decoration: none;
}
.breadcrumbs-item a:hover {
  color: var(--accent-blue);
}

.breadcrumbs-separator {
  color: var(--text-muted);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(12, 35, 64, 0.94) 0%, rgba(7, 20, 36, 0.88) 100%), url('/images/home/hero-plumber.webp') center/cover no-repeat;
  padding: 100px 0 120px 0;
  color: var(--bg-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  color: var(--bg-white);
  margin-bottom: 20px;
  font-size: 3.4rem;
  line-height: 1.12;
}

.hero-intro {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-checks {
  display: flex;
  gap: 28px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.check-icon {
  color: var(--accent-blue);
  font-weight: bold;
}

.hero-sidebar-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  padding: 36px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-card-title {
  color: var(--bg-white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-card-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Stats Counter Bar */
.stats-bar {
  background-color: var(--accent-blue);
  padding: 36px 0;
  color: var(--bg-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0.92;
}

/* Section Spacing */
.section {
  padding: 90px 0;
}

.section-light { background-color: var(--bg-light); }
.section-white { background-color: var(--bg-white); }
.section-dark { background-color: var(--primary-navy); color: var(--bg-white); }

.section-header {
  margin-bottom: 48px;
}

.section-header.text-center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Grid & Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.service-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;

}

.service-card-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Process Steps Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.process-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.process-num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.process-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

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

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-subtle);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-white);
  text-align: left;
}

.comparison-table th {
  background-color: var(--primary-navy);
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 16px 24px;
}

.comparison-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* FAQs Accordion */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.faq-summary {
  padding: 20px 28px;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary-navy);
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent-blue);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 28px 20px 28px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact 2-Column Split */
.contact-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  height: 52px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  outline: none;
  transition: var(--transition);
}

.form-textarea {
  height: 140px;
  resize: vertical;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(43, 152, 230, 0.15);
}

/* Footer Architecture */
.site-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 72px 0 0 0;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 20px;
}

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

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.90625rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-blue);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--bg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--accent-blue);
  color: var(--bg-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Fixed Mobile Call Bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-dark);
  padding: 12px 16px;
  z-index: 9999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

.mobile-call-bar-wrapper {
  display: block;
}

/* Location Specific Cards */
.location-hub-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.location-hub-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.location-hub-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-hub-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .location-hub-card { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-utility-info { display: none; }
  .desktop-nav { display: none; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 72px; }

  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.85rem; }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .triage-grid { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ==========================================================================
   HOMEPAGE SEMANTIC COMPONENTS (Safety Checklist & Triage Comparison Grid)
   ========================================================================== */
.safety-checklist-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--accent-blue);
  border-radius: var(--border-radius-md);
  padding: 24px 28px;
  margin: 24px 0;
  box-shadow: var(--shadow-subtle);
}
.safety-checklist-box h3 {
  color: var(--primary-navy);
  margin-bottom: 14px;
  font-size: 1.25rem;
}
.safety-checklist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.safety-checklist-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-body);
  font-size: 0.96875rem;
  line-height: 1.5;
}
.safety-checklist-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-blue);
  font-weight: 800;
  font-size: 1.1rem;
}

.triage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
}
.triage-card {
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}
.triage-card.urgent {
  background-color: #FEF2F2;
  border: 1px solid #FCA5A5;
}
.triage-card.schedulable {
  background-color: #F0FDF4;
  border: 1px solid #86EFAC;
}
.triage-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.triage-card.urgent h3 { color: #991B1B; }
.triage-card.schedulable h3 { color: #166534; }
.triage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-body);
}
.triage-card.urgent .triage-list li::before {
  content: "🚨 ";
}
.triage-card.schedulable .triage-list li::before {
  content: "📅 ";
}

/* ==========================================================================
   FAQ ACCORDION STYLES
   ========================================================================== */
.faq-accordion-group {
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-accordion-item {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.faq-accordion-item[open] {
  background-color: var(--bg-white);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-card);
}

.faq-accordion-summary {
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-accordion-summary::-webkit-details-marker {
  display: none;
}

.faq-accordion-summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-blue);
  transition: transform 0.25s ease-in-out;
  line-height: 1;
}

.faq-accordion-item[open] .faq-accordion-summary::after {
  content: "−";
  color: var(--primary-navy);
}

.faq-accordion-content {
  padding: 16px 24px 20px 24px;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
}


