﻿:root {
  --bg: #f6f1e8;
  --ink: #1b2b22;
  --muted: #47594f;
  --brand: #0f4c3a;
  --brand-light: #1f7a5b;
  --accent: #e3b449;
  --risk: #8b2e2e;
  --cta-blue: #0f4c8c;
  --surface: #ffffff;
  --surface-muted: #f0efe9;
  --shadow: 0 18px 40px rgba(15, 76, 58, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(227, 180, 73, 0.18), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(31, 122, 91, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--brand-light);
}

main a {
  color: var(--cta-blue);
}

main a:hover,
main a:focus {
  color: var(--brand);
}

main a.link-trust {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(780px, 90%);
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 76, 58, 0.1);
  z-index: 5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.brand {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand img {
  display: block;
  height: auto;
  max-width: 220px;
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 500;
}

.site-nav a,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  line-height: 1.2;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 0;
}

.nav-toggle {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  gap: 6px;
}

.nav-toggle::after {
  content: "▾";
  font-size: 0.8em;
  color: var(--brand-light);
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  display: none;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  z-index: 6;
}

.submenu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 8px;
}

.submenu a {
  padding: 6px 8px;
  border-radius: 10px;
}

.submenu a:hover,
.submenu a:focus {
  background: rgba(15, 76, 58, 0.08);
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu,
.nav-item.is-open .submenu,
.submenu.is-open {
  display: flex;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--brand);
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}

.hero {
  padding: 70px 0 50px;
}

.hero.compact {
  padding: 60px 0 40px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-light);
  font-size: 0.85rem;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  margin-top: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: -0.2px;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

.button:hover,
.button:focus {
  color: #fff;
}

.button.ghost {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: none;
}

.button.ghost:hover,
.button.ghost:focus {
  background: rgba(15, 76, 58, 0.08);
  color: var(--brand);
}

.button:hover {
  transform: translateY(-2px);
}

.hero-media {
  background: var(--surface);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.hero-media figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.hero-card {
  background: var(--surface);
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card ul {
  padding-left: 18px;
  margin: 12px 0 0;
}

.hero-card-title {
  font-weight: 600;
  color: var(--brand);
  margin: 0;
}

.section {
  padding: 50px 0;
}

.section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--brand-light);
  margin-top: 8px;
  border-radius: 2px;
}

.section p {
  max-width: 68ch;
  margin-bottom: 16px;
}

:focus-visible {
  outline: 3px solid rgba(31, 122, 91, 0.4);
  outline-offset: 3px;
}

.section.muted {
  background: var(--surface-muted);
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}

.card {
  background: var(--surface);
  padding: 22px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.price-list li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(15, 76, 58, 0.2);
}

.price-list strong {
  color: var(--accent);
  font-weight: 700;
}

.price-list li:last-child {
  border-bottom: none;
}

.hub-links {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.hub-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.hub-links a::before {
  content: "→";
  color: var(--brand-light);
}

.split {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.faq-grid {
  display: grid;
  gap: 24px;
}

.faq-item {
  background: var(--surface);
  padding: 22px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.content-image {
  margin: 28px auto 0;
  max-width: 820px;
}

.content-image--narrow {
  max-width: 640px;
}

.content-image--small {
  max-width: 360px;
}

.contact-form {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 76, 58, 0.2);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-message {
  display: grid;
  gap: 8px;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.form-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.form-status.success {
  background: rgba(31, 122, 91, 0.12);
  color: var(--brand);
}

.form-status.error {
  background: rgba(139, 46, 46, 0.12);
  color: var(--risk);
}

.admin-list {
  display: grid;
  gap: 18px;
}

.admin-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-subject,
.admin-contact {
  margin: 6px 0;
  color: var(--muted);
}

.admin-message {
  margin-top: 10px;
}

.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(520px, 90%);
  transform: translate(-50%, -50%);
  background: #0f4c3a;
  color: #ffffff;
  padding: 1.2rem 1.4rem;
  display: none;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  border-radius: 16px;
  flex-direction: column;
  gap: 12px;
}

.cookie-banner p {
  margin: 0;
  max-width: 900px;
}

.cookie-banner a {
  color: #ffd166;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-banner button {
  background: #ffd166;
  color: #0f4c3a;
  border: none;
  padding: 0.45rem 1rem;
  cursor: pointer;
  font-weight: 600;
  border-radius: 999px;
}

.cookie-banner button.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

body[data-cookie-banner="disabled"] .cookie-banner,
body[data-cookie-banner="disabled"] .cookie-backdrop {
  display: none !important;
}

.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 28, 0.45);
  display: none;
  z-index: 9998;
}

@media (max-width: 640px) {
  .cookie-banner {
    top: auto;
    left: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    border-radius: 16px 16px 0 0;
  }

  .cookie-actions {
    justify-content: flex-start;
  }

  .cookie-banner button {
    width: auto;
  }
}

.content-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.content-image figcaption {
  display: none;
}

.hero-media figcaption {
  display: none;
}

.ad-slot {
  display: none;
  width: min(980px, 92%);
  margin: 40px auto;
  border: 1px solid rgba(15, 76, 58, 0.15);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(240, 239, 233, 0.9)
  );
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.ad-slot.is-filled {
  display: block;
}

.highlight-risk {
  color: var(--risk);
  font-weight: 600;
}

.link-trust {
  color: var(--cta-blue);
  font-weight: 600;
}

.site-footer {
  background: #0f241c;
  color: #f9f6f1;
  padding: 36px 0 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.footer-note {
  color: rgba(249, 246, 241, 0.75);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .site-nav {
    position: absolute;
    right: 4%;
    top: 70px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    padding: 16px 18px;
    min-width: 200px;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 6px 0;
  }

  .submenu {
    position: static;
    box-shadow: none;
    padding: 6px 0 8px;
    background: transparent;
    min-width: unset;
  }

  .nav-item:hover .submenu {
    display: none;
  }

  .nav-item.is-open .submenu {
    display: flex;
  }

  .submenu a {
    padding: 6px 4px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card,
  .faq-item,
  .hero-media,
  .hero-card {
    animation: float-in 0.6s ease both;
  }

  .card:nth-child(2),
  .faq-item:nth-child(2) {
    animation-delay: 0.1s;
  }

  .card:nth-child(3),
  .faq-item:nth-child(3) {
    animation-delay: 0.18s;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--surface-muted);
  padding: 12px 0;
  font-size: 0.85rem;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--brand);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs li:last-child {
  color: var(--muted);
}

/* Floating Table of Contents */
.toc-floating {
  position: fixed;
  right: 20px;
  top: 120px;
  width: 250px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  z-index: 100;
}

.toc-nav h4 {
  font-size: 0.9rem;
  margin: 0 0 12px 0;
  color: var(--brand);
  font-weight: 700;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
  transition: all 0.2s;
}

.toc-list a:hover,
.toc-list a.active {
  background: rgba(15, 76, 58, 0.1);
  color: var(--brand);
  transform: translateX(4px);
}

.reading-progress {
  margin-top: 16px;
  height: 4px;
  background: rgba(15, 76, 58, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--brand-light);
  width: 0%;
  transition: width 0.1s;
}

@media (max-width: 1400px) {
  .toc-floating {
    display: none;
  }
}

/* Next steps CTA section */
.cta-next-steps {
  background: linear-gradient(135deg, #0f4c3a 0%, #1f7a5b 100%);
  color: white;
}

.cta-next-steps h2 {
  color: white;
}

.cta-next-steps .card {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-next-steps .card h3 {
  color: #ffd166;
}

.cta-next-steps .card p {
  color: white;
}

.cta-next-steps .button {
  background: #ffd166;
  color: #0f4c3a;
}

.cta-next-steps .button:hover {
  color: #0f4c3a;
}

.cta-next-steps .button.ghost {
  background: transparent;
  border-color: white;
  color: white;
}

.cta-next-steps .button.ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}
