:root {
  --green: #1f4d3a;
  --green-dark: #163a2b;
  --accent: #c8763c;
  --accent-dark: #b2652f;
  --cream: #faf6ef;
  --sand: #f1e9dc;
  --text: #2b2b2b;
  --muted: #5f5a52;
  --line: #e2d8c8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Source Sans 3", system-ui, sans-serif; font-size: 18px; line-height: 1.6; color: var(--text); background: var(--cream); }
h1, h2, h3 { font-family: "Lora", Georgia, serif; line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--green); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header: transparent over the home hero, solid green on inner pages */
header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
header.solid { position: static; background: var(--green-dark); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: "Lora", serif; font-weight: 700; font-size: 22px; }
.brand img { display: block; height: 56px; width: auto; }
nav a { color: #fff; text-decoration: none; margin-left: 28px; font-weight: 600; font-size: 16px; opacity: .92; }
nav a:hover { opacity: 1; text-decoration: underline; }

/* Home hero */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff;
        background: linear-gradient(90deg, rgba(15,30,22,.78) 0%, rgba(15,30,22,.45) 55%, rgba(15,30,22,.15) 100%), url("/img/hero-a.jpg") center/cover no-repeat; }
.hero .wrap { width: 100%; padding-top: 76px; }
.hero-text { max-width: 600px; }
.hero h1 { font-size: 52px; }
.hero p { font-size: 21px; margin: 0 0 32px; opacity: .95; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; padding: 16px 30px; border-radius: 6px; }
.btn:hover { background: var(--accent-dark); }

section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: 38px; color: var(--green-dark); }
.section-head p { color: var(--muted); margin: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 32px 28px; }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-family: "Lora", serif; font-weight: 700; font-size: 20px; margin-bottom: 18px; }
.step h3 { font-size: 22px; color: var(--green-dark); }
.step p { margin: 0; color: var(--muted); }

/* Services */
.services { background: var(--sand); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(60,45,20,.08); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.card div { padding: 20px 22px 24px; }
.card h3 { font-size: 21px; color: var(--green-dark); margin-bottom: .3em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Tips */
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 48px; max-width: 920px; margin: 0 auto; }
.tip { display: flex; gap: 16px; }
.tip svg { flex: none; margin-top: 4px; }
.tip h3 { font-size: 20px; color: var(--green-dark); margin-bottom: .25em; }
.tip p { margin: 0; color: var(--muted); }

/* About */
.about { background: var(--green); color: #fff; }
.about .wrap { max-width: 780px; text-align: center; }
.about h2 { font-size: 36px; }
.about p { font-size: 20px; opacity: .95; margin: 0; }

/* Legal pages */
.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: 42px; color: var(--green-dark); margin-bottom: .25em; }
.doc .updated { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 26px; color: var(--green-dark); margin: 44px 0 .5em; scroll-margin-top: 20px; }
.doc h3 { font-size: 20px; color: var(--green-dark); margin: 28px 0 .4em; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc .box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 26px; margin: 20px 0; }
.doc .box p:last-child, .doc .box ul:last-child { margin-bottom: 0; }

/* Guides: list page and home-page row */
.page-banner { position: relative; color: #fff; padding: 96px 0 80px;
               background: linear-gradient(90deg, rgba(15,30,22,.82) 0%, rgba(15,30,22,.55) 60%, rgba(15,30,22,.3) 100%), url("/img/guides/guides-hero.jpg") center/cover no-repeat; }
.page-banner h1 { font-size: 46px; margin-bottom: .3em; }
.page-banner p { font-size: 20px; margin: 0; max-width: 620px; opacity: .95; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.guide-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(60,45,20,.08); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.guide-card:hover { box-shadow: 0 6px 22px rgba(60,45,20,.16); }
.guide-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.guide-card > div { padding: 20px 22px 24px; }
.guide-card .tag { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.guide-card h3 { font-size: 21px; color: var(--green-dark); margin-bottom: .35em; }
.guide-card p { margin: 0; color: var(--muted); font-size: 16px; }
.more-link { text-align: center; margin-top: 40px; }
.more-link a { font-weight: 700; color: var(--green); }

/* Article */
.article { padding: 56px 0 72px; }
.article .wrap { max-width: 760px; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: 44px; color: var(--green-dark); margin-bottom: .3em; }
.article .meta { color: var(--muted); font-size: 16px; margin: 0 0 28px; }
.article .lede { font-size: 21px; color: var(--text); }
.article figure { margin: 32px 0; }
.article figure.wide { margin: 0 -60px 32px; }
.article figure img { width: 100%; display: block; border-radius: 10px; }
.article figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }
.article h2 { font-size: 28px; color: var(--green-dark); margin: 44px 0 .5em; }
.article h3 { font-size: 21px; color: var(--green-dark); margin: 28px 0 .35em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .45em; }
.article dl { margin: 0; }
.article dt { font-family: "Lora", Georgia, serif; font-weight: 700; color: var(--green-dark); font-size: 20px; margin-top: 22px; }
.article dd { margin: 4px 0 0; }
.note { background: var(--sand); border-left: 4px solid var(--accent); border-radius: 6px; padding: 18px 22px; margin: 40px 0 0; font-size: 16px; color: var(--muted); }
.related { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 28px; }
.related h2 { margin-top: 0; font-size: 24px; }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: .6em; }
.related a { font-weight: 600; }

/* Contact form */
.contact-form { max-width: 560px; }
.contact-form label { display: block; font-weight: 600; color: var(--green-dark); margin: 18px 0 6px; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.contact-form textarea { resize: vertical; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .turnstile { margin: 22px 0 18px; min-height: 65px; }
.contact-form button { border: 0; cursor: pointer; font-family: inherit; }
.contact-form .small { color: var(--muted); font-size: 15px; margin-top: 18px; }
.form-error { max-width: 560px; background: #fbeae5; border-left: 4px solid #b3412e; color: #6d2416; border-radius: 6px; padding: 14px 18px; margin: 0 0 8px; }

/* Footer */
footer { background: var(--green-dark); color: #cfd8d2; font-size: 14px; padding: 48px 0 40px; }
footer .links { margin-bottom: 20px; }
footer .links a { color: #fff; margin-right: 24px; text-decoration: none; font-weight: 600; font-size: 15px; display: inline-block; margin-bottom: 6px; }
footer .links a:hover { text-decoration: underline; }
footer p { margin: 0 0 12px; max-width: 900px; }
footer p a { color: #fff; }

@media (max-width: 900px) {
  .cards, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .article figure.wide { margin: 0 0 32px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  nav { display: none; }
  .hero { min-height: 560px; background: linear-gradient(180deg, rgba(15,30,22,.55) 0%, rgba(15,30,22,.8) 100%), url("/img/hero-a.jpg") 30% center/cover no-repeat; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 18px; }
  .btn { display: block; text-align: center; }
  section { padding: 60px 0; }
  .section-head h2, .about h2 { font-size: 30px; }
  .cards { grid-template-columns: 1fr; }
  .tips { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .page-banner { padding: 56px 0 48px; }
  .page-banner h1 { font-size: 34px; }
  .page-banner p { font-size: 18px; }
  .article { padding: 36px 0 56px; }
  .article h1 { font-size: 32px; }
  .article .lede { font-size: 19px; }
  .article h2 { font-size: 24px; }
  .doc { padding: 40px 0 64px; }
  .doc h1 { font-size: 32px; }
  .doc h2 { font-size: 23px; }
}
