@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&display=swap');

:root {
  --bg: #f5f2eb;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-2: rgba(255, 255, 255, 0.60);
  --text: #0d1f14;
  --muted: rgba(13, 31, 20, 0.58);
  --border: rgba(13, 31, 20, 0.10);
  --border-strong: rgba(13, 31, 20, 0.18);

  --link: #1a6e35;

  --accent: #b4e83e;
  --accent-2: #52ba52;
  --accent-glow: rgba(82, 186, 82, 0.22);

  --secondary: #1a6035;
  --secondary-2: #113d22;

  --danger: #d44040;
  --warning: #d08820;
  --info: #1470b0;
  --success: #1d8a4a;

  --shadow: 0 4px 24px rgba(13, 31, 20, 0.08), 0 1px 4px rgba(13, 31, 20, 0.05);
  --shadow-md: 0 8px 40px rgba(13, 31, 20, 0.10), 0 2px 8px rgba(13, 31, 20, 0.06);
  --shadow-lg: 0 20px 60px rgba(13, 31, 20, 0.12), 0 4px 16px rgba(13, 31, 20, 0.07);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --container: 1120px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80vw 60vh at 0% 0%, rgba(180, 232, 62, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60vw 50vh at 100% 10%, rgba(82, 186, 82, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 100vw 40vh at 50% 100%, rgba(26, 96, 53, 0.08) 0%, transparent 60%);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: opacity 0.18s ease;
}

a:hover { opacity: 0.8; }

/* ── CONTAINER ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* matches page bg exactly so logo renders seamlessly */
  background: rgba(245, 242, 235, 0.94);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 168px;
  height: auto;
  object-fit: contain;
  display: block;
  /* ensure logo uses natural transparency */
  mix-blend-mode: multiply;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-desktop a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.05px;
  border: 1px solid transparent;
  opacity: 0.75;
  transition: all 0.15s ease;
}

.nav-desktop a:hover {
  opacity: 1;
  background: rgba(13, 31, 20, 0.05);
  border-color: var(--border);
}

/* ── NAV CTA BUTTON ── */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--secondary-2) !important;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.1px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  opacity: 1 !important;
  transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
  text-decoration: none;
}

.nav-cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 18px rgba(82, 186, 82, 0.32);
  transform: translateY(-1px);
  opacity: 1 !important;
}

/* ── NAV TOGGLE (mobile) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.nav-toggle:hover {
  background: #fff;
  border-color: var(--border-strong);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE NAV ── */
.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0; right: 0; bottom: 0;
  background: rgba(245, 242, 235, 0.98);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 28px 0;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-content a:not(.pill) {
  font-size: 17px;
  font-weight: 600;
  padding: 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  display: block;
  box-shadow: var(--shadow);
}

.mobile-nav-content a:not(.pill):hover {
  background: #fff;
  border-color: var(--border-strong);
}

/* ── MAIN ── */
.main {
  flex: 1 0 auto;
  padding: 40px 0 100px;
  width: 100%;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  background: var(--panel);
  color: var(--text);
  white-space: nowrap;
}

.btn:hover {
  background: #fff;
  border-color: rgba(13, 31, 20, 0.28);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  opacity: 1;
}

.btn:active { transform: translateY(0px); }

.btn-primary {
  background: var(--text);
  color: #f5f2eb;
  border-color: var(--text);
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 8px 24px rgba(13, 31, 20, 0.22);
  color: #fff;
}

.btn-green {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--secondary-2);
  border-color: transparent;
  font-weight: 700;
}

.btn-green:hover {
  box-shadow: 0 8px 24px rgba(82, 186, 82, 0.30);
  transform: translateY(-2px);
  filter: brightness(1.04);
  color: var(--secondary-2);
}

/* ── CARDS ── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: rgba(82, 186, 82, 0.30);
  box-shadow: var(--shadow-md);
}

/* ── KICKER ── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  background: rgba(180, 232, 62, 0.18);
  border: 1px solid rgba(82, 186, 82, 0.24);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--secondary);
}

.kicker-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── PILLS ── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.18s ease;
  color: var(--text);
}

.pill:hover {
  border-color: rgba(82, 186, 82, 0.40);
  background: rgba(82, 186, 82, 0.06);
}

/* ── SECTION TITLE ── */
.section-title {
  margin: 36px 0 18px;
  font-size: 19px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.1px;
}

.footer-h {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(13, 31, 20, 0.45);
  margin-bottom: 16px;
}

/* ── GRID ── */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* ── FORMS ── */
.field-wrapper { margin-bottom: 1.5rem; }

.helptext {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 4px;
}

.errorlist {
  color: var(--danger);
  list-style: none;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 700;
}

input.btn, select.btn { width: 100%; }

select.btn {
  background-color: var(--panel);
  color: var(--text);
  appearance: none;
}

select.btn option {
  background-color: var(--bg);
  color: var(--text);
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  resize: vertical;
  outline: none;
  line-height: 1.6;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.form-textarea:focus {
  border-color: rgba(82, 186, 82, 0.60);
  box-shadow: 0 0 0 3px rgba(82, 186, 82, 0.10);
}

.checkbox-pill {
  cursor: pointer;
  justify-content: flex-start;
  padding: 11px 15px;
}

.checkbox-pill input[type="checkbox"] {
  accent-color: var(--accent-2);
  margin-right: 9px;
}

/* ── TABLE ── */
.data-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table { width: 100%; border-collapse: collapse; text-align: left; }

th {
  background: rgba(82, 186, 82, 0.08);
  padding: 14px 16px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.9px;
}

td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
}

/* ── LOADING ── */
.loading-container { display: none; margin-top: 32px; }

.loading-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border-color: rgba(82, 186, 82, 0.30);
}

@keyframes pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

.loading-pulse {
  animation: pulse 1.6s infinite;
  width: 10px;
  height: 10px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(82, 186, 82, 0.30);
}

/* ── RANGE INPUT ── */
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }

input[type=range]::-webkit-slider-runnable-track {
  width: 100%; height: 5px;
  background: rgba(13, 31, 20, 0.14);
  border-radius: 999px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px; width: 18px;
  border-radius: 50%;
  background: var(--accent-2);
  cursor: pointer;
  margin-top: -7px;
  box-shadow: 0 0 14px rgba(82, 186, 82, 0.28);
}

/* ── FOOTER ── */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 64px 0 36px;
  width: 100%;
  overflow-x: hidden;
  margin-top: auto;
}

.footer-grid-fixed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 44px;
  align-items: start;
}

.footer-col { min-width: 0; }

.footer-list { list-style: none; padding: 0; margin: 0; }

.footer-list li { margin-bottom: 10px; }

.footer-list a {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.18s;
}

.footer-list a:hover {
  color: var(--text);
  opacity: 1;
}

.footer-subscribe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.footer-subscribe-title { margin: 0; }

.footer-logo { width: 90px; height: auto; }

.footer-subscribe-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 14px 0;
}

.footer-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-email {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  min-width: 0;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.footer-email:focus {
  border-color: rgba(82, 186, 82, 0.60);
  box-shadow: 0 0 0 3px rgba(82, 186, 82, 0.10);
}

.footer-go { padding: 10px 20px; }

.footer-bottom-fixed {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.footer-bottom-right a {
  color: var(--muted);
  font-weight: 500;
}

.footer-bottom-right a:hover { color: var(--text); opacity: 1; }

.link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(13, 31, 20, 0.25);
  font-weight: 600;
}

.link:hover { text-decoration-color: rgba(13, 31, 20, 0.55); opacity: 1; }

/* ── HOME SPECIFIC ── */
.home-two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.popular-guides-list { display: grid; gap: 8px; }

.popular-guide {
  display: block;
  padding: 14px;
  text-decoration: none;
}

.popular-guide-inner {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: start;
}

.popular-guide-thumb {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.popular-guide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popular-guide-name {
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  font-size: 14px;
}

.popular-guide-read {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.popular-guides-footer { margin-top: 14px; }

.popular-guides-footer .btn {
  width: 100%;
  justify-content: center;
}

/* ── START GRID ── */
.home-start { overflow: visible; }

.home-start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.home-start-item {
  display: block;
  padding: 18px;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.home-start-item:hover {
  transform: translateY(-3px);
  border-color: rgba(82, 186, 82, 0.35);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.home-start-item:active { transform: translateY(-1px); }

.home-start-name {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.home-start-sub {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.home-start-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.home-start-title { margin-bottom: 0; }

.home-start-btn { padding: 8px 14px; }

/* ── PROVIDERS ── */
.providers-filters { max-width: 100%; }
.providers-filters input,
.providers-filters select { min-width: 0 !important; }

/* ── CONTACT ── */
@media (max-width: 900px) {
  .contact-two-col { grid-template-columns: 1fr !important; }
  .contact-row { grid-template-columns: 1fr !important; }
  .providers-head { flex-direction: column; align-items: flex-start; }
  .providers-filters { width: 100%; justify-content: flex-start !important; }
  .home-two-col { grid-template-columns: 1fr; }
  .footer-grid-fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .footer-subscribe { grid-column: 1 / -1; }
  .footer-subscribe-head { justify-content: flex-start; gap: 16px; }
  .footer-bottom-fixed { flex-direction: column; text-align: center; gap: 16px; }
  .footer-bottom-left, .footer-bottom-right { width: 100%; display: flex; justify-content: center; }
}

@media (max-width: 920px) {
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .home-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .card { padding: 18px; }
  .brand-logo { width: 120px; }
  .home-start-grid { grid-template-columns: 1fr; }
  .home-start-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .home-start-btn { width: 100%; justify-content: center; }
  .footer-grid-fixed { grid-template-columns: 1fr; gap: 18px; }
  .footer-subscribe-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-logo { width: 130px; }
  .footer-form { flex-direction: column; align-items: stretch; gap: 10px; }
  .footer-email { width: 100%; }
  .footer-go { width: 100%; justify-content: center; }
  .footer-bottom-fixed { padding: 24px 0 44px; gap: 12px; }
  .site-footer { padding: 44px 0 24px; }
  .popular-guide-inner { grid-template-columns: 1fr; }
  .popular-guide-thumb { width: 100%; height: 140px; }
  .contact-submit { flex-direction: column; align-items: stretch !important; }
  .contact-submit .btn { width: 100%; justify-content: center; }
  .contact-radio { flex-direction: column; align-items: stretch; }
  .contact-radio .pill { width: 100%; justify-content: center; }
  .providers-filters { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; width: 100%; }
  .providers-filters input,
  .providers-filters select,
  .providers-filters button,
  .providers-filters a.btn { width: 100% !important; }
  .providers-filters button,
  .providers-filters a.btn { justify-content: center; }
}

@media (hover: none) {
  .home-start-item:hover { transform: none; box-shadow: var(--shadow); }
}