/* Santa Barbara Coastal Terra Design System - Zero Hash Policy */
:root {
  --primary-deep: rgb(21, 50, 77);
  --primary-light: rgb(34, 80, 122);
  --terra-warm: rgb(194, 95, 42);
  --terra-dark: rgb(160, 73, 26);
  --sand-bg: rgb(248, 246, 240);
  --sand-card: rgb(255, 255, 255);
  --sand-border: rgb(228, 222, 210);
  --text-main: rgb(38, 45, 54);
  --text-muted: rgb(92, 103, 115);
  --text-light: rgb(255, 255, 255);
  --accent-soft: rgb(235, 242, 248);
  --shadow-sm: 0 2px 8px rgba(21, 50, 77, 0.08);
  --shadow-md: 0 6px 20px rgba(21, 50, 77, 0.12);
  --shadow-lg: 0 12px 32px rgba(21, 50, 77, 0.16);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--sand-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* Space for mobile sticky CTA bar */
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: var(--terra-warm);
}

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

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

h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.15rem;
}

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

li {
  margin-bottom: 0.5rem;
}

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

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  background-color: var(--primary-deep);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-deep);
  line-height: 1.1;
}

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

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-deep);
  text-decoration: none;
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-link:hover, .nav-link:focus {
  color: var(--terra-warm);
}

.nav-dropdown {
  position: relative;
}

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

.dropdown-item {
  padding: 0.5rem 1.25rem;
}

.dropdown-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
}

.dropdown-link:hover, .dropdown-link:focus {
  color: var(--terra-warm);
  background-color: var(--accent-soft);
}

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

.header-cta-btn {
  background-color: var(--terra-warm);
  color: var(--text-light);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 3px 10px rgba(194, 95, 42, 0.3);
  transition: all 0.2s ease;
}

.header-cta-btn:hover, .header-cta-btn:focus {
  background-color: var(--terra-dark);
  color: var(--text-light);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--sand-border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--primary-deep);
}

@media (max-width: 960px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--sand-card);
    border-bottom: 2px solid var(--terra-warm);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }

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

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0.25rem 0 0.5rem 1rem;
    min-width: 100%;
  }

  .header-cta-btn {
    display: none;
  }
}

/* Breadcrumbs */
.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.breadcrumb-separator {
  color: var(--sand-border);
  user-select: none;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-deep) 0%, rgb(15, 36, 56) 100%);
  color: var(--text-light);
  padding: 3.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 850px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero-content h1 {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

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

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

.hero-call-btn {
  background-color: var(--terra-warm);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(194, 95, 42, 0.4);
  transition: all 0.2s ease;
}

.hero-call-btn:hover, .hero-call-btn:focus {
  background-color: var(--terra-dark);
  color: var(--text-light);
  transform: translateY(-2px);
}

.hero-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: rgb(220, 235, 250);
  backdrop-filter: blur(4px);
}

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

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Page Intro & Content Containers */
.main-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.editorial-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .editorial-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.content-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Sidebar Info Card */
.sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sidebar-card {
  background-color: var(--sand-card);
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  margin-top: 0;
  color: var(--primary-deep);
  border-bottom: 2px solid var(--terra-warm);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.sidebar-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.sidebar-card li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--sand-border);
  font-size: 0.95rem;
}

.sidebar-card li:last-child {
  border-bottom: none;
}

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

.callout-box h3 {
  margin-top: 0;
}

/* Direct Call CTA Banner */
.direct-call-banner {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.direct-call-banner h2, .direct-call-banner h3 {
  color: var(--text-light);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.direct-call-banner p {
  color: rgb(220, 235, 250);
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.banner-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--terra-warm);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.banner-phone-btn:hover, .banner-phone-btn:focus {
  background-color: var(--terra-dark);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Content Grids */
.services-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-feature-card {
  background-color: var(--sand-card);
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.service-feature-card h3 {
  margin-top: 0;
  color: var(--primary-deep);
}

/* Step Progression Section */
.step-list {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  background-color: var(--sand-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--sand-border);
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-deep);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.step-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

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

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

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

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

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

/* Footer */
.site-footer {
  background-color: var(--primary-deep);
  color: rgb(210, 222, 235);
  padding: 3.5rem 1.25rem 2.5rem;
  margin-top: 4rem;
  border-top: 4px solid var(--terra-warm);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-column h4 {
  color: var(--text-light);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--terra-warm);
}

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

.footer-column li {
  margin-bottom: 0.6rem;
}

.footer-column a {
  color: rgb(210, 225, 240);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-column a:hover, .footer-column a:focus {
  color: var(--terra-warm);
  text-decoration: underline;
}

.footer-contact-info p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgb(170, 185, 200);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgb(190, 205, 220);
}

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

@media (max-width: 899px) {
  .mobile-call-bar {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.mobile-call-link {
  width: 100%;
  max-width: 400px;
  background-color: var(--terra-warm);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.mobile-call-link:hover, .mobile-call-link:focus {
  background-color: var(--terra-dark);
  color: var(--text-light);
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--terra-warm);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
