/* Clean, robust vanilla CSS for Tustin CA Slab Leak Repair */
/* Absolute Rule: ZERO hash characters anywhere in this file. All colors use rgb() or rgba() */

:root {
  --primary-navy: rgb(15, 37, 55);
  --primary-dark: rgb(10, 25, 40);
  --primary-accent: rgb(26, 115, 185);
  --primary-accent-hover: rgb(20, 95, 155);
  --terracotta: rgb(194, 94, 58);
  --terracotta-hover: rgb(170, 75, 42);
  --warm-gold: rgb(212, 143, 56);
  --alert-red: rgb(215, 53, 53);
  --alert-light: rgb(254, 242, 242);
  --slate-bg: rgb(244, 247, 250);
  --card-bg: rgb(255, 255, 255);
  --border-color: rgb(222, 229, 236);
  --text-main: rgb(33, 43, 54);
  --text-muted: rgb(85, 98, 112);
  --text-light: rgb(120, 134, 150);
  --shadow-sm: 0 2px 4px rgba(15, 37, 55, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 37, 55, 0.08);
  --shadow-lg: 0 14px 30px rgba(15, 37, 55, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--card-bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

a:hover, a:focus {
  color: var(--primary-accent-hover);
}

h1, h2, h3, h4 {
  color: var(--primary-navy);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.25rem;
}

p {
  margin-bottom: 1.2rem;
}

ul, ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Navigation */
.site-header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  background-color: var(--primary-navy);
  color: rgb(255, 255, 255);
  padding: 0.4rem 0;
  font-size: 0.875rem;
}

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

.header-top a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: 600;
}

.header-main {
  padding: 1rem 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  position: relative;
}

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

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--card-bg);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  list-style: none;
  min-width: 260px;
  padding: 0.6rem 0;
  display: none;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.dropdown-item:hover {
  background-color: var(--slate-bg);
  color: var(--primary-accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  color: var(--primary-navy);
}

/* Call Button Styles */
.btn-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--terracotta);
  color: rgb(255, 255, 255);
  padding: 0.65rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn-phone:hover {
  background-color: var(--terracotta-hover);
  color: rgb(255, 255, 255);
  transform: translateY(-1px);
}

.btn-phone-lg {
  padding: 0.9rem 2rem;
  font-size: 1.2rem;
  border-radius: var(--radius-md);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
  color: rgb(255, 255, 255);
  padding: 3.5rem 0;
  position: relative;
}

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

.hero h1 {
  color: rgb(255, 255, 255);
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgb(220, 230, 240);
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

.hero-cta .cta-subtext {
  font-size: 0.9rem;
  color: rgb(200, 215, 230);
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.1);
}

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

/* Breadcrumbs */
.breadcrumbs {
  background-color: var(--slate-bg);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--text-light);
}

.breadcrumbs li:last-child::after {
  content: "";
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary-accent);
}

.breadcrumbs .current {
  color: var(--text-main);
  font-weight: 600;
}

/* Main Content Structure */
.main-content {
  padding: 3rem 0;
  flex: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
}

.content-body {
  min-width: 0;
}

/* Callout & Alert Boxes */
.emergency-callout {
  background-color: var(--alert-light);
  border-left: 4px solid var(--alert-red);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: var(--radius-sm);
}

.emergency-callout h3 {
  color: var(--alert-red);
  margin-top: 0;
  font-size: 1.15rem;
}

.phone-banner {
  background-color: var(--primary-navy);
  color: rgb(255, 255, 255);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin: 2.5rem 0;
  text-align: center;
}

.phone-banner h3 {
  color: rgb(255, 255, 255);
  margin-top: 0;
  font-size: 1.5rem;
}

.phone-banner p {
  color: rgb(220, 230, 240);
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
}

/* Sidebar Styles */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-box {
  background-color: var(--slate-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.sidebar-box h3 {
  margin-top: 0;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--primary-accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-services-list li {
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
}

.sidebar-services-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-services-list a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  display: block;
}

.sidebar-services-list a:hover {
  color: var(--primary-accent);
}

.sidebar-call {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
  color: rgb(255, 255, 255);
  text-align: center;
}

.sidebar-call h3 {
  color: rgb(255, 255, 255);
  border-bottom-color: var(--terracotta);
}

.sidebar-call p {
  color: rgb(220, 230, 240);
  font-size: 0.95rem;
}

/* Service Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.service-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

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

.service-card a {
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-accent);
}

.service-card a:hover {
  text-decoration: underline;
}

/* Inline Image Box */
.content-image-box {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.content-image-box img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.image-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background-color: var(--slate-bg);
  border-top: 1px solid var(--border-color);
}

/* FAQ Accordion / List */
.faq-section {
  margin: 2.5rem 0;
}

.faq-item {
  background-color: var(--slate-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
}

.faq-item h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary-navy);
}

.faq-item p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: rgb(210, 220, 230);
  padding: 3.5rem 0 1.5rem 0;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: rgb(255, 255, 255);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.5rem;
}

.footer-col p {
  color: rgb(180, 195, 210);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgb(200, 215, 230);
  text-decoration: none;
}

.footer-col a:hover {
  color: rgb(255, 255, 255);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgb(150, 165, 180);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-bottom a {
  color: rgb(180, 195, 210);
}

/* Sticky Mobile Call Bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-navy);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background-color: var(--terracotta);
  color: rgb(255, 255, 255);
  text-decoration: none;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Responsive Queries */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-image {
    max-width: 600px;
    margin: 0 auto;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
    align-items: stretch;
  }
  .main-nav.is-open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background-color: var(--slate-bg);
    margin-top: 0.5rem;
  }
  .dropdown.is-expanded .dropdown-menu {
    display: block;
  }
  .header-main .btn-phone {
    display: none;
  }
  .mobile-call-bar {
    display: block;
  }
  body {
    padding-bottom: 70px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
