/*
Theme Name: Desafio Cicloturismo
Theme URI: https://desafiodabaixada.com.br
Author: Desafio Cicloturismo da Baixada Fluminense
Description: Tema WordPress do Desafio Cicloturismo da Baixada Fluminense (desafiodabaixada.com.br) com layout editorial inspirado no modelo de cicloturismo regional.
Version: 1.1.0
Text Domain: desafio-cicloturismo
*/

:root {
  --bg-page: #f5f6f8;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --ink: #111827;
  --muted: #4b5563;
  --brand: #14532d;
  --brand-2: #166534;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.desafio-cicloturismo-site {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.db-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.db-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.db-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.db-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.db-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.db-brand-text {
  display: flex;
  flex-direction: column;
}

.db-brand-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.db-brand-domain {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.db-nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.db-nav-list a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  transition: color 0.2s ease;
}

.db-nav-list a:hover {
  color: var(--accent);
}

.db-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}

.db-hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(234, 88, 12, 0.28), transparent 45%),
    linear-gradient(125deg, #0b192c 0%, #14532d 58%, #1e293b 100%);
  color: #ffffff;
  padding: 88px 0 80px;
}

.db-hero-kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.db-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  line-height: 1.1;
  font-weight: 900;
  max-width: 820px;
}

.db-hero-subtitle {
  margin: 0 0 28px;
  max-width: 720px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.db-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.db-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.db-btn-accent {
  background: var(--accent);
  color: #ffffff;
}

.db-btn-accent:hover {
  background: var(--accent-hover);
}

.db-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.db-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.db-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  max-width: 860px;
}

.db-stat-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
}

.db-stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.db-stat-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

.db-strip-banner {
  background: #fff7ed;
  border-top: 1px solid #fed7aa;
  border-bottom: 1px solid #fed7aa;
  padding: 20px 0;
}

.db-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.db-strip-text {
  margin: 0;
  font-size: 0.95rem;
  color: #431407;
  max-width: 820px;
}

.db-section {
  padding: 68px 0;
}

.db-section-white {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.db-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.db-section-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.db-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  color: var(--ink);
  line-height: 1.2;
}

.db-section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}

.db-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.db-filter-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #374151;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.db-filter-btn:hover,
.db-filter-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.db-routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 18px;
}

.db-route-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.db-route-card:hover {
  transform: translateY(-3px);
  border-color: #bbf7d0;
}

.db-route-card.is-hidden {
  display: none;
}

.db-route-pc {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #dcfce7;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.db-route-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}

.db-route-desc {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.db-route-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.db-about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.db-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.db-panel h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--brand);
}

.db-panel p {
  margin: 0 0 14px;
  color: var(--muted);
}

.db-panel p:last-child {
  margin-bottom: 0;
}

.db-city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.db-city-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.db-map-frame {
  width: 100%;
  height: 540px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #e5e7eb;
}

.db-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.db-cards-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.db-checklist {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.db-checklist li {
  margin-bottom: 8px;
}

.db-faq-list {
  display: grid;
  gap: 12px;
}

details.db-faq {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

details.db-faq summary {
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

details.db-faq p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.db-footer {
  background: var(--bg-dark);
  color: #d1d5db;
  padding: 48px 0 32px;
}

.db-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.db-footer h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 0.98rem;
}

.db-footer p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: #9ca3af;
}

.db-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.db-footer-links li {
  margin-bottom: 6px;
}

.db-footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.88rem;
}

.db-footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.db-footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #9ca3af;
}

@media (max-width: 900px) {
  .db-about-grid,
  .db-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .db-nav-toggle {
    display: inline-flex;
  }

  .db-nav {
    display: none;
    width: 100%;
    padding-bottom: 16px;
  }

  .db-header.is-open .db-nav {
    display: block;
  }

  .db-header-inner {
    flex-wrap: wrap;
  }

  .db-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .db-hero {
    padding: 64px 0 56px;
  }

  .db-map-frame {
    height: 400px;
  }
}