/* --------------------------------------------------------
   Default Layout (Pico-driven visuals)
-------------------------------------------------------- */

/* --------------------------------------------------------
   Header + Nav Layout
-------------------------------------------------------- */
body > header {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 0.5rem 0;
}

header.container-fluid.header {
  background-color: var(--pico-background-color);
}

.header .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header .site-header > .site-logo-img,
.header .site-header > .site-logo-text {
  display: inline-flex;
  align-items: center;
}

.site-logo-img img {
  max-height: 75px;
  width: auto;
}

nav.menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  gap: 0.75rem;
}

nav.menu #menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

nav.menu .menu-icon {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0 0.5rem;
}

nav.menu .menu-icon::before {
  content: "≡";
  display: inline-block;
}

nav.menu #menu-toggle:checked + .menu-icon::before {
  content: "✕";
}

nav.menu .nav-desktop,
nav.menu .nav-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.menu .nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav.menu .nav-mobile {
  display: none;
}

nav.menu details.dropdown {
  position: relative;
  margin: 0;
}

nav.menu details.dropdown > summary {
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

nav.menu details.dropdown > ul.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: max-content;
  max-width: min(22rem, 100vw - 2rem);
  margin: 0;
  padding: 0.5rem 0.75rem;
  list-style: none;
  background: var(--pico-background-color);
  max-height: min(70vh, 28rem);
  overflow: auto;
}

nav.menu details.dropdown[open] > ul.submenu {
  display: flex;
}

nav.menu details.dropdown > ul.submenu > li {
  margin: 0;
  padding: 0.2rem 0;
  width: 100%;
}

nav.menu details.dropdown > ul.submenu > li > a {
  display: block;
  white-space: normal;
}

details.dropdown > summary::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 768px) {
  nav.menu {
    display: block;
    margin-left: auto;
    text-align: right;
  }

  nav.menu .menu-icon {
    display: inline-block;
  }

  nav.menu .nav-desktop,
  nav.menu .nav-desktop > * {
    display: none !important;
  }

  nav.menu .nav-mobile {
    display: none;
    position: fixed;
    top: 3.5rem;
    left: 0;
    right: 0;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    margin: 0;
    background: var(--pico-background-color);
    z-index: 1000;
    overflow-x: hidden;
  }

  nav.menu #menu-toggle:checked ~ .nav-mobile {
    display: flex;
  }

  nav.menu .nav-mobile > li {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  nav.menu .nav-mobile a,
  nav.menu .nav-mobile span {
    display: block;
    width: 100%;
    padding: 0.45rem 0.25rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  nav.menu .nav-mobile li[data-depth="1"] a,
  nav.menu .nav-mobile li[data-depth="1"] span {
    padding-left: 1.5rem;
  }

  nav.menu .nav-mobile li[data-depth="2"] a,
  nav.menu .nav-mobile li[data-depth="2"] span {
    padding-left: 2.25rem;
  }

  nav.menu .nav-mobile .menu-heading span {
    font-weight: 700;
  }
}

/* --------------------------------------------------------
   Hero Layout
-------------------------------------------------------- */
.hero {
  padding: 3rem 0;
  background-color: var(--pico-primary-focus);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
  min-width: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.hero-left .hero-media {
  order: -1;
}

.hero-right .hero-media {
  order: 1;
}

.hero-text .hero-media {
  display: none;
}

.hero-bg .hero-grid {
  grid-template-columns: 1fr;
}

.hero-bg {
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-bg .hero-media {
  display: none;
}

.hero-bg .hero-content {
  align-items: center;
  background-color: var(--pico-secondary-inverse);
  width: fit-content;
  padding: 1em;
  margin: auto;
}

.hero-bg .hero-cta {
  justify-content: center;
}

.hero-text {
  background-color: var(--pico-background-color);
}

.hero-text .hero-content {
  text-align: center;
  align-items: center;
}

.hero-text .hero-cta {
  justify-content: center;
  padding-top: 1em;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

/* --------------------------------------------------------
   Footer Layout
-------------------------------------------------------- */
footer {
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 2rem;
  padding-top: 2em;
  background-color: var(--pico-primary-focus);
}

.footer-brand .site-logo-img img {
  padding-bottom: 1em;
}

.footer-links .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.footer-links ul {
  margin: 0;
  padding-left: 1.25rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  text-align: center;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------
   Utilities
-------------------------------------------------------- */
.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}

.full-width {
  width: 100%;
}

.center {
  text-align: center;
}

.left {
  float: left;
  margin-right: 1rem;
  margin-bottom: 1rem;
  max-width: 50%;
  height: auto;
}

.right {
  float: right;
  margin-left: 1rem;
  margin-bottom: 1rem;
  max-width: 50%;
  height: auto;
}


.cinema {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.square {
  aspect-ratio: 1;
  object-fit: cover;
}

div.float-container::after {
  content: "";
  display: table;
  clear: both;
}

.section-bleed {
  position: relative;
  z-index: 0;
  padding: 3rem 0;
}

.section-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--pico-code-background-color);
  z-index: -1;
  pointer-events: none;
}

article::after {
  content: "";
  display: table;
  clear: both;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.item-testimonial {
  padding: 1.5rem;
}

.testimonial {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-direction: column;
  text-align: center;
}

.testimonial img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
  margin: auto;
}

.logos {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0 3rem;
}

.logos li {
  list-style: none;
}

.logos img {
  max-width: 120px;
  width: 100%;
}

@media only screen and (max-width: 420px) {
  .right,
  .left {
    float: unset;
    clear: unset;
    width: unset;
    max-width: 100%;
    margin: 0 0 1rem 0;
  }
}
