/* ------------------------------------------------------------------
   TH Media — modern rebuild override layer
   Sits on top of the vendored Timber core.min.css + skin.css.
   Only purpose: render the original markup statically (the original
   relied on a jQuery slider/animation plugin we intentionally dropped)
   and fill the couple of gaps the theme left to JS.
-------------------------------------------------------------------*/

/* Smooth in-page navigation with an offset for the fixed 8rem header */
html { scroll-behavior: smooth; }
section[id],
div[id].th-anchor { scroll-margin-top: 8rem; }

/* The one color class the markup references but the skin never defined
   (Calendly button hover on the podcast landing page). */
.bkg-hover-navy:hover { background-color: #0a2540 !important; border-color: #0a2540 !important; }

/* ===========================================================
   Hero / featured media (replaces the single-slide tm-slider)
   =========================================================== */
.th-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  background-color: #181818;
}
.th-hero.th-h-window { height: 100vh; min-height: 52rem; }
.th-hero.th-h-intro  { height: 45rem; }
.th-hero.th-h-band   { height: 45rem; }
.th-hero.th-h-small  { height: 30rem; }

.th-hero-media { position: absolute; inset: 0; z-index: 0; }
.th-hero-media > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; object-fit: cover; object-position: center;
}
.th-hero .media-overlay { position: absolute; inset: 0; z-index: 1; }
.th-hero-content { position: relative; z-index: 2; width: 100%; }

/* Background YouTube/Vimeo video that covers the hero (16:9 cover trick).
   z-index:1 keeps it ABOVE the poster <img> fallback but still below the
   .media-overlay (which lives in the parent .th-hero stacking context). */
.th-hero-video { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.th-hero-video iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;            /* 16:9 */
  min-height: 100%; min-width: 177.78vh;    /* cover */
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}

/* Scroll-down affordance at the foot of a hero */
.th-scroll-down {
  position: absolute; left: 50%; bottom: 3rem;
  transform: translateX(-50%); z-index: 3;
}

/* ===========================================================
   Section helpers used by the original markup
   =========================================================== */
/* hero-2 quote band overlay sizing already handled by .media-overlay in core */
.th-band-content { position: relative; z-index: 2; width: 100%; }

/* Portfolio / masonry filter grid — the plugin did absolute masonry; a
   simple float grid (already in core via .content-grid-3) reads the same
   for these uniform-ratio thumbnails. We only add filter transitions. */
.th-grid .grid-item {
  transition: opacity .4s ease, transform .4s ease;
}
.th-grid .grid-item.th-hidden { display: none; }
.grid-filter-menu ul { margin: 0; }
.grid-filter-menu li { display: inline-block; }
.grid-filter-menu li a {
  padding: 0 1.2rem; font-size: 1.1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1rem; color: #999;
}
.grid-filter-menu li a:hover,
.grid-filter-menu li a.active { color: #33363a; }

/* Robust responsive grid (replaces the JS masonry/absolute positioning) */
.th-grid .grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 0 !important;
}
/* The .row clearfix pseudo-elements would otherwise become stray grid cells
   (an empty top-left cell + an extra wrapped row) — suppress them here. */
.th-grid .grid::before,
.th-grid .grid::after { content: none; display: none; }
.th-grid .grid > .grid-item {
  width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important;
}
@media only screen and (max-width: 960px) {
  .th-grid .grid { grid-template-columns: repeat(2, 1fr); }
}
@media only screen and (max-width: 600px) {
  .th-grid .grid { grid-template-columns: 1fr; }
}
/* Uniform thumbnail ratio so rows line up without the JS sizer */
.th-grid .thumbnail {
  position: relative; aspect-ratio: 3 / 2; margin-bottom: 0; overflow: hidden;
}
.th-grid .thumbnail > a { display: block; width: 100%; height: 100%; }
.th-grid .thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-grid .item-description { padding: 1.4rem 0 0.6rem; }

/* ===========================================================
   Scroll-reveal animations (replaces data-animate-in plugin)
   Hidden state only applies once JS has flagged <html class="th-js">,
   so the page degrades gracefully without JavaScript.
   =========================================================== */
.th-js [data-animate-in] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.23,1,.32,1),
              transform .8s cubic-bezier(.23,1,.32,1);
  will-change: opacity, transform;
}
.th-js [data-animate-in].th-in { opacity: 1; transform: none; }

/* ===========================================================
   Scroll-to-top button (theme markup, behavior re-added in React)
   =========================================================== */
.scroll-to-top {
  position: fixed; right: 2rem; bottom: 2rem; z-index: 200;
  width: 4.4rem; height: 4.4rem; line-height: 4.4rem;
  text-align: center; border-radius: 50%;
  background-color: #33363a; color: #fff;
  opacity: 0; visibility: hidden; cursor: pointer;
  transition: opacity .3s ease, visibility .3s ease, background-color .3s ease;
  display: flex; align-items: center; justify-content: center;
}
.scroll-to-top.th-visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background-color: #3fb58b; color: #fff; }

/* ===========================================================
   Responsive navigation
   - > 1140px : full horizontal nav at the theme's natural spacing
   - 961-1140 : tighten item spacing + logo so all 7 items stay on one line
   - <= 960px : hamburger + dropdown (matches the theme's mobile header,
     which turns the header background white at this breakpoint)
   =========================================================== */
@media only screen and (min-width: 961px) and (max-width: 1140px) {
  .header .navigation > ul > li > a { margin: 0 0.7rem; letter-spacing: 0.05rem; }
  .header .logo { width: 13rem; margin-right: 1.5rem; }
}

.th-mobile-toggle { display: none; }
.th-mobile-menu { display: none; }

@media only screen and (max-width: 960px) {
  .header .primary-navigation,
  .header .secondary-navigation { display: none !important; }

  .th-mobile-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 4.4rem; height: 4.4rem; margin-top: 1.8rem; padding: 0; float: right;
    background: transparent; border: 1px solid #ddd; border-radius: .3rem;
    color: #33363a; cursor: pointer;
  }
  .th-mobile-toggle:hover { color: #3fb58b; border-color: #3fb58b; }

  .th-mobile-menu.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    background: #fff; box-shadow: 0 1rem 2rem rgba(0, 0, 0, .12);
  }
  .th-mobile-menu ul { list-style: none; margin: 0; padding: 1rem 0; }
  .th-mobile-menu li a {
    display: block; padding: 1.3rem 2.4rem;
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    font-size: 1.2rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1rem; color: #33363a;
  }
  .th-mobile-menu li a:hover { background: #f8f8f8; color: #3fb58b; }
}

/* Pure-CSS hamburger that morphs into an X when expanded (no icon font) */
.th-burger,
.th-burger::before,
.th-burger::after {
  content: ''; display: block; width: 22px; height: 2px;
  background-color: currentColor; border-radius: 2px;
  transition: transform .25s ease, top .25s ease, background-color .25s ease;
}
.th-burger { position: relative; }
.th-burger::before { position: absolute; left: 0; top: -7px; }
.th-burger::after { position: absolute; left: 0; top: 7px; }
.th-mobile-toggle[aria-expanded='true'] .th-burger { background-color: transparent; }
.th-mobile-toggle[aria-expanded='true'] .th-burger::before { top: 0; transform: rotate(45deg); }
.th-mobile-toggle[aria-expanded='true'] .th-burger::after { top: 0; transform: rotate(-45deg); }

/* ===========================================================
   Inline SVG icons (react-icons stand in for the Entypo font)
   =========================================================== */
.th-icon { display: inline-block; vertical-align: middle; fill: currentColor; }
/* Feature icons size from the theme's .feature-icon font-size (3rem / 4rem) */
.feature-icon { line-height: 1; }
.feature-icon .th-icon { width: 1em; height: 1em; }

/* Circular scroll-down affordance at the foot of a hero */
a.th-scroll-down-btn {
  width: 5rem; height: 5rem; border-radius: 50%;
  background: #fff; color: #33363a;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  transition: background-color .3s ease, color .3s ease;
}
a.th-scroll-down-btn:hover { background: #3fb58b; color: #fff; }

/* ===========================================================
   Footer — keep it in normal flow (the theme's fixed "reveal"
   footer needs JS-measured content margins we don't reproduce)
   =========================================================== */
.footer.footer-fixed { position: relative !important; bottom: auto; z-index: 1; }

/* ===========================================================
   Video lightbox (replaces the theme's tm-lightbox plugin)
   =========================================================== */
.th-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .9);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.th-lightbox-inner { position: relative; width: 100%; max-width: 96rem; }
.th-lightbox-video { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; }
.th-lightbox-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.th-lightbox-close {
  position: absolute; top: -4.4rem; right: 0;
  width: 4rem; height: 4rem; font-size: 2.4rem;
  background: none; border: 0; color: #fff; cursor: pointer;
}
.th-lightbox-close:hover { color: #3fb58b; }
.th-lightbox-caption { color: #fff; text-align: center; margin: 1.2rem 0 0; font-size: 1.2rem; }

/* ===========================================================
   Map — greyscale to echo the original styled map
   =========================================================== */
.th-map { width: 100%; line-height: 0; }
.th-map iframe { display: block; width: 100%; filter: grayscale(100%); }

/* ===========================================================
   Podcast page — package blocks & studio gallery
   =========================================================== */
.podcast-package { padding-top: 2.5rem; margin-bottom: 3rem; border-top: 1px solid #eee; }
.podcast-package h3 span { color: #3fb58b; }
.add-on-services { padding-top: 2.5rem; border-top: 1px solid #eee; }

.th-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.th-gallery .grid-item { width: auto; margin: 0; padding: 0; }
.th-gallery .thumbnail { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.th-gallery .thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media only screen and (max-width: 600px) {
  .th-gallery { grid-template-columns: 1fr; }
}

/* ===========================================================
   Responsive video embed (podcast landing Vimeo block)
   =========================================================== */
.video-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===========================================================
   Podcast Studio page (conversion redesign)
   =========================================================== */

/* Hero CTA buttons sit on one row, wrap on mobile */
.th-hero-cta { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; }
.th-hero-cta .button { margin: 0; }

/* Ghost (outline) button for dark hero backgrounds */
.button.th-ghost { background: transparent; border: 2px solid rgba(255, 255, 255, .55); color: #fff; }
.button.th-ghost:hover { background: #fff; border-color: #fff; color: #33363a; }

/* Eyebrow label above section headings */
.th-eyebrow {
  display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 1.1rem;
  font-weight: 700; letter-spacing: .25rem; text-transform: uppercase;
  color: #3fb58b; margin-bottom: 1.4rem;
}

/* Value propositions */
.th-vp-list { list-style: none; margin: 2.2rem 0 0; padding: 0; }
.th-vp-list li {
  position: relative; padding: .9rem 0 .9rem 4.2rem;
  font-size: 1.45rem; line-height: 1.5; color: #5d6066;
}
.th-vp-list li .th-icon {
  position: absolute; left: 0; top: .6rem; width: 2.6rem; height: 2.6rem; color: #3fb58b;
}

/* Everything-included grid */
.th-includes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 3.4rem; list-style: none; margin: 0; padding: 0; }
.th-includes li { position: relative; padding-left: 3rem; font-size: 1.4rem; line-height: 1.55; color: #5d6066; }
.th-includes li .th-icon { position: absolute; left: 0; top: .35rem; width: 1.9rem; height: 1.9rem; color: #3fb58b; }
@media only screen and (max-width: 768px) { .th-includes { grid-template-columns: 1fr; } }

/* Pricing cards */
.th-pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2rem; align-items: stretch; }
@media only screen and (max-width: 1024px) { .th-pricing { grid-template-columns: repeat(2, 1fr); } }
@media only screen and (max-width: 560px) { .th-pricing { grid-template-columns: 1fr; } }
.th-price-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #eee; border-radius: .6rem;
  padding: 3.6rem 2.6rem 2.8rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.th-price-card:hover { transform: translateY(-6px); box-shadow: 0 2rem 4rem rgba(0, 0, 0, .09); }
.th-price-card.popular { border-color: #3fb58b; box-shadow: 0 2rem 4.5rem rgba(63, 181, 139, .2); }
.th-price-badge {
  position: absolute; top: -1.3rem; left: 50%; transform: translateX(-50%);
  background: #3fb58b; color: #fff; font-family: 'Montserrat', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: .14rem; text-transform: uppercase;
  padding: .6rem 1.6rem; border-radius: 10rem; white-space: nowrap;
}
.th-price-name {
  font-family: 'Montserrat', sans-serif; font-size: 1.35rem; font-weight: 700;
  letter-spacing: .14rem; text-transform: uppercase; color: #3fb58b; margin: 0 0 1.2rem;
}
.th-price-amount { font-family: 'Montserrat', sans-serif; color: #33363a; font-weight: 700; line-height: 1; }
.th-price-amount .cur { font-size: 2.2rem; vertical-align: top; position: relative; top: .8rem; margin-right: .2rem; }
.th-price-amount .num { font-size: 4.8rem; }
.th-price-amount .per { display: block; font-size: 1.05rem; font-weight: 400; letter-spacing: .08rem; text-transform: uppercase; color: #969aa1; margin-top: .8rem; }
.th-price-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 1.4rem; }
.th-price-meta span { font-size: 1.05rem; font-weight: 600; color: #5d6066; background: #f8f8f8; border: 1px solid #eee; border-radius: 10rem; padding: .45rem 1.1rem; }
.th-price-blurb { font-size: 1.28rem; line-height: 1.7; color: #969aa1; margin-bottom: 1.8rem; }
.th-price-list { list-style: none; margin: 0 0 2.4rem; padding: 0; }
.th-price-list li { position: relative; padding: .5rem 0 .5rem 2.6rem; font-size: 1.25rem; color: #5d6066; line-height: 1.5; }
.th-price-list li .th-icon { position: absolute; left: 0; top: .65rem; color: #3fb58b; width: 1.6rem; height: 1.6rem; }
.th-price-list li.lead-in { padding-left: 0; font-weight: 700; color: #33363a; }
.th-price-cta { margin-top: auto; }
.th-price-cta .button, .th-price-cta a { width: 100%; text-align: center; }

/* Comparison table */
.th-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.th-compare { width: 100%; min-width: 66rem; border-collapse: collapse; font-size: 1.25rem; }
.th-compare th, .th-compare td { padding: 1.35rem 1.4rem; text-align: center; border-bottom: 1px solid #eee; }
.th-compare thead th { font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .1rem; font-size: 1.15rem; color: #33363a; background: #f8f8f8; }
.th-compare thead th.feat, .th-compare tbody th, .th-compare tfoot th { text-align: left; }
.th-compare tbody th { font-family: inherit; font-weight: 600; color: #5d6066; }
.th-compare thead th.pop, .th-compare td.pop { background: rgba(63, 181, 139, .07); }
.th-compare thead th.pop { color: #3fb58b; }
.th-compare .th-yes { color: #3fb58b; width: 1.8rem; height: 1.8rem; }
.th-compare .th-no { color: #d2d5d9; }
.th-compare .th-addon { display: inline-block; width: 1.1rem; height: 1.1rem; border: 2px solid #b8bcc2; border-radius: 50%; }
.th-compare tfoot td, .th-compare tfoot th { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #33363a; font-size: 1.5rem; background: #f8f8f8; }
.th-compare-legend { margin-top: 1.6rem; font-size: 1.15rem; color: #969aa1; }
.th-compare-legend span { margin-right: 2.4rem; white-space: nowrap; }
.th-compare-legend .th-yes { color: #3fb58b; vertical-align: middle; }
.th-compare-legend .th-addon { display: inline-block; width: 1.1rem; height: 1.1rem; border: 2px solid #b8bcc2; border-radius: 50%; vertical-align: middle; margin-right: .4rem; }

/* Add-on services */
.th-addons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem 3.4rem; list-style: none; margin: 0; padding: 0; }
@media only screen and (max-width: 768px) { .th-addons { grid-template-columns: 1fr; } }
.th-addon-item { display: flex; gap: 1.6rem; align-items: flex-start; }
.th-addon-item .th-addon-ic {
  flex: 0 0 auto; width: 4.8rem; height: 4.8rem; border-radius: 50%;
  background: #f8f8f8; color: #3fb58b; display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.th-addon-item h5 { margin: 0 0 .4rem; }
.th-addon-item p { margin: 0; font-size: 1.3rem; line-height: 1.6; }

/* Next-steps */
.th-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; list-style: none; margin: 0; padding: 0; }
@media only screen and (max-width: 768px) { .th-steps { grid-template-columns: 1fr; } }
.th-step { text-align: center; }
.th-step-num {
  width: 6.4rem; height: 6.4rem; border-radius: 50%; background: #3fb58b; color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 2.4rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.8rem;
}

/* Dark CTA band text colours */
.bkg-theme .th-eyebrow { color: #3fb58b; }
.bkg-theme h2, .bkg-theme h3 { color: #fff; }

/* ===========================================================
   Small conveniences
   =========================================================== */
.th-cursor-pointer { cursor: pointer; }
/* Make the contact image scale nicely within its column */
.contact-2 img { max-width: 100%; height: auto; }
/* Mobile: let the fixed footer sit naturally */
@media only screen and (max-width: 768px) {
  .th-hero.th-h-window { min-height: 100vh; }
}
