
/* Jasper Journeys — Exact Business Mockup Style
   Strong site-wide match to the Jasper X Taxi + Jasper Bottle Depot mockup pages:
   white nav, forest logo, panoramic mountain hero, white overlay cards, green side panels, gold accents, clean footer.
*/

:root {
  --jj-exact-forest: #003F32;
  --jj-exact-forest2: #064B3B;
  --jj-exact-forest3: #0B5A43;
  --jj-exact-gold: #D99A2B;
  --jj-exact-gold2: #E7B74D;
  --jj-exact-cream: #FBF7EE;
  --jj-exact-white: #FFFFFF;
  --jj-exact-ink: #171B18;
  --jj-exact-muted: #56635D;
  --jj-exact-line: #DDE2DC;
  --jj-exact-soft: #F7FAF6;
  --jj-exact-shadow: 0 13px 32px rgba(0, 40, 31, .12);
  --jj-exact-soft-shadow: 0 6px 18px rgba(0, 40, 31, .08);
  --jj-exact-serif: Georgia, "Times New Roman", serif;
  --jj-exact-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html { background: var(--jj-exact-cream); }

body {
  margin: 0 !important;
  background: linear-gradient(180deg, #fff 0%, #fff 44%, #fbf7ee 100%) !important;
  color: var(--jj-exact-ink) !important;
  font-family: var(--jj-exact-sans) !important;
  font-size: 16px;
  line-height: 1.55;
}

/* EXACT MOCKUP HEADER */
.jj-top-shell,
.header-pro,
.nav-pro,
.site-header,
.main-header {
  background: rgba(255,255,255,.985) !important;
  border-bottom: 1px solid rgba(0,63,50,.13) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.055) !important;
  color: var(--jj-exact-ink) !important;
  min-height: 86px;
}

.jj-top-shell .container,
.header-pro .container,
.nav-pro .container,
.site-header .container,
.main-header .container {
  max-width: 1180px !important;
  margin: 0 auto !important;
}

.jj-top-shell img[src*="brand"],
.header-pro img[src*="brand"],
.site-header img[src*="brand"],
.main-header img[src*="brand"],
.logo img,
.brand img {
  max-height: 76px !important;
  width: auto !important;
  object-fit: contain !important;
}

.jj-brand-text,
.logo-text,
.brand-text,
.site-title {
  color: var(--jj-exact-forest) !important;
  font-family: var(--jj-exact-serif) !important;
  letter-spacing: .22em !important;
  font-weight: 900 !important;
  line-height: .92 !important;
  text-transform: uppercase !important;
}

.nav-pro a,
.site-nav a,
.main-nav a,
nav a {
  color: var(--jj-exact-ink) !important;
  font-weight: 800 !important;
  font-size: .96rem !important;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  padding-bottom: 9px;
}

.nav-pro a:hover,
.site-nav a:hover,
.main-nav a:hover,
nav a:hover,
.nav-pro a[aria-current="page"],
.site-nav a[aria-current="page"],
.main-nav a[aria-current="page"] {
  color: var(--jj-exact-forest) !important;
  border-bottom-color: var(--jj-exact-gold) !important;
}

input[type="search"],
.search input,
.site-search input,
.search-box input {
  min-height: 46px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0,63,50,.18) !important;
  background: #fff !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.025) !important;
}

/* HERO: scenic strip with overlay card */
.hero,
.jj-hero,
.home-hero,
.jc-hero,
.page-hero,
.jc-page-hero,
.jj-directory-hero {
  min-height: 390px !important;
  padding: 34px max(20px, calc((100vw - 1180px)/2)) !important;
  position: relative !important;
  display: flex !important;
  align-items: flex-end !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--jj-exact-ink) !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,.80) 0%, rgba(255,255,255,.35) 44%, rgba(255,255,255,.08) 76%),
    url("../img/hero/jasper-journeys-exact-mockup-mountain-hero.jpg") center/cover no-repeat !important;
}

.hero::after,
.jj-hero::after,
.home-hero::after,
.jc-hero::after,
.page-hero::after,
.jc-page-hero::after,
.jj-directory-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,63,50,.08));
  pointer-events: none;
}

/* If the hero already has an inner container, turn it into overlay card */
.hero > div:first-child,
.jj-hero > div:first-child,
.home-hero > div:first-child,
.jc-hero > div:first-child,
.page-hero > div:first-child,
.jc-page-hero > div:first-child,
.jj-directory-hero > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 535px !important;
  background: rgba(255,255,255,.965) !important;
  border: 1px solid rgba(0,63,50,.22) !important;
  border-radius: 15px !important;
  box-shadow: var(--jj-exact-shadow) !important;
  padding: 26px !important;
}

/* If hero content is not wrapped, still style direct text */
.hero h1,
.jj-hero h1,
.home-hero h1,
.jc-hero h1,
.page-hero h1,
.jc-page-hero h1,
.jj-directory-hero h1 {
  color: var(--jj-exact-ink) !important;
  font-family: var(--jj-exact-serif) !important;
  font-size: clamp(2.2rem, 4.6vw, 3.85rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  margin: 10px 0 12px !important;
  text-shadow: none !important;
  max-width: 560px;
}

.hero p,
.jj-hero p,
.home-hero p,
.jc-hero p,
.page-hero p,
.jc-page-hero p,
.jj-directory-hero p {
  color: #2e3632 !important;
  max-width: 570px !important;
  font-size: 1rem !important;
}

/* Local-service badge */
.kicker,
.eyebrow,
.badge,
.label,
.pill,
.category-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px;
  background: var(--jj-exact-forest) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 7px 13px !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  letter-spacing: .075em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 10px rgba(0,63,50,.18) !important;
}
.kicker::before,
.eyebrow::before { content: "★"; color: #fff; font-size: .78em; }

/* Buttons exactly closer to mockup */
button,
.btn,
.jc-btn,
.button,
.btn-nav-primary,
.jj-hero-actions a,
.hero-cta a,
.map-popup-link,
input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 46px !important;
  padding: 12px 19px !important;
  background: var(--jj-exact-forest) !important;
  color: #fff !important;
  border: 1px solid var(--jj-exact-forest) !important;
  border-radius: 7px !important;
  box-shadow: 0 7px 16px rgba(0,63,50,.16) !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
button:hover,
.btn:hover,
.jc-btn:hover,
.button:hover,
.btn-nav-primary:hover,
.jj-hero-actions a:hover,
.hero-cta a:hover {
  background: var(--jj-exact-forest3) !important;
  transform: translateY(-1px) !important;
}
.btn-outline,
.jc-btn-outline,
.secondary,
.jj-hero-actions a:nth-child(2),
.hero-cta a:nth-child(2) {
  background: #fff !important;
  color: var(--jj-exact-forest) !important;
  border: 1px solid rgba(0,63,50,.42) !important;
  box-shadow: 0 5px 14px rgba(0,63,50,.08) !important;
}

/* Content */
main { background: transparent !important; }

h1, h2, h3 {
  font-family: var(--jj-exact-serif) !important;
  color: var(--jj-exact-ink) !important;
}

h2 {
  font-size: clamp(1.55rem, 2.7vw, 2rem) !important;
  line-height: 1.1 !important;
}

h2::after,
.section-title::after,
.jj-section-title::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--jj-exact-gold);
  border-radius: 999px;
  margin-top: 9px;
}

p, li { color: #2e3632; }

/* Cards */
.card,
.jc-card,
.guide-card,
.jj-service-card,
.jj-listing-card,
.jj-route-card,
.jj-stop-card,
.feature-card,
.article-card,
.pricing-card,
.business-card,
.panel,
.tool-card,
.info-card,
.jj-premium-info-card {
  background: #fff !important;
  border: 1px solid var(--jj-exact-line) !important;
  border-radius: 13px !important;
  box-shadow: var(--jj-exact-soft-shadow) !important;
}

.card:hover,
.jc-card:hover,
.guide-card:hover,
.jj-service-card:hover,
.jj-listing-card:hover,
.jj-route-card:hover,
.jj-stop-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--jj-exact-shadow) !important;
}

/* Exact business page two-column feel */
.jj-premium-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .78fr) !important;
  gap: 28px !important;
  max-width: 1180px !important;
  margin: 26px auto !important;
  padding: 0 18px !important;
}

.jj-premium-info-card {
  overflow: hidden !important;
  margin-bottom: 18px !important;
}

.jj-premium-info-card__head {
  background: var(--jj-exact-forest) !important;
  color: #fff !important;
  padding: 16px 18px !important;
  font-family: var(--jj-exact-serif) !important;
  font-size: 1.16rem !important;
  font-weight: 900 !important;
  position: relative;
}

.jj-premium-info-card__head::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 92px;
  height: 34px;
  transform: translateY(-50%);
  opacity: .28;
  background:
    linear-gradient(135deg, transparent 48%, #fff 49% 51%, transparent 52%) 0 18px / 42px 30px repeat-x;
}

.jj-premium-info-card__body { padding: 18px !important; }

.jj-icon-row,
.jj-feature-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)) !important;
  gap: 12px !important;
}

.jj-mini-feature {
  min-height: 112px !important;
  background: #fff !important;
  border: 1px solid var(--jj-exact-line) !important;
  border-radius: 10px !important;
  padding: 14px 12px !important;
  text-align: center !important;
  box-shadow: 0 4px 14px rgba(0,63,50,.045) !important;
}

.jj-mini-feature strong {
  display: block !important;
  color: var(--jj-exact-forest) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  margin-bottom: 5px !important;
}

/* Icons smaller and cleaner */
.icon img,
.card img[src*="icons"],
.jc-card img[src*="icons"],
.jj-mini-feature img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: 54px !important;
  max-height: 54px !important;
  object-fit: contain !important;
  margin-bottom: 8px !important;
}

/* Photo visual treatment */
.card-photo,
.photo-panel,
img {
  border-radius: 10px;
}

.photo-panel,
.card-photo {
  background-image: var(--photo, url("../img/hero/jasper-journeys-exact-mockup-mountain-hero.jpg")) !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Map refined */
#discoverMap,
#jjMap,
#map,
.leaflet-container {
  border: 1px solid var(--jj-exact-line) !important;
  border-radius: 15px !important;
  box-shadow: var(--jj-exact-soft-shadow) !important;
}
.jj-small-map-marker span {
  min-width: 13px !important;
  min-height: 13px !important;
  font-size: 8px !important;
  border-width: 1.5px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,.22) !important;
}
.jj-map-control-panel {
  border: 1px solid var(--jj-exact-line) !important;
  border-radius: 13px !important;
  box-shadow: var(--jj-exact-soft-shadow) !important;
}

/* Footer exact deep green */
.footer-pro,
.site-footer,
footer {
  background: linear-gradient(180deg, var(--jj-exact-forest), #003528) !important;
  color: rgba(255,255,255,.92) !important;
  border-top: 0 !important;
  position: relative;
  overflow: hidden;
}
.footer-pro::after,
.site-footer::after,
footer::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 74px;
  opacity: .32;
  background:
    linear-gradient(135deg, transparent 48%, #fff 49% 51%, transparent 52%) 0 38px / 70px 46px repeat-x;
  pointer-events: none;
}
.footer-pro h3,
.site-footer h3,
footer h3 { color: #fff !important; }
.footer-pro p,
.site-footer p,
footer p,
.footer-pro li,
.site-footer li,
footer li { color: rgba(255,255,255,.86) !important; }
.footer-pro a,
.site-footer a,
footer a {
  color: #fff !important;
  text-decoration-color: rgba(217,154,43,.75);
  text-underline-offset: 4px;
}

/* Mobile exact */
@media (max-width: 900px) {
  .jj-premium-grid {
    display: block !important;
    margin: 18px auto !important;
    padding: 0 12px !important;
  }
  .jj-premium-grid > * + * { margin-top: 18px !important; }

  .hero,
  .jj-hero,
  .home-hero,
  .jc-hero,
  .page-hero,
  .jc-page-hero,
  .jj-directory-hero {
    min-height: 430px !important;
    padding: 18px 14px !important;
    align-items: flex-end !important;
  }

  .hero > div:first-child,
  .jj-hero > div:first-child,
  .home-hero > div:first-child,
  .jc-hero > div:first-child,
  .page-hero > div:first-child,
  .jc-page-hero > div:first-child,
  .jj-directory-hero > div:first-child {
    width: 100% !important;
    padding: 20px !important;
    border-radius: 14px !important;
  }

  .btn,
  .jc-btn,
  .button,
  .btn-nav-primary,
  .jj-hero-actions a,
  .hero-cta a {
    width: 100% !important;
    min-height: 48px !important;
  }

  .jj-icon-row,
  .jj-feature-row { grid-template-columns: 1fr 1fr !important; }

  .jj-top-shell img[src*="brand"],
  .header-pro img[src*="brand"],
  .site-header img[src*="brand"],
  .main-header img[src*="brand"] {
    max-height: 58px !important;
  }
}

@media (max-width: 520px) {
  .jj-icon-row,
  .jj-feature-row { grid-template-columns: 1fr !important; }

  .hero h1,
  .jj-hero h1,
  .home-hero h1,
  .jc-hero h1,
  .page-hero h1,
  .jc-page-hero h1,
  .jj-directory-hero h1 {
    font-size: clamp(2rem, 12vw, 3.2rem) !important;
  }
}
