:root {
  --emerald: #0B6E4F;
  --emerald-dark: #085A40;
  --emerald-soft: #E6F4EF;
  --gold: #C9A227;
  --gold-soft: #F7F0D8;
  --cream: #FBF7EF;
  --cream-deep: #F3EBD9;
  --ink: #1A2B24;
  --muted: #5A6B63;
  --white: #FFFFFF;
  --border: #E4DDCF;
  --shadow: 0 10px 30px rgba(11, 110, 79, 0.08);
  --radius: 16px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, video, iframe, table, pre { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--emerald); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--emerald-dark); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.article-content, .prose, .hero-card, .card { min-width: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--emerald); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 0;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; color: var(--emerald); }
.brand-text span { font-size: .78rem; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: .35rem .2rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--emerald); }
.nav-cta {
  background: var(--emerald) !important; color: #fff !important;
  padding: .5rem .9rem !important; border-radius: 999px;
}
.nav-cta:hover { background: var(--emerald-dark) !important; }
.menu-toggle {
  display: none; border: 1px solid var(--border); background: var(--cream);
  border-radius: 10px; padding: .5rem .7rem; font-weight: 700; color: var(--emerald);
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(201,162,39,.18), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(11,110,79,.12), transparent 35%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid; grid-template-columns: 1.3fr .9fr; gap: 2rem; align-items: center;
}
.eyebrow {
  display: inline-block; background: var(--gold-soft); color: #7A6410;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px; margin-bottom: .9rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 1rem;
  color: var(--emerald-dark);
}
.hero p.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.15rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: .15s ease;
}
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-dark); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--emerald); color: var(--emerald); }
.btn-secondary:hover { background: var(--emerald-soft); color: var(--emerald-dark); }
.hero-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 20px;
  padding: 1.25rem; box-shadow: var(--shadow);
}
.hero-card img { border-radius: 14px; margin-bottom: .9rem; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hero-card h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.hero-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: 3rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--emerald-dark); }
.section-head p { margin: .35rem 0 0; color: var(--muted); }
.section-muted { background: #fff; border-block: 1px solid var(--border); }

/* Cards */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 16px rgba(26,43,36,.04);
  display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--emerald-soft); }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-tag {
  display: inline-block; width: fit-content; font-size: .72rem; font-weight: 700;
  color: var(--emerald); background: var(--emerald-soft); padding: .2rem .55rem; border-radius: 999px;
}
.card h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.card .more { color: var(--emerald); font-weight: 700; font-size: .9rem; margin-top: .3rem; }

.hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hub-card {
  background: linear-gradient(160deg, #fff, var(--cream-deep));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem;
  text-decoration: none; color: inherit; min-height: 140px;
  display: flex; flex-direction: column; gap: .45rem;
}
.hub-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.hub-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--emerald); color: #fff; font-weight: 800; font-size: .95rem;
}
.hub-card h3 { margin: 0; font-size: 1.05rem; color: var(--emerald-dark); }
.hub-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Page chrome */
.page-hero {
  padding: 2.4rem 0 1.6rem;
  background: linear-gradient(180deg, #fff, var(--cream));
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin: 0 0 .6rem; font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--emerald-dark); }
.page-hero p { margin: 0; color: var(--muted); max-width: 42rem; font-size: 1.05rem; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumbs a { color: var(--emerald); text-decoration: none; font-weight: 600; }

/* Article */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; padding: 2rem 0 3rem;
}
.article-content {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 1.5rem 1.6rem 2rem;
}
.article-content > .cover {
  border-radius: 14px; margin: 0 0 1.4rem; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: var(--cream-deep);
}
.article-content h1 { margin: 0 0 .8rem; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--emerald-dark); line-height: 1.25; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.prose h2 { color: var(--emerald-dark); margin-top: 2rem; scroll-margin-top: 5rem; }
.prose h3 { color: var(--ink); margin-top: 1.4rem; }
.prose p, .prose li { color: #2a3b34; }
.prose blockquote {
  margin: 1.2rem 0; padding: 1rem 1.1rem; border-left: 4px solid var(--gold);
  background: var(--gold-soft); border-radius: 0 12px 12px 0; color: #5c4d12;
}
.prose img {
  margin: 1.2rem auto; border-radius: 14px; border: 1px solid var(--border);
  width: 100%; max-width: 100%; height: auto; object-fit: contain;
  box-shadow: 0 6px 18px rgba(26,43,36,.06);
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose code {
  background: var(--emerald-soft); padding: .1rem .35rem; border-radius: 6px; font-size: .92em;
}
.faq { margin-top: 2rem; }
.faq details {
  background: var(--cream); border: 1px solid var(--border); border-radius: 12px;
  padding: .85rem 1rem; margin-bottom: .65rem;
}
.faq summary { font-weight: 700; cursor: pointer; color: var(--emerald-dark); }
.faq p { margin: .6rem 0 0; color: var(--muted); }
.sidebar .widget {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.sidebar h3 { margin: 0 0 .7rem; font-size: 1rem; color: var(--emerald-dark); }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin: 0 0 .55rem; }
.sidebar a { text-decoration: none; font-weight: 600; font-size: .92rem; }

/* Forms / contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; }
.panel {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.4rem;
}
.form-row { display: grid; gap: .35rem; margin-bottom: .9rem; }
.form-row label { font-weight: 700; font-size: .92rem; }
.form-row input, .form-row textarea, .form-row select {
  border: 1px solid var(--border); border-radius: 10px; padding: .7rem .8rem;
  font: inherit; background: var(--cream);
}
.form-note { color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer {
  background: var(--emerald-dark); color: #d8ebe3; padding: 2.5rem 0 1.5rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { color: var(--gold); margin: 0 0 .7rem; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand { display: flex; gap: .75rem; align-items: center; margin-bottom: .8rem; }
.footer-brand img { width: 44px; height: 44px; border-radius: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .88rem; color: #b7d4c8;
}

/* Misc */
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pill {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: .4rem .8rem; font-size: .85rem; font-weight: 600; color: var(--emerald-dark);
  text-decoration: none;
}
.pill:hover { border-color: var(--gold); background: var(--gold-soft); }
.empty-note {
  background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 14px;
  padding: 1rem 1.1rem; color: #6b5810;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

@media (max-width: 960px) {
  .hero-grid, .article-layout, .contact-grid, .footer-grid, .two-col { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .hub-grid { grid-template-columns: 1fr 1fr; }
  /* sidebar stays after article on mobile */
}
@media (max-width: 720px) {
  .container { width: min(100% - 1.25rem, var(--max)); }
  .article-content { padding: 1rem .95rem 1.4rem; }
  .hero-card img, .card-img { object-fit: contain; background: var(--cream-deep); }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: .8rem 1rem 1rem; gap: .2rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .65rem .4rem; }
  .card-grid, .hub-grid { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
}
