/* Landing page — Road Trip Storytelling redesign */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Header
   ======================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px 40px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.header-nav a:hover {
  opacity: 0.8;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: #e8963f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 24px;
  transition: background 0.2s, transform 0.2s;
}

.btn-demo:hover {
  background: #d4842f;
  transform: translateY(-1px);
}

/* ========================================
   Hero — tall, gradient overlay, breathing room
   ======================================== */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('/images/bg-banner.webp') center / cover no-repeat;
  padding: 120px 20px 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 58, 92, 0.85) 0%,
    rgba(27, 58, 92, 0.5) 40%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-accent {
  color: #e8963f;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 36px;
  opacity: 0.9;
  letter-spacing: 0.2px;
}

.btn-services {
  display: inline-flex;
  align-items: center;
  padding: 14px 40px;
  background: #e8963f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 32px;
  transition: background 0.2s, transform 0.2s;
}

.btn-services:hover {
  background: #d4842f;
  transform: translateY(-2px);
}

/* Scroll hint chevron */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.6);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   Section shared
   ======================================== */

.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.section-inner h2 {
  font-size: 34px;
  font-weight: 700;
  color: #1b3a5c;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.accent {
  color: #e8963f;
}

.section-inner > p {
  font-size: 18px;
  color: #666;
  max-width: 680px;
  margin: 0 auto 14px;
  line-height: 1.75;
}

/* ========================================
   Planning section — warm off-white + topo pattern
   ======================================== */

.planning {
  background-color: #faf8f5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q15 20 30 30 Q45 40 60 30' fill='none' stroke='%23c8b89a' stroke-width='0.5' opacity='0.3'/%3E%3Cpath d='M0 15 Q15 5 30 15 Q45 25 60 15' fill='none' stroke='%23c8b89a' stroke-width='0.5' opacity='0.2'/%3E%3Cpath d='M0 45 Q15 35 30 45 Q45 55 60 45' fill='none' stroke='%23c8b89a' stroke-width='0.5' opacity='0.2'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}

/* ========================================
   States section — photo destination cards
   ======================================== */

.states {
  position: relative;
  background: #f2f0ed;
}

.states-bg {
  position: absolute;
  inset: 0;
  background: url('/images/bg-map.webp') center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.states .section-inner {
  position: relative;
  z-index: 1;
}

.states-subtitle {
  margin-bottom: 40px !important;
}

.state-cards {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
}

/* -- Card base -- */
.state-card {
  position: relative;
  flex: 1;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

/* Background photo */
.state-card__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.state-card:hover .state-card__photo {
  transform: scale(1.05);
}

/* Gradient overlay */
.state-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.6) 100%
  );
  transition: background 0.3s ease;
}

.state-card:hover .state-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

/* Content positioned at bottom */
.state-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.state-card__logo {
  height: 28px;
  width: auto;
  margin-bottom: 8px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.state-card__content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.state-card__cta {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
  margin-top: 4px;
}

.state-card__cta .arrow {
  font-size: 18px;
  transition: transform 0.2s;
}

.state-card:hover .state-card__cta .arrow {
  transform: translateX(4px);
}

/* Per-state background photos */
.state-card--tx .state-card__photo {
  background-image: url('/images/state-tx.webp');
}

.state-card--nc .state-card__photo {
  background-image: url('/images/state-nc.webp');
}

.state-card--va .state-card__photo {
  background-image: url('/images/state-va.webp');
}

.states-footnote {
  font-size: 13px;
  color: #999;
}

/* ========================================
   Footer — navy with logo + nav
   ======================================== */

.site-footer {
  background: #1b3a5c;
  padding: 48px 24px;
  text-align: center;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

/* ========================================
   Fade-in animation on scroll
   ======================================== */

.planning .section-inner,
.states .section-inner {
  animation: fadeInUp 0.6s ease-out both;
}

.states .section-inner {
  animation-delay: 0.15s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Mobile responsive
   ======================================== */

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .btn-demo {
    padding: 8px 16px;
    font-size: 11px;
  }

  .hero {
    min-height: 60vh;
    padding: 100px 20px 60px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-scroll-hint {
    bottom: 20px;
  }

  .section-inner {
    padding: 60px 20px;
  }

  .section-inner h2 {
    font-size: 26px;
  }

  .state-cards {
    flex-direction: column;
    gap: 16px;
  }

  .state-card {
    flex: none;
    height: 240px;
    width: 100%;
  }

  .footer-nav {
    gap: 20px;
  }
}
