@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f5f1ec;
  --surface: #ffffff;
  --surface2: #eee9e2;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --hairline: #d3cec6;
  --hairline-soft: #e5e0d8;
  --accent: #2d6a4f;
  --accent-light: #40916c;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-xxl: 24px;
  --nav-h: 56px;
  --max-w: 1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── NAV ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: var(--nav-h);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 32px 24px;
  z-index: 99;
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile ul a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--hairline-soft);
}

.nav-mobile ul a:hover { color: var(--ink); }

/* ─── HERO ─── */
.hero {
  padding: 80px 0 72px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(45, 106, 79, 0.08);
  padding: 4px 10px;
  border-radius: var(--r-xs);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 580px;
  margin-bottom: 40px;
}

.hero-image-wrap {
  margin-top: 48px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  max-height: 480px;
}

.hero-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* ─── SECTIONS ─── */
.section {
  padding: 80px 0;
}

.section + .section {
  border-top: 1px solid var(--hairline-soft);
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ─── CARDS ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--hairline); }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  display: block;
}

.card-title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 10px;
}

.card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link::after {
  content: '→';
  transition: transform 0.15s;
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* ─── FEATURE ROW ─── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-text h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.7px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.feature-img-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.feature-img-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* ─── INFO BOXES ─── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
}

.info-box-icon {
  width: 36px;
  height: 36px;
  background: rgba(45, 106, 79, 0.1);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.info-box h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.info-box p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ─── ARTICLE PAGE ─── */
.article-header {
  padding: 56px 0 48px;
  max-width: 760px;
}

.article-header .eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}

.article-header .meta {
  font-size: 14px;
  color: var(--ink-subtle);
  display: flex;
  gap: 16px;
}

.article-hero-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  margin-bottom: 48px;
}

.article-hero-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.article-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 36px 0 14px;
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin: 24px 0 10px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.article-content li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 6px;
}

.article-content strong { font-weight: 600; }

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content blockquote {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 16px;
  color: var(--ink-muted);
  font-style: italic;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.sidebar-card h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.1px;
}

.sidebar-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-toc ul a {
  font-size: 13px;
  color: var(--ink-muted);
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition: color 0.15s;
}

.sidebar-toc ul a:hover { color: var(--ink); }

.related-list { list-style: none; }
.related-list li { margin-bottom: 10px; }
.related-list a {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
  display: block;
}
.related-list a:hover { color: var(--ink); }

.disclaimer-box {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px;
  font-size: 12px;
  color: var(--ink-subtle);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* ─── ABOUT PAGE ─── */
.page-header {
  padding: 56px 0 40px;
  max-width: 680px;
}

.page-header h1 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 14px;
}

.page-header p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.page-content {
  max-width: 760px;
  padding-bottom: 80px;
}

.page-content h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 36px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
}

.page-content h2:first-child {
  margin-top: 0;
  border-top: none;
}

.page-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-content ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.page-content li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 6px;
}

.page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── CONTACT FORM ─── */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 40px;
  max-width: 560px;
  margin-top: 48px;
}

.contact-form-wrap h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-form-wrap > p {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color 0.15s;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s;
}

.btn-submit:hover { background: #2a2a2a; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-msg {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(45, 106, 79, 0.08);
  border: 1px solid rgba(45, 106, 79, 0.2);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--accent);
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-subtle);
  max-width: 240px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  font-size: 13px;
  color: var(--ink-subtle);
  transition: color 0.15s;
}

.footer-col ul a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--ink-subtle);
}

/* ─── COOKIE BANNER ─── */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: #fff;
  z-index: 999;
  padding: 20px 32px;
}

#cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  flex: 1;
}

.cookie-text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: #fff;
  color: var(--ink);
  border: none;
  border-radius: var(--r-md);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  min-height: 40px;
}

.btn-cookie-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--r-md);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  min-height: 40px;
}

.btn-cookie-reject:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

/* ─── BREADCRUMBS ─── */
.breadcrumbs {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-subtle);
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
  margin-bottom: 0;
}

.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { color: var(--hairline); }

/* ─── TABLE ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.data-table th {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}

.data-table td {
  border: 1px solid var(--hairline-soft);
  padding: 10px 14px;
  color: var(--ink-muted);
  vertical-align: top;
}

.data-table tr:nth-child(even) td { background: var(--surface); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .article-body { grid-template-columns: 1fr; }
  .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse { direction: ltr; }
  .info-grid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -0.8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .article-sidebar { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  #cookie-banner { padding: 20px; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .hero-image-wrap img { height: 240px; }
}
