:root {
  /* Colors */
  --color-bg: #Fdfbf7;
  /* Warm off-white, calming */
  --color-text: #2c3e50;
  /* Dark slate, soft contrast */
  --color-text-light: #5a6b7c;
  --color-accent: #8FBC8F;
  /* Dark Sea Green / Sage */
  --color-accent-light: #e8f3e8;
  --color-secondary: #B0C4DE;
  /* Light Steel Blue */
  --color-white: #ffffff;
  --color-border: #e0e0e0;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Typography */
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: system-ui, -apple-system, sans-serif;

  /* UI */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --transition: 0.3s ease;
  --container-width: 1200px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: transparent;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Allow selection in inputs and textareas */
input,
textarea {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/background-hero.jpg');
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; Removed for performance - sticky positioning handles this */
  z-index: -1;
  opacity: 0.4;
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

/* Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-lg) 0;
}

.text-center {
  text-align: center;
}

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

.bg-light {
  background-color: rgba(255, 255, 255, 0.95);
  /* backdrop-filter removed for performance */
}

.bg-accent {
  background-color: rgba(232, 243, 232, 0.95);
  /* backdrop-filter removed for performance */
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #7aa37a;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent-light);
}

/* Header & Nav */
header {
  padding: var(--space-sm) 0;
  background: rgba(253, 251, 247, 0.98);
  /* backdrop-filter removed for performance */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: var(--space-xl) 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(253, 251, 247, 0.9) 0%, rgba(232, 243, 232, 0.9) 100%);
  /* backdrop-filter removed for performance */
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
}

/* Features/Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.card {
  background: rgba(255, 255, 255, 0.95);
  /* backdrop-filter removed for performance */
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.85);
}

.card h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

/* Process / Stepper */
.stepper {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.step-number {
  background: var(--color-accent);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

/* About Snippet */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-img-placeholder {
  background-color: #ddd;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-xs);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-sm) 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
}

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

.faq-answer.open {
  padding-bottom: var(--space-sm);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-sm);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--color-accent);
  border-color: transparent;
}

.checkbox-group {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.checkbox-group input {
  margin-top: 4px;
}

/* Blog */
.blog-post {
  margin-bottom: var(--space-lg);
}

.blog-meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.blog-excerpt {
  margin-bottom: var(--space-sm);
}

.tag {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-text);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 4px;
}

.search-bar {
  margin-bottom: var(--space-md);
}

/* Footer */
footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: var(--space-lg) 0;
  margin-top: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-links a {
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: block;
  }

  .about-split {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: left;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}