/*
Theme Name:   Dinosaur Adventure
Description:  Child theme of Kadence for dinosauradventure.com. Holds brand fonts and shared site CSS.
Template:     kadence
Version:      1.3.4
Text Domain:  dinosaur-adventure
*/

/* =====================================================
   SHARED SITE STYLES
   Brand fonts (Londrina Solid, Poppins) are loaded in functions.php.
   Section-specific CSS stays inside each section's own <style> block.
===================================================== */

:root {
  --da-ink: #22210C;
  --da-olive: #2e3017;
  --da-cream: #faf8f4;
  --da-sand: #e8e3d9;
  --da-gold: #ffb400;
  --da-orange: #ff7a00;
  --da-green: #5a9a3c;

  /* Kadence reads these for its own headings and body text */
  --global-heading-font-family: 'Londrina Solid', 'Impact', 'Arial Black', sans-serif;
  --global-body-font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

/* =====================================================
   TYPOGRAPHY (site-wide safety net)
   Headlines: Londrina Solid Black (900). Everything else: Poppins.
   Section classes (da-hero, da-fun, da-tour...) set their own sizes
   and colors and override this where needed.
===================================================== */
body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
  font-family: 'Londrina Solid', 'Impact', 'Arial Black', sans-serif;
  font-weight: 900;
}

/* Kadence sets word-break: break-word on page content, which chops big
   headlines mid-word ("EXPERIEN / CE"). Our da- sections wrap whole words only. */
.entry-content [class^="da-"],
.entry-content [class*=" da-"] {
  word-break: normal;
  overflow-wrap: normal;
}

/* Kadence adds article spacing to headings (1.5em above) and to paragraphs
   and lists (32px below) inside page content, which outranks the spacing
   built into our sections. Zero it inside da- sections; each section sets
   its own intended spacing with !important. Top/bottom only, so
   "margin: 0 auto" centering is untouched. */
.single-content [class^="da-"] :is(h1, h2, h3, h4, h5, h6, p, ul, ol),
.single-content [class*=" da-"] :is(h1, h2, h3, h4, h5, h6, p, ul, ol) {
  margin-top: 0;
  margin-bottom: 0;
}

/* =====================================================
   HEADER
===================================================== */

/* menu links: white, gold on hover and for the current page */
.site-header .header-navigation .menu > li > a {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  color: #ffffff;
}
.site-header .header-navigation .menu > li > a:hover,
.site-header .header-navigation .menu > li.current-menu-item > a,
.site-header .header-navigation .menu > li.current_page_item > a,
.site-header .header-navigation .menu > li.current-menu-ancestor > a {
  color: #ffb400 !important;
}

/* "Find Your City" button: same 3D orange style as the hero button */
.site-header .header-button,
.site-header .header-button:visited {
  font-family: 'Londrina Solid', 'Impact', 'Arial Black', sans-serif !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #ffb400 0%, #ff7a00 100%) !important;
  border: 0 !important;
  border-radius: 50px !important;
  padding: 10px 26px !important;
  text-shadow: 0 2px 6px rgba(0,0,0,.3);
  box-shadow: 0 4px 0 #c85c00, 0 8px 18px rgba(0,0,0,.35) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.site-header .header-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #c85c00, 0 12px 24px rgba(0,0,0,.4) !important;
  color: #ffffff !important;
}
.site-header .header-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #c85c00, 0 6px 12px rgba(0,0,0,.35) !important;
}

/* Old EventChamp-era page CSS (still saved on some not-yet-rebuilt pages) sets
   "header.site-header { position: absolute !important }", which makes the header
   float over the top of the page. Keep the header in the normal page flow. */
#masthead {
  position: relative !important;
  top: auto !important;
}

/* Header background stays olive-black, including the sticky (scrolled) state.
   Kadence sets these with an #masthead ID rule, so match it and use !important. */
#masthead,
#masthead .site-main-header-wrap .site-header-row-container-inner,
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner,
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start):not(.site-header-row-container):not(.site-main-header-wrap) {
  background: #22210C !important;
}
/* soft shadow once the header is stuck to the top */
#masthead .kadence-sticky-header.item-is-fixed.item-is-stuck {
  box-shadow: 0 4px 16px rgba(0,0,0,0.35) !important;
}

/* =====================================================
   MOBILE HEADER + SLIDE-OUT MENU (matches desktop header)
===================================================== */

/* hamburger and close icons: white, gold on hover */
.mobile-toggle-open-container .menu-toggle-open,
.mobile-toggle-open-container .menu-toggle-open:focus,
#mobile-drawer .drawer-header .drawer-toggle {
  color: #ffffff !important;
}
.mobile-toggle-open-container .menu-toggle-open:hover,
.mobile-toggle-open-container .menu-toggle-open:focus-visible,
#mobile-drawer .drawer-header .drawer-toggle:hover {
  color: #ffb400 !important;
}

/* panel background: olive-black instead of Kadence navy */
#mobile-drawer .drawer-inner,
#mobile-drawer.popup-drawer-layout-fullwidth .drawer-inner,
#mobile-drawer.popup-drawer-layout-fullwidth.popup-drawer-animation-slice.pop-animated .drawer-inner {
  background: #22210C !important;
}

/* menu links: Poppins 600 like desktop, white, gold for hover and current page */
.mobile-navigation ul li {
  font-size: 18px !important;
}
.mobile-navigation ul li > a {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif !important;
  font-weight: 600 !important;
  color: #ffffff !important;
}
.mobile-navigation ul li > a:hover,
.mobile-navigation ul li.current-menu-item > a,
.mobile-navigation ul li.current_page_item > a {
  color: #ffb400 !important;
}

/* =====================================================
   PAGE HERO (shared by every inner page: Events, FAQ, Gallery, Contact...)
   Markup: see "Page hero" files in New Website. Only the text changes per page.
===================================================== */
.da-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(340px, 34vw, 480px);
  padding: 72px 24px 64px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(34,33,12,0.55) 0%, rgba(34,33,12,0.88) 100%),
    url("/wp-content/uploads/2026/04/1800x660.webp") center 40% / cover no-repeat,
    #22210C;
  overflow: hidden;
}
@media (max-width: 1050px) {
  .da-page-hero {
    background-image:
      linear-gradient(180deg, rgba(34,33,12,0.55) 0%, rgba(34,33,12,0.88) 100%),
      url("/wp-content/uploads/2026/04/1050x530.webp");
  }
}
@media (max-width: 700px) {
  .da-page-hero {
    min-height: 0;
    padding: 56px 16px 48px;
    background-image:
      linear-gradient(180deg, rgba(34,33,12,0.6) 0%, rgba(34,33,12,0.9) 100%),
      url("/wp-content/uploads/2026/04/700x520.webp");
  }
}
.da-page-hero__inner {
  max-width: 780px;
}

/* tilted gold sticker (same look as the homepage "100% Dinosaurs!" sticker) */
.da-sticker {
  display: inline-block;
  font-family: 'Londrina Solid', 'Impact', 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #22210C !important;
  background: #ffb400;
  padding: 6px 18px;
  border: 3px solid #ffffff;
  border-radius: 10px;
  transform: rotate(-4deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}

.single-content .da-page-hero .da-page-hero__title,
.da-page-hero__title {
  font-family: 'Londrina Solid', 'Impact', 'Arial Black', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.95;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff !important;
  text-shadow: 0 4px 18px rgba(0,0,0,0.45);
  margin: 0 0 16px !important;
}
.da-page-hero__accent {
  color: #ffb400;
}
.single-content .da-page-hero .da-page-hero__sub,
.da-page-hero__sub {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,0.88) !important;
  max-width: 620px;
  margin: 0 auto 22px !important;
}
.da-page-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.da-page-hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50px;
  padding: 7px 15px;
  margin: 0 !important;
}
.da-page-hero__chips li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb400;
}

/* On pages with a page hero, the Tour Dates list skips its own heading
   (the hero already says what the page is). */
.entry-content:has(.da-page-hero) .da-tour__head {
  display: none;
}
.entry-content:has(.da-page-hero) .da-tour__section {
  padding-top: 64px;
}

/* =====================================================
   SHARED BUTTONS
   .da-btn          orange 3D (main call to action)
   .da-btn--ghost   white outline (secondary, on dark backgrounds)
   .da-btn--dark    dark outline (secondary, on light backgrounds)
===================================================== */
.da-btn,
.da-btn:visited {
  display: inline-block;
  padding: 13px 34px;
  font-family: 'Londrina Solid', 'Impact', 'Arial Black', sans-serif !important;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #ffb400 0%, #ff7a00 100%);
  border: 0;
  border-radius: 50px;
  text-shadow: 0 2px 6px rgba(0,0,0,.3);
  box-shadow: 0 5px 0 #c85c00, 0 10px 20px rgba(0,0,0,.2);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.da-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #c85c00, 0 14px 26px rgba(0,0,0,.25);
  color: #ffffff !important;
}
.da-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #c85c00, 0 6px 12px rgba(0,0,0,.2);
}
.da-btn--ghost,
.da-btn--ghost:visited,
.da-btn--dark,
.da-btn--dark:visited {
  background: transparent;
  text-shadow: none;
  box-shadow: none;
  padding: 10px 30px;
}
.da-btn--ghost,
.da-btn--ghost:visited {
  color: #ffffff !important;
  border: 3px solid #ffffff;
}
.da-btn--ghost:hover {
  background: #ffffff;
  color: #22210C !important;
  box-shadow: none;
}
.da-btn--dark,
.da-btn--dark:visited {
  color: #22210C !important;
  border: 3px solid #22210C;
}
.da-btn--dark:hover {
  background: #22210C;
  color: #ffb400 !important;
  box-shadow: none;
}

/* =====================================================
   CITY PAGE HERO (page hero + city details)
===================================================== */
.da-page-hero__kicker {
  display: block;
  font-size: 0.42em;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 6px;
}
.da-page-hero--city .da-page-hero__inner {
  max-width: 860px;
}
.da-page-hero__info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  list-style: none !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}
.da-page-hero__info li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 !important;
}
.da-page-hero__info svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #ffb400;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.da-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
  margin-top: 6px;
}

/* =====================================================
   PLAN YOUR VISIT (city pages: where, when, tickets)
===================================================== */
.da-visit {
  background: #faf8f4;
  padding: 72px 24px 80px;
  scroll-margin-top: 90px;
}
.da-visit__container {
  max-width: 1100px;
  margin: 0 auto;
}
.da-visit__head {
  text-align: center;
  margin-bottom: 36px;
}
.single-content .da-visit .da-visit__eyebrow,
.da-visit__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff7a00 !important;
  margin: 0 0 14px !important;
}
.da-visit__eyebrow::before,
.da-visit__eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: #ff7a00;
}
.single-content .da-visit .da-visit__title,
.da-visit__title {
  font-family: 'Londrina Solid', 'Impact', 'Arial Black', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.95;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #22210C !important;
  margin: 0 !important;
}
.da-visit__title span {
  color: #ff7a00;
}
.da-visit__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.da-visit__card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 6px 24px rgba(34,33,12,0.08), 0 1px 3px rgba(34,33,12,0.05);
}
.da-visit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 16px;
}
.da-visit__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.da-visit__icon--orange { background: #ff7a00; }
.da-visit__icon--green  { background: #5a9a3c; }
.da-visit__icon--gold   { background: #ffb400; }
.da-visit__icon--gold svg { stroke: #22210C; }
.single-content .da-visit .da-visit__label,
.da-visit__label {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888 !important;
  margin: 0 0 4px !important;
}
.single-content .da-visit .da-visit__card-title,
.da-visit__card-title {
  font-family: 'Londrina Solid', 'Impact', 'Arial Black', sans-serif !important;
  font-weight: 900 !important;
  font-size: 28px;
  line-height: 1.05;
  color: #22210C !important;
  margin: 0 0 10px !important;
}
.single-content .da-visit .da-visit__text,
.da-visit__text {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #444 !important;
  margin: 0 0 16px !important;
}
.da-visit__hours {
  list-style: none !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}
.da-visit__hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  color: #444;
  padding: 8px 0;
  border-bottom: 1px dashed #e3dccd;
  margin: 0 !important;
}
.da-visit__hours li strong {
  color: #22210C;
}
.single-content .da-visit .da-visit__note,
.da-visit__note {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #5a9a3c !important;
  font-weight: 600;
  margin: 0 !important;
}
.da-visit__link {
  margin-top: auto;
  align-self: flex-start;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #c2410c !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.da-visit__link:hover {
  color: #ff7a00 !important;
}
.da-visit__card .da-btn {
  margin-top: auto;
  align-self: stretch;
}

@media (max-width: 900px) {
  .da-visit__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}
@media (max-width: 600px) {
  .da-visit {
    padding: 52px 16px 60px;
  }
  .da-page-hero__actions .da-btn {
    width: 100%;
  }
}

/* elements hidden by the city script (or the hidden attribute) always stay hidden */
[class*="da-"][hidden] {
  display: none !important;
}

/* seasonal / special callout chip in a city hero (e.g. Dino-ween) */
.da-page-hero__chips--promo {
  margin: 0 0 18px !important;
}
.da-page-hero__chips--promo li {
  color: #22210C;
  background: linear-gradient(180deg, #ffb400 0%, #ff8a00 100%);
  border: 0;
  font-weight: 700;
}
.da-page-hero__chips--promo li::before {
  display: none;
}
