/* Import Karla Font */
@import url("https://fonts.googleapis.com/css2?family=Karla:wght@400;700&display=swap");

/* Reset and Base Styles */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f46f05 50%, #3f9fe7 50%);
  overflow-y: auto;
  font-family: "Karla", sans-serif;
}

/* Prevent oversized fixed-width elements from creating horizontal scroll */
html,
body {
  overflow-x: hidden;
}

/* Force Products Page Body to be Solid Blue and Scrollable */
body.products-page {
  background: #3f9fe7 !important;
  background-color: #3f9fe7 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 100vh !important;
  height: auto !important;
  contain: paint;
  -webkit-overflow-scrolling: touch;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: #000c24;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
  box-sizing: border-box;
}

/* Link and Image Styling for Nav */
.navbar a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar img {
  border: none;
  outline: none;
}

.logo {
  height: 70px;
}
/* Group 2 Navigation Container & Image */
.nav-group-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 auto;
}

.nav-links-img {
  height: 42px;
  width: auto;
  display: block;
}

/* Transparent Click Zones Layered Over Group 2.svg */
.nav-zone {
  position: absolute;
  top: 0;
  height: 100%;
  width: 25%;
  cursor: pointer;
}

.zone-1 {
  left: 0%;
} /* Our Story */
.zone-2 {
  left: 25%;
} /* Us and Them */
.zone-3 {
  left: 50%;
} /* Who We Serve */
.zone-4 {
  left: 75%;
} /* Contact Us */

/* Vending Machine */
.vending-machine {
  position: absolute;
  top: 55%;
  left: 40%;
  transform: translate(-50%, -50%);
  height: 75vh;
  z-index: 10;
}

/* Shapes & Products */
.product-float {
  position: absolute;
  height: 200px;
  z-index: 5;
}
.floating-shape {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

#shape-7 {
  top: 256px;
  left: 1600px;
  width: 150px;
  height: 200px;
}
#shape-8 {
  top: 250px;
  left: 1200px;
  width: 300px;
  height: 350px;
}
#shape-6 {
  top: 420px;
  left: 950px;
  width: 75px;
  height: 150px;
}
#shape-4 {
  top: 480px;
  left: 1630px;
  width: 96px;
  height: 266px;
}
#shape-5 {
  top: 500px;
  left: 1500px;
  width: 100px;
  height: 100px;
}
#shape-11 {
  top: 60px;
  left: 1610px;
  width: 142px;
  height: 180px;
}
#shape-10 {
  top: 150px;
  left: 1250px;
  width: 150px;
  height: 120px;
}
#shape-9 {
  top: 175px;
  left: 920px;
  width: 200px;
  height: 200px;
}
#shape-3 {
  top: 700px;
  left: 1500px;
  width: 80px;
  height: 200px;
}
#shape-1 {
  top: 750px;
  left: 1080px;
  width: 75px;
  height: 80px;
}
#shape-2 {
  top: 450px;
  left: 1150px;
  width: 25px;
  height: 25px;
}
#shape-12 {
  top: 600px;
  left: 1250px;
  width: 150px;
  height: 100px;
}

/* Bottom Layered Elements */
#let-it-rip-half {
  position: absolute;
  top: 92%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 14;
  width: 323px;
  height: 50px;
}
#letitrip-bottom {
  position: absolute;
  top: 92%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 323px;
  height: 50px;
  z-index: 15;
}
#letitrip-text {
  position: absolute;
  top: 92%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 45px;
  width: auto;
  z-index: 16;
}

/* Product Positioning */
#essentia {
  top: 375px;
  left: 300px;
}
#c4 {
  top: 206px;
  left: 0px;
  transform: rotate(-10deg);
}
#bloom {
  top: 110px;
  left: 450px;
}
#celsius {
  top: 100px;
  left: 200px;
}
#jams {
  top: 700px;
  left: 450px;
}
#chomps {
  top: 348px;
  left: 540px;
}
#fitzels {
  top: 500px;
  left: 20px;
  transform: rotate(-8.76deg);
}
#david {
  top: 700px;
  left: 85px;
}

/* --- Story Page Styles --- */
.story-page {
  background-color: #3f9fe7;
  overflow-y: auto;
  overflow-x: hidden;
}

.story-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 50px 5% 50px 5%;
  gap: 60px;
  min-height: 100vh;
}

.text-content {
  flex: 1;
  color: #ffffff;
  font-family: "Karla", sans-serif;
  max-width: 600px;
}

.text-content p {
  line-height: 1.6;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.image-content {
  flex: 0 0 40%;
}

.image-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* --- Contact Page Styles --- */
.contact-form-section {
  background: #3f9fe7;
  padding: 40px 8% 100px;
  text-align: center;
}

.contact-intro {
  color: #ffffff;
  font-family: "Karla", sans-serif;
  font-size: 1.3rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
}

.contact-divider {
  height: 9px;
  max-width: 769px;
  width: 100%;
  margin: 0 auto 30px;
  background: #f46f05;
  border-radius: 4.5px;
}

.contact-subtext {
  color: #ffffff;
  font-family: "Karla", sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 537px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-radius: 25px;
  padding: 22px 28px;
  font-family: "Karla", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000c24;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
  font-weight: 400;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #000c24;
  font-weight: 700;
  opacity: 0.85;
}

.contact-submit {
  background: #000c24;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  padding: 18px 50px;
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 10px;
}

.contact-submit:hover {
  opacity: 0.85;
}

/* --- Products Page Styles --- */
.products-container {
  padding: 150px 10% 50px 10%;
  color: #ffffff;
  font-family: "Karla", sans-serif;
  min-height: 100vh;
}

.products-container h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.products-container p {
  font-size: 1.3rem;
  line-height: 1.6;
}

/* --- Products Showcase Page Styles --- */
.products-section-wrap {
  background: #3f9fe7;
  width: 100%;
}

.products-showcase {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 100px;
  will-change: transform;
  transform: translateZ(0);
}


.product-item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 40px;
  width: 80%;
  contain: layout style;
}

.prod-text {
  color: #ffffff;
  font-family: "Karla", sans-serif;
}

.prod-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-style: italic;
}

.prod-text p {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 600px;
}

/* Larger, bolder text styling for the bottom product list */
.additional-offerings p {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- Us & Them Page Styles --- */
.compare-showcase {
  padding: 60px 4% 100px;
  max-width: 1600px;
  margin: 0 auto;
}


.compare-viewport {
  overflow: hidden;
}

.compare-track {
  display: flex;
  transition: transform 0.4s ease;
}

.compare-pair {
  display: flex;
  gap: 60px;
  flex: 0 0 100%;
}

.compare-card {
  flex: 1;
  border-radius: 30px;
  padding: 60px 50px 50px;
  text-align: center;
  color: #ffffff;
  font-family: "Karla", sans-serif;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.compare-card.us-card {
  background: #f16a00;
}

.compare-card.them-card {
  background: #3f9fe7;
}

.compare-img-wrap {
  width: 280px;
  height: 280px;
  margin: 0 auto 30px;
  background: #000736;
  border-radius: 30px;
  box-shadow: 0 14px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: rotate(10deg);
}

.them-card .compare-img-wrap {
  transform: rotate(-10deg);
}

.compare-img-wrap img {
  width: 72%;
  height: auto;
  transform: rotate(-10deg);
}

.them-card .compare-img-wrap img {
  transform: rotate(10deg);
}

.compare-label {
  font-style: italic;
  font-size: 1.8rem;
  margin: 10px 0 6px;
}

.compare-card h3 {
  font-size: 1.7rem;
  margin: 4px 0 18px;
}

.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.8;
}

.compare-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.compare-arrow {
  background: none;
  border: none;
  color: #000c24;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

.compare-arrow:hover {
  opacity: 0.7;
}

.swipe-hint {
  font-style: italic;
  color: #000c24;
  font-size: 1.4rem;
  font-family: "Karla", sans-serif;
}

/* Vending Machine Us vs Them Comparison Table */
.vending-compare {
  max-width: 1100px;
  margin: 100px auto 0;
}

.vending-compare-card {
  background: #3f9fe7;
  border-radius: 30px;
  padding: 50px 60px 60px;
  color: #ffffff;
  font-family: "Karla", sans-serif;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.vending-compare-images {
  display: flex;
  gap: 40px;
  margin-bottom: 10px;
}

.vending-compare-col {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.vending-compare-col img {
  height: 420px;
  width: auto;
  max-width: 100%;
}

.vending-compare-row {
  display: flex;
  gap: 40px;
  padding: 20px 0;
  border-top: 3px solid #f46f05;
  border-radius: 3px;
}

.vending-compare-row span {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.5;
}

.vending-compare-labels {
  border-top: none;
  padding-bottom: 0;
}

.vending-compare-labels .compare-label {
  flex: 1;
  text-align: center;
  margin: 0;
}

.vending-compare-headers {
  border-top: none;
  padding-top: 0;
}

.vending-compare-headers h3 {
  flex: 1;
  text-align: center;
  font-size: 1.6rem;
  margin: 0;
}

/* Shared Page Title Bar (navy bar + orange script title image) */
.page-title-bar {
  background: #000736;
  margin-top: 110px;
  min-height: 93px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  box-sizing: border-box;
}

/* --- Who We Serve Page Styles --- */
.serve-grid {
  background: #f46f05;
  padding: 60px 8% 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px 60px;
}

.serve-area-note {
  grid-column: 1 / -1;
  color: #ffffff;
  font-family: "Karla", sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  text-align: center;
  margin: 0 0 15px;
}

.serve-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.serve-item.full-width {
  grid-column: 1 / -1;
  justify-content: center;
}

.serve-icon {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.serve-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.serve-item h3 {
  color: #ffffff;
  font-family: "Karla", sans-serif;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0;
}

/* Why Partner With Let It Rip Section */
.partner-section {
  background: #f46f05;
  padding: 50px 8% 100px;
}

.partner-divider {
  height: 40px;
  max-width: 995px;
  width: 100%;
  margin: 0 auto 50px;
  background: #3f9fe7;
  border-radius: 20px;
}

.partner-heading {
  color: #ffffff;
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  text-align: center;
  margin: 0 0 15px;
}

.partner-subtext {
  color: #ffffff;
  font-family: "Karla", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.benefit-card {
  display: flex;
  align-items: center;
}

.benefit-number {
  height: 170px;
  width: auto;
  flex-shrink: 0;
  margin-right: -25px;
  z-index: 2;
  position: relative;
}

.benefit-box {
  flex: 1;
  background: #3f9fe7;
  border-radius: 25px;
  padding: 30px 30px 30px 55px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.benefit-box h3 {
  color: #ffffff;
  font-family: "Karla", sans-serif;
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.benefit-box p {
  color: #ffffff;
  font-family: "Karla", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

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

/* Hamburger button (hidden on desktop by default) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}

/* Mobile nav dropdown panel (hidden unless .open, and only shown on mobile) */
.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  flex-direction: column;
  background: #000c24;
  z-index: 99;
}

.mobile-nav-panel a {
  color: #ffffff;
  font-family: "Karla", sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  text-decoration: none;
  text-align: center;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Mobile-only hero (hidden on desktop by default) */
.mobile-hero {
  display: none;
}

/* Mobile-only Us & Them vending comparison (hidden on desktop by default) */
.vending-compare-mobile {
  display: none;
}

/* ============ Mobile Responsive Styles ============ */
@media (max-width: 800px) {
  /* Shared page title bar */
  .page-title-bar img {
    max-width: 85%;
    height: auto;
  }

  /* Us & Them comparison cards */
  .compare-showcase {
    padding: 30px 5% 60px;
  }

  .compare-pair {
    flex-direction: column;
    gap: 30px;
  }

  .compare-img-wrap {
    width: 200px;
    height: 200px;
  }

  /* Vending machine comparison: swap the desktop table for two clean cards */
  .vending-compare {
    display: none;
  }

  .vending-compare-mobile {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 5%;
    margin-top: 50px;
  }

  .vending-mobile-card {
    border-radius: 30px;
    padding: 30px 24px 34px;
    text-align: center;
    color: #ffffff;
    font-family: "Karla", sans-serif;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }

  .vending-mobile-card.us-card {
    background: #f16a00;
  }

  .vending-mobile-card.them-card {
    background: #3f9fe7;
  }

  .vending-mobile-card img {
    width: 68%;
    max-width: 230px;
    height: auto;
    margin-bottom: 16px;
  }

  .vending-mobile-img {
    transform: translateX(-26.2%);
  }

  .vending-mobile-card h3 {
    font-size: 1.5rem;
    margin: 0 0 18px;
  }

  .vending-mobile-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
  }

  .vending-mobile-card li {
    padding: 12px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.35);
    font-size: 1rem;
    line-height: 1.4;
  }

  .vending-mobile-card li:last-child {
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  }

  /* Who We Serve icon grid */
  .serve-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 8% 60px;
  }

  /* Our Story */
  .story-page {
    /* Must use the shorthand here, not background-color: the base rule
       sets a background-image (gradient) that background-color alone
       can't clear, which is why the split was still showing through. */
    background: #3f9fe7;
  }

  .story-container {
    flex-direction: column;
    padding: 30px 6% 40px;
    gap: 30px;
  }

  .image-content {
    flex: 0 0 auto;
    width: 100%;
  }

  .text-content {
    max-width: 100%;
  }

  /* Contact form */
  .contact-form-section {
    padding: 30px 6% 60px;
  }

  .contact-form {
    max-width: 100%;
  }

  /* Navbar / hamburger menu */
  .navbar {
    padding: 14px 20px;
  }

  .logo {
    height: 58px;
  }

  /* Mobile navbar is shorter (58px logo + 14px padding) than the desktop
     one this margin was originally sized for, which left a gap above the
     title bar showing the page background through. */
  .page-title-bar {
    margin-top: 86px;
  }

  .nav-group-container {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .mobile-nav-panel.open {
    display: flex;
  }

  /* Homepage hero: swap the scattered desktop layout for a clean mobile stack */
  html,
  body {
    height: auto;
  }

  .floating-shape,
  .product-float,
  .vending-machine,
  #let-it-rip-half,
  #letitrip-bottom,
  #letitrip-text {
    display: none;
  }

  .mobile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 110px 24px 60px;
    text-align: center;
  }

  .mobile-hero-machine {
    width: 68%;
    max-width: 300px;
    height: auto;
    margin-bottom: 24px;
    /* Source image has a large shadow baked into its left side, which
       throws off visual centering; this nudges the actual machine back
       to center without affecting the desktop image at all. */
    transform: translateX(-26.2%);
  }

  .mobile-hero-tagline {
    color: #ffffff;
    font-family: "Karla", sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1.4;
    max-width: 320px;
    margin: 0 0 30px;
  }

  .mobile-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 380px;
  }

  .mobile-hero-grid img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px;
    box-sizing: border-box;
  }
}
