/* Design System & Core Styles for SlabLeakRepair.work - Mission Viejo, CA */
/* Absolute restriction: ZERO hash characters anywhere in this file. */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Color Palette using rgb/rgba exclusively */
  --color-primary: rgb(16, 37, 66);
  --color-primary-dark: rgb(10, 24, 44);
  --color-primary-light: rgb(27, 58, 99);
  --color-accent: rgb(194, 91, 50);
  --color-accent-hover: rgb(168, 76, 40);
  --color-sand: rgb(247, 244, 238);
  --color-sand-light: rgb(252, 250, 247);
  --color-sand-border: rgb(230, 224, 214);
  --color-terracotta: rgb(222, 178, 126);
  --color-text-dark: rgb(28, 37, 48);
  --color-text-muted: rgb(85, 99, 114);
  --color-white: rgb(255, 255, 255);
  --color-danger: rgb(185, 28, 28);
  --color-warning-bg: rgb(254, 243, 199);
  --color-warning-text: rgb(146, 64, 14);

  --shadow-sm: 0 2px 6px rgba(16, 37, 66, 0.05);
  --shadow-md: 0 6px 18px rgba(16, 37, 66, 0.08);
  --shadow-lg: 0 14px 32px rgba(16, 37, 66, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --max-width: 1200px;
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-sand-light);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: -0.01em;
  margin-top: 1.5rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin-top: 1rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--color-text-dark);
  font-size: 1.05rem;
}

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

li {
  margin-bottom: 0.5rem;
  font-size: 1.025rem;
  color: var(--color-text-dark);
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-primary-dark);
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

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

.site-nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
  margin-bottom: 0;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  padding: 0.5rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

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

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-sand-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 110;
}

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

.dropdown-link {
  display: block;
  padding: 0.5rem 1.2rem;
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-link:hover {
  background-color: var(--color-sand);
  color: var(--color-accent);
}

.header-cta-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-sand-border);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-primary);
}

.nav-toggle-icon {
  width: 24px;
  height: 24px;
  display: block;
}

/* Call Buttons */
.btn-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(194, 91, 50, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-phone:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(194, 91, 50, 0.35);
}

.btn-phone-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.15rem;
}

.phone-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

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

.breadcrumbs-item a:hover {
  text-decoration: underline;
}

.breadcrumbs-separator {
  margin: 0 0.5rem;
  color: var(--color-text-muted);
  user-select: none;
}

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

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

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(222, 178, 126, 0.15);
  color: var(--color-terracotta);
  border: 1px solid rgba(222, 178, 126, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

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

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

.hero-phone-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

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

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

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: 2.75rem 0 3.25rem;
}

.page-banner h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  max-width: 820px;
  margin-bottom: 0;
}

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

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

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

.section-header {
  margin-bottom: 2.25rem;
}

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

.section-subtitle {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

/* Callout Box */
.callout-box {
  background-color: var(--color-white);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.callout-box-alert {
  background-color: var(--color-warning-bg);
  border-left-color: var(--color-warning-text);
  color: var(--color-warning-text);
}

.callout-box-alert p, .callout-box-alert h3 {
  color: var(--color-warning-text);
}

/* Action Banner Box (Phone call box after sections) */
.cta-banner-box {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
}

.cta-banner-box h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.cta-banner-box p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin-bottom: 0;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-sand-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

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

.card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Media Block (Content + Image) */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 2.5rem 0;
}

.media-block.reverse {
  grid-template-columns: 1fr 1fr;
}

.media-block.reverse .media-image {
  order: 1;
}

.media-block.reverse .media-text {
  order: 2;
}

.media-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  height: 320px;
  object-fit: cover;
}

/* Process Steps */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.75rem 0;
  padding-left: 0;
  list-style: none;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-sand-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  align-items: flex-start;
}

.step-number {
  background-color: var(--color-primary);
  color: var(--color-white);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.step-content p {
  margin-bottom: 0;
}

/* FAQ Accordion / List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-sand-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  color: var(--color-primary-dark);
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.faq-answer {
  color: var(--color-text-dark);
  font-size: 1.025rem;
  line-height: 1.6;
}

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

/* Footer */
.site-footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  border-top: 3px solid var(--color-accent);
}

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

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-terracotta);
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-terracotta);
  text-decoration: underline;
}

.footer-call {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.footer-call p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

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

.footer-bottom p {
  margin-bottom: 0.5rem;
  color: inherit;
  font-size: inherit;
}

/* Sticky Mobile Call Bar */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-primary-dark);
  padding: 0.75rem 1rem;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  border-top: 2px solid var(--color-accent);
}

.sticky-mobile-bar .btn-phone {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-image-wrap img {
    height: 320px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 64px; /* Space for sticky bar */
  }
  .sticky-mobile-bar {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-sand-border);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem 1.5rem;
  }
  .site-nav.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .nav-item {
    width: 100%;
  }
  .nav-link {
    display: block;
    padding: 0.65rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-sand);
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background-color: var(--color-sand-light);
    border-radius: var(--radius-sm);
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
  }
  .nav-toggle {
    display: block;
  }
  .header-cta-wrap .btn-phone {
    display: none;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .media-block, .media-block.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .media-block.reverse .media-image {
    order: 0;
  }
  .media-block.reverse .media-text {
    order: 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
