/*
Theme Name: House Party Improv
Theme URI: https://housepartyimprov.com
Author: House Party Improv
Description: Custom theme replicating the House Party Improv Squarespace site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: houseparty-improv
*/

:root {
  --c-bg: #b0c3d0;
  --c-black: #000000;
  --c-white: #ffffff;
  --c-accent: #e9ee63;
  --c-cream: #f9f8f0;
  --font-heading: "Newsreader", Georgia, serif;
  --font-body: "IBM Plex Mono", ui-monospace, monospace;
  --font-button: "Inter", -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--c-bg);
  color: var(--c-black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.7rem); }

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: underline; }
a:hover { opacity: 0.8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--font-button);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid currentColor;
  text-align: center;
}
.btn:hover { opacity: 0.75; }
.btn--lg { font-size: 1.45rem; padding: 1.1rem 2.4rem; }

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: #974a26;
  color: #000;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1;
  padding: 0;
}
.announcement-bar__link {
  display: block;
  color: #000;
  text-decoration: none;
  padding: 13px 2rem;
}
.announcement-bar__link:hover { opacity: 1; text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  color: var(--c-black);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  position: relative;
}
.site-header__nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
}
.site-header__nav a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.site-header__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.site-header__logo img { max-height: 33px; width: auto; }
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-header__social { display: flex; align-items: center; }
.site-header__actions .btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 16px 20.8px;
  border-radius: 300px;
  border-color: #000;
}

.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 50px;
  height: 37px;
  padding: 0 6px;
  background: none;
  border: 0;
  cursor: pointer;
}
.site-header__burger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.site-header__mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--c-bg);
  color: var(--c-black);
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}
.site-header__mobile-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.site-header__mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  text-decoration: none;
}
.site-header__mobile-actions { margin-top: 2.5rem; }
.site-header__mobile-actions .btn { display: inline-block; }

.site-header--dark .site-header__bar { color: var(--c-black); }

.hpi-header-dark .site-header__bar {
  color: var(--c-white);
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}

/* ---------- Sections ---------- */
.section {
  padding: 6vw clamp(1.5rem, 4vw, 4rem);
  position: relative;
}
.section--black { background: var(--c-black); color: var(--c-white); }
.section--black a { color: var(--c-accent); }
.section--white { background: var(--c-white); color: var(--c-black); }
.section--accent { background: var(--c-accent); color: var(--c-black); }
.section--blue { background: var(--c-bg); color: var(--c-black); }

.center { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #1a1d26;
  color: var(--c-white);
}
.hero__bg {
  position: absolute;
  inset: 0;
  margin: 0;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.58; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 29, 38, 0.42);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 8rem 1.5rem 3rem;
  max-width: 900px;
}
.hero__logo {
  margin: 0 0 1rem;
  width: 220px;
  margin-left: auto;
  margin-right: auto;
}
.hero__logo img { width: 100%; height: auto; }
.hero__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  color: var(--c-white);
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
}
.hero__meta {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--c-accent);
}
.hero__contact { margin-top: 0.5rem; font-size: 1.05rem; color: var(--c-white); }
.hero__contact a { color: var(--c-white); }
.hero__bp {
  width: 88px;
  margin: 1.5rem auto 0.75rem;
}
.hero__bp img { width: 100%; height: auto; }
.hero__location { font-size: 1.15rem; line-height: 1.6; }
.hero__location a { color: var(--c-white); }
.hero__actions { margin-top: 2rem; }
.hero__actions .btn { border-color: var(--c-accent); color: var(--c-accent); }
.hero__tagline {
  margin-top: 2.25rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--c-white);
}

/* ---------- Banner sections (Google reviews / level 1) ---------- */
.banner { text-align: center; }
.banner__img {
  display: inline-block;
  margin: 0 auto;
}
.banner__img img {
  max-width: min(620px, 100%);
  height: auto;
}

/* ---------- Reviews carousel (Carousel Slider Block) ---------- */
.wp-block-cb-carousel-v2 {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.wp-block-cb-slide-v2 .review__text {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.35;
  margin: 0 auto;
  max-width: 720px;
}
.wp-block-cb-slide-v2 .review__name {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem auto 0;
}

/* ---------- Events ---------- */
.events .wp-block-group__inner-container { max-width: 1200px; }
.events__actions { justify-content: center; margin-top: 2rem; }
.events__actions .btn { border-color: var(--c-black); color: var(--c-black); }

/* ---------- Showcase (Friday Night Improv) ---------- */
.showcase .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.showcase__poster { margin: 0; }
.showcase__poster img { width: 100%; height: auto; }
.showcase__text { font-size: 1.15rem; }
.showcase__text a { color: var(--c-accent); }

/* ---------- Gallery ---------- */
.gallery__single {
  margin: 0;
}
.gallery__single img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer { color: var(--c-black); }
.site-footer--accent { background: var(--c-accent); }
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.footer__menu ul {
  list-style: none;
  margin: 0; padding: 0;
  column-count: 2;
  column-gap: 2rem;
}
.footer__menu li { margin-bottom: 0.5rem; }
.footer__menu a { font-size: 1.05rem; }
.footer__badge { width: 200px; margin-top: 1rem; }
.faq__item { margin-bottom: 1.4rem; }
.faq__q { font-weight: 600; margin-bottom: 0.25rem; }

/* ---------- Page content ---------- */
.page-content { padding-top: 9rem; }
.page-content > .section:first-child { padding-top: 12rem; }
.page-content .prose { max-width: 720px; margin: 0 auto; }
.page-content .prose h1,
.page-content .prose h2,
.page-content .prose h3 { margin-top: 1.5em; }

/* ---------- Team / cast grid ---------- */
.team-grid .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}
.team-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.team-card__name { font-family: var(--font-heading); font-size: 1.5rem; margin: 0.6rem 0 0.2rem; }

/* ---------- Venue map ---------- */
.hpi-map {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 2rem auto;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.25);
}
.hpi-map__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.hpi-map__link {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

/* ---------- Cast bio pages ---------- */
.hpi-cast-bio {
  max-width: 1080px;
  margin: 0 auto;
}
.hpi-cast-bio__name {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(2.2rem, 5vw, 4rem);
  text-align: center;
}
.hpi-cast-bio__body {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.hpi-cast-bio__media { margin: 0; }
.hpi-cast-bio__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.hpi-cast-bio__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.hpi-cast-bio__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--c-black);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.hpi-cast-bio__social:hover {
  background: var(--c-black);
  color: var(--c-white);
  opacity: 1;
}

@media (max-width: 720px) {
  .hpi-cast-bio__body {
    grid-template-columns: 1fr;
  }
  .hpi-cast-bio__media { max-width: 420px; margin: 0 auto; }
}

/* ---------- Block markup ---------- */
.wp-block-button.btn,
.wp-block-button.btn--lg {
  padding: 0;
  border: 0;
}
.wp-block-button .wp-block-button__link {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  padding: 0.9rem 2rem;
  font-family: var(--font-button);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.wp-block-button .wp-block-button__link:hover { opacity: 0.75; }
.wp-block-button.btn--lg .wp-block-button__link { font-size: 1.45rem; padding: 1.1rem 2.4rem; }
.wp-block-buttons { gap: 1rem; }
.wp-block-buttons .wp-block-button { margin: 0; }

.wp-block-image { margin: 0 0 1em; }

.section .wp-block-group__inner-container { max-width: 1200px; margin: 0 auto; }
.center .wp-block-group__inner-container { text-align: center; }
.center .wp-block-buttons { justify-content: center; }

.hero .wp-block-group__inner-container { width: 100%; }
.hero__content { margin: 0 auto; }
.hero__actions { justify-content: center; }
.hero__actions .wp-block-button__link { border-color: var(--c-accent); color: var(--c-accent); }
.hero__bg .wp-block-image,
.hero__bg { margin: 0; }
.hero__logo { margin-left: auto; margin-right: auto; }

.banner .wp-block-image { margin: 0; }
.banner__img img { display: block; margin: 0 auto; }

.events__actions .wp-block-button__link { border-color: var(--c-black); color: var(--c-black); }

.gallery__single .wp-block-image,
.gallery__single { margin: 0; }
.gallery__single img { display: block; }

/* ---------- Cur8 widget ---------- */
.cur8-custom-wrapper { max-width: 1200px; margin: 0 auto; }
.cur8-custom-event {
  background: var(--c-bg);
  border: 1px solid var(--c-black);
  box-shadow: none;
}
.cur8-custom-event-title {
  font-family: var(--font-heading);
  font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .showcase .wp-block-group__inner-container { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .site-header__bar { flex-wrap: nowrap; justify-content: center; }
  .site-header__burger { display: flex; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); }
  .site-header__nav { display: none; }
  .site-header__actions { display: none; }
  .site-header__logo img { max-height: 33px; }
  body.menu-open { overflow: hidden; }
  .site-header__mobile-menu[hidden] { display: none; }
}
