:root {
  color-scheme: light;
  --bg: #f3f5ef;
  --bg-strong: #e7eddd;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: rgba(241, 246, 234, 0.92);
  --text: #182227;
  --muted: #56646a;
  --line: rgba(24, 34, 39, 0.12);
  --shadow: 0 24px 60px rgba(28, 43, 36, 0.12);
  --brand: #7ab241;
  --brand-deep: #4f7b23;
  --accent: #203038;
  --tab: rgba(32, 48, 56, 0.06);
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a2535;
  --bg-strong: #1e2c3e;
  --surface: rgba(26, 37, 53, 0.88);
  --surface-strong: #1e2c3e;
  --surface-soft: rgba(22, 33, 48, 0.94);
  --text: #e8f0ec;
  --muted: #9ab0b8;
  --line: rgba(240, 248, 244, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  --brand: #7ab241;
  --brand-deep: #a4d46e;
  --accent: #ddeee7;
  --tab: rgba(255, 255, 255, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-wrap: break-word;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(circle at top left, rgba(122, 178, 65, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(32, 48, 56, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg-strong), var(--bg));
  transition: background-color 180ms ease, color 180ms ease;
}

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

a {
  color: inherit;
}

.page-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.45;
}

.page-glow-a {
  top: 12%;
  left: -6%;
  width: 18rem;
  height: 18rem;
  background: rgba(122, 178, 65, 0.22);
}

.page-glow-b {
  right: -5%;
  bottom: 12%;
  width: 16rem;
  height: 16rem;
  background: rgba(32, 48, 56, 0.15);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: calc(100% - 2rem);
  width: min(1180px, calc(100% - 2rem));
  max-width: 1180px;
  margin: 2.5rem auto 3rem;
}

.topbar,
.hero,
.snapshot,
.tab-panels,
.footer {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0.75rem;
  z-index: 100;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand img {
  width: 200px;
  height: auto;
  border-radius: 0.7rem;
}

.brand strong,
.panel-header h2,
.hero h1,
.hero-panel h2 {
  font-family: "Fraunces", serif;
}

.brand > div {
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.tab,
.theme-toggle,
.button {
  border: 0;
  border-radius: 999px;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.tab,
.theme-toggle {
  padding: 0.72rem 0.75rem;
  background: var(--tab);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.tab:hover,
.theme-toggle:hover,
.button:hover {
  transform: translateY(-1px);
}

.tab.is-active {
  background: var(--accent);
  color: var(--surface-strong);
  font-weight: 700;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  width: 4.5rem;
  height: 2.75rem;
  background: rgba(92, 158, 48, 0.13);
  border: 1px solid rgba(92, 158, 48, 0.38);
  gap: 0;
  transition: background-color 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}

.theme-toggle:hover {
  transform: none;
  box-shadow: 0 0 0 2px rgba(122, 178, 65, 0.4);
}

.toggle-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.toggle-knob {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffef2;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  transform: translateX(1.75rem);
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 350ms ease;
}

.bulb-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  color: #c98800;
  filter: drop-shadow(0 0 3px rgba(255, 195, 30, 0.95))
          drop-shadow(0 0 8px rgba(240, 160, 0, 0.5));
  transition: color 350ms ease, filter 350ms ease;
}

body[data-theme="dark"] .theme-toggle {
  background: rgba(30, 44, 62, 0.8);
  border-color: rgba(240, 248, 244, 0.14);
}

body[data-theme="dark"] .toggle-knob {
  transform: translateX(0);
  background: #263244;
}

body[data-theme="dark"] .bulb-icon {
  color: #4a5e72;
  filter: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.content-card,
.service-card,
.price-card,
.panel,
.snapshot article,
.values-strip > div {
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.hero-copy {
  padding: 2rem;
  border-radius: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 2.8rem;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 0.98;
}

.hero-text {
  max-width: 42rem;
  margin: 1rem 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button-primary {
  background: var(--brand);
  color: #132017;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-panel {
  padding: 1.7rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, var(--surface-soft), var(--surface-strong));
}

.hero-panel h2,
.content-card h3,
.service-card h3,
.price-card h3 {
  margin-top: 0;
}

.checklist,
.inline-list,
.contact-list {
  margin: 0;
  padding-left: 1.1rem;
}

.checklist li,
.inline-list li,
.contact-list li {
  margin-bottom: 0.7rem;
  line-height: 1.55;
}

.snapshot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.snapshot article {
  padding: 1.25rem;
  border-radius: 1.35rem;
}

.snapshot span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--brand-deep);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.snapshot p,
.content-card p,
.service-card p,
.price-card p,
.process-steps p,
.footer p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.tab-panels {
  margin-top: 1rem;
}

.panel {
  display: none;
  padding: 1.35rem;
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.panel.is-active {
  display: block;
  animation: fade-slide 220ms ease;
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-header {
  margin-bottom: 1rem;
}

.panel-header h2 {
  margin: 0;
  font-size: 2rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.content-grid,
.service-list,
.pricing-grid,
.contact-grid,
.process-steps,
.values-strip {
  display: grid;
  gap: 1rem;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.content-card,
.service-card,
.price-card {
  padding: 1.35rem;
  border-radius: 1.4rem;
  min-width: 0;
}

.content-card.emphasis {
  background: linear-gradient(145deg, rgba(122, 178, 65, 0.15), var(--surface-strong));
}

.service-list,
.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-steps section {
  padding: 1.3rem;
  border-radius: 1.35rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.process-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--brand);
  color: #132017;
  font-weight: 800;
}

.process-steps h3 {
  margin: 0 0 0.55rem;
}

.price-card.featured {
  background: linear-gradient(180deg, rgba(122, 178, 65, 0.17), var(--surface-strong));
}

.price-card .price {
  margin-top: 0.65rem;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 800;
}

.price-card .timeline {
  margin: 0.2rem 0 0.8rem;
  color: var(--brand-deep);
  font-weight: 700;
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-card a {
  color: var(--brand-deep);
}

.values-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.values-strip > div {
  padding: 1.15rem;
  border-radius: 1.2rem;
}

.values-strip strong {
  display: block;
  margin-bottom: 0.35rem;
}

.values-strip span {
  color: var(--muted);
  line-height: 1.5;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
}

.panel-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.about-logo-banner {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-logo-banner img {
  max-width: 360px;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid var(--line);
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .snapshot,
  .two-up,
  .three-up,
  .service-list,
  .pricing-grid,
  .contact-grid,
  .values-strip,
  .process-steps,
  .footer {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
  }

  .tabs {
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .hero-copy,
  .hero-panel {
    padding: 1.4rem;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: calc(100% - 1rem);
    width: min(100% - 1rem, 1180px);
    margin-top: 1rem;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .topbar,
  .hero,
  .panel {
    border-radius: 1.35rem;
  }

  .brand {
    align-items: center;
  }

  .brand span {
    display: none;
  }

  .tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: flex-start;
    gap: 0.3rem;
  }

  .tab {
    padding: 0.55rem 0.65rem;
    font-size: 0.88rem;
  }

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

  .button {
    width: 100%;
  }

  .topbar {
    position: relative;
    top: auto;
  }

  .brand img {
    width: 120px;
  }

  .hero-actions {
    display: grid;
  }
}

/* ── No-JS / CSS-only fallback ─────────────────────────────────────────────── */
.no-js .tabs,
.no-js .theme-toggle {
  display: none;
}

.no-js .panel {
  display: block;
  margin-top: 1rem;
  animation: none;
}

.no-js .panel-header .eyebrow::before {
  content: "— ";
}


/* ── Focus-visible: keyboard/switch navigation ─────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.tab:focus-visible,
.theme-toggle:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ── Reduced motion: respect system preference ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html {
    scroll-behavior: auto;
  }

  .panel.is-active {
    animation: none;
  }
}

/* ── High contrast / color-blind mode ──────────────────────────────────────── */
@media (prefers-contrast: more) {
  :root {
    --brand: #357010;
    --brand-deep: #245010;
    --muted: #263236;
    --line: rgba(24, 34, 39, 0.45);
    --text: #080e10;
    --tab: rgba(32, 48, 56, 0.18);
    --surface: rgba(255, 255, 255, 0.98);
    --surface-strong: #ffffff;
  }

  body[data-theme="dark"] {
    --brand: #90d050;
    --brand-deep: #b8e888;
    --muted: #c0ced0;
    --line: rgba(240, 248, 244, 0.4);
    --text: #f0f8f4;
    --tab: rgba(255, 255, 255, 0.16);
    --surface: rgba(26, 37, 53, 0.98);
  }

  .tab.is-active {
    outline: 2px solid currentColor;
    outline-offset: -2px;
  }

  .content-card.emphasis,
  .price-card.featured {
    border-width: 2px;
    border-color: var(--brand);
  }

  .process-steps span {
    border: 2px solid currentColor;
  }

  .eyebrow {
    letter-spacing: 0.16em;
  }

  a:not(.button):not(.brand) {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
