/* America's Small Town Adventures — dark design system */
:root {
  --sta-primary: #14532D;
  --sta-primary-light: #166534;
  --sta-accent: #CA8A04;
  --sta-accent-light: #EAB308;
  --sta-bg: #0B1210;
  --sta-surface: #152019;
  --sta-surface-elevated: #1A2820;
  --sta-fg: #E8F0EA;
  --sta-muted: #94A89A;
  --sta-border: rgba(20, 83, 45, 0.4);
  --sta-glow: rgba(202, 138, 4, 0.15);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--sta-bg) !important;
  color: var(--sta-fg) !important;
  font-family: var(--font-primary, 'Nunito Sans', system-ui, sans-serif);
}

h1, h2, h3, h4, h5, h6,
.sta_section_title, .sta_hero_title, .display-4, .display-5 {
  font-family: var(--font-accent, 'Playfair Display', Georgia, serif);
  color: var(--sta-fg) !important;
}

.text-muted { color: var(--sta-muted) !important; }
.text-secondary { color: #B8C9BC !important; }

.sta_hero_subtitle {
  color: var(--sta-accent) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Header — pill navigation dark bar */
.sta-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(11, 18, 16, 0.92);
  border-bottom: 1px solid var(--sta-border);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease;
}

.sta-header.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.sta-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.sta-brand {
  font-family: var(--font-accent, 'Playfair Display', serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sta-fg) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sta-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sta-accent);
  box-shadow: 0 0 12px var(--sta-glow);
}

.sta-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sta-nav-link {
  color: var(--sta-muted) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.sta-nav-link:hover,
.sta-nav-link.active {
  color: var(--sta-fg) !important;
  background: rgba(20, 83, 45, 0.35);
}

.sta-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.sta-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sta-accent);
  border-radius: 2px;
  transition: transform 0.3s;
}

.sta-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1049;
  background: rgba(11, 18, 16, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.sta-mobile-menu.open { display: flex; }

.sta-mobile-menu .sta-nav-link {
  font-size: 1.25rem;
  padding: 0.75rem 1.5rem;
}

@media (max-width: 991px) {
  .sta-nav-desktop { display: none !important; }
  .sta-hamburger { display: flex; }
}

/* Hero */
.sta-hero {
  padding: 140px 0 80px;
  background:
    radial-gradient(900px 500px at 10% 20%, rgba(20, 83, 45, 0.25), transparent 60%),
    radial-gradient(700px 400px at 90% 10%, rgba(202, 138, 4, 0.12), transparent 55%),
    var(--sta-bg);
  position: relative;
  overflow: hidden;
}

.sta-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border-radius: 16px;
  overflow: hidden;
}

.sta-hero-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--sta-border);
}

.sta-hero-grid .sta-hero-main {
  grid-row: span 2;
  height: 100%;
  min-height: 460px;
}

.sta-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.sta-btn-primary {
  background: linear-gradient(135deg, var(--sta-primary), var(--sta-primary-light)) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.sta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 83, 45, 0.45);
  color: #fff !important;
}

.sta-btn-outline {
  border: 2px solid var(--sta-accent) !important;
  color: var(--sta-accent) !important;
  background: transparent !important;
  font-weight: 600;
  padding: 0.8rem 1.65rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.sta-btn-outline:hover {
  background: rgba(202, 138, 4, 0.12) !important;
  color: var(--sta-accent-light) !important;
}

/* Cards */
.sta-card, .sta-usp-card, .sta-guide-card, .sta-blog-card,
.sta-leadgen-card, .sta-about-card, .sta-team-card,
.sta-contact-card, .sta-legal-wrap, .blog-article {
  background: var(--sta-surface) !important;
  border: 1px solid var(--sta-border) !important;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.sta-usp-card {
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.25s, transform 0.25s;
}

.sta-usp-card:hover {
  border-color: var(--sta-accent) !important;
  transform: translateY(-4px);
}

.sta-usp-badge {
  display: inline-block;
  background: rgba(202, 138, 4, 0.15);
  color: var(--sta-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  margin-top: 1rem;
}

.sta-guide-card {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sta-guide-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(20, 83, 45, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sta-accent);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.sta-guide-link {
  color: var(--sta-accent) !important;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sta-guide-link:hover { color: var(--sta-accent-light) !important; }

/* Sections */
.sta-section { padding: 5rem 0; }
.sta-section-alt { background: var(--sta-surface) !important; }

.sta-section-label {
  color: var(--sta-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Leadgen form */
.sta-leadgen-card {
  padding: 2.5rem;
}

.sta-leadgen-card .form-control,
.sta-leadgen-card .form-select {
  background: var(--sta-surface-elevated) !important;
  border-color: var(--sta-border) !important;
  color: var(--sta-fg) !important;
}

.sta-leadgen-card .form-control:focus,
.sta-leadgen-card .form-select:focus {
  border-color: var(--sta-accent) !important;
  box-shadow: 0 0 0 3px var(--sta-glow) !important;
}

.sta-leadgen-card label { color: var(--sta-muted) !important; }

.btn-leadgen-submit, .btn-primary {
  background: linear-gradient(135deg, var(--sta-accent), #A16207) !important;
  border: none !important;
  color: #0B1210 !important;
  font-weight: 700;
}

/* Team */
.sta-team-card {
  text-align: center;
  padding: 1.5rem;
}

.sta-team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sta-primary);
  margin-bottom: 1rem;
}

/* About feature grid */
.sta-about-img {
  border-radius: 14px;
  border: 1px solid var(--sta-border);
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* Blog cards */
.sta-blog-card { padding: 1.75rem; height: 100%; }

/* Disclaimer */
.sta-disclaimer-section {
  background: var(--sta-surface-elevated) !important;
  border-top: 1px solid var(--sta-border);
}

.sta-disclaimer-card {
  background: rgba(20, 83, 45, 0.12) !important;
  border: 1px solid var(--sta-border) !important;
  border-radius: 14px;
  padding: 2rem;
}

.sta-disclaimer-title {
  color: var(--sta-accent) !important;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.sta-disclaimer-card p {
  color: var(--sta-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* Footer */
.sta-footer {
  background: #080E0C !important;
  border-top: 1px solid var(--sta-border);
  padding: 4rem 0 0;
}

.sta-footer-brand { margin-bottom: 1rem; }

.sta-footer-brand h3 {
  font-family: var(--font-accent);
  color: var(--sta-fg) !important;
  font-size: 1.2rem;
}

.sta-footer-brand p {
  color: var(--sta-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.sta-footer-col h4 {
  color: var(--sta-accent) !important;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.sta-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sta-footer-links li { margin-bottom: 0.6rem; }

.sta-footer-links a {
  color: var(--sta-muted) !important;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.sta-footer-links a:hover { color: var(--sta-accent) !important; }

.sta-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--sta-muted);
  font-size: 0.9rem;
}

.sta-footer-contact i { color: var(--sta-accent); margin-top: 3px; }

.sta-footer-contact a { color: var(--sta-muted) !important; text-decoration: none; }
.sta-footer-contact a:hover { color: var(--sta-accent) !important; }

.sta-footer-bottom {
  border-top: 1px solid var(--sta-border);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.sta-footer-bottom p {
  color: var(--sta-muted);
  font-size: 0.8rem;
  margin: 0;
  text-align: center;
}

/* Article */
.blog-article {
  padding: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.blog-article h1 { margin-bottom: 1rem; }
.blog-article h2 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.35rem; }
.blog-article h3 { margin-top: 1.5rem; color: var(--sta-accent) !important; font-size: 1.1rem; }
.blog-article p, .blog-article li { color: #C5D4C8; line-height: 1.75; }
.blog-article ul { margin: 1rem 0; padding-left: 1.5rem; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--sta-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.article-navigation a {
  color: var(--sta-accent) !important;
  font-weight: 600;
}

/* Contact page */
.sta-contact-info .sta-contact-card {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sta-contact-info i {
  font-size: 1.25rem;
  color: var(--sta-accent);
}

.sta-map-embed {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sta-border);
  aspect-ratio: 16/9;
}

.sta-map-embed iframe { width: 100%; height: 100%; border: 0; }

.accordion-item {
  background: var(--sta-surface) !important;
  border-color: var(--sta-border) !important;
}

.accordion-button {
  background: var(--sta-surface-elevated) !important;
  color: var(--sta-fg) !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(20, 83, 45, 0.3) !important;
  color: var(--sta-accent) !important;
}

.accordion-body { color: var(--sta-muted) !important; }

/* Legal pages */
.sta-legal-wrap {
  padding: 2.5rem;
  margin-top: 120px;
  margin-bottom: 3rem;
}

.sta-legal-wrap h1 { margin-bottom: 1rem; }
.sta-legal-wrap h2 { margin-top: 2rem; font-size: 1.25rem; }
.sta-legal-wrap p, .sta-legal-wrap li { color: #C5D4C8; line-height: 1.7; }

/* 404 */
.sta-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
}

.sta-body-large {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #C5D4C8;
}

@media (max-width: 768px) {
  .sta-hero-grid { grid-template-columns: 1fr; }
  .sta-hero-grid .sta-hero-main { min-height: 280px; grid-row: auto; }
  .sta-section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
