@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
  --background:         hsl(40, 20%, 98%);
  --foreground:         hsl(200, 10%, 15%);
  --card:               hsl(0, 0%, 100%);
  --card-foreground:    hsl(200, 10%, 15%);
  --primary:            hsl(110, 55%, 38%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary:          hsl(40, 30%, 95%);
  --muted:              hsl(40, 15%, 93%);
  --muted-foreground:   hsl(200, 5%, 45%);
  --accent:             hsl(85, 45%, 50%);
  --border:             hsl(40, 15%, 88%);
  --radius:             0.5rem;
  --hero-overlay:       linear-gradient(135deg, hsla(200,10%,15%,.65), hsla(110,30%,20%,.45));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-alt { background-color: hsl(40, 25%, 96%); }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.navbar-logo img { height: 2.5rem; width: auto; }
.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.btn-primary-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  padding: 0 1.5rem;
}
.hero-content h1 {
  font-size: clamp(1.875rem, 5vw, 3.75rem);
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

/* ── Section label ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ── Pain points ── */
.pain-points { text-align: center; }
.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto 2rem;
  text-align: left;
}
.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}
.pain-dot {
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background-color: var(--primary);
  margin-top: 0.4rem;
}

/* ── Pillars ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  padding: 1.75rem;
}
.pillar h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}
.pillar p { color: var(--muted-foreground); font-size: 0.9375rem; }

/* ── Philosophy ── */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.philosophy-grid img {
  border-radius: calc(var(--radius) * 2);
  width: 100%;
  height: 22rem;
  object-fit: cover;
}
.philosophy-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.philosophy-content p { color: var(--muted-foreground); font-size: 1.125rem; margin-bottom: 1rem; }
@media (max-width: 768px) {
  .philosophy-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Services ── */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: 42rem;
}
.service-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.service-number {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}
.service-item h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.service-item p { color: var(--muted-foreground); }

/* ── Checklist ── */
.checklist-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  padding: 3rem;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.checklist-wrap h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.checklist-wrap .subtitle { color: var(--muted-foreground); font-size: 1.125rem; margin-bottom: 2rem; }
.checklist-items {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}
.checklist-items li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.checklist-items li:last-child { border-bottom: none; }
.check-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  margin-top: 0.125rem;
}
.checklist-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

/* ── Articles grid ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.article-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-color: hsla(110,55%,38%,0.3);
}
.article-card-img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.5s;
}
.article-card:hover .article-card-img { transform: scale(1.05); }
.article-card-img-wrap { overflow: hidden; }
.article-card-body { padding: 1.25rem; }
.article-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.article-card:hover h3 { color: var(--primary); }
.article-card-body p { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.article-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.article-card-link:hover { text-decoration: underline; }

/* ── Form ── */
.form-wrap {
  max-width: 36rem;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}
.form-group textarea { min-height: 7rem; resize: vertical; }
.form-success {
  display: none;
  background: hsl(110, 55%, 95%);
  border: 1px solid hsl(110, 55%, 70%);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: hsl(110, 55%, 28%);
  font-weight: 500;
  margin-top: 1rem;
}
.form-success.visible { display: block; }
.form-error {
  display: none;
  background: hsl(0, 55%, 95%);
  border: 1px solid hsl(0, 55%, 70%);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: hsl(0, 55%, 35%);
  font-weight: 500;
  margin-top: 1rem;
}
.form-error.visible { display: block; }

/* ── Footer ── */
.footer {
  background: var(--foreground);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.9375rem;
}
.footer p + p { margin-top: 0.5rem; }

/* ── Article page ── */
.article-header { padding: 6rem 0 3rem; }
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--muted-foreground); }
.article-header h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.article-header .lead {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 42rem;
}
.article-hero-img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  border-radius: calc(var(--radius) * 2);
  margin-bottom: 2.5rem;
}
.article-body { font-size: 1.0625rem; line-height: 1.75; }
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.article-body h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; color: var(--foreground); }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { font-weight: 600; }

/* ── Related articles ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* ── CTA box ── */
.cta-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-box h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.cta-box p { color: var(--muted-foreground); margin-bottom: 1.5rem; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .article-card-img { transition: none; }
  .article-card { transition: none; }
  html { scroll-behavior: auto; }
}
