/* ===== Design tokens ===== */
:root {
  --green-700: #244f3a;
  --green-600: #2e6146;
  --green-500: #3f7a58;
  --green-100: #e3ece2;
  --green-50: #f6f4ed;
  --gold-500: #b8863b;
  --gold-100: #f3e6cd;
  --ink: #24291f;
  --ink-soft: #55594e;
  --white: #ffffff;
  --cream: #fbfaf5;
  --border: #e2ded0;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(36, 41, 31, 0.08);
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--green-700); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-700);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--green-600);
  color: #fff;
}
.btn-primary:hover { background: var(--green-700); }
.btn-outline {
  background: transparent;
  border-color: var(--green-600);
  color: var(--green-700);
}
.btn-outline:hover { background: var(--green-50); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,245,0.9);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(36,41,31,0.06); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}
.logo span { color: var(--green-600); }

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.primary-nav a {
  color: var(--ink);
  font-weight: 500;
}
.primary-nav a:hover { color: var(--green-600); }
.nav-cta {
  background: var(--green-600);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--green-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* ===== Hero ===== */
.hero {
  padding: 88px 0 96px;
  background: linear-gradient(180deg, var(--green-50) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.hero-text { flex: 1; }
.hero-text h1 {
  font-size: 2.7rem;
  animation: fadeUp 0.7s ease both;
}
.hero-text p {
  font-size: 1.1rem;
  max-width: 480px;
  animation: fadeUp 0.7s ease 0.1s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  animation: fadeUp 0.7s ease 0.2s both;
}
.hero-image {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
  position: relative;
  animation: fadeUp 0.7s ease 0.15s both;
}
.hero-image-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 32px rgba(36,41,31,0.1);
}
.hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: var(--gold-100);
  border-radius: 42% 58% 63% 37% / 45% 41% 59% 55%;
  z-index: 0;
  opacity: 0.7;
  animation: blobMove 12s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blobMove {
  0%, 100% { border-radius: 42% 58% 63% 37% / 45% 41% 59% 55%; }
  50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text h1, .hero-text p, .hero-actions, .hero-image { animation: none; }
  .hero-blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Sections generic ===== */
section { padding: 80px 0; }
section h2 { font-size: 2rem; text-align: center; }
.section-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green-500);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-top-color: var(--gold-500);
}
.service-card h3 { font-size: 1.1rem; color: var(--green-700); }
.service-card p { margin: 0; font-size: 0.95rem; }

/* ===== About ===== */
.about { background: var(--green-50); }
.about-inner {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.about-text { flex: 1.4; }
.about-hours { flex: 1; background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list li span:first-child { color: var(--ink); font-weight: 600; }
.hours-list li span:last-child { color: var(--ink-soft); }

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.blog-card h3 { font-size: 1.05rem; color: var(--green-700); }
.blog-card p { margin: 0; font-size: 0.9rem; }

/* ===== Contact ===== */
.contact { background: var(--green-50); }
.contact-inner {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.contact-info { flex: 1; }
.contact-details { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-details li { margin-bottom: 10px; }
.contact-form {
  flex: 1.2;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: 0.9rem; }
.form-row input,
.form-row textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--green-500);
  outline-offset: 1px;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-size: 0.9rem; min-height: 1.2em; }
.form-status.success { color: var(--green-700); }
.form-status.error { color: #b3261e; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-item { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view .reveal-item { opacity: 1; transform: translateY(0); }
.reveal.in-view .reveal-item:nth-child(1) { transition-delay: 0.02s; }
.reveal.in-view .reveal-item:nth-child(2) { transition-delay: 0.08s; }
.reveal.in-view .reveal-item:nth-child(3) { transition-delay: 0.14s; }
.reveal.in-view .reveal-item:nth-child(4) { transition-delay: 0.2s; }
.reveal.in-view .reveal-item:nth-child(5) { transition-delay: 0.26s; }
.reveal.in-view .reveal-item:nth-child(6) { transition-delay: 0.32s; }
.reveal.in-view .reveal-item:nth-child(7) { transition-delay: 0.38s; }
.reveal.in-view .reveal-item:nth-child(8) { transition-delay: 0.44s; }
.reveal.in-view .reveal-item:nth-child(9) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-item { opacity: 1; transform: none; transition: none; }
}

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cdd8d1; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer-logo { color: #fff; }
.footer-logo span { color: var(--green-100); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a { color: #cdd8d1; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: #a9b6af; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  font-size: 0.85rem;
  color: #97a49c;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .about-inner, .contact-inner { flex-direction: column; }
  .hero-image { order: -1; }
  .services-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }
  .primary-nav.open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .hero-text h1 { font-size: 2rem; }
  .services-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}