/*
 * Kitchen Remodeling Laguna Beach - Complete Styles
 * Mobile-first responsive design
 * Minimum viewport: 320px
 */

/* ============================================
   CSS VARIABLES - Theme Colors
   ============================================ */

:root {
  /* Brand Colors */
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #f8fafc;
  --card-foreground: #0f172a;
  --popover: #ffffff;
  --popover-foreground: #0f172a;
  --primary: #0d7c66;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #1e293b;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --accent: #b87333;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #f1f5f9;
  --ring: #0d7c66;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --background: #0f172a;
  --foreground: #f8fafc;
  --card: #1e293b;
  --card-foreground: #f8fafc;
  --popover: #1e293b;
  --popover-foreground: #f8fafc;
  --primary: #0d7c66;
  --primary-foreground: #ffffff;
  --secondary: #334155;
  --secondary-foreground: #f1f5f9;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #78563d;
  --accent-foreground: #f8fafc;
  --destructive: #f43f5e;
  --destructive-foreground: #ffffff;
  --border: #334155;
  --input: #1e293b;
  --ring: #0d7c66;
}

/* ============================================
   OVERFLOW PREVENTION - Safety Net
   ============================================ */

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

img, video, iframe, embed, object, svg {
  max-width: 100%;
  height: auto;
}

[class*="grid"] > *,
[class*="flex"] > * {
  min-width: 0;
}

pre, code, .code-block, [class*="code"] {
  max-width: 100%;
  overflow-x: auto;
}

pre code,
.code-block code {
  display: block;
  min-width: 0;
}

.table-wrapper,
[class*="table-"] {
  max-width: 100%;
  overflow-x: auto;
}

p, li, td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

input, textarea, select, button {
  max-width: 100%;
}

/* ============================================
   BASE STYLES
   ============================================ */

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--foreground);
}

h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-md);
}

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

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

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-xs);
}

strong {
  font-weight: 600;
}

small {
  font-size: var(--text-sm);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

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

.section-intro {
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--background);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  gap: var(--space-lg);
  max-width: 1280px;
  margin: 0 auto;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--foreground);
  font-weight: 600;
  font-size: var(--text-lg);
}

.logo {
  display: block;
}

.logo-text {
  display: none;
}

.license-badge {
  display: none;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius);
  white-space: nowrap;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  order: 3;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--foreground);
  transition: var(--transition);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: var(--space-md);
  margin: 0;
}

.nav-menu.active {
  display: block;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: var(--space-md);
  color: var(--foreground);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.nav-menu a:hover {
  background-color: var(--muted);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  order: 2;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.phone-icon {
  flex-shrink: 0;
}

.phone-number {
  display: none;
}

.cta-button {
  display: none;
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--muted);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: block;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--background) 0%, var(--muted) 100%);
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  gap: var(--space-2xl);
}

.hero-content h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: var(--space-xl);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  text-align: center;
  min-height: 52px;
}

.cta-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-md);
}

.cta-primary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-secondary {
  background-color: var(--background);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-secondary:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.trust-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.trust-badges .badge {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.trust-badges .badge svg {
  flex-shrink: 0;
  color: var(--primary);
}

.trust-badges .badge span {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
}

.trust-badges .badge small {
  display: block;
  font-weight: 400;
  color: var(--muted-foreground);
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   SOCIAL PROOF SECTION
   ============================================ */

.social-proof-section {
  padding: var(--space-3xl) 0;
  background-color: var(--muted);
}

.stats-grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.stat-card {
  padding: var(--space-xl);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.stat-card h3 {
  margin-bottom: var(--space-md);
  color: var(--foreground);
}

.stat-card p {
  margin-bottom: 0;
  line-height: 1.7;
}

.testimonials {
  margin-top: var(--space-3xl);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.testimonial-grid {
  display: grid;
  gap: var(--space-xl);
}

.testimonial-card {
  padding: var(--space-xl);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.testimonial-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-info h4 {
  margin-bottom: var(--space-xs);
}

.testimonial-location {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin-bottom: var(--space-xs);
}

.star-rating {
  color: var(--accent);
  font-size: var(--text-lg);
}

.testimonial-card p {
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.testimonial-project {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
  padding: var(--space-3xl) 0;
  background-color: var(--background);
}

.services-section h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.services-grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.service-card {
  padding: var(--space-xl);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.service-card h3 {
  margin-bottom: var(--space-md);
}

.service-card p {
  margin-bottom: 0;
  line-height: 1.7;
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process-section {
  padding: var(--space-3xl) 0;
  background-color: var(--muted);
}

.process-section h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: -40px;
  width: 2px;
  background-color: var(--border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--text-lg);
}

.timeline-content {
  background-color: var(--card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.timeline-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

.timeline-content h3 {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.timeline-duration {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-sans);
}

.timeline-content p {
  margin-bottom: 0;
  line-height: 1.7;
}

.process-callout {
  max-width: 600px;
  margin: var(--space-3xl) auto 0;
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--primary-foreground);
  border-radius: var(--radius-lg);
  text-align: center;
}

.process-callout h3 {
  color: var(--primary-foreground);
  margin-bottom: var(--space-md);
}

.timeline-total {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.process-callout p {
  margin-bottom: 0;
  opacity: 0.95;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio-section {
  padding: var(--space-3xl) 0;
  background-color: var(--background);
}

.portfolio-section h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.portfolio-grid {
  display: grid;
  gap: var(--space-2xl);
}

.portfolio-item {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: auto;
}

.portfolio-info {
  padding: var(--space-xl);
}

.portfolio-info h3 {
  margin-bottom: var(--space-md);
}

.portfolio-info p {
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.portfolio-meta {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing-section {
  padding: var(--space-3xl) 0;
  background-color: var(--muted);
}

.pricing-section h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.pricing-tiers {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.pricing-card {
  position: relative;
  padding: var(--space-xl);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-featured {
  border: 2px solid var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-xs) var(--space-lg);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  white-space: nowrap;
}

.pricing-tier {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.pricing-range {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.pricing-features li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-note {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

.cost-factors {
  margin-top: var(--space-3xl);
}

.cost-factors h3 {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.factors-grid {
  display: grid;
  gap: var(--space-xl);
}

.factor-item {
  padding: var(--space-lg);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.factor-item h4 {
  margin-bottom: var(--space-sm);
}

.factor-cost {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.factor-item p {
  margin-bottom: 0;
  line-height: 1.7;
}

.roi-callout {
  max-width: 800px;
  margin: var(--space-3xl) auto 0;
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--primary-foreground);
  border-radius: var(--radius-lg);
  text-align: center;
}

.roi-callout h3 {
  color: var(--primary-foreground);
  margin-bottom: var(--space-lg);
}

.roi-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.roi-stat {
  padding: var(--space-lg);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.roi-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.roi-label {
  font-size: var(--text-sm);
  opacity: 0.9;
  margin-bottom: 0;
}

.roi-callout > p {
  margin-bottom: 0;
  opacity: 0.95;
  line-height: 1.7;
}

/* ============================================
   SERVICE AREA SECTION
   ============================================ */

.service-area-section {
  padding: var(--space-3xl) 0;
  background-color: var(--background);
}

.service-area-section h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.service-areas-grid {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.area-primary {
  padding: var(--space-xl);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.area-primary h3 {
  margin-bottom: var(--space-md);
}

.area-description {
  font-size: var(--text-lg);
  color: var(--muted-foreground);
  margin-bottom: var(--space-lg);
}

.neighborhoods-list {
  list-style: none;
  padding: 0;
}

.neighborhoods-list li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.neighborhoods-list li:last-child {
  border-bottom: none;
}

.areas-secondary h3 {
  margin-bottom: var(--space-lg);
}

.areas-list {
  display: grid;
  gap: var(--space-lg);
}

.area-item {
  padding: var(--space-lg);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.area-item h4 {
  margin-bottom: var(--space-sm);
}

.area-item p {
  margin-bottom: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.map-container {
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-area-callout {
  max-width: 800px;
  margin: var(--space-2xl) auto;
  padding: var(--space-lg);
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-lg);
  text-align: center;
}

.service-area-callout p {
  margin-bottom: 0;
  font-size: var(--text-lg);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
  padding: var(--space-3xl) 0;
  background-color: var(--muted);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-md);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: transparent;
  border: none;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--muted);
}

.faq-icon {
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer > div {
  padding: 0 var(--space-lg) var(--space-lg);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: var(--space-md);
}

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

/* ============================================
   LICENSING SECTION
   ============================================ */

.licensing-section {
  padding: var(--space-3xl) 0;
  background-color: var(--background);
}

.licensing-section h2 {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.licensing-content {
  max-width: 1000px;
  margin: 0 auto;
}

.licensing-content > p {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.license-display {
  display: grid;
  gap: var(--space-2xl);
  margin: var(--space-3xl) 0;
}

.license-badge-large {
  padding: var(--space-2xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--primary-foreground);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.license-badge-large svg {
  margin: 0 auto var(--space-lg);
}

.license-badge-large h3 {
  font-size: var(--text-3xl);
  color: var(--primary-foreground);
  margin-bottom: var(--space-sm);
}

.license-badge-large p {
  margin-bottom: var(--space-sm);
  font-size: var(--text-lg);
}

.license-status {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-weight: 600;
  margin: var(--space-md) 0;
}

.verify-link {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background-color: var(--background);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
}

.verify-link:hover {
  background-color: var(--primary-foreground);
  transform: translateY(-2px);
}

.license-requirements {
  padding: var(--space-xl);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.license-requirements h3 {
  margin-bottom: var(--space-lg);
}

.license-requirements ul {
  list-style: none;
  padding: 0;
}

.license-requirements li {
  padding: var(--space-md) 0 var(--space-md) var(--space-2xl);
  position: relative;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.license-requirements li:last-child {
  border-bottom: none;
}

.license-requirements li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: var(--space-md);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--text-sm);
}

.comparison-callout {
  margin: var(--space-3xl) 0;
  padding: var(--space-xl);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.comparison-callout h3 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.comparison-grid {
  display: grid;
  gap: var(--space-xl);
}

.comparison-column {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
}

.comparison-column h4 {
  padding: var(--space-md);
  border-radius: var(--radius);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.comparison-column.licensed h4 {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.comparison-column.unlicensed h4 {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

.comparison-column ul {
  list-style: none;
  padding: 0;
}

.comparison-column li {
  padding: var(--space-sm) 0 var(--space-sm) var(--space-xl);
  position: relative;
  margin-bottom: var(--space-sm);
}

.comparison-column.licensed li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.comparison-column.unlicensed li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--destructive);
  font-weight: 700;
}

.comparison-warning {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--destructive);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.laguna-beach-context,
.verification-instructions {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.verification-instructions ol {
  padding-left: var(--space-xl);
}

.verification-instructions li {
  margin-bottom: var(--space-md);
}

.trust-badges-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.trust-badges-footer .badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.trust-badges-footer .badge svg {
  color: var(--primary);
}

.trust-badges-footer .badge p {
  margin-bottom: 0;
  font-weight: 600;
}

.trust-badges-footer .badge small {
  display: block;
  font-weight: 400;
  color: var(--muted-foreground);
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */

.final-cta-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--primary-foreground);
}

.final-cta-content {
  display: grid;
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.cta-text h2 {
  color: var(--primary-foreground);
  margin-bottom: var(--space-lg);
}

.cta-text > p {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

.cta-benefits ul {
  list-style: none;
  padding: 0;
}

.cta-benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  margin-bottom: 0;
}

.cta-benefits svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.cta-form-container {
  padding: var(--space-xl);
  background-color: var(--background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.cta-form-container h3 {
  color: var(--foreground);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.contact-form {
  display: grid;
  gap: var(--space-lg);
}

.form-group {
  display: grid;
  gap: var(--space-xs);
}

.form-group label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  background-color: var(--input);
  color: var(--foreground);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.1);
}

.form-submit {
  padding: var(--space-md) var(--space-xl);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: var(--text-lg);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-disclaimer {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.alternate-contact {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  text-align: center;
}

.alternate-contact p {
  margin-bottom: var(--space-md);
  color: var(--foreground);
}

.phone-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: var(--text-xl);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.phone-cta:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.phone-hours {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-columns {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-column h3,
.footer-column h4 {
  color: var(--background);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  margin-bottom: var(--space-md);
}

.company-mission {
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
}

.footer-contact p {
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.footer-contact a {
  color: var(--background);
  text-decoration: underline;
}

.footer-contact a:hover {
  color: var(--primary);
}

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

.footer-column li {
  margin-bottom: var(--space-sm);
}

.footer-column a {
  color: var(--background);
  opacity: 0.9;
  transition: var(--transition);
}

.footer-column a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.copyright {
  font-size: var(--text-sm);
  opacity: 0.8;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--background);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-cta {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.footer-cta-button {
  display: inline-block;
  padding: var(--space-md) var(--space-2xl);
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.footer-cta-button:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

.social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--background);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

/* ============================================
   CTA WRAPPER UTILITY
   ============================================ */

.cta-wrapper {
  text-align: center;
  margin-top: var(--space-2xl);
}

.cta-button-primary,
.cta-button-secondary {
  display: inline-block;
  padding: var(--space-md) var(--space-2xl);
  font-weight: 600;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.cta-button-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-md);
}

.cta-button-primary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-button-secondary:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* ============================================
   TABLET STYLES (768px+)
   ============================================ */

@media (min-width: 768px) {
  /* Typography */
  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  /* Header */
  .logo-text {
    display: inline;
  }

  .license-badge {
    display: block;
  }

  .phone-number {
    display: inline;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    gap: var(--space-lg);
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .nav-menu a {
    padding: var(--space-sm);
    border-bottom: none;
  }

  .cta-button {
    display: inline-block;
  }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero-content h1 {
    font-size: var(--text-4xl);
  }

  .hero-cta-group {
    flex-direction: row;
  }

  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pricing */
  .pricing-tiers {
    grid-template-columns: repeat(2, 1fr);
  }

  .factors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Service Areas */
  .service-areas-grid {
    grid-template-columns: 1fr 1fr;
  }

  .areas-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Licensing */
  .license-display {
    grid-template-columns: 1fr 2fr;
  }

  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-badges-footer {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Final CTA */
  .final-cta-content {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================
   DESKTOP STYLES (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  /* Typography */
  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  /* Hero */
  .hero-content h1 {
    font-size: var(--text-5xl);
  }

  .trust-badges {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Pricing */
  .pricing-tiers {
    grid-template-columns: repeat(3, 1fr);
  }

  .factors-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Trust Badges */
  .trust-badges-footer {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer-columns {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}