/* Woodshop Development – styles.css */
:root {
  --radius: 14px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  --header-h: 72px;
  --header-text: var(--text);

  --primary: #2f6d3b;
  --primary-600: #24562d;
  --bg: #f5f2ea;
  --bg-soft: #fffdf7;
  --text: #1b1f22;
  --muted: #5b636e;
  --divider: rgba(0, 0, 0, 0.1);
  --accent: linear-gradient(
    90deg,
    rgba(47, 109, 59, 0.45),
    rgba(47, 109, 59, 0)
  );
  --glow1: rgba(47, 109, 59, 0.15);
  --glow2: rgba(47, 109, 59, 0.08);
  --pattern-line: rgba(0, 0, 0, 0.04);
  --header-bg: rgba(255, 255, 255, 0.8);
}

body.theme-warm {
  --primary: #e07a5f;
  --primary-600: #c8654b;
  --accent: linear-gradient(
    90deg,
    rgba(224, 122, 95, 0.6),
    rgba(224, 122, 95, 0)
  );
  --glow1: rgba(224, 122, 95, 0.12);
  --glow2: rgba(139, 92, 246, 0.1);
  --pattern-line: rgba(255, 255, 255, 0.04);
}

body.theme-lilac {
  --primary: #8b5cf6;
  --primary-600: #6d28d9;
  --divider: rgba(255, 255, 255, 0.1);
  --accent: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0.6),
    rgba(139, 92, 246, 0)
  );
  --glow1: rgba(139, 92, 246, 0.14);
  --glow2: rgba(224, 122, 95, 0.1);
  --pattern-line: rgba(255, 255, 255, 0.06);
}

body.theme-forest {
  --primary: #2f6d3b;
  --primary-600: #24562d;
  --divider: rgba(0, 0, 0, 0.1);
  --accent: linear-gradient(
    90deg,
    rgba(47, 109, 59, 0.45),
    rgba(47, 109, 59, 0)
  );
  --glow1: rgba(47, 109, 59, 0.15);
  --glow2: rgba(47, 109, 59, 0.08);
  --pattern-line: rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      1000px 600px at 10% -10%,
      var(--glow1),
      transparent 60%
    ),
    radial-gradient(800px 500px at 110% 0%, var(--glow2), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.85;
  z-index: -1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

header {
  backdrop-filter: saturate(120%) blur(6px);
  background: var(--header-bg);
  padding: 0.85rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--divider);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}
header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--header-text);
}
.nav a {
  margin-left: 1rem;
  color: var(--header-text);
  opacity: 0.85;
  position: relative;
  padding-bottom: 4px;
}
.nav a.cta {
  display: inline-block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 1;
  font-weight: 600;
}
.nav a.cta:hover {
  background: var(--primary-600);
  text-decoration: none;
}

main {
  padding: 2.2rem;
  max-width: 1100px;
  margin: 0 auto;
}
section {
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 2.2rem;
}
section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}
section:last-of-type {
  border-bottom: none;
}

h2,
h3,
h4 {
  color: var(--primary);
  margin-top: 0;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.45rem;
  letter-spacing: 0.2px;
}
h2::after,
h3::after {
  content: "";
  position: absolute;
  left: 0;
  right: 55%;
  height: 2px;
  bottom: 0;
  background: var(--accent);
}

.hero {
  text-align: center;
  padding: 5rem 1.5rem 5.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.hero h2 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.tagline {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  margin: 0 auto 1.8rem;
  font-weight: 500;
  max-width: 640px;
  color: var(--muted);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(180deg, var(--pattern-line), transparent 60%),
    repeating-linear-gradient(
      135deg,
      transparent 0 24px,
      var(--pattern-line) 24px 25px
    );
  mask-image: radial-gradient(
    80% 80% at 50% 10%,
    rgba(0, 0, 0, 0.7),
    transparent 70%
  );
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 140px;
  background: radial-gradient(ellipse at center, var(--glow1), transparent 70%);
}

.credibility {
  text-align: center;
  margin: 2.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  background: var(--bg-soft);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--divider);
}

ul {
  padding-left: 1.2rem;
  list-style: disc;
}
li {
  margin-bottom: 0.9rem;
}
ul li::marker {
  color: var(--muted);
}
.muted {
  color: var(--muted);
}

.process-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--bg-soft);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
  text-align: center;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 122, 95, 0.45);
}
.card h4 {
  margin-top: 0;
}

.pledge {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 1.5rem;
}

form input,
form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--muted);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 1rem;
}
form input:focus,
form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}
form button {
  background: var(--primary);
  color: #fff;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}
form button:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.palette-switcher {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 100;
}
.palette-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .nav a.hide-sm {
    display: none;
  }
}

@media (max-width: 700px) {
  .card {
    text-align: left;
  }
  .hero {
    text-align: left;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .hero .tagline {
    margin-left: 0;
    margin-right: 0;
    font-size: 1rem;
  }
}
