/*
Theme Name: Neckar Buchhaltungsbüro Accounting V9
Theme URI: http://www.neckar-services.de
Author: Custom Developer
Author URI: http://www.neckar-services.de
Description: A premium, modern, sharp business theme for Neckar Buchhaltungsbüro accounting and bookkeeping with Dynamic Local SEO.
Version: 9.5
Text Domain: neckar-services
*/

/* ==========================================
   DESIGN SYSTEM & CUSTOM VARIABLES
   ========================================== */
:root {
  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-signature: 'Caveat', cursive;

  /* Colors */
  --color-primary: hsl(151, 46%, 34%);       /* Calm Forest Green #2f7f57 */
  --color-primary-light: hsl(145, 33%, 58%);
  --color-primary-dark: hsl(154, 52%, 22%);
  --color-primary-glow: rgba(47, 127, 87, 0.14);
  
  --color-dark: hsl(165, 28%, 12%);          /* Deep Green Charcoal */
  --color-dark-surface: hsl(163, 24%, 17%);
  --color-text-dark: hsl(165, 30%, 10%);
  --color-text-muted: hsl(158, 18%, 33%);
  
  --color-light-bg: hsl(145, 28%, 97%);
  --color-border: rgba(47, 127, 87, 0.18);
  --color-border-hover: rgba(47, 127, 87, 0.48);
  
  /* Solid Design Tokens (Replacing AI Glassmorphism) */
  --glass-bg: #ffffff;
  --glass-bg-hover: #ffffff;
  --glass-backdrop: none;
  --glass-border: rgba(47, 127, 87, 0.18);
  --glass-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  --glass-shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.08);

  /* Spacing Grid (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;

  /* Misc */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease-out;
  --transition-spring: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================
   BASE & RESET
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  color: var(--color-text-dark);
  font-family: var(--font-body);
  background-color: #ffffff;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

/* Solid, Clean Background Base */
body {
  background-color: #ffffff;
}

/* ==========================================
   UTILITY CLASSES & REUSABLES
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.text-center { text-align: center; }
.gold-text { color: var(--color-primary); }
.text-white { color: #ffffff !important; }

.serif-title {
  font-family: var(--font-heading);
}

.italic-title {
  font-style: italic;
  font-weight: 400;
}

/* Badges (Modern Typography Eyebrows - Anti-AI) */
.badge {
  display: inline-block;
  padding: 0;
  background-color: transparent;
  border: none;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  border-radius: 0px;
  margin-bottom: var(--space-2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-spring);
  text-align: center;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-icon-right {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn:hover .btn-icon-right {
  transform: translateX(4px);
}

.btn-primary {
  background-color: var(--color-primary-dark);
  color: white;
  border: 1px solid var(--color-primary-dark);
  box-shadow: none;
}

.btn-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-dark);
  border: 1px solid var(--color-primary-dark);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--color-primary-glow);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-4px);
}

/* Section Common */
.section-header {
  max-width: 650px;
  margin: 0 auto var(--space-6) auto;
}

.section-title {
  font-size: clamp(26px, 5vw, 36px);
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
}

/* ==========================================
   HEADER / STICKY NAVIGATION
   ========================================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 100;
  display: flex;
  align-items: center;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 320px;
  color: var(--color-text-dark);
}

.logo-link .logo-text {
  font-size: 0;
  line-height: 0;
}

.logo-link::before {
  content: "NECKAR";
  font-size: 36px;
  font-family: "Times New Roman", Times, serif;
  color: currentColor;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 6px;
  transition: var(--transition-fast);
}

.logo-link::after {
  content: "BUCHHALTUNGSBÜRO";
  width: 100%;
  text-align: center;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1;
  color: currentColor;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: calc(50% - 95px) 1px, calc(50% - 95px) 1px;
  background-position: left center, right center;
  background-repeat: no-repeat;
  transition: var(--transition-fast);
}

.logo-link:hover {
  color: var(--color-primary-dark);
}

.main-footer .logo-link,
.mobile-drawer .logo-link {
  color: #ffffff;
}

.main-footer .logo-link:hover,
.mobile-drawer .logo-link:hover {
  color: var(--color-primary-light);
}

.logo-icon-box {
  background-color: var(--color-primary);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  width: 20px;
  height: 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-dark);
  padding: 6px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary-dark);
}

.nav-link:hover::after {
  width: 100%;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-dark);
  transition: var(--transition-fast);
}

/* Shrink header keyframes for native ScrollTimeline */
@keyframes shrink-header {
  to {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--color-border);
  }
}

/* ==========================================
   MOBILE DRAWER NAVIGATION
   ========================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: white;
  z-index: 1000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close {
  cursor: pointer;
  padding: 6px;
  color: var(--color-text-dark);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: var(--space-3) 0;
}

.drawer-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid transparent;
}

.drawer-link:hover {
  background-color: var(--color-light-bg);
  border-left-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.drawer-footer {
  margin-top: auto;
  padding: var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-pill-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background-color: var(--color-light-bg);
  font-weight: 600;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.drawer-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  padding-top: 100px; /* Exactly matches the 100px fixed header height — no gap */
  padding-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
}

/* When WP admin bar is showing (logged-in), compensate the extra 32px */
.admin-bar .hero-section {
  padding-top: 132px; /* 100px header + 32px admin bar */
}

/* Low-opacity background image pseudo-element */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg, none); /* Set via inline CSS var from PHP */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: center;
  position: relative;
  z-index: 1; /* Sits above the low-opacity background image */
}

.hero-title {
  font-size: clamp(36px, 5vw, 54px);
  color: var(--color-text-dark);
  line-height: 1.15;
  margin-bottom: var(--space-3);
}

.hero-bullets {
  list-style: none;
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 16px;
  font-weight: 500;
}

.bullet-icon-box {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary-glow);
  border: 1px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
}

.bullet-icon-box i {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.hero-card {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Integrated Google rating below CTA (Anti-AI bespoke design) */
.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-4);
  font-size: 14px;
}

.google-stars-inline {
  display: flex;
  gap: 2px;
}

.trust-text {
  color: var(--color-text);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-visual-bg {
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 50%; /* Shorter background box for 3D overlapping layout */
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 24px; /* Rounded corners exactly as shown in screenshot */
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
  z-index: 1;
}

/* Floating Google Rating Badge on the top-left of the white box */
.hero-google-badge {
  position: absolute;
  top: calc(50% - 20px); /* Positioned exactly relative to the 50% top edge of the white box */
  left: calc(8% - 20px);  /* Positioned relative to the 8% left edge of the white box */
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 10; /* Sitting higher than z-index 2 of the portrait image wrapper */
  min-width: 155px;
  text-align: left;
}

.hero-google-badge .badge-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
}

.hero-google-badge .google-stars-inline {
  display: flex;
  gap: 2px;
  margin: 2px 0;
}

.hero-google-badge .star-filled {
  fill: #ffb800;
  stroke: #ffb800;
  width: 14px;
  height: 14px;
}

.hero-google-badge .badge-subtitle {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden; /* Restrict image overflow and prevent it from spilling outside the visual area */
}

.hero-portrait {
  height: 92%; /* Scaled to fit wrapper height with a small vertical margin */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transform: translateY(0);
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.12));
  transition: transform 0.3s ease;
}

.hero-portrait:hover {
  transform: scale(1.02) translateY(-5px);
}

.google-stars {
  display: flex;
  gap: 2px;
}

.star-filled {
  fill: #ffb800;
  stroke: #ffb800;
  width: 14px;
  height: 14px;
}

/* ==========================================
   BENEFITS SECTION
   ========================================== */
.benefits-section {
  padding: var(--space-10) 0;
  background-color: var(--color-light-bg);
  position: relative;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.benefit-card {
  padding: var(--space-4);
  text-align: center;
}

.benefit-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-glow);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin: 0 auto var(--space-3) auto;
  transition: var(--transition-spring);
}

.benefit-icon {
  width: 28px;
  height: 28px;
}

.benefit-card:hover .benefit-icon-box {
  background-color: var(--color-primary);
  color: white;
  transform: rotateY(180deg) scale(1.1);
}

.benefit-card-title {
  font-size: 20px;
  color: var(--color-text-dark);
  margin-bottom: var(--space-1);
}

.benefit-card-text {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ==========================================
   SERVICES GRID & ACCORDION
   ========================================== */
.services-section {
  padding: var(--space-12) 0;
}

.services-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-6);
  align-items: center;
}

.services-content .section-title {
  margin-bottom: var(--space-3);
  font-size: 40px;
  line-height: 1.15;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.services-accordion-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  background: white;
}

.accordion-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--glass-shadow-hover);
}

.accordion-trigger {
  width: 100%;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  text-align: left;
}

.accordion-num {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-right: var(--space-2);
}

.accordion-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-dark);
  flex-grow: 1;
}

.accordion-arrow {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-arrow {
  transform: rotate(-180deg);
  color: var(--color-primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0 22px;
}

.accordion-content p {
  padding-bottom: 22px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================
   DARK CTA BANNER
   ========================================== */
.dark-cta-section {
  position: relative;
  background-color: var(--color-dark);
  color: white;
  padding: var(--space-6) 0;
  overflow: hidden;
}

/* Clean border top detail for CTA block */
.dark-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-border);
}

.dark-cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  position: relative;
  z-index: 2;
}

.dark-cta-title {
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.25;
  margin-bottom: var(--space-1);
}

.dark-cta-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.dark-cta-action {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-fast);
}

.contact-pill:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   PROCESS / TIMELINE
   ========================================== */
.process-section {
  padding: var(--space-12) 0;
  background-color: var(--color-light-bg);
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: var(--space-6) auto;
}

/* Center timeline line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: rgba(47, 127, 87, 0.14);
  transform: translateX(-50%);
  border-radius: var(--radius-sm);
}

.timeline-line-progress {
  width: 100%;
  height: 0%;
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: height 0.1s ease-out; /* Fallback updates */
}

.timeline-nodes {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.timeline-node {
  position: relative;
  display: flex;
}

.timeline-node::after {
  content: '';
  display: table;
  clear: both;
}

.timeline-dot-wrapper {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 10;
}

.timeline-dot {
  width: 42px;
  height: 42px;
  background-color: white;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--color-text-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition-spring);
}

.timeline-node.active .timeline-dot {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 0 15px var(--color-primary);
  transform: scale(1.1);
}

.timeline-content-wrapper {
  width: 50%;
  padding: 0 var(--space-4);
  position: relative;
}

.timeline-content-wrapper.left {
  text-align: right;
  left: 0;
}

.timeline-content-wrapper.right {
  text-align: left;
  left: 50%;
}

.timeline-card {
  padding: var(--space-4);
  position: relative;
  display: inline-block;
  text-align: left;
  max-width: 380px;
}

.step-num-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline-card-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.timeline-card-text {
  font-size: 14px;
  color: var(--color-text-muted);
}

.timeline-footer {
  margin-top: var(--space-8);
}

/* ==========================================
   TEAM SECTION
   ========================================== */
.team-section {
  padding: var(--space-12) 0;
}

.founder-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  align-items: center;
}

.founder-role {
  display: inline-block;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.founder-name {
  font-size: 32px;
  margin-bottom: var(--space-3);
}

.founder-text-p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: var(--space-3);
}

.founder-signature-box {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-3);
}

.signature-text {
  font-family: var(--font-signature);
  font-size: 32px;
  color: var(--color-text-dark);
}

.signature-title {
  font-size: 12px;
  color: var(--color-text-muted);
}

.founder-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
}

.founder-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.team-member-card {
  padding: var(--space-2);
}

.member-image-box {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-2);
  border: 1px solid var(--color-border);
}

.member-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
  transition: transform 0.6s ease;
}

.team-member-card:hover .member-image {
  transform: scale(1.04);
}

.member-details {
  padding: 0 var(--space-2) var(--space-2) var(--space-2);
}

.member-name {
  font-size: 18px;
  color: var(--color-text-dark);
}

.member-role {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.member-bio {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ==========================================
   TESTIMONIALS & REVIEWS
   ========================================== */
.testimonials-section {
  padding: var(--space-12) 0;
  background-color: var(--color-light-bg);
}

.rating-summary-row {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.summary-google-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 16px 28px;
}

.summary-stars-text {
  display: flex;
  flex-direction: column;
}

.big-rating {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
}

.rating-count {
  font-size: 12px;
  color: var(--color-text-muted);
}

.testimonials-carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.testimonials-track {
  display: flex;
  gap: var(--space-4);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.testimonials-track.grabbing {
  cursor: grabbing;
}

.testimonial-card {
  min-width: calc(50% - 12px); /* 2 items on screen */
  flex-shrink: 0;
  padding: var(--space-4);
  background: white;
}

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

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary-glow);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.user-info {
  flex-grow: 1;
}

.user-name {
  font-size: 16px;
  color: var(--color-text-dark);
}

.user-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

.card-google-logo {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.card-google-logo img {
  width: 100%;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-spring);
}

.slider-btn:hover {
  background-color: var(--color-primary-glow);
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.slider-btn:active {
  transform: scale(0.95);
}

.slider-pagination {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-sm);
  background-color: rgba(47, 127, 87, 0.28);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  width: 24px;
  background-color: var(--color-primary);
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
  padding: var(--space-12) 0;
}

.faq-accordion-list {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: white;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--color-primary-light);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--glass-shadow-hover);
}

.faq-trigger {
  width: 100%;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  text-align: left;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark);
  flex-grow: 1;
  padding-right: var(--space-2);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0 22px;
}

.faq-content p {
  padding-bottom: 22px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.faq-footer {
  margin-top: var(--space-8);
}

/* ==========================================
   FOOTER
   ========================================== */
.main-footer {
  background-color: var(--color-dark);
  color: white;
  padding: var(--space-8) 0 var(--space-3) 0;
  border-top: 2px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.brand-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-about {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

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

.footer-col-title {
  font-size: 18px;
  margin-bottom: var(--space-3);
  position: relative;
  padding-bottom: 8px;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.legal-links {
  display: flex;
  gap: var(--space-3);
}

.legal-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.legal-links a:hover {
  color: var(--color-primary);
}

/* ==========================================
   MULTI-STEP WIZARD MODAL
   ========================================== */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-wrapper.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  background: white;
  width: 100%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 2;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-wrapper.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--color-light-bg);
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background-color: var(--color-primary-glow);
  color: var(--color-primary-dark);
}

.wizard-header {
  padding: var(--space-4) var(--space-4) var(--space-2) var(--space-4);
  background: var(--color-light-bg);
  border-bottom: 1px solid var(--color-border);
}

.wizard-title {
  font-size: 22px;
  color: var(--color-text-dark);
}

.wizard-subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.wizard-steps-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.w-step {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background-color: white;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.w-step.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.w-step.completed {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
}

.w-step-line {
  flex-grow: 1;
  height: 2px;
  background-color: var(--color-border);
}

.w-step-line.completed {
  background-color: var(--color-primary-dark);
}

.wizard-body {
  padding: var(--space-4);
  max-height: 60vh;
  overflow-y: auto;
}

.wizard-step-pane {
  display: none;
}

.wizard-step-pane.active {
  display: block;
}

.step-pane-title {
  font-size: 18px;
  color: var(--color-text-dark);
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.step-pane-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* Property type options */
.property-grid-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.property-option {
  cursor: pointer;
}

.property-option input {
  display: none;
}

.option-card {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  background-color: var(--color-light-bg);
  transition: var(--transition-spring);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.option-icon {
  width: 32px;
  height: 32px;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.option-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-dark);
}

.property-option input:checked + .option-card {
  border-color: var(--color-primary);
  background-color: var(--color-primary-glow);
  transform: translateY(-2px);
}

.property-option input:checked + .option-card .option-icon {
  color: var(--color-primary-dark);
}

/* Form Styles */
.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.form-group-row .form-group {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-2);
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.form-group input, .form-group select {
  width: 100%;
  max-width: 100%;
  height: 48px;
  padding: 0 var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-light-bg);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--color-primary);
  background-color: white;
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.input-suffix {
  position: absolute;
  right: var(--space-2);
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.helper-text-box {
  display: flex;
  gap: 8px;
  padding: var(--space-2);
  background-color: var(--color-primary-glow);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--color-primary-dark);
  align-items: flex-start;
}

.helper-info-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.form-checkbox-group {
  margin-top: var(--space-3);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.checkbox-label input {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-light-bg);
  display: block;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition-fast);
}

.checkbox-label input:checked + .checkbox-custom {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* Wizard Loader */
.wizard-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4) 0;
}

.loader-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.loader-subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.loader-progress-bar {
  width: 80%;
  height: 6px;
  background-color: var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.loader-progress-fill {
  width: 0%;
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
}

/* Wizard Success */
.wizard-success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-3) 0;
}

.success-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.success-icon {
  width: 42px;
  height: 42px;
}

.success-title {
  font-size: 22px;
  margin-bottom: var(--space-2);
}

.estimated-value-box {
  background-color: var(--color-primary-glow);
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-md);
  padding: 16px var(--space-4);
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.est-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary-dark);
}

.est-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-dark);
}

.wizard-footer {
  padding: var(--space-3) var(--space-4);
  background: var(--color-light-bg);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================
   CSS SCROLL-DRIVEN ANIMATIONS (NATIVE)
   ========================================== */
@keyframes reveal-card {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Apply Scroll Timeline globally to main header if supported */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  #main-header {
    animation: shrink-header linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
}

/* Apply View Timeline to general Scroll-Reveal containers */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .scroll-reveal {
    animation: reveal-card linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }

  /* Drawing the timeline line progress on scroll */
  #timeline-progress {
    animation: grow-line linear both;
    animation-timeline: view();
    animation-range: entry 15% exit 85%;
  }

  @keyframes grow-line {
    from { height: 0%; }
    to { height: 100%; }
  }
  
  /* Timeline node activation */
  .timeline-node {
    animation: activate-node linear both;
    animation-timeline: view();
    animation-range: entry 25% cover 50%;
  }
  
  @keyframes activate-node {
    from {
      filter: grayscale(1);
      opacity: 0.5;
    }
    to {
      filter: grayscale(0);
      opacity: 1;
    }
  }
}

/* Accessibility: Stop motion animations for sensitive users */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: scroll !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .scroll-reveal, .timeline-node, #timeline-progress {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    height: 100% !important;
  }
  
  #main-header {
    animation: none !important;
    height: 70px !important;
    background-color: white !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
  }
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-2);
  }

  /* Services */
  .services-grid-container {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .services-content {
    text-align: center;
  }

  /* Team */
  .founder-card {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: center;
  }
  
  .founder-signature-box {
    align-items: center;
  }
  
  .team-members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .contact-grid-container {
    grid-template-columns: 1fr;
  }
  .contact-info-panel {
    padding: var(--space-4);
    gap: var(--space-3);
  }
}

@media (max-width: 768px) {
  /* Navigation */
  #main-header {
    height: 70px;
  }

  .logo-link {
    min-width: 230px;
  }

  .logo-link::before {
    font-size: 28px;
    margin-bottom: 4px;
  }

  .logo-link::after {
    font-size: 9px;
    letter-spacing: 2px;
    background-size: calc(50% - 76px) 1px, calc(50% - 76px) 1px;
  }

  .nav-menu {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }

  /* Hero */
  .hero-section {
    padding-top: 90px; /* Reduced top padding on mobile since mobile header is 70px */
    padding-bottom: var(--space-4);
    min-height: auto;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .hero-content {
    display: contents;
  }

  .hero-title {
    order: 1;
    margin-bottom: 0;
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.25;
  }

  .hero-visual {
    order: 2;
    height: 250px;
    margin-top: -15px;
  }
  
  .hero-google-badge {
    left: var(--space-2);
    top: var(--space-2);
    min-width: 140px;
    padding: 8px 12px;
  }
  
  .hero-bullets {
    order: 4;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    align-items: flex-start;
  }
  
  .hero-card {
    order: 4;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
  }
  
  .hero-buttons {
    order: 3;
    justify-content: center;
  }

  .hero-trust-row {
    order: 6;
    justify-content: center;
    margin-top: 0;
  }

  /* Benefits */
  .benefits-section {
    padding: var(--space-8) 0;
  }

  .benefit-card {
    padding: var(--space-3) var(--space-2);
  }

  /* Services */
  .services-section {
    padding: var(--space-8) 0;
  }

  .accordion-trigger {
    padding: 16px;
  }

  .accordion-title {
    font-size: 16px;
  }

  .accordion-num {
    font-size: 16px;
  }

  .accordion-content {
    padding: 0 16px;
  }

  .accordion-content p {
    padding-bottom: 16px;
  }

  /* Dark CTA */
  .dark-cta-container {
    flex-direction: column;
    text-align: center;
  }
  
  .dark-cta-action {
    flex-direction: column;
    width: 100%;
  }
  
  .dark-cta-action .btn, .dark-cta-action .contact-pill {
    width: 100%;
    justify-content: center;
  }

  /* Timeline */
  .process-section {
    padding: var(--space-8) 0;
  }

  .timeline-line {
    left: 18px;
  }
  
  .timeline-dot-wrapper {
    left: 18px;
  }
  
  .timeline-content-wrapper {
    width: 100%;
    padding-left: 54px;
    padding-right: 0;
  }
  
  .timeline-content-wrapper.left {
    text-align: left;
    left: 0;
  }
  
  .timeline-content-wrapper.right {
    left: 0;
  }
  
  .timeline-card {
    max-width: 100%;
  }

  /* Team */
  .team-members-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  /* Testimonials */
  .testimonials-section {
    padding: var(--space-8) 0;
  }

  .testimonial-card {
    min-width: 100%;
    padding: var(--space-3);
  }

  .summary-google-card {
    padding: 12px 18px;
    gap: var(--space-2);
  }

  /* FAQ */
  .faq-section {
    padding: var(--space-8) 0;
  }

  .faq-trigger {
    padding: 16px;
  }

  .faq-question {
    font-size: 15px;
  }

  .faq-content {
    padding: 0 16px;
  }

  .faq-content p {
    padding-bottom: 16px;
  }

  /* Contact */
  .contact-section {
    padding: var(--space-8) 0;
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: var(--space-3);
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
  }

  .legal-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo-link {
    min-width: 190px;
  }

  .logo-link::before {
    font-size: 24px;
  }

  .logo-link::after {
    font-size: 8px;
    letter-spacing: 1.5px;
    background-size: calc(50% - 64px) 1px, calc(50% - 64px) 1px;
  }

  .header-actions .btn-sm {
    padding: 10px;
    font-size: 0;
    gap: 0;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Wizard modal options grid */
  .property-grid-options {
    grid-template-columns: 1fr;
  }


  .contact-info-panel,
  .contact-form-panel {
    padding: var(--space-3) var(--space-2);
  }
}

/* ==========================================
   LOCAL SEO LOCATION PAGES & FOOTER STYLES
   ========================================== */

/* Sub-Footer Location Link Grid */
.footer-locations-section {
  padding-top: var(--space-4);
  padding-bottom: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--space-6);
}

.locations-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  letter-spacing: 0.5px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.locations-grid li {
  margin: 0;
}

.locations-grid a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.locations-grid a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Coverage Alert Box on Dynamic Location Page */
.coverage-banner-section {
  padding: var(--space-4) 0;
  background-color: var(--color-light-bg);
}

.coverage-box {
  background: white;
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4);
  text-align: left;
}

.coverage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-primary-glow);
  color: var(--color-primary-dark);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
}

.coverage-badge svg {
  width: 14px;
  height: 14px;
}

.coverage-box h3 {
  font-size: 22px;
  margin-bottom: var(--space-2);
  color: var(--color-text-dark);
}

.coverage-text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.plz-tag {
  display: inline-block;
  background-color: #f1f5f9;
  border: 1px solid var(--color-border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text-dark);
  font-weight: 600;
  margin: 2px;
}

/* Media Queries adjustment for locations grid */
@media (max-width: 768px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   LEGAL PAGES (IMPRESSUM & DATENSCHUTZ)
   ========================================== */
.legal-page-section {
  padding: var(--space-12) 0;
  background-color: var(--color-light-bg);
  min-height: 60vh;
}

.legal-content-card {
  max-width: 800px;
  margin: var(--space-6) auto 0 auto;
  padding: var(--space-6);
  background: white;
  border: 1px solid var(--color-border);
  box-shadow: var(--glass-shadow);
}

.legal-content-card h2 {
  font-size: 20px;
  color: var(--color-text-dark);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 6px;
}

.legal-content-card p, .legal-content-card ul {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.legal-content-card ul {
  padding-left: var(--space-3);
  margin-bottom: var(--space-3);
}

.legal-content-card li {
  margin-bottom: 6px;
}

/* ==========================================
   CONTACT SECTION (HOME & LOCATION PAGES)
   ========================================== */
.contact-section {
  padding: var(--space-12) 0;
  background-color: var(--color-light-bg);
}

.contact-grid-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
}

.contact-info-panel {
  background-color: var(--color-dark);
  color: white;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-panel .section-title {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: var(--space-2);
  color: #ffffff;
}

.contact-info-panel .section-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.contact-detail-item .detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: rgba(47, 127, 87, 0.14);
  border: 1px solid rgba(47, 127, 87, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-detail-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  color: white;
}

.contact-detail-item a, .contact-detail-item span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition-fast);
}

.contact-detail-item a:hover {
  color: var(--color-primary-light);
}

.contact-form-panel {
  padding: var(--space-6);
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cf7-contact-form .wpcf7-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.cf7-contact-form .wpcf7-form p,
.cf7-contact-form .wpcf7-form label {
  margin: 0;
}

.cf7-contact-form .wpcf7-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.cf7-contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.cf7-contact-form input:not([type="submit"]):not([type="checkbox"]),
.cf7-contact-form select,
.cf7-contact-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 0 var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-light-bg);
  color: var(--color-text-dark);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition-fast);
}

.cf7-contact-form textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.cf7-contact-form input:focus,
.cf7-contact-form select:focus,
.cf7-contact-form textarea:focus {
  border-color: var(--color-primary);
  background-color: white;
  box-shadow: 0 0 0 3px var(--color-primary-glow);
  outline: none;
}

.cf7-contact-form .wpcf7-form p:has(textarea),
.cf7-contact-form .wpcf7-form p:has(.wpcf7-acceptance),
.cf7-contact-form .wpcf7-form p:has(input[type="submit"]) {
  grid-column: 1 / -1;
}

.cf7-contact-form .wpcf7-acceptance label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.cf7-contact-form input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-primary);
}

.cf7-contact-form input[type="submit"] {
  width: 100%;
  min-height: 52px;
  margin-top: 15px;
  border: 0;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary);
  color: white;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cf7-contact-form input[type="submit"]:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.cf7-contact-form .wpcf7-spinner {
  margin: 12px auto 0;
}

.cf7-contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
}

.cf7-contact-form .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: var(--space-2) 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
}

.contact-success-container {
  text-align: center;
  padding: var(--space-4);
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .contact-grid-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: var(--space-8) 0;
  }

  .contact-grid-container {
    border-radius: var(--radius-sm);
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: var(--space-4);
  }

  .contact-info-panel {
    gap: var(--space-3);
  }

  .contact-info-panel .section-title {
    font-size: 26px;
  }

  .contact-info-panel .section-desc {
    margin-bottom: var(--space-3);
  }

  .contact-detail-item a,
  .contact-detail-item span {
    overflow-wrap: anywhere;
  }

  .main-contact-form .form-group-row,
  .cf7-contact-form .wpcf7-form {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }

  .main-contact-form .form-group-row .form-group {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: var(--space-6) 0;
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: var(--space-3);
  }

  .contact-info-panel .section-title {
    font-size: 24px;
  }

  .contact-detail-item {
    gap: 12px;
  }

  .contact-detail-item .detail-icon {
    width: 36px;
    height: 36px;
  }

  .main-contact-form .form-group input,
  .main-contact-form .form-group select,
  .cf7-contact-form input:not([type="submit"]):not([type="checkbox"]),
  .cf7-contact-form select,
  .cf7-contact-form textarea {
    height: 46px;
    font-size: 16px;
  }

  .cf7-contact-form textarea {
    height: auto;
    min-height: 110px;
  }

  .main-contact-form .checkbox-label {
    align-items: flex-start;
  }
}

/* ==========================================
   MOBILE & FORM FIXES
   ========================================== */
.contact-form-panel.dark label,
.contact-form-panel.dark .wpcf7-form p,
.contact-form-panel.dark .checkbox-label,
.contact-form-panel.dark .form-label,
.contact-form-panel.dark .wpcf7-list-item-label {
  color: #ffffff !important;
}

.contact-form-panel.dark input::placeholder,
.contact-form-panel.dark textarea::placeholder {
  color: rgba(255,255,255,0.6) !important;
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}
