/* ============================================================
   Moreno's Party Rentals — Modern Theme
   Jump House inspired: Sky blue, vibrant red, golden yellow
   ============================================================ */

:root {
  --color-sky: #2b7de9;
  --color-sky-light: #4da3ff;
  --color-sky-dark: #1a5cbf;
  --color-red: #e63946;
  --color-red-dark: #c1121f;
  --color-red-light: #ff6b6b;
  --color-yellow: #ffd166;
  --color-yellow-bright: #ffe347;
  --color-white: #ffffff;
  --color-offwhite: #fae94e;
  --color-text: #515151;
  --color-text-light: #fafafa;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.13);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-width: 1100px;
  --transition: 0.25s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: linear-gradient(
    135deg,
    var(--color-sky) 0%,
    var(--color-sky-light) 50%,
    #87ceeb 100%
  );
  background-attachment: fixed;
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}

/* --- Floating Balloons (decorative) --- */
@keyframes float-up-left {
  from {
    transform: translateY(120vh);
    opacity: 0;
  }
  to {
    transform: translateY(-10vh);
    opacity: 0.5;
  }
}
@keyframes float-up-right {
  from {
    transform: translateY(100vh);
    opacity: 0;
  }
  to {
    transform: translateY(-20vh);
    opacity: 0.4;
  }
}
@keyframes sway {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
}

#left_balloon {
  position: fixed;
  width: 80px;
  left: 3%;
  top: 0;
  z-index: 200;
  opacity: 0.35;
  animation:
    float-up-left 20s linear infinite,
    sway 6s ease-in-out infinite;
  pointer-events: none;
}
#right_balloon {
  position: fixed;
  width: 80px;
  right: 3%;
  top: 0;
  z-index: 200;
  opacity: 0.35;
  animation:
    float-up-right 25s linear infinite,
    sway 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.92);
  }
  60% {
    transform: scale(1.04);
  }
}
@keyframes click-bounce {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.88);
  }
  60% {
    transform: scale(1.06);
  }
}

/* --- Layout Container --- */
#content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav_bg {
  background: linear-gradient(
    135deg,
    var(--color-red) 0%,
    var(--color-red-dark) 100%
  );
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 10px;
}

#logo_img {
  width: 220px;
  height: auto;
  transition: transform var(--transition);
}
#logo_img:hover {
  transform: scale(1.03);
}

#callNum {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
#callNum a {
  color: var(--color-yellow);
  text-decoration: none;
  transition: color var(--transition);
}
#callNum a:hover {
  color: var(--color-white);
}

#nav_bar {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

#nav_bar li {
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
#nav_bar li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  animation: bounce 0.5s;
}
#nav_bar li.nav-bounce {
  animation: click-bounce 0.3s !important;
}

#nav_bar li a {
  display: block;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-white);
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  transition:
    background var(--transition),
    color var(--transition);
}
#nav_bar li a:hover {
  background: rgba(255, 255, 255, 0.3);
  color: var(--color-yellow-bright);
}

#current_li {
  transform: translateY(-2px);
}
#current_link {
  background: var(--color-yellow) !important;
  color: var(--color-red-dark) !important;
  box-shadow: 0 2px 10px rgba(255, 209, 102, 0.5);
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  margin: 5px 0;
  transition: var(--transition);
}

/* ============================================================
   COMPACT HEADER (mobile scroll-driven, CSS only)
   ============================================================
   On mobile the header switches to position:fixed so that its
   height changes (driven by scroll-timeline) don't alter the
   scrollable area.  A padding-top on #content compensates.
   ============================================================ */
#callNum {
  overflow: hidden;
}

@keyframes compact-nav {
  to {
    padding: 4px 12px;
    gap: 2px;
  }
}
@keyframes compact-logo {
  to {
    width: 120px;
  }
}
@keyframes compact-callnum {
  50%,
  100% {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }
}
@keyframes compact-navbar {
  to {
    gap: 3px;
  }
}
@keyframes compact-navlinks {
  to {
    padding: 4px 10px;
    font-size: 0.82rem;
  }
}

@media screen and (max-width: 900px) {
  /* Pull the header out of flow so its size changes
     can't create a scroll ↔ animation feedback loop. */
  #nav_bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  /* Push main content below the fixed header */
  #content {
    padding-top: 200px;
  }

  nav {
    animation: compact-nav linear both;
    animation-timeline: scroll();
    animation-range: 0px 100px;
  }
  #logo_img {
    animation: compact-logo linear both;
    animation-timeline: scroll();
    animation-range: 0px 100px;
  }
  #callNum {
    animation: compact-callnum linear both;
    animation-timeline: scroll();
    animation-range: 0px 80px;
  }
  #nav_bar {
    animation: compact-navbar linear both;
    animation-timeline: scroll();
    animation-range: 0px 100px;
  }
  #nav_bar li a {
    animation: compact-navlinks linear both;
    animation-timeline: scroll();
    animation-range: 0px 100px;
  }
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
#sec_border {
  background: var(--color-offwhite);
  border-radius: var(--radius-lg);
  margin: 24px auto;
  max-width: var(--max-width);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

section {
  padding: 30px 24px;
  color: var(--color-text);
}

/* ============================================================
   IMAGE SLIDER
   ============================================================ */
#slider_bg {
  background: linear-gradient(
    135deg,
    var(--color-sky) 0%,
    var(--color-sky-light) 100%
  );
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 0 auto 24px;
  max-width: 740px;
  box-shadow: var(--shadow-md);
}

#slider {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f0f0f0;
  box-shadow: var(--shadow-sm);
}

/* Vanilla slider */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.slider img.slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slider img.slider-img--active {
  position: relative;
  opacity: 1;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  font-size: 2rem;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  z-index: 2;
}
.slider-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}
.slider-btn--prev {
  left: 8px;
}
.slider-btn--next {
  right: 8px;
}

/* Small slider inside rental cards */
.rentals_slider .slider {
  width: 100%;
  height: 200px;
}
.rentals_slider .slider img.slider-img--active {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.rentals_slider .slider-btn {
  font-size: 1.4rem;
  padding: 4px 8px;
}

/* ============================================================
   HOME PAGE ARTICLES
   ============================================================ */
.home_article {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--color-red);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}
.home_article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.home_list_items {
  text-align: center;
  padding: 40px 24px;
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    var(--color-red) 0%,
    var(--color-red-light) 100%
  );
  border-radius: var(--radius-md);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.home_list_items h3 {
  font-size: 1.8em;
  margin-bottom: 16px;
}
.home_list_items ul {
  list-style-type: none;
  padding: 0;
}
.home_list_items li {
  font-size: 1.15em;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.home_list_items li:last-child {
  border-bottom: none;
}

/* ============================================================
   JUMPER / RENTAL IMAGES
   ============================================================ */
.jumper_img {
  border-radius: var(--radius-md);
  padding: 8px;
  background: linear-gradient(
    135deg,
    var(--color-sky) 0%,
    var(--color-sky-light) 100%
  );
  box-shadow: var(--shadow-sm);
  float: left;
  margin: 0 20px 10px 0;
  max-width: 320px;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.jumper_img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.figure_specials {
  border-radius: var(--radius-md);
  padding: 8px;
  background: linear-gradient(
    135deg,
    var(--color-sky) 0%,
    var(--color-sky-light) 100%
  );
  box-shadow: var(--shadow-sm);
  float: left;
  margin: 0 20px 10px 0;
  transition: transform var(--transition);
}
.figure_specials:hover {
  transform: scale(1.02);
}

/* ============================================================
   HEADINGS
   ============================================================ */
h1 {
  font-size: 2.2em;
  margin: 0 0 12px 0;
  color: var(--color-red-dark);
  border-bottom: 3px solid var(--color-red);
  display: inline-block;
  padding-bottom: 4px;
}

h2 {
  font-size: 1.7em;
  margin: 0 0 10px 0;
  color: var(--color-red-dark);
  border-bottom: 2px solid var(--color-red);
  display: inline-block;
  padding-bottom: 3px;
}

figcaption {
  text-align: center;
  color: var(--color-white);
  font-weight: 600;
  padding: 6px 0;
}

.h3_rentals {
  font-size: 1.6em;
  color: var(--color-red);
  border-bottom: 2px solid var(--color-red);
  display: inline-block;
  padding-bottom: 3px;
}

.h3_faqs {
  font-size: 1.4em;
  color: var(--color-red);
  margin: 20px 0 8px;
}

/* ============================================================
   RENTALS PAGE
   ============================================================ */
.rentals-section {
  max-height: none;
  overflow-y: visible;
}

.rentals_article {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--color-sky);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}
.rentals_article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rentals_article > .jumper_img {
  float: none;
  margin: 0;
  flex-shrink: 0;
  width: 220px;
  max-width: 220px;
  height: auto;
}
.rentals_article > .jumper_img img {
  width: 100%;
  height: auto;
  display: block;
}

.rental-info {
  flex: 1;
  min-width: 0;
}
.rental-info .h3_rentals {
  margin-top: 0;
}
.rental-info p {
  margin: 4px 0;
  padding: 0;
}

.rentals_article_2 {
  padding: 24px;
  margin-bottom: 16px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--color-red);
}

.rentals_slider {
  width: 100%;
  height: 200px;
}

/* ============================================================
   SPECIALS PAGE
   ============================================================ */
.specials_article {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  margin-bottom: 20px;
  min-height: auto;
}

.specials_ul {
  margin-left: 20px;
}
.specials_li {
  padding: 4px 0;
}

.specials_package_1,
.specials_package {
  display: inline-block;
  width: 280px;
  padding: 20px;
  margin: 8px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-red);
  vertical-align: top;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.specials_package_1:hover,
.specials_package:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery_section {
  text-align: center;
  max-height: none;
  overflow-y: visible;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.gallery_section .specials_article {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.gallery_section .specials_article img,
.specials_article img {
  margin: 6px;
  border: 3px solid var(--color-sky);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  object-fit: cover;
}
.gallery_section .specials_article img:hover,
.specials_article img:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   PARAGRAPH & MISC
   ============================================================ */
p {
  padding: 0 4px;
  font-size: 1.05rem;
  margin: 10px 0;
  line-height: 1.7;
}

#return_top {
  display: inline-block;
  color: var(--color-sky);
  font-weight: 600;
  text-decoration: none;
  margin: 16px 0;
  transition: color var(--transition);
}
#return_top:hover {
  color: var(--color-red);
}

.fb-like {
  padding: 20px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px;
  text-align: center;
  color: var(--color-white);
}
footer p {
  font-size: 0.95rem;
}
.footer_links {
  text-decoration: none;
  font-size: 1rem;
  color: var(--color-yellow);
  font-weight: 600;
  transition: color var(--transition);
}
.footer_links:hover {
  color: var(--color-white);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
#contact_form {
  max-width: 550px;
  margin: 30px auto;
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

label {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  margin-top: 14px;
}

input#submit {
  width: auto;
  padding: 10px 32px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--color-red);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 16px;
  transition:
    background var(--transition),
    transform var(--transition);
}
input#submit:hover {
  background: var(--color-red-dark);
  transform: scale(1.03);
}

.input_item {
  padding: 10px 14px;
  width: 100%;
  max-width: 400px;
}

textarea {
  width: 100%;
  max-width: 400px;
  height: 110px;
  padding: 10px 14px;
}

input,
textarea {
  margin: 4px 0;
  background: var(--color-white);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
input:hover,
textarea:hover {
  border-color: var(--color-sky-light);
}
input:focus,
textarea:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.15);
}

.article_contact {
  padding: 20px 0;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media screen and (max-width: 900px) {
  nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #callNum {
    margin: 4px 0;
  }
  #nav_bar {
    justify-content: center;
  }
  .home_article,
  .rentals_article {
    flex-direction: column;
    align-items: center;
  }
  .rentals_article > .jumper_img {
    width: auto;
    max-width: 100%;
  }
  .rental-info {
    text-align: center;
  }
  .jumper_img,
  .figure_specials {
    float: none;
    margin: 0 auto 16px;
  }
}

@media screen and (max-width: 650px) {
  :root {
    --max-width: 100%;
  }
  #content {
    padding-top: 240px;
  }
  #nav_bg {
    border-radius: 0;
  }
  #sec_border {
    border-radius: var(--radius-sm);
    margin: 12px 8px;
  }
  #logo_img {
    width: 180px;
  }
  #nav_bar li a {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  section {
    padding: 16px 12px;
  }
  .home_article,
  .rentals_article {
    padding: 16px;
    margin-bottom: 12px;
  }
  #slider_bg {
    padding: 8px;
    margin: 0 0 16px;
  }
  h1 {
    font-size: 1.6em;
  }
  h2 {
    font-size: 1.3em;
  }
  .h3_rentals {
    font-size: 1.3em;
  }
  p {
    font-size: 0.95rem;
  }
  .specials_package_1,
  .specials_package {
    width: 100%;
    margin: 8px 0;
  }
  #contact_form {
    padding: 20px 16px;
  }
  .input_item,
  textarea {
    max-width: 100%;
  }
  .gallery_section .specials_article img {
    width: 100%;
    height: auto;
  }
  footer {
    padding: 16px 12px;
  }

  /* Prevent images from overflowing their flex/article containers */
  .jumper_img,
  .figure_specials {
    max-width: 100%;
    width: 100%;
  }

  /* Prevent inline-block headings from bleeding out of narrow containers */
  h1,
  h2,
  .h3_rentals {
    max-width: 100%;
    word-break: break-word;
  }

  /* Prevent long words/URLs in body text from causing horizontal scroll */
  .home_article,
  .rentals_article,
  .specials_article,
  section p {
    overflow-wrap: break-word;
  }
}
