/*
Theme Name: Iowa Party Co
Theme URI: https://www.iowapartyco.com
Author: Iowa Party Co
Author URI: https://www.iowapartyco.com
Description: Official theme for Iowa Party Co — bounce house and party rental in North Liberty, IA. Bright circus/kids party design with integrated booking engine.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iowa-party-co
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

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

:root {
  --red:      #e8192c;
  --red2:     #c41224;
  --yellow:   #ffd600;
  --yellow2:  #f5c800;
  --blue:     #1565c0;
  --blue2:    #0d47a1;
  --green:    #2e7d32;
  --purple:   #6a1b9a;
  --dark:     #1a1a2e;
  --white:    #ffffff;
  --offwhite: #fffdf0;
  --gray:     #f5f5f5;
  --text:     #333333;
  --shadow:   0 4px 16px rgba(0,0,0,0.15);
  --radius:   16px;
  --stripe: repeating-linear-gradient(
    135deg, transparent, transparent 20px,
    rgba(255,214,0,0.10) 20px, rgba(255,214,0,0.10) 40px
  );
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito', 'Arial Rounded MT Bold', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Fredoka One', 'Arial Rounded MT Bold', cursive;
  line-height: 1.2;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }

/* =====================================================
   CIRCUS STRIPE HEADER BAR
   ===================================================== */
.circus-stripe-bar {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--red)    0px,  var(--red)    40px,
    var(--white)  40px, var(--white)  80px,
    var(--blue)   80px, var(--blue)   120px,
    var(--white)  120px,var(--white)  160px,
    var(--yellow) 160px,var(--yellow) 200px,
    var(--white)  200px,var(--white)  240px
  );
}

/* =====================================================
   SITE HEADER / NAVIGATION
   ===================================================== */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
}

.site-logo img {
  height: 50px;
  width: auto;
}
.site-logo .logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--yellow);
  line-height: 1.1;
}
.site-logo .logo-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a.current-menu-item { color: var(--yellow); background: rgba(255,214,0,0.1); }

.nav-book-btn {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  font-family: 'Fredoka One', cursive !important;
  font-size: 1rem !important;
  box-shadow: 0 3px 10px rgba(232,25,44,0.4);
  transition: all 0.2s !important;
}
.nav-book-btn:hover {
  background: var(--red2) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(232,25,44,0.5) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://lirp.cdn-website.com/c7e99fa1/dms3rep/multi/opt/IMG_0297-1920w.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21,101,192,0.7) 0%, rgba(26,26,46,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--white);
  text-shadow: 2px 4px 12px rgba(0,0,0,0.5);
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero-title span { color: var(--yellow); }
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  padding: 16px 36px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(232,25,44,0.5);
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { background: var(--red2); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(232,25,44,0.55); color: var(--white); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  padding: 15px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.7);
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: var(--white); color: var(--white); }

/* =====================================================
   PENNANT DIVIDER
   ===================================================== */
.pennant-divider {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  background: var(--dark);
  padding: 0;
  line-height: 0;
  overflow: hidden;
}
.pennant-divider .pennant {
  width: 0; height: 0;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-top: 44px solid var(--red);
}
.pennant-divider .pennant:nth-child(2n)   { border-top-color: var(--blue); }
.pennant-divider .pennant:nth-child(3n)   { border-top-color: var(--yellow); }
.pennant-divider .pennant:nth-child(5n)   { border-top-color: var(--green); }
.pennant-divider .pennant:nth-child(7n)   { border-top-color: var(--purple); }

/* =====================================================
   SECTION COMMONS
   ===================================================== */
.section { padding: 70px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-family: 'Fredoka One', cursive;
  font-size: 0.85rem;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}
.section-subtitle { color: #666; font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* =====================================================
   PRODUCTS GRID
   ===================================================== */
.products-section { background: var(--offwhite); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--red);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.product-card:nth-child(3n+2) { border-color: var(--blue); }
.product-card:nth-child(3n+3) { border-color: var(--green); }

.product-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--gray);
}
.product-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-image-wrap img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--yellow);
  color: var(--dark);
  font-family: 'Fredoka One', cursive;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 50px;
}

.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--dark);
}
.product-desc { color: #666; font-size: 0.92rem; margin-bottom: 16px; flex: 1; }
.product-price {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--red);
  margin-bottom: 14px;
}
.product-price span { font-size: 0.85rem; color: #888; font-family: 'Nunito', sans-serif; font-weight: 400; }

.btn-book-item {
  display: block;
  text-align: center;
  background: var(--red);
  color: var(--white);
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-book-item:hover { background: var(--red2); transform: translateY(-2px); color: var(--white); }
.product-card:nth-child(3n+2) .btn-book-item { background: var(--blue); }
.product-card:nth-child(3n+2) .btn-book-item:hover { background: var(--blue2); }
.product-card:nth-child(3n+3) .btn-book-item { background: var(--green); }
.product-card:nth-child(3n+3) .btn-book-item:hover { background: #1b5e20; }

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.how-section { background: var(--white); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.how-step { padding: 20px; }
.how-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.how-step:nth-child(1) .how-icon { background: #fff3e0; }
.how-step:nth-child(2) .how-icon { background: #e3f2fd; }
.how-step:nth-child(3) .how-icon { background: #e8f5e9; }
.how-step:nth-child(4) .how-icon { background: #fce4ec; }
.how-step h3 { font-family: 'Fredoka One', cursive; font-size: 1.2rem; margin-bottom: 8px; }
.how-step p { color: #666; font-size: 0.95rem; }

/* =====================================================
   FEATURES STRIP
   ===================================================== */
.features-strip {
  background: var(--blue);
  background-image: var(--stripe);
  padding: 50px 20px;
}
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--white);
  backdrop-filter: blur(4px);
}
.feature-card .feat-icon { font-size: 2.5rem; margin-bottom: 12px; }
.feature-card h3 { font-family: 'Fredoka One', cursive; font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; opacity: 0.9; }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-section { background: var(--offwhite); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--yellow);
  position: relative;
}
.testimonial-card:nth-child(2) { border-left-color: var(--red); }
.testimonial-card:nth-child(3) { border-left-color: var(--blue); }
.testimonial-quote { font-size: 3rem; color: var(--yellow); line-height: 0.5; margin-bottom: 12px; }
.testimonial-text { color: #444; font-size: 0.97rem; margin-bottom: 16px; font-style: italic; }
.testimonial-stars { color: var(--yellow); font-size: 1.1rem; margin-bottom: 10px; }
.testimonial-author { font-weight: 700; font-size: 0.9rem; color: var(--dark); }

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-section {
  background: var(--red);
  background-image: var(--stripe);
  padding: 70px 20px;
  text-align: center;
}
.cta-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-sub { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 32px; }
.btn-cta-white {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  padding: 18px 44px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.25s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-cta-white:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.28); color: var(--red); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 20px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo-text { color: var(--yellow); font-family: 'Fredoka One', cursive; font-size: 1.5rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-brand p { font-size: 0.9rem; margin-top: 12px; opacity: 0.8; line-height: 1.6; }

.footer-col h4 { font-family: 'Fredoka One', cursive; color: var(--yellow); font-size: 1.1rem; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--yellow); }
.footer-col p { font-size: 0.9rem; margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
  max-width: 1200px;
  margin: 0 auto;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 16px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; text-align: center; padding: 12px; }
  .nav-toggle { display: flex; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 320px; text-align: center; }
  .products-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .section { padding: 50px 16px; }
  .hero-content { padding: 40px 16px; }
}

@media (max-width: 480px) {
  .how-steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 16px; }
}
