/*
Theme Name: Hack The Pandemic Archive
Description: Local WordPress reconstruction based on the archived home-page markup.
Version: 2.0.0
Text Domain: hack-the-pandemic
*/

:root {
  --htp-slate: rgb(60, 72, 88);
  --htp-muted: rgb(153, 153, 153);
  --htp-red: rgb(203, 0, 0);
  --htp-blue: rgb(23, 168, 227);
  --htp-footer: rgb(50, 52, 55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--htp-slate);
  background: #fff;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
button, input, textarea { font: inherit; }
a { color: inherit; }
#home-root { overflow: clip; }

/* Source utility classes used by the XML snapshot. */
.page-container { width: min(1170px, calc(100% - 30px)); margin-inline: auto; }
.w-full { width: 100%; }
.w-20 { width: 5rem; }
.h-4 { height: 1rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.inset-0 { inset: 0; }
.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid-cols-1 { grid-template-columns: minmax(0, 1fr); }
.gap-2 { gap: .5rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.px-1 { padding-inline: .25rem; }
.px-4 { padding-inline: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff; }
.font-bold { font-weight: 700; }
.block { display: block; }
.border-0 { border: 0; }
.rounded { border-radius: .25rem; }
.bg-white\/20 { background: rgba(255,255,255,.2); }
.transition-all { transition-property: opacity, transform, color, background-color, box-shadow; }
.duration-700 { transition-duration: .7s; }
.translate-y-4 { transform: translateY(1rem); }
.opacity-0 { opacity: 0; }

/* Progressive reveal reproduces the snapshot's transition classes. */
.htp-reveal.is-visible { opacity: 1; transform: translateY(0); }
.no-js .htp-reveal { opacity: 1; transform: none; }

/* Fixed archived header. */
.htp-header {
  transition: background-color .25s ease, box-shadow .25s ease;
}
.htp-header.is-scrolled,
.htp-header.is-menu-open {
  background-color: rgba(35, 35, 35, .96) !important;
  box-shadow: 0 2px 14px rgba(0,0,0,.24);
}
.htp-header .page-container { width: min(1170px, calc(100% - 30px)); }
.htp-header img { display: block; }
.htp-header [data-wvc-dynamic="MenuProvider"] { margin-left: auto; }
.htp-nav ul {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.htp-nav a {
  display: block;
  padding: 17px 0 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .15px;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.htp-nav a:hover,
.htp-nav a:focus-visible { color: #e34b4b; }
.htp-menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.htp-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.htp-header.is-menu-open .htp-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.htp-header.is-menu-open .htp-menu-toggle span:nth-child(2) { opacity: 0; }
.htp-header.is-menu-open .htp-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero fixes needed because the source relied on a utility framework. */
#home { isolation: isolate; }
#home > .absolute:first-of-type { z-index: -1 !important; }
#home .relative.z-10 { width: 100%; }

/* Archive video: same 16:9 frame, no external embed. */
.htp-video-facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(0,0,0,.47), rgba(0,0,0,.63)),
    url("assets/images/about-bg.jpg") center / cover no-repeat;
}
.htp-video-play {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding-left: 5px;
  border: 3px solid rgba(255,255,255,.92);
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 4px 24px rgba(0,0,0,.32);
}
.htp-video-label { font-size: 16px; font-weight: 400; text-shadow: 0 1px 4px #000; }

/* The third archived news card was a lazy-loader spinner. */
.news-card-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Footer and form corrections. */
#contact form input,
#contact form textarea { display: block; }
#contact button { appearance: none; }
#contact a { overflow-wrap: anywhere; }
#updates { scroll-margin-top: 70px; }

/* Inner WordPress pages. */
.htp-inner-page { min-height: 70vh; padding: 110px 0 70px; }
.htp-inner-page h1 { font-family: "Hind Madurai", Georgia, serif; font-size: 42px; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:gap-12 { gap: 3rem; }
  .md\:pt-\[65px\] { padding-top: 65px; }
  .md\:pt-\[75px\] { padding-top: 75px; }
}

@media (max-width: 1050px) {
  .htp-nav ul { gap: 16px; }
  .htp-nav a { font-size: 12px; }
}

@media (max-width: 900px) {
  .htp-menu-toggle { display: block; }
  .htp-nav {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(35,35,35,.98);
    box-shadow: 0 12px 18px rgba(0,0,0,.18);
    transition: max-height .28s ease;
  }
  .htp-nav.is-open { max-height: 390px; }
  .htp-nav ul { display: block; padding: 8px 15px 16px; }
  .htp-nav a { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
}

@media (max-width: 767px) {
  .page-container { width: min(100% - 30px, 1170px); }
  #home { min-height: 650px !important; }
  #home .relative.z-10 { padding-top: 210px !important; padding-bottom: 200px !important; }
  #help h2, #team h2, #request h2, #news h2 { font-size: 31px !important; line-height: 1.25 !important; }
  #help { padding-top: 45px !important; }
  #help .grid > div { margin-bottom: 18px; }
  #about { background-attachment: scroll !important; }
  #about h3 { font-size: 29px !important; }
  #about p { font-size: 16px !important; line-height: 1.65 !important; }
  #team { padding-top: 48px !important; }
  #team .grid > div { align-items: center !important; }
  #team .product-img-wrapper { width: min(201px, 100%) !important; min-width: 0 !important; }
  #request { padding-top: 72px !important; padding-bottom: 72px !important; }
  #request .flex { text-align: center; }
  #contact .page-container > .flex { gap: 34px; }
}

@media (max-width: 480px) {
  .htp-header .flex-shrink-0 { max-width: calc(100% - 54px); }
  .htp-header img { max-width: 150px !important; }
  #home h1 { font-size: 44px !important; }
  #home .relative.z-10 { padding-top: 190px !important; padding-bottom: 170px !important; }
  #team .product-img-wrapper,
  #team .product-img-wrapper img { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .htp-reveal { opacity: 1 !important; transform: none !important; }
}
