:root {
  --clr-bg: #ffffff;
  --clr-bg-alt: #f8fdfb;
  --clr-primary: #00a651;
  --clr-primary-accent: #00c65e;
  --clr-accent: #ff6b35;
  --clr-accent-light: #ff8c5a;
  --clr-danger: #e74c3c;
  --clr-text: #1a2e1f;
  --clr-text-muted: #5a7064;
  --clr-border: #e0f2e7;
  --clr-success: #27ae60;
  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 24px;
  --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 10px 30px -10px rgba(0,166,81,0.1);
  --shadow-accent: 0 4px 6px rgba(0,0,0,0.05), 0 10px 30px -10px rgba(255,107,53,0.15);
  --transition: 0.3s cubic-bezier(.4,.2,.2,1);
  font-size: 16px;
  --content-max: 1180px;
  
  /* Mobile-friendly variables */
  --touch-target: 44px;
  --mobile-padding: 1rem;
  --mobile-gap: 1rem;
}

/* Dark mode variables */
:root[data-theme="dark"] {
  --clr-bg: #0f1419;
  --clr-bg-alt: #1a1f2e;
  --clr-primary: #00d96e;
  --clr-primary-accent: #00f578;
  --clr-accent: #ff7a47;
  --clr-accent-light: #ff9666;
  --clr-danger: #ff6b6b;
  --clr-text: #e2e8f0;
  --clr-text-muted: #94a3b8;
  --clr-border: #334155;
  --clr-success: #22c55e;
  --shadow: 0 4px 6px rgba(0,0,0,0.3), 0 10px 30px -10px rgba(0,217,110,0.2);
  --shadow-accent: 0 4px 6px rgba(0,0,0,0.3), 0 10px 30px -10px rgba(255,122,71,0.3);
}

/* Auto dark mode based on system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --clr-bg: #0f1419;
    --clr-bg-alt: #1a1f2e;
    --clr-primary: #00d96e;
    --clr-primary-accent: #00f578;
    --clr-accent: #ff7a47;
    --clr-accent-light: #ff9666;
    --clr-danger: #ff6b6b;
    --clr-text: #e2e8f0;
    --clr-text-muted: #94a3b8;
    --clr-border: #334155;
    --clr-success: #22c55e;
    --shadow: 0 4px 6px rgba(0,0,0,0.3), 0 10px 30px -10px rgba(0,217,110,0.2);
    --shadow-accent: 0 4px 6px rgba(0,0,0,0.3), 0 10px 30px -10px rgba(255,122,71,0.3);
  }
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly base styles */
button,
[role="button"],
input[type="submit"],
input[type="button"],
.cta,
.outline-btn,
.secondary-link {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Improved focus for mobile */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.6;
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  transition: color var(--transition), background-color var(--transition);
}

/* Smooth theme transitions */
*,
*::before,
*::after {
  transition: 
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

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

h1,h2,h3,h4 {
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 .6em;
  letter-spacing: -.5px;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.125rem; max-width: 52ch; }
p { margin: 0 0 1em; }

a { color: var(--clr-primary); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.small { font-size: .85rem; }
.big-number { font-size: 2.2rem; font-weight: 600; margin: .2em 0 .4em; }
.muted { color: var(--clr-text-muted); }
.fine-print { margin-top: 1.5rem; }

.container {
  width: 100%;
  margin: 0 auto;
  max-width: var(--content-max);
  padding: 0 1.3rem;
}

.narrow { max-width: 780px; }

.flex { display: flex; gap: 1rem; }
.between { justify-content: space-between; }
.center-v { align-items: center; }

.section {
  padding: clamp(3rem, 7vw, 5.2rem) 0;
  position: relative;
}

.alt-bg {
  background: var(--clr-bg-alt);
}

.section-intro {
  max-width: 60ch;
  margin-top: -0.4rem;
  margin-bottom: 2.2rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition: var(--transition);
  padding: 0.75rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Dark mode header */
:root[data-theme="dark"] .site-header {
  background: rgba(15,20,25,.95);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header {
    background: rgba(15,20,25,.95);
  }
}

.site-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.site-header.scrolled::before {
  transform: scaleX(1);
}

.logo {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--clr-primary);
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.logo img { 
  width: auto; 
  transition: var(--transition);
}

/* Navigation Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--clr-text);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.theme-toggle:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: white;
  transform: rotate(180deg) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,166,81,0.3);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

.theme-toggle-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.theme-toggle-icon svg {
  position: absolute;
  top: 0;
  left: 0;
  transition: var(--transition);
}

.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

/* Dark mode theme toggle states */
:root[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

:root[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
  }
  
  :root:not([data-theme="light"]) .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.95rem;
}

.main-nav a {
  font-weight: 500;
  position: relative;
  padding: .6rem 0;
  color: var(--clr-text);
  transition: var(--transition);
}

.main-nav a:not(.cta) {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.main-nav a:not(.cta):after {
  content: "";
  position: absolute;
  left: 0; 
  bottom: 0;
  width: 0; 
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.main-nav a:not(.cta):hover:after,
.main-nav a:not(.cta):focus-visible:after {
  width: 100%;
}

.main-nav a:not(.cta):hover {
  color: var(--clr-primary);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  cursor: pointer;
  background: var(--clr-bg-alt);
  border: 2px solid var(--clr-border);
  width: 48px;
  height: 48px;
  position: relative;
  padding: 0;
  border-radius: 50%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.nav-toggle:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-accent);
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 3px;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px;
  height: 3px;
  background: var(--clr-text);
  transform: translate(-50%, -50%);
  transition: var(--transition);
  border-radius: 3px;
}
.nav-toggle-bar::before { transform: translate(-50%, -8px); }
.nav-toggle-bar::after { transform: translate(-50%, 8px); }

.nav-toggle:hover .nav-toggle-bar,
.nav-toggle:hover .nav-toggle-bar::before,
.nav-toggle:hover .nav-toggle-bar::after {
  background: white;
}

.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translate(-50%, -50%) rotate(-45deg); }

.hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 30%, #ffffff 70%);
  position: relative;
}

/* Dark mode hero */
:root[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 30%, #0f1419 70%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 30%, #0f1419 70%);
  }
}

.hero-grid {
  align-items: center;
}

.hero-location {
  background: linear-gradient(135deg, rgba(0,166,81,0.1) 0%, rgba(255,107,53,0.1) 100%);
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  margin: 1rem 0 0.5rem;
  text-align: center;
  border: 1px solid rgba(0,166,81,0.2);
  font-size: 0.95rem;
  color: var(--clr-text);
}

.hero-text .hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 1rem;
}

.trust-points {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--clr-text-muted);
}

.trust-points li {
  position: relative;
  padding: .4rem .6rem;
  border-radius: 20px;
  background: rgba(0,166,81,0.08);
  transition: var(--transition);
  cursor: default;
}

.trust-points li:hover {
  background: rgba(0,166,81,0.15);
  transform: translateY(-1px);
}

.hero-visual {
  display: grid;
  gap: 1.2rem;
  position: relative;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.hero-image {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: contain;
  display: block;
}

.image-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
}

.overlay-badge {
  background: rgba(0,166,81,0.9);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-text {
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.visual-placeholder {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px dashed var(--clr-primary);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 360px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.shadow {
  box-shadow: var(--shadow);
}

.stat-card {
  background: linear-gradient(135deg, #fff 0%, #fefffe 100%);
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 320px;
  border: 1px solid rgba(0,166,81,0.1);
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  border-radius: var(--radius) var(--radius) 0 0;
}

.grid-2 {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Steps */
.steps {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  margin-top: 2.2rem;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--clr-border);
  padding: 1.4rem 1.2rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 8px -6px rgba(0,0,0,.05);
  transition: var(--transition);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.step:nth-child(2) {
  animation-delay: 0.2s;
}

.step:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.step:hover {
  border-color: var(--clr-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.step:hover::before {
  transform: scaleX(1);
}

.step-number {
  width: 38px;
  height: 38px;
  background: var(--clr-primary);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  border-radius: 50%;
  font-weight: 600;
  margin-bottom: .6rem;
}

.process-banner {
  margin-top: 2.8rem;
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-light) 100%);
  padding: 1.4rem 1.8rem;
  border-radius: var(--radius);
  color: #fff;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-accent);
}

.process-banner p {
  margin: 0;
  font-weight: 500;
}

/* Service Area Banner */
.service-area-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid var(--clr-primary);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-area-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
}

.service-area-banner h3 {
  margin: 0 0 0.5rem;
  color: var(--clr-primary);
  font-size: 1.1rem;
}

.service-area-banner p {
  margin: 0.3rem 0;
}

.service-area-banner p:first-of-type {
  font-weight: 600;
  color: var(--clr-text);
  font-size: 1.05rem;
}

.service-area-banner .small {
  color: var(--clr-text-muted);
  font-style: italic;
}

/* =====================================
   DARK MODE COMPONENT STYLING
   ===================================== */

/* Step cards dark mode */
:root[data-theme="dark"] .step {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 8px -6px rgba(0,0,0,.3);
}

:root[data-theme="dark"] .step:hover {
  background: #334155;
  box-shadow: 0 10px 25px -6px rgba(0,0,0,.4);
}

/* Service area banner dark mode */
:root[data-theme="dark"] .service-area-banner {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
}

/* Price cards dark mode */
:root[data-theme="dark"] .price-card {
  background: #1e293b;
  border-color: #334155;
}

:root[data-theme="dark"] .price-card.highlighted {
  background: linear-gradient(135deg, #00d96e 0%, #00f578 100%);
  color: #0f1419;
  border-color: #00d96e;
}

/* Stat card dark mode */
:root[data-theme="dark"] .stat-card {
  background: #1e293b;
  border-color: #334155;
}

/* Form elements dark mode */
:root[data-theme="dark"] input[type=text],
:root[data-theme="dark"] input[type=email],
:root[data-theme="dark"] input[type=tel],
:root[data-theme="dark"] input[type=number],
:root[data-theme="dark"] input[type=date],
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: #1e293b;
  border-color: #334155;
  color: var(--clr-text);
}

:root[data-theme="dark"] input:focus-visible,
:root[data-theme="dark"] select:focus-visible,
:root[data-theme="dark"] textarea:focus-visible {
  border-color: var(--clr-primary);
  background: #334155;
}

:root[data-theme="dark"] select:disabled,
:root[data-theme="dark"] input[type=date]:disabled {
  background: #1b2433;
  color: var(--clr-text-muted);
}

/* Modal dark mode */
:root[data-theme="dark"] .modal-content {
  background: #1e293b;
  border: 1px solid #334155;
}

/* Navigation dark mode */
:root[data-theme="dark"] .main-nav ul {
  /* background: #1e293b; */
  border-color: #334155;
}

:root[data-theme="dark"] .main-nav a:hover {
  background: #334155;
}

/* FAQ dark mode */
:root[data-theme="dark"] #faq details {
  background: #1e293b;
  border-color: #334155;
}

:root[data-theme="dark"] #faq details[open] {
  background: #334155;
  border-color: var(--clr-primary);
}

/* Auto dark mode for system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .step {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 8px -6px rgba(0,0,0,.3);
  }

  :root:not([data-theme="light"]) .step:hover {
    background: #334155;
    box-shadow: 0 10px 25px -6px rgba(0,0,0,.4);
  }

  :root:not([data-theme="light"]) .service-area-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #475569;
  }

  :root:not([data-theme="light"]) .price-card {
    background: #1e293b;
    border-color: #334155;
  }

  :root:not([data-theme="light"]) .price-card.highlighted {
    background: linear-gradient(135deg, #00d96e 0%, #00f578 100%);
    color: #0f1419;
    border-color: #00d96e;
  }

  :root:not([data-theme="light"]) .stat-card {
    background: #1e293b;
    border-color: #334155;
  }

  :root:not([data-theme="light"]) input[type=text],
  :root:not([data-theme="light"]) input[type=email],
  :root:not([data-theme="light"]) input[type=tel],
  :root:not([data-theme="light"]) input[type=number],
  :root:not([data-theme="light"]) select,
  :root:not([data-theme="light"]) textarea {
    background: #1e293b;
    border-color: #334155;
    color: var(--clr-text);
  }

  :root:not([data-theme="light"]) input:focus-visible,
  :root:not([data-theme="light"]) select:focus-visible,
  :root:not([data-theme="light"]) textarea:focus-visible {
    border-color: var(--clr-primary);
    background: #334155;
  }

  :root:not([data-theme="light"]) .modal-content {
    background: #1e293b;
    border: 1px solid #334155;
  }

  :root:not([data-theme="light"]) .main-nav ul {
    /* background: #1e293b; */
    border-color: #334155;
  }

  :root:not([data-theme="light"]) .main-nav a:hover {
    background: #334155;
  }

  :root:not([data-theme="light"]) #faq details {
    background: #1e293b;
    border-color: #334155;
  }

  :root:not([data-theme="light"]) #faq details[open] {
    background: #334155;
    border-color: var(--clr-primary);
  }
}

/* Forms */
form {
  width: 100%;
}

form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 2rem;
}

form legend {
  font-weight: 600;
  margin-bottom: .8rem;
}

.form-grid {
  display: grid;
  gap: 1.2rem 1.4rem;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
}

.form-control {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.slot-helper {
  margin-top: .8rem;
  font-size: .85rem;
  color: var(--clr-text-muted);
}

.slot-helper.error {
  color: var(--clr-danger);
}

.form-control.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 500;
  font-size: .9rem;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=number],
input[type=date],
select,
textarea {
  font: inherit;
  padding: .7rem .8rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-s);
  background: #fff;
  transition: var(--transition);
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 100%;
}

select:disabled,
input[type=date]:disabled {
  background: #f1f5f9;
  color: var(--clr-text-muted);
  cursor: not-allowed;
}

/* iOS Safari specific fixes */
input[type=text],
input[type=email],
input[type=tel],
input[type=number],
input[type=date] {
  -webkit-border-radius: var(--radius-s);
  border-radius: var(--radius-s);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
  border-color: var(--clr-primary);
}

.error {
  border-color: var(--clr-danger);
  background: #ffeceb;
}

.error-msg {
  min-height: 1em;
  font-size: .7rem;
  color: var(--clr-danger);
}

.consent-block {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 1rem 0 1.2rem;
  font-size: .85rem;
}

.checkbox {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  cursor: pointer;
}

.checkbox input {
  margin-top: .2rem;
}

.form-feedback {
  font-weight: 500;
  margin-top: 1rem;
}

.form-feedback.error {
  color: var(--clr-danger);
}

.form-feedback.success {
  color: var(--clr-success);
}

/* Buttons */
.cta,
.outline-btn,
.secondary-link {
  --btn-bg: var(--clr-primary);
  --btn-color: #fff;
  --btn-bg-hover: var(--clr-primary-accent);
  --btn-padding: .9rem 1.4rem;
  border: 0;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  text-decoration: none;
  border-radius: var(--radius-s);
  font-weight: 600;
  line-height: 1.1;
  transition: var(--transition);
  position: relative;
}

.cta {
  background: var(--btn-bg);
  color: var(--btn-color);
  padding: var(--btn-padding);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta:hover::before {
  left: 100%;
}

.cta:hover,
.cta:focus-visible {
  background: var(--btn-bg-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -8px rgba(0,166,81,.4);
}

.cta-small {
  padding: .85rem 1.8rem !important;
  font-size: .95rem !important;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.cta-accent {
  --btn-bg: var(--clr-accent);
  --btn-bg-hover: var(--clr-accent-light);
}

.cta-accent:hover,
.cta-accent:focus-visible {
  box-shadow: 0 6px 20px -8px rgba(255,107,53,.4);
}

.secondary-link {
  background: #fff;
  color: var(--clr-primary);
  border: 1px solid var(--clr-primary);
  padding: .75rem 1.1rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.secondary-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--clr-primary);
  transition: left var(--transition);
  z-index: -1;
}

.secondary-link:hover::before,
.secondary-link:focus-visible::before {
  left: 0;
}

.secondary-link:hover,
.secondary-link:focus-visible {
  color: #fff;
  text-decoration: none;
  border-color: var(--clr-primary);
}

.outline-btn {
  background: #fff;
  color: var(--clr-primary);
  border: 1px solid var(--clr-primary);
  padding: .7rem 1.1rem;
}

.outline-btn:hover,
.outline-btn:focus-visible {
  background: var(--clr-primary);
  color: #fff;
  text-decoration: none;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  margin-top: 2.2rem;
}

.price-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  box-shadow: 0 4px 10px -6px rgba(0,0,0,.06);
}

.price-card.highlighted {
  border: 2px solid var(--clr-primary);
  background: linear-gradient(150deg,#ffffff 0%,#f0fdf4 100%);
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.price-card .badge {
  position: absolute;
  top: -12px; left: 16px;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-light));
  color: #fff;
  padding: .3rem .6rem;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 20px;
  letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(255,107,53,.3);
}

.price {
  font-size: 1.7rem;
  font-weight: 600;
  margin: .3rem 0 .2rem;
}

.price-card ul {
  margin: .2rem 0 1rem;
  padding: 0 0 0 1.1rem;
  font-size: .85rem;
  line-height: 1.4;
}

.price-card .cta,
.price-card .outline-btn {
  margin-top: auto;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  margin-top: 1.4rem;
}

.founder-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  padding: 1.2rem 1.3rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

/* Dark mode founder card */
:root[data-theme="dark"] .founder-card {
  background: var(--clr-bg-alt);
  border-color: var(--clr-border);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .founder-card {
    background: var(--clr-bg-alt);
    border-color: var(--clr-border);
  }
}

/* FAQ */
#faq details {
  border: 1px solid var(--clr-border);
  background: #fff;
  border-radius: var(--radius-s);
  padding: .9rem 1rem;
  margin-bottom: .9rem;
  transition: var(--transition);
}

#faq details[open] {
  background: #f9fcfa;
  border-color: var(--clr-primary);
}

#faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  position: relative;
}

#faq summary::-webkit-details-marker { display: none; }

#faq summary:after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 600;
  transform: translateY(2px);
}

#faq details[open] summary:after {
  content: "–";
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: .6rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #0a2818 0%, #0f3420 100%);
  color: #fff;
  margin-top: 3rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
}

.footer-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  padding: 3rem 0 2.4rem;
}

.site-footer a {
  color: #d5ede1;
  font-size: .85rem;
}

.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}

.newsletter {
  background: rgba(255,255,255,.06);
  padding: .9rem 1rem 1rem;
  border-radius: var(--radius);
}

.inline-field {
  display: flex;
  gap: .5rem;
  margin-top: .4rem;
}

.inline-field input {
  flex: 1 1 auto;
  padding: .55rem .7rem;
  font-size: .85rem;
  background: #fff;
  border-radius: var(--radius-s);
}

.inline-field button {
  font-size: .75rem;
  padding: .55rem .8rem;
}

.legal-line {
  background: linear-gradient(135deg, #072114 0%, #0a2818 100%);
  padding: .8rem 0;
  margin-top: .3rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 200;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  background: #fff;
  width: min(94vw, 520px);
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.8rem;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,.25);
  animation: scaleIn .35s var(--transition);
}

@keyframes scaleIn {
  from { transform: translate(-50%,-48%) scale(.96); opacity: 0; }
  to { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  right: .6rem; top: .4rem;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--clr-text-muted);
  line-height: 1;
}

.modal-close:hover {
  color: var(--clr-text);
}

/* Utilities */
.bullets {
  padding-left: 1.1rem;
  margin: 1rem 0 0;
}

.bullets li {
  margin-bottom: .4rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================
   MOBILE OPTIMIZATIONS
   ===================================== */

/* Large tablets and small desktop */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero {
    padding: clamp(2rem, 5vw, 3rem) 0;
  }
  
  .section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
  }
}

/* Tablets */
@media (max-width: 768px) {
  h1 { 
    font-size: clamp(2rem, 7vw, 2.8rem); 
    line-height: 1.1;
  }
  
  h2 { 
    font-size: clamp(1.5rem, 5vw, 2.2rem); 
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-grid {
    text-align: center;
  }
  
  .hero-text .hero-actions {
    justify-content: center;
    margin: 2rem 0 1.5rem;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Form improvements for tablets */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-control.full {
    grid-column: 1;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--mobile-padding);
  }
  
  .section {
    padding: clamp(2rem, 8vw, 3rem) 0;
  }
  
  .hero {
    padding: 1.5rem 0 2rem;
    min-height: auto;
  }
  
  h1 { 
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    margin-bottom: 1rem;
  }
  
  h2 { 
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  
  .lead {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .hero-location {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    margin: 1rem 0;
  }
  
  /* Touch-friendly buttons */
  .cta,
  .outline-btn,
  .secondary-link {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-height: var(--touch-target);
    border-radius: var(--radius);
  }
  
  .cta-small {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 48px;
    white-space: nowrap;
    letter-spacing: 0.3px;
  }
  
  /* Mobile navigation improvements */
  .site-header {
    padding: 0.8rem 0;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .logo img {
    height: 40px;
  }
  
  /* Hero actions stack on mobile */
  .hero-text .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  
  .hero-text .hero-actions .cta,
  .hero-text .hero-actions .secondary-link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  /* Trust points stack vertically */
  .trust-points {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
  }
  
  .trust-points li {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  /* Service area banner mobile */
  .service-area-banner {
    padding: 1.5rem 1rem;
    margin: 1.5rem 0 2rem;
  }
  
  .service-area-banner h3 {
    font-size: 1rem;
  }
  
  .service-area-banner p:first-of-type {
    font-size: 1rem;
  }
  
  /* Step cards mobile */
  .step {
    padding: 1.5rem 1rem;
  }
  
  .step-number {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  /* Pricing cards mobile */
  .price-card {
    padding: 1.5rem 1.2rem;
  }
  
  .price {
    font-size: 1.5rem;
  }
  
  /* Process banner mobile */
  .process-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
  }
  
  /* Form mobile optimizations */
  input[type=text],
  input[type=email],
  input[type=tel],
  input[type=number],
  select,
  textarea {
    padding: 1rem;
    font-size: 1rem;
    border-radius: var(--radius);
    -webkit-appearance: none;
    appearance: none;
  }
  
  /* iOS specific fixes */
  input[type=text],
  input[type=email],
  input[type=tel] {
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: var(--radius);
    border-radius: var(--radius);
  }
  
  /* Better touch targets for form elements */
  .checkbox {
    padding: 0.5rem 0;
  }
  
  .checkbox input {
    transform: scale(1.2);
  }
  
  /* Modal mobile improvements */
  .modal-content {
    width: calc(100vw - 2rem);
    margin: 1rem;
    max-height: calc(100vh - 2rem);
    padding: 1.5rem;
  }
  
  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .newsletter {
    padding: 1rem;
  }
  
  .inline-field {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .inline-field input {
    width: 100%;
  }
}

/* Extra small devices */
@media (max-width: 320px) {
  .container {
    padding: 0 0.8rem;
  }
  
  h1 { 
    font-size: 1.6rem;
  }
  
  .cta,
  .outline-btn,
  .secondary-link {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .service-area-banner {
    padding: 1.2rem 0.8rem;
  }
  
  .step {
    padding: 1.2rem 0.8rem;
  }
  
  .price-card {
    padding: 1.2rem 1rem;
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 1rem 0 1.5rem;
  }
  
  .section {
    padding: clamp(1.5rem, 5vw, 2.5rem) 0;
  }
  
  .modal-content {
    max-height: calc(100vh - 1rem);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Responsive nav (mobile) */
@media (max-width: 860px) {
  .site-header {
    padding: 0.6rem 0;
  }
  
  .site-header .container {
    gap: 0.5rem;
    position: relative;
  }
  
  .logo {
    font-size: 1rem;
    z-index: 101;
  }
  
  .logo img {
    height: 48px !important;
  }
  
  .main-nav {
    position: static;
    flex: 1;
    justify-content: flex-end;
    order: 2;
  }
  
  .theme-toggle {
    width: 44px;
    height: 44px;
    order: 3;
    z-index: 101;
  }
  
  .nav-controls {
    order: 2;
    z-index: 101;
  }
  
  .nav-toggle { 
    display: inline-flex;
    width: 48px;
    height: 48px;
  }
  
  .main-nav ul {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--clr-bg);
    flex-direction: column;
    padding: 1rem;
    border: none;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.15);
    min-width: auto;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
    backdrop-filter: blur(12px);
    gap: 0;
  }
  
  /* Dark mode menu styling - more subtle */
  :root[data-theme="dark"] .main-nav ul {
    background: rgba(15,20,25,.98);
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.4);
  }
  
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .main-nav ul {
      background: rgba(15,20,25,.98);
      border-top: 1px solid rgba(255,255,255,.1);
      border-bottom: 1px solid rgba(255,255,255,.1);
      box-shadow: 0 20px 40px -20px rgba(0,0,0,.4);
    }
  }
  
  .main-nav li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid var(--clr-border);
  }
  
  .main-nav li:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--clr-border);
  }
  
  .main-nav a {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 0;
    transition: var(--transition);
    min-height: 48px;
    font-weight: 500;
    width: 100%;
    text-decoration: none;
    font-size: 1rem;
  }
  
  .main-nav a:not(.cta):after {
    display: none;
  }
  
  .main-nav a:not(.cta):hover {
    background: var(--clr-bg-alt);
    color: var(--clr-primary);
    transform: none;
    padding-left: 2rem;
  }
  
  /* Dark mode menu item hover */
  :root[data-theme="dark"] .main-nav a:not(.cta):hover {
    background: rgba(255,255,255,.05);
  }
  
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .main-nav a:not(.cta):hover {
      background: rgba(255,255,255,.05);
    }
  }
  
  .main-nav a.cta {
    margin: 0.5rem 1rem 0.5rem;
    justify-content: center;
    background: var(--clr-primary);
    color: white;
    padding: 1rem 2rem !important;
    border-radius: var(--radius-s);
  }
  
  .main-nav a.cta:hover {
    background: var(--clr-primary-accent);
    color: white;
    transform: translateY(-2px);
    padding: 1rem 2rem !important;
  }
  
  .nav-open .main-nav ul {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  /* Prevent body scroll when menu is open */
  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .trust-points { 
    gap: .8rem;
    justify-content: center;
  }
  
  .hero-image-container {
    margin: 2rem auto 0;
    max-width: 300px;
  }
  
  /* Additional mobile-specific adjustments */
  .hero-visual {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .stat-card {
    max-width: 100%;
    margin: 0 auto 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--clr-bg);
  border-top: 2px solid var(--clr-primary);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.5rem 1.3rem;
}

.cookie-content p {
  margin: 0 0 0.8rem;
  color: var(--clr-text);
}

.cookie-content strong {
  font-size: 1.1rem;
  color: var(--clr-primary);
}

.cookie-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 1.2rem;
}

.cookie-list li {
  padding: 0.4rem 0;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 0.8rem;
}

.cookie-actions .cta,
.cookie-actions .outline-btn {
  flex: 1;
  min-width: 200px;
  text-align: center;
  font-size: 0.95rem;
}

.cookie-more {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
}

.cookie-more a {
  color: var(--clr-primary);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .cookie-content { padding: 1.2rem 1rem; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .cta,
  .cookie-actions .outline-btn { min-width: 100%; }
}
