:root {
  --primary: #1F4D3D;
  --primary-deep: #143028;
  --accent: #D97706;
  --accent-soft: #FCE7C7;
  --teal: #2BA89E;
  --lime: #B8D332;
  --cream: #F5F2E8;
  --ink: #2A2A2A;
  --muted: #6B6B6B;
  --line: #E5E2D8;
}

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

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; font-size: 17px; line-height: 1.65; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }

/* ---------- Top navigation ---------- */
.nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--primary); }
.logo-img { height: 64px; max-height: 64px; width: auto; display: block; }
.logo-text { font-family: 'Caveat', cursive; font-size: 22px; line-height: 1.15; color: var(--primary); font-weight: 700; }
.logo-text span { display: block; font-size: 14px; color: var(--accent); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; padding: 10px 16px; border-radius: 6px; transition: all 0.15s ease; }
.nav-links a:hover { background: var(--cream); color: var(--primary); }
.nav-cta { background: var(--accent) !important; color: #fff !important; margin-left: 8px; }
.nav-cta:hover { background: var(--primary) !important; color: #fff !important; }

/* ---------- Mobile menu ---------- */
.nav-toggle { display: none; background: transparent; border: 0; padding: 10px; cursor: pointer; color: var(--primary); border-radius: 6px; }
.nav-toggle:hover { background: var(--cream); }
.nav-toggle svg { width: 28px; height: 28px; display: block; }
.mobile-menu { position: fixed; inset: 0; background: #fff; z-index: 200; display: none; flex-direction: column; padding: 18px 32px 32px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.mobile-menu-close { background: transparent; border: 0; padding: 10px; cursor: pointer; color: var(--primary); border-radius: 6px; }
.mobile-menu-close:hover { background: var(--cream); }
.mobile-menu-close svg { width: 28px; height: 28px; display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0; }
.mobile-menu nav a { font-size: 28px; font-weight: 600; color: var(--primary-deep); text-decoration: none; padding: 22px 0; border-bottom: 1px solid var(--line); transition: color 0.15s ease; }
.mobile-menu nav a:hover { color: var(--accent); }
.mobile-menu .nav-cta { margin-top: 32px; text-align: center; font-size: 17px !important; padding: 18px 28px !important; background: var(--accent) !important; color: #fff !important; border-radius: 10px; border-bottom: none !important; }
.mobile-menu .nav-cta:hover { background: var(--primary) !important; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); padding: 80px 32px 100px; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 2; }
.eyebrow { display: inline-block; background: var(--lime); color: var(--primary-deep); font-size: 13px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; padding: 6px 14px; border-radius: 4px; margin-bottom: 24px; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; color: var(--primary-deep); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
h1 .accent { font-family: 'Caveat', cursive; color: var(--accent); font-weight: 700; font-size: 1.15em; }
.hero p { font-size: 19px; color: var(--muted); margin-bottom: 32px; max-width: 540px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; border: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(217,119,6,0.30); }
.btn-secondary { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 480px; margin: 0 auto; }
.hero-art svg { width: 100%; height: 100%; display: block; }

/* ---------- Notice strip (unused on home, retained for future use) ---------- */
.notice { background: var(--teal); color: #fff; padding: 24px 32px; }
.notice-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.notice-tag { background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.notice p { font-size: 15px; flex: 1; min-width: 280px; }
.notice a { color: #fff; text-decoration: underline; font-weight: 600; white-space: nowrap; }

/* ---------- Cards section ---------- */
.section { padding: 96px 32px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
h2 { font-size: clamp(28px, 3.5vw, 40px); color: var(--primary-deep); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }
.section-header p { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
a.card,
a.card:link,
a.card:visited,
a.card:hover,
a.card:active,
a.card:focus,
.cards .card,
.cards .card * { text-decoration: none !important; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; color: inherit; display: block; }
.card h3 { font-size: 19px; color: var(--primary-deep); margin-bottom: 10px; font-weight: 600; }
.card p { color: var(--muted); font-size: 15px; }
.card-arrow { margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Page hero (compact) ---------- */
.page-hero { background: var(--cream); padding: 64px 32px 56px; border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: 900px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 680px; }

/* ---------- Prose (long-form articles) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 40px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; color: var(--primary-deep); font-weight: 600; margin-top: 28px; margin-bottom: 10px; }
.prose p { margin-bottom: 16px; color: #333; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; color: #333; }
.prose a { color: var(--accent); text-decoration: underline; font-weight: 500; }
.prose a:hover { color: var(--primary); }
.prose strong { color: var(--primary-deep); }
.prose img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; display: block; }
.prose figure { margin: 24px 0; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 8px 0 8px 20px; margin: 20px 0; color: var(--muted); font-style: italic; }
.prose iframe { max-width: 100%; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.prose th, .prose td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--cream); color: var(--primary-deep); font-weight: 600; }

/* ---------- Article meta (for blog posts) ---------- */
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.article-meta a { color: var(--accent); text-decoration: none; }
.article-meta a:hover { text-decoration: underline; }

/* ---------- Article list (for /articles index) ---------- */
.article-list { max-width: 900px; margin: 0 auto; }
.article-list-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.article-list-item:first-child { padding-top: 0; }
.article-list-item h2 { font-size: 24px; margin-bottom: 8px; }
.article-list-item h2 a { color: var(--primary-deep); text-decoration: none; }
.article-list-item h2 a:hover { color: var(--accent); }
.article-list-item .article-meta { margin-bottom: 8px; }
.article-list-item p { color: var(--muted); font-size: 16px; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--primary-deep); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 14px; font-size: 15px; font-family: inherit; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,77,61,0.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.contact-info { background: var(--cream); border-radius: 14px; padding: 28px; }
.contact-info h3 { font-size: 18px; color: var(--primary-deep); margin-bottom: 14px; font-weight: 600; }
.contact-info ul { list-style: none; padding: 0; }
.contact-info li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.contact-info li:last-child { border-bottom: none; }
.contact-info strong { color: var(--primary-deep); display: block; margin-bottom: 2px; }
.contact-info a { color: var(--accent); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer { background: var(--primary-deep); color: rgba(255,255,255,0.85); padding: 56px 32px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; max-width: 1200px; margin: 0 auto; font-size: 13px; color: rgba(255,255,255,0.6); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 56px 24px 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 340px; }
  .section { padding: 64px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding: 48px 24px 40px; }
  .logo-img { height: 48px; max-height: 48px; }
}
@media (min-width: 881px) {
  .mobile-menu { display: none !important; }
}