/* Vista CA Slab Leak Repair Design System */
:root {
  --ink-900: rgb(15, 23, 42);
  --ink-800: rgb(30, 41, 59);
  --ink-700: rgb(51, 65, 85);
  --ink-600: rgb(71, 85, 105);
  --ink-500: rgb(100, 116, 139);
  --ink-400: rgb(148, 163, 184);

  --ocean-900: rgb(12, 48, 77);
  --ocean-800: rgb(16, 73, 118);
  --ocean-700: rgb(14, 116, 144);
  --ocean-600: rgb(8, 145, 178);
  --ocean-500: rgb(6, 182, 212);
  --ocean-100: rgb(236, 254, 255);
  --ocean-50: rgb(240, 253, 250);

  --terracotta-700: rgb(160, 68, 28);
  --terracotta-600: rgb(194, 65, 12);
  --terracotta-500: rgb(217, 83, 25);
  --terracotta-100: rgb(255, 241, 230);
  --terracotta-50: rgb(255, 247, 240);

  --sand-100: rgb(248, 250, 252);
  --sand-200: rgb(241, 245, 249);
  --sand-300: rgb(226, 232, 240);
  --sand-400: rgb(203, 213, 225);

  --pure-white: rgb(255, 255, 255);
  --border-light: rgb(226, 232, 240);
  --border-medium: rgb(203, 213, 225);

  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-elevated: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 6px 12px -3px rgba(15, 23, 42, 0.06);

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

  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  font-family: var(--font-base);
  color: var(--ink-800);
  background-color: var(--pure-white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ocean-800);
  text-decoration: underline;
  transition: color 0.15s ease-in-out;
}

a:hover, a:focus {
  color: var(--terracotta-600);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ocean-900);
  color: var(--pure-white);
  padding: 0.5rem 1rem;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ocean-900);
  text-decoration: none;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-title:hover {
  color: var(--terracotta-600);
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--ink-500);
  font-weight: 500;
}

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

.nav-link {
  color: var(--ink-700);
  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(--ocean-800);
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-toggle:hover, .dropdown-toggle:focus {
  color: var(--ocean-800);
}

.dropdown-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-icon,
.nav-dropdown:focus-within .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background-color: var(--pure-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: 0.5rem 0;
  list-style: none;
  display: none;
  z-index: 200;
}

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

.dropdown-menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  color: var(--ink-700);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background-color: var(--ocean-100);
  color: var(--ocean-900);
}

.header-cta-btn {
  background-color: var(--terracotta-600);
  color: var(--pure-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 4px rgba(194, 65, 12, 0.2);
  transition: background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.header-cta-btn:hover {
  background-color: var(--terracotta-700);
  color: var(--pure-white);
  transform: translateY(-1px);
}

.menu-toggle-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  color: var(--ink-800);
  font-size: 1.1rem;
}

.mobile-nav-panel {
  display: none;
  background-color: var(--pure-white);
  border-top: 1px solid var(--border-light);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.6rem 0;
  color: var(--ink-800);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--sand-200);
}

.mobile-sub-menu {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-sub-link {
  display: block;
  padding: 0.4rem 0;
  color: var(--ink-600);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.breadcrumbs-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  color: var(--ink-500);
}

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

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

.breadcrumbs-list a {
  color: var(--ocean-700);
  text-decoration: none;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-padding {
  padding: 4rem 0;
}

.section-padding-sm {
  padding: 2.5rem 0;
}

/* Hero Section */
.hero-section {
  background-color: var(--sand-100);
  border-bottom: 1px solid var(--border-light);
  padding: 3.5rem 0 4rem;
}

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

.hero-badge {
  display: inline-block;
  background-color: var(--ocean-100);
  color: var(--ocean-900);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink-900);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-700);
  margin-bottom: 1.75rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cta-button-primary {
  background-color: var(--terracotta-600);
  color: var(--pure-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(194, 65, 12, 0.25);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cta-button-primary:hover {
  background-color: var(--terracotta-700);
  color: var(--pure-white);
  transform: translateY(-2px);
}

.hero-call-subtext {
  font-size: 0.88rem;
  color: var(--ink-500);
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--border-light);
  background-color: var(--pure-white);
}

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

.hero-image-caption {
  padding: 0.85rem 1.1rem;
  background-color: var(--pure-white);
  font-size: 0.85rem;
  color: var(--ink-600);
  border-top: 1px solid var(--border-light);
}

/* Notice / Alert Box */
.notice-box {
  background-color: var(--sand-200);
  border-left: 4px solid var(--ocean-700);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.75rem 0;
}

.notice-box-warning {
  background-color: var(--terracotta-50);
  border-left-color: var(--terracotta-600);
}

.notice-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
}

.notice-box p {
  color: var(--ink-700);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0;
}

/* Callout CTA banner */
.callout-cta-banner {
  background: linear-gradient(135deg, var(--ocean-900), var(--ocean-800));
  color: var(--pure-white);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .callout-cta-banner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.callout-cta-text h3 {
  color: var(--pure-white);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.callout-cta-text p {
  color: var(--ocean-100);
  font-size: 1rem;
  margin: 0;
  max-width: 650px;
}

.callout-cta-action {
  flex-shrink: 0;
}

.callout-cta-button {
  background-color: var(--terracotta-500);
  color: var(--pure-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.callout-cta-button:hover {
  background-color: var(--terracotta-600);
  color: var(--pure-white);
  transform: translateY(-2px);
}

/* Content Layouts */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.prose-section {
  max-width: 860px;
}

.prose-section h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ink-900);
  margin: 2.25rem 0 1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.prose-section h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ocean-900);
  margin: 1.75rem 0 0.75rem;
  line-height: 1.3;
}

.prose-section p {
  color: var(--ink-700);
  font-size: 1.03rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.prose-section ul, .prose-section ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--ink-700);
}

.prose-section li {
  margin-bottom: 0.55rem;
  line-height: 1.6;
}

/* Feature Grid */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}

.feature-card {
  background-color: var(--pure-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-num {
  width: 32px;
  height: 32px;
  background-color: var(--ocean-100);
  color: var(--ocean-900);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
}

.feature-card p {
  color: var(--ink-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Step list */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.step-item {
  background-color: var(--sand-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 4px solid var(--ocean-700);
}

.step-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.4rem;
}

.step-item-text {
  font-size: 0.98rem;
  color: var(--ink-700);
  line-height: 1.6;
  margin: 0;
}

/* Content with side image */
.split-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0;
}

@media (min-width: 768px) {
  .split-content {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.split-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

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

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

.service-summary-card {
  background-color: var(--pure-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-summary-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.65rem;
}

.service-summary-card p {
  color: var(--ink-600);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.service-summary-link {
  color: var(--ocean-700);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-summary-link:hover {
  color: var(--terracotta-600);
  text-decoration: underline;
}

/* FAQ Accordion / Item */
.faq-block {
  margin: 2.5rem 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border-light);
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--ink-700);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

/* Footer */
.site-footer {
  background-color: var(--ink-900);
  color: var(--sand-300);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--ink-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--pure-white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}

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

.footer-links a {
  color: var(--sand-400);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

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

.footer-phone-cta {
  display: inline-block;
  background-color: var(--terracotta-600);
  color: var(--pure-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.75rem;
}

.footer-phone-cta:hover {
  background-color: var(--terracotta-700);
  color: var(--pure-white);
}

.footer-meta-block {
  border-top: 1px solid var(--ink-800);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.84rem;
  color: var(--ink-500);
}

@media (min-width: 768px) {
  .footer-meta-block {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-network-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-network-links a {
  color: var(--ocean-500);
  text-decoration: underline;
}

/* Sticky mobile call bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--ocean-900);
  padding: 0.75rem 1rem;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.mobile-call-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--terracotta-600);
  color: var(--pure-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .nav-desktop, .header-cta-btn {
    display: none;
  }
  .menu-toggle-btn {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-image-card img {
    height: 280px;
  }
  .mobile-call-bar {
    display: block;
  }
  body {
    padding-bottom: 70px;
  }
}
