/*
Theme Name: Humble House Radio
Theme URI: https://humblehouseradio.com
Author: Carbo Server
Description: Replica of Humble House Radio - humblehouseradio.com
Version: 2.0
Text Domain: humble-house-radio
*/

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === ROOT COLORS (matched from site) === */
:root {
  --black:    #000000;
  --dark:     #080808;
  --surface:  #282626;
  --muted:    #5f6360;
  --gray:     #8F8F8F;
  --light:    #E2E2E2;
  --white:    #FFFFFF;
  --font:     'Helvetica Neue', Arial, sans-serif;
}

html, body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--white); text-decoration: none; }
a:hover { color: var(--gray); }
img { max-width: 100%; display: block; }

/* === HEADER === */
#site-header {
  background: var(--black);
  border-bottom: 1px solid #1a1a1a;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
}

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

.site-logo span {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}

/* === NAV === */
#site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

#site-nav ul li a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}

#site-nav ul li a:hover { color: var(--gray); }

/* === HERO === */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--black);
}

#hero .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/hhr-assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

#hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

#hero .hero-logo {
  width: 220px;
  margin: 0 auto 2rem;
}

#hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

#hero p {
  font-size: 1rem;
  color: var(--gray);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: var(--white);
  color: var(--black);
}

.btn + .btn { margin-left: 1rem; }
.btn-filled { background: var(--white); color: var(--black); }
.btn-filled:hover { background: transparent; color: var(--white); }

/* === SECTIONS === */
.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  padding: 80px 40px;
  background: var(--dark);
}

.section-full .inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 3rem;
}

/* === SCHEDULE TABLE === */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  padding: 1rem 0;
  border-bottom: 1px solid #1a1a1a;
}

.schedule-table td {
  padding: 1.2rem 0;
  border-bottom: 1px solid #111;
  font-size: 0.95rem;
}

.schedule-table tr:hover td { color: var(--gray); }

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.card {
  background: var(--surface);
  overflow: hidden;
  position: relative;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s;
}

.card:hover img { transform: scale(1.03); }

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.85rem;
  color: var(--gray);
}

/* === DIVIDER === */
hr.divider {
  border: none;
  border-top: 1px solid #1a1a1a;
  margin: 0;
}

/* === FOOTER === */
footer {
  background: var(--black);
  border-top: 1px solid #1a1a1a;
  padding: 3rem 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

footer .footer-logo img { height: 40px; }
footer .footer-logo span { font-size: 0.9rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
}

.footer-links a:hover { color: var(--white); }

footer .copyright {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 1px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  #site-header { padding: 0 20px; }
  #site-nav ul { gap: 1rem; }
  #site-nav ul li a { font-size: 0.7rem; }
  .section { padding: 60px 20px; }
  .section-full { padding: 60px 20px; }
  footer { flex-direction: column; text-align: center; padding: 2rem 20px; }
  .footer-links { justify-content: center; }
}

/* === HAMBURGER MENU === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: flex; }

  #site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #0d0d0d;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding: 1.5rem 2rem;
    z-index: 998;
  }

  #site-nav.open { display: block; }

  #site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  #site-nav ul li {
    border-bottom: 1px solid #1a1a1a;
  }

  #site-nav ul li:last-child { border-bottom: none; }

  #site-nav ul li a {
    display: block;
    padding: 1rem 0;
    font-size: 0.85rem;
  }
}

/* === BLOG GRID === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid #1a1a1a;
  overflow: hidden;
  transition: transform 0.2s;
}

.blog-card:hover { transform: translateY(-4px); }

.blog-card-img { display: block; overflow: hidden; }
.blog-card-img img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }

.blog-card-body { padding: 1.5rem; }

.blog-date {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.6rem;
}

.blog-card-body h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-card-body h2 a { color: var(--white); }
.blog-card-body h2 a:hover { color: var(--gray); }

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.blog-pagination {
  margin-top: 3rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.blog-pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #333;
  color: var(--gray);
  font-size: 0.8rem;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  border-color: var(--white);
  color: var(--white);
}

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid #1a1a1a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.product-card:hover { transform: translateY(-4px); }

.product-img {
  position: relative;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-img img { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 3px 10px;
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.product-body h2 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.product-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.product-features li {
  font-size: 0.8rem;
  color: var(--light);
  padding: 0.4rem 0;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-features li::before {
  content: '✓';
  color: var(--white);
  font-weight: 700;
  font-size: 0.75rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #222;
  margin-top: auto;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

/* === LOGIC LOFT RECORDS AI === */
#loft-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--black);
}

.loft-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 2rem;
}

.loft-logo {
  width: 180px;
  margin: 0 auto 2rem;
}

#loft-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.loft-tagline {
  font-size: 1rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  letter-spacing: .5px;
}

.loft-cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* About grid */
.loft-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.loft-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.loft-stat {
  background: #111;
  border: 1px solid #1a1a1a;
  padding: 1.5rem;
  text-align: center;
}

.loft-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: .3rem;
}

.loft-stat-label {
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
}

/* License grid */
.loft-license-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.loft-license-card {
  background: var(--surface);
  border: 1px solid #222;
  padding: 2rem;
  position: relative;
}

.loft-featured {
  border-color: var(--white);
  transform: translateY(-8px);
}

.loft-tier-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--black);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 14px;
  text-transform: uppercase;
  white-space: nowrap;
}

.loft-tier {
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: .75rem;
}

.loft-price {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -2px;
  padding: 1rem 0 0;
}

.loft-price span { font-size: 1.5rem; }
.loft-price-note { font-size: .75rem; color: var(--gray); letter-spacing: 1px; margin-bottom: 1.5rem; }

/* Process */
.loft-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.loft-process-step { text-align: center; }

.loft-step-num {
  font-size: 3rem;
  font-weight: 900;
  color: #222;
  line-height: 1;
  margin-bottom: 1rem;
}

.loft-process-step h3 {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .75rem;
}

.loft-process-step p {
  font-size: .85rem;
  color: var(--gray);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .loft-about-grid { grid-template-columns: 1fr; }
  .loft-license-grid { grid-template-columns: 1fr; }
  .loft-featured { transform: none; }
  .loft-process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .loft-process-grid { grid-template-columns: 1fr; }
  .loft-stats { grid-template-columns: 1fr 1fr; }
}

/* === ABOUT PAGE === */
.about-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.35);
  z-index: 0;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 40px;
  max-width: 800px;
}

.about-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 1rem;
}

.about-hero-sub {
  font-size: 1rem;
  color: var(--light);
  max-width: 560px;
  line-height: 1.7;
  letter-spacing: .5px;
}

/* Mission */
.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-mission-img img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* Gallery */
.about-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
  max-height: 600px;
  overflow: hidden;
}

.about-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-gallery-item.large {
  grid-row: span 2;
}

.about-gallery-item { overflow: hidden; }
.about-gallery-item img { transition: transform .4s; }
.about-gallery-item:hover img { transform: scale(1.04); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid #1a1a1a;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
}

.team-img-placeholder {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-img-placeholder img {
  width: 120px;
  height: 300px;
  object-fit: contain;
  opacity: .4;
}

.team-info { padding: 1.5rem; }

.team-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .3rem;
}

.team-role {
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: .85rem;
  color: var(--gray);
  line-height: 1.7;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-item { text-align: center; }

.value-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.value-item h3 {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .75rem;
}

.value-item p {
  font-size: .85rem;
  color: var(--gray);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .about-mission-grid { grid-template-columns: 1fr; }
  .about-gallery { grid-template-columns: 1fr 1fr; max-height: none; }
  .about-gallery-item.large { grid-row: span 1; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .about-hero-content { padding: 3rem 20px; }
}

@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
  .about-gallery { grid-template-columns: 1fr; }
}

/* ===================== EVENTS PAGE ===================== */
.events-hero {
  position: relative;
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  padding: 7rem 20px 5rem;
  text-align: center;
}

.events-hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.events-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.events-hero-sub {
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

/* Event grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* Event card */
.event-card {
  background: var(--surface);
  border: 1px solid #1a1a1a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-card-past { opacity: .7; }
.event-card-past:hover { opacity: 1; transition: opacity .2s; }

.event-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #111;
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-img-placeholder { background: #111; }

/* Date badge */
.event-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: #000;
  padding: .3rem .6rem;
  text-align: center;
  min-width: 46px;
  z-index: 2;
}

.badge-month {
  display: block;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
}

.badge-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
}

.badge-past {
  background: var(--gray);
  color: #000;
}

/* Past overlay */
.event-past-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.7);
  color: var(--gray);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border: 1px solid #333;
}

/* Event info */
.event-info { padding: 1.5rem; flex: 1; }

.event-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.event-meta {
  font-size: .78rem;
  color: var(--gray);
  margin-bottom: .4rem;
  letter-spacing: .3px;
}

.event-meta-icon {
  font-size: .5rem;
  vertical-align: middle;
  margin-right: .3rem;
  opacity: .6;
}

.event-cost {
  display: inline-block;
  margin-top: .75rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid #333;
  padding: .3rem .75rem;
}

.event-excerpt {
  margin-top: 1rem;
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.7;
}

.event-excerpt p { margin: 0; }

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

@media (max-width: 600px) {
  .events-grid { grid-template-columns: 1fr; }
  .events-hero { padding: 5rem 20px 3rem; }
}

/* ===================== SEGMENTS PAGE ===================== */
.segments-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.segments-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.35);
}

.segments-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  padding: 5rem 20px;
}

.segments-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.segments-hero-sub {
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* Segments grid */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Segment card */
.segment-card {
  background: var(--surface);
  border: 1px solid #1a1a1a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.segment-img {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.segment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.segment-card:hover .segment-img img {
  transform: scale(1.04);
}

.segment-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.segment-tag {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: #fff;
  color: #000;
  padding: .25rem .65rem;
}

.segment-info {
  padding: 1.75rem;
  flex: 1;
}

.segment-title {
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .6rem;
}

.segment-schedule {
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}

.segment-desc {
  font-size: .85rem;
  color: var(--gray);
  line-height: 1.8;
}

.segments-tunein {
  background: var(--surface);
  border-top: 1px solid #1a1a1a;
}

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

@media (max-width: 600px) {
  .segments-grid { grid-template-columns: 1fr; }
  .segments-hero { min-height: 320px; }
}

/* ===================== CONTACT PAGE ===================== */
.contact-hero {
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  padding: 7rem 20px 5rem;
  text-align: center;
}

.contact-hero-content { max-width: 680px; margin: 0 auto; }

.contact-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.contact-hero-sub {
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

/* Two-col layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

/* Info panel */
.contact-info-panel { display: flex; flex-direction: column; gap: 2.5rem; }

.contact-info-block {}

.contact-email {
  display: block;
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  margin-top: .5rem;
  word-break: break-all;
}

.contact-email:hover { text-decoration: underline; }

.contact-inquiry-list {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.contact-inquiry-list li {
  font-size: .8rem;
  color: var(--gray);
  letter-spacing: .5px;
}

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: .5rem;
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-social-link:hover { color: var(--gray); }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #333;
  font-size: .75rem;
  font-weight: 900;
  flex-shrink: 0;
}

.contact-location {
  color: var(--gray);
  font-size: .85rem;
  line-height: 1.7;
  margin-top: .5rem;
}

/* CF7 form */
.contact-form-wrap .wpcf7 { width: 100%; }

.cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.cf7-full { grid-column: span 2; }

.cf7-col { display: flex; flex-direction: column; gap: .4rem; }

.cf7-col label,
.contact-form-wrap label {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-bottom: .3rem;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap select,
.contact-form-wrap textarea {
  width: 100%;
  background: #111;
  border: 1px solid #2a2a2a;
  color: var(--white);
  font-family: inherit;
  font-size: .85rem;
  padding: .75rem 1rem;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
  border-color: #555;
}

.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder {
  color: #444;
}

.contact-form-wrap select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-form-wrap select option { background: #111; color: #fff; }

.contact-form-wrap textarea { min-height: 160px; resize: vertical; }

.contact-form-wrap .wpcf7-submit,
.contact-form-wrap input[type="submit"] {
  margin-top: 1.5rem;
  background: #fff;
  color: #000;
  border: none;
  font-family: inherit;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.contact-form-wrap .wpcf7-submit:hover {
  background: #ccc;
}

.wpcf7-response-output {
  margin-top: 1.25rem !important;
  padding: .75rem 1rem !important;
  border: 1px solid #333 !important;
  font-size: .8rem !important;
  color: var(--gray) !important;
}

.wpcf7-mail-sent-ok { border-color: #2d6a2d !important; color: #7cba7c !important; }
.wpcf7-validation-errors, .wpcf7-spam-blocked { border-color: #6a2d2d !important; color: #ba7c7c !important; }

.wpcf7-not-valid-tip {
  font-size: .7rem !important;
  color: #ba7c7c !important;
  margin-top: .25rem !important;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .cf7-row { grid-template-columns: 1fr; }
  .cf7-full { grid-column: span 1; }
}

/* ===================== BOOKING PAGE ===================== */
.booking-hero {
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  padding: 7rem 20px 5rem;
  text-align: center;
}

.booking-hero-content { max-width: 680px; margin: 0 auto; }

.booking-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.booking-hero-sub {
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* Services grid */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Service card */
.booking-card {
  background: var(--surface);
  border: 1px solid #1a1a1a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.booking-card-ended { opacity: .65; }
.booking-card-ended:hover { opacity: .85; transition: opacity .2s; }

.booking-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.booking-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.booking-card:hover .booking-img img { transform: scale(1.04); }

.booking-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  color: #000;
  padding: .25rem .65rem;
}

.booking-badge-ended { background: var(--gray); }

.booking-duration {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Card info */
.booking-info { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }

.booking-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.booking-title {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.3;
  flex: 1;
}

.booking-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.booking-price-ended {
  color: var(--gray);
  text-decoration: line-through;
  font-size: 1.1rem;
}

.booking-desc {
  font-size: .83rem;
  color: var(--gray);
  line-height: 1.8;
  flex: 1;
}

/* How It Works steps */
.booking-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.booking-step { text-align: center; }

.step-num {
  font-size: 3rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.step-title {
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .75rem;
}

.step-desc {
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr 1fr; }
  .booking-steps { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  .booking-grid { grid-template-columns: 1fr; }
  .booking-steps { grid-template-columns: 1fr; }
}

/* =====================================================
   GLOBAL RESPONSIVE FIXES & OVERRIDES
   ===================================================== */

/* Prevent horizontal scroll site-wide */
html { overflow-x: hidden; }
body {
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Remove tap highlight on mobile */
* { -webkit-tap-highlight-color: transparent; }

/* Touch-friendly minimum tap sizes for nav */
#site-nav ul li a { min-height: 44px; display: flex; align-items: center; }
@media (min-width: 901px) {
  #site-nav ul li a { display: inline; min-height: auto; }
}

/* === HEADER: fix padding to match hamburger breakpoint (900px) === */
@media (max-width: 900px) {
  #site-header { padding: 0 20px; }
}

/* === FOOTER: match hamburger breakpoint === */
@media (max-width: 900px) {
  footer {
    flex-direction: column;
    text-align: center;
    padding: 2rem 20px;
  }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }
}

/* === BUTTONS: stack vertically on small phones === */
@media (max-width: 520px) {
  .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto .75rem !important;
    text-align: center;
  }
  .btn + .btn { margin-left: auto !important; }

  /* Hero buttons */
  #hero .hero-content .btn { max-width: 260px; }

  /* Loft CTA row */
  .loft-cta-row { flex-direction: column; align-items: center; gap: 0; }
}

/* === HERO: reduce height on landscape mobile === */
@media (max-height: 500px) and (max-width: 900px) {
  #hero { min-height: 100vh; }
}
@media (max-width: 520px) {
  #hero { min-height: 85vh; }
  #hero .hero-logo { width: 160px; }
}

/* === SCHEDULE TABLE: horizontal scroll on mobile === */
.schedule-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 700px) {
  /* Fallback if no wrap div: make the table itself scroll */
  .schedule-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 480px;
  }
}

/* === BLOG GRID: explicit 2-col on tablets before 1-col === */
@media (max-width: 900px) and (min-width: 540px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* === PRODUCT GRID: 2-col on tablets === */
@media (max-width: 900px) and (min-width: 540px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* === CARD GRID: 2-col on tablets === */
@media (max-width: 900px) and (min-width: 540px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* === SECTIONS: tighter padding on phones === */
@media (max-width: 480px) {
  .section { padding: 50px 16px; }
  .section-full { padding: 50px 16px; }
  .section-title { font-size: 1.6rem; letter-spacing: -.5px; }
}

/* === ABOUT HERO: full-width padding fix === */
@media (max-width: 480px) {
  .about-hero-content { padding: 2.5rem 16px; }
}

/* === CONTACT: tighten on very small screens === */
@media (max-width: 480px) {
  .contact-hero { padding: 5rem 16px 3rem; }
  .cf7-row { gap: .75rem; margin-bottom: .75rem; }
}

/* === EVENTS HERO: phone fix === */
@media (max-width: 480px) {
  .events-hero { padding: 4rem 16px 3rem; }
}

/* === SEGMENTS HERO: phone fix === */
@media (max-width: 480px) {
  .segments-hero-content { padding: 3.5rem 16px; }
}

/* === BOOKING HERO: phone fix === */
@media (max-width: 480px) {
  .booking-hero { padding: 5rem 16px 3rem; }
}

/* === LOGIC LOFT: responsive fixes === */
@media (max-width: 480px) {
  .loft-hero-content { padding: 1.5rem 16px; }
  #loft-hero { min-height: 75vh; }
  .loft-stats { grid-template-columns: 1fr 1fr; }
  .loft-license-grid { gap: 1.25rem; }
}

/* === TEAM GRID: 1 col on phones === */
@media (max-width: 540px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* === LOFT PROCESS: 1 col on phones === */
@media (max-width: 480px) {
  .loft-process-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* === BOOKING STEPS: fix 4→2→1 === */
@media (max-width: 600px) {
  .booking-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .booking-steps { grid-template-columns: 1fr; }
}

/* === HOMEPAGE SCHEDULE CTA: wrap buttons on mobile === */
@media (max-width: 520px) {
  .section[style*="text-align:center"] .btn,
  .section[style*="text-align: center"] .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto .75rem !important;
    text-align: center;
  }
}

/* === HEADER LOGO: scale down on small phones === */
@media (max-width: 380px) {
  .site-logo img { height: 38px; }
}

/* === EVENTS GRID: 1-col on phones === */
@media (max-width: 480px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* === Large screen: ensure max-width container always centered === */
.section { box-sizing: border-box; }


/* ===================== HOMEPAGE REBUILD ===================== */

/* Hero updates */
#hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: .75rem;
}
.hero-tagline {
  font-size: clamp(.9rem, 2.5vw, 1.2rem);
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.hero-sub {
  font-size: .85rem;
  color: var(--gray);
  letter-spacing: 1px;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Marquee ticker */
.marquee-bar {
  background: #fff;
  color: #000;
  padding: .75rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: none;
  border-bottom: 1px solid #e0e0e0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.marquee-dot {
  font-size: .4rem !important;
  opacity: .4;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Segments showcase grid */
.home-segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.home-segment-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  background: var(--surface);
  border: 1px solid #1a1a1a;
}

.home-segment-img {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.home-segment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.home-segment-card:hover .home-segment-img img { transform: scale(1.06); }

.home-segment-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 55%);
}

.home-segment-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.home-segment-tag {
  display: inline-block;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: #fff;
  color: #000;
  padding: .2rem .6rem;
  margin-bottom: .6rem;
}

.home-segment-info h3 {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .3rem;
}

.home-segment-info p {
  font-size: .75rem;
  color: var(--gray);
  letter-spacing: .5px;
}

/* Merch strip */
.merch-strip {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.merch-strip-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.25);
}

.merch-strip-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 4rem 20px;
}

.merch-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.merch-sub {
  color: var(--gray);
  font-size: .9rem;
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto 2rem;
}

/* Home CTA row */
.home-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive homepage */
@media (max-width: 900px) {
  .home-segments-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .home-segments-grid { grid-template-columns: 1fr; }
  .home-segment-img { height: 220px; }
  .merch-strip { min-height: 320px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; }
  .home-cta-row { flex-direction: column; align-items: center; }
  .home-cta-row .btn { width: 100%; max-width: 300px; }
}

/* ===== NAV OVERFLOW FIX: 9 items need wider hamburger breakpoint ===== */

/* Show hamburger at 1200px instead of 900px */
@media (min-width: 1201px) {
  .hamburger { display: none !important; }
  #site-nav {
    display: block !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }
  #site-nav ul {
    flex-direction: row !important;
    gap: 1.4rem !important;
  }
  #site-nav ul li { border-bottom: none !important; }
  #site-nav ul li a {
    display: inline !important;
    padding: 0 !important;
    font-size: .72rem !important;
  }
}

@media (max-width: 1200px) {
  .hamburger { display: flex !important; }
  #site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #0d0d0d;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding: 1.5rem 2rem;
    z-index: 998;
  }
  #site-nav.open { display: block; }
  #site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  #site-nav ul li { border-bottom: 1px solid #1a1a1a; }
  #site-nav ul li:last-child { border-bottom: none; }
  #site-nav ul li a {
    display: block;
    padding: 1rem 0;
    font-size: .85rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
