@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --forest: #0B3D2E;
  --forest-light: #145C45;
  --cream: #F5F0E8;
  --cream-dark: #E8E0D4;
  --coral: #E85D4C;
  --gold: #D4A853;
  --charcoal: #1A1A2E;
  --glass: rgba(245, 240, 232, 0.08);
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
}

.font-display { font-family: 'Syne', sans-serif; }

/* Animated road background */
.road-bg {
  background:
    linear-gradient(90deg, transparent 49%, var(--gold) 49%, var(--gold) 51%, transparent 51%) 0 0 / 80px 80px,
    linear-gradient(var(--forest) 0%, var(--forest-light) 100%);
  animation: roadScroll 4s linear infinite;
}

@keyframes roadScroll {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 80px 0, 0 0; }
}

/* Hero gradient mesh */
.hero-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232, 93, 76, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 168, 83, 0.3) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 80%, rgba(11, 61, 46, 0.4) 0%, transparent 50%),
    var(--charcoal);
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
.animate-float { animation: float 5s ease-in-out infinite; }
.animate-float-delay { animation: float 5s ease-in-out 1.5s infinite; }

/* Fade up stagger */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease forwards; opacity: 0; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.fade-up-5 { animation-delay: 0.5s; }
.fade-up-6 { animation-delay: 0.6s; }

/* Pulse ring */
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--coral);
  border-radius: inherit;
  animation: pulseRing 2s ease-out infinite;
}

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 30s linear infinite; }

/* Glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(11, 61, 46, 0.15);
}

/* Bento card accent */
.bento-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 0;
  background: var(--coral);
  transition: height 0.4s ease;
}
.bento-card:hover::before { height: 100%; }

/* Diagonal section */
.diagonal-top {
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
}
.diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

/* Nav link underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--coral);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Button shine */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}
.btn-shine:hover::before { left: 100%; }

/* Image reveal */
.img-reveal {
  overflow: hidden;
}
.img-reveal img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-reveal:hover img { transform: scale(1.08); }

/* Stat counter glow */
.stat-glow {
  text-shadow: 0 0 40px rgba(212, 168, 83, 0.5);
}

/* Cookie banner */
#cookie-banner {
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#cookie-banner.show { transform: translateY(0); }

/* Mobile menu */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s ease;
}
#mobile-menu.open { transform: translateX(0); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page hero pattern */
.hero-pattern {
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(212, 168, 83, 0.05) 20px,
      rgba(212, 168, 83, 0.05) 21px
    );
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.accordion-item.open .accordion-content {
  max-height: 500px;
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

/* Timeline */
.timeline-dot::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(232, 93, 76, 0.2);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--forest); border-radius: 4px; }

/* Prose legal pages */
.legal-prose h2 { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--forest); }
.legal-prose h3 { font-size: 1.125rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-prose p { margin-bottom: 1rem; line-height: 1.75; color: #444; }
.legal-prose ul { list-style: disc; margin-left: 1.5rem; margin-bottom: 1rem; }
.legal-prose li { margin-bottom: 0.5rem; line-height: 1.7; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.875rem; }
.breadcrumbs a { color: rgba(26, 26, 46, 0.5); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--coral); }
.breadcrumbs span { color: rgba(26, 26, 46, 0.35); margin: 0 0.5rem; }

/* Page layout */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .page-layout { grid-template-columns: 1fr 320px; }
  .page-layout-wide { grid-template-columns: 1fr 360px; }
}

/* Rich content prose */
.content-prose h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(11, 61, 46, 0.1);
}
.content-prose h2:first-child { margin-top: 0; }
.content-prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.content-prose p {
  color: rgba(26, 26, 46, 0.75);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}
.content-prose ul, .content-prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: rgba(26, 26, 46, 0.75);
  line-height: 1.85;
}
.content-prose li { margin-bottom: 0.5rem; }
.content-prose ul { list-style: none; padding-left: 0; }
.content-prose ul li {
  padding-left: 1.5rem;
  position: relative;
}
.content-prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 6px;
  background: var(--coral);
  border-radius: 50%;
}

/* Callout boxes */
.tip-box {
  background: linear-gradient(135deg, rgba(11, 61, 46, 0.06) 0%, rgba(212, 168, 83, 0.08) 100%);
  border-left: 4px solid var(--forest);
  border-radius: 0 1rem 1rem 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.tip-box-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--forest);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.warning-box {
  background: rgba(232, 93, 76, 0.08);
  border-left: 4px solid var(--coral);
  border-radius: 0 1rem 1rem 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.key-takeaways {
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 1.5rem;
  padding: 2rem;
  margin: 2.5rem 0;
}
.key-takeaways h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}
.key-takeaways ul { list-style: none; padding: 0; }
.key-takeaways li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: rgba(245, 240, 232, 0.85);
  line-height: 1.6;
}
.key-takeaways li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

/* Sidebar */
.sidebar-card {
  background: white;
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.sidebar-toc a {
  display: block;
  padding: 0.5rem 0;
  color: rgba(26, 26, 46, 0.6);
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  transition: color 0.2s, padding-left 0.2s;
}
.sidebar-toc a:hover {
  color: var(--coral);
  padding-left: 0.5rem;
}
.sidebar-related a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: rgba(26, 26, 46, 0.7);
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  transition: color 0.2s;
}
.sidebar-related a:hover { color: var(--forest); }
.sidebar-related a svg { flex-shrink: 0; color: var(--coral); }

/* Page hero meta */
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(26, 26, 46, 0.5);
}
.page-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Trust bar */
.trust-bar {
  background: white;
  border-top: 1px solid rgba(26, 26, 46, 0.06);
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  padding: 2rem 0;
}
.trust-item {
  text-align: center;
  padding: 1rem;
}
.trust-item strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  color: var(--forest);
}
.trust-item span {
  font-size: 0.875rem;
  color: rgba(26, 26, 46, 0.5);
}

/* Page CTA band */
.page-cta {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  border-radius: 2rem;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: rgba(212, 168, 83, 0.15);
  border-radius: 50%;
}

/* Related guides grid */
.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.related-guide-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 46, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.related-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(11, 61, 46, 0.12);
}
.related-guide-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.related-guide-card .card-body { padding: 1.25rem; }
.related-guide-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.related-guide-card p {
  font-size: 0.875rem;
  color: rgba(26, 26, 46, 0.55);
  line-height: 1.6;
}

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 46, 0.08);
}
.data-table thead { background: var(--forest); color: var(--cream); }
.data-table th, .data-table td {
  padding: 1rem 1.25rem;
  text-align: left;
}
.data-table tbody tr { border-top: 1px solid rgba(26, 26, 46, 0.06); }
.data-table tbody tr:nth-child(even) { background: rgba(245, 240, 232, 0.5); }

/* Sticky sidebar */
@media (min-width: 1024px) {
  .sidebar-sticky { position: sticky; top: 6rem; }
}

/* Logo */
.site-logo img { height: 40px; width: auto; }
@media (max-width: 640px) {
  .site-logo .logo-full { display: none; }
  .site-logo .logo-icon { display: block !important; }
}

/* ─── Site Header ─── */
.site-header { transition: box-shadow 0.3s ease; }
.header-topbar { border-bottom: 1px solid rgba(255,255,255,0.08); }
.header-main { transition: padding 0.3s ease, box-shadow 0.3s ease; }
.site-header.scrolled .header-main {
  box-shadow: 0 4px 24px rgba(11, 61, 46, 0.1);
  padding-top: 0;
  padding-bottom: 0;
}
.site-header.scrolled .header-main nav { padding-top: 0.625rem; padding-bottom: 0.625rem; }

/* Nav pills */
.nav-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(26, 26, 46, 0.65);
  transition: all 0.2s ease;
}
.nav-pill:hover { color: var(--forest); background: rgba(11, 61, 46, 0.06); }
.nav-pill.active { color: var(--forest); background: rgba(11, 61, 46, 0.08); font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(26, 26, 46, 0.65);
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--forest);
  background: rgba(11, 61, 46, 0.06);
}
.nav-dropdown-trigger.active { color: var(--forest); background: rgba(11, 61, 46, 0.08); font-weight: 600; }
.nav-dropdown-trigger svg { transition: transform 0.2s ease; }
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 520px;
  background: white;
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 20px 48px rgba(11, 61, 46, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 100;
  padding: 1.5rem;
}
.nav-dropdown.open .nav-dropdown-panel,
.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-col h5 {
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: 0.75rem;
}
.nav-dropdown-col a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(26, 26, 46, 0.75);
  transition: all 0.15s ease;
}
.nav-dropdown-col a:hover {
  background: rgba(11, 61, 46, 0.06);
  color: var(--forest);
  padding-left: 1rem;
}
.nav-dropdown-col a.active {
  background: rgba(11, 61, 46, 0.08);
  color: var(--forest);
  font-weight: 600;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(11, 61, 46, 0.15);
  transition: all 0.2s ease;
}
.header-phone:hover {
  border-color: var(--forest);
  background: rgba(11, 61, 46, 0.04);
}

/* Mobile menu v2 */
#mobile-menu .mobile-nav-group {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
#mobile-menu .mobile-nav-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
#mobile-menu .mobile-nav-link {
  display: block;
  padding: 0.625rem 0;
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  color: rgba(245, 240, 232, 0.85);
  transition: color 0.2s;
}
#mobile-menu .mobile-nav-link:hover,
#mobile-menu .mobile-nav-link.active { color: var(--coral); }

/* Page top offset for taller header */
.has-site-header { padding-top: 7.5rem; }
@media (min-width: 768px) {
  .has-site-header { padding-top: 8.75rem; }
}
