/* ==========================================================================
   Big Boldr Design System & Core Stylesheet
   ========================================================================== */

/* Design Tokens */
:root {
  --bg-color: #FAF6EF;
  --text-color: #1E1E1E;
  --text-muted: #555555;
  --accent-orange: #FF6E14;
  --border-color: #D6CFC7;
  --border-muted: #E8E3DB;
  
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.25s ease;
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  background-image: url('assets/hero-flatlay.jpg?v=4');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect for the homepage background */
  background-repeat: no-repeat;
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  font-weight: 300;
}

/* Layout Utilities */
.section {
  width: 100%;
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 3.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border-muted);
  background: transparent; /* Inherits the parallax body background */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  display: flex;
  justify-content: flex-end;
  max-width: 100%;
  width: 100%;
  padding: 0 4rem 0 2rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(250, 246, 239, 0.55); /* Beautiful transparent glassmorphism over the flat-lay background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 3.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  max-width: 580px;
  width: 100%;
}

.logo-wrapper {
  margin-bottom: 2.5rem;
}

.logo-h1 {
  margin: 0;
  padding: 0;
  display: inline-block;
  line-height: 1;
}

.brand-logo {
  max-height: 160px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
}

.hero-text-block p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 90%;
}

.hero-text-block p strong {
  color: var(--text-color);
  font-weight: 600;
}

.hero-text-block .highlight-text {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 2rem 0;
}

.hero-text-block .summary-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-color);
  margin-top: 1.5rem;
}

.button-wrapper {
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-primary);
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.btn-outline {
  padding: 0.9rem 2.4rem;
  background: transparent;
  border: 1.5px solid var(--text-color);
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.btn-outline:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.btn-outline:active {
  transform: translateY(0);
}

/* ==========================================================================
   Perfect For - Carousel Section
   ========================================================================== */
.perfect-for-section {
  background: rgba(250, 246, 239, 0.85); /* Semi-transparent background overlay */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-muted);
  overflow: hidden;
}

.swiper-viewport {
  position: relative;
  width: 100%;
}

.swiper-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.swiper-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.swiper-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  box-sizing: border-box;
  opacity: 0.4;
  transform: scale(0.97);
  transition: var(--transition-smooth);
}

.swiper-slide.is-snapped {
  opacity: 1;
  transform: scale(1);
}

.perfect-for-wrapper {
  display: grid;
  grid-template-columns: 4.5fr 5.5fr;
  gap: 4rem;
  align-items: center;
}

#perfect-for .section-title {
  margin-bottom: 1rem;
}

.perfect-for-text-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  padding: 0;
}

.text-slide-container {
  position: relative;
  width: 100%;
  z-index: 2; /* Keep text above the decorative blob */
}

.text-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.text-slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slide-category {
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.slide-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 85%;
  font-weight: 300;
  line-height: 1.7;
}

/* Styled orange quadrant decoration - placed below text slide on the left */
.orange-sector {
  width: 150px;
  height: 150px;
  background-image: url('assets/orange-blob.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  margin-top: 3.5rem;
  margin-left: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.perfect-for-image-panel {
  position: relative;
  width: 100%;
}

.slide-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 480px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Desktop Arrow Buttons */
.swiper-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid var(--border-muted);
  font-size: 26px;
  line-height: 1;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  z-index: 10;
  transition: var(--transition-fast);
  user-select: none;
}

.swiper-arrow.prev {
  left: -70px;
}

.swiper-arrow.next {
  right: -70px;
}

.swiper-arrow:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

.swiper-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* Slider Indicators (Dots) */
.swiper-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: absolute;
  bottom: 24px;
  left: 72.5%;
  transform: translateX(-50%);
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background-color: #FFFFFF;
  transform: scale(1.35);
}

/* ==========================================================================
   Sizes for Everyone Section
   ========================================================================== */
.sizes-section {
  background: rgba(250, 246, 239, 0.9); /* Semi-transparent background overlay */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sizes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.size-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

/* Add custom visual border lines between columns */
.sizes-grid .size-column:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -2rem;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: var(--border-color);
  opacity: 0.6;
}

.size-image-wrapper {
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.size-product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.04));
  transition: var(--transition-fast);
}

/* Progressive scaling to make small look small, medium look medium, large look large */
.sizes-grid > .size-column:nth-child(1) .size-product-image {
  max-width: 65%;
  max-height: 65%;
}

.sizes-grid > .size-column:nth-child(2) .size-product-image {
  max-width: 82%;
  max-height: 82%;
}

.sizes-grid > .size-column:nth-child(3) .size-product-image {
  max-width: 100%;
  max-height: 100%;
}

.size-column:hover .size-product-image {
  transform: translateY(-8px) scale(1.03);
}

.size-name {
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin-bottom: 2.5rem;
  opacity: 0.8;
}

.specs-wrapper {
  width: 100%;
  align-self: flex-start;
  text-align: left;
}

.specs-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.8rem;
  letter-spacing: 0.02em;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 300;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.5rem;
}

.specs-list li:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 400;
  color: var(--text-color);
  margin-right: 10px;
}

.spec-detail {
  font-size: 0.82rem;
  color: #888888;
  font-style: italic;
  display: block;
  text-align: right;
  margin-top: 2px;
}

/* ==========================================================================
   Responsive / Media Queries
   ========================================================================== */

/* Large Tablets / Small Desktops */
@media (max-width: 1024px) {
  .hero-container {
    gap: 3rem;
  }
  
  .perfect-for-section {
    padding: 5rem 2rem;
  }
  
  .swiper-arrow {
    display: none; /* Hide arrows on touch screens, rely on swipe */
  }
  
  .sizes-grid {
    gap: 2rem;
  }
  
  .sizes-grid .size-column:not(:last-child)::after {
    right: -1rem;
  }
}

/* Small Tablets / Landscaping Mobile */
@media (max-width: 768px) {
  .section {
    padding: 4rem 1.5rem;
  }
  
  .hero-section {
    padding: 4rem 1rem;
    background-position: center left 25%; /* Shift background left on mobile to focus on the playground dome */
  }
  
  .hero-container {
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
  }
  
  .hero-content {
    align-items: center;
    padding: 2.5rem 1.5rem;
  }
  
  .hero-text-block p {
    max-width: 100%;
  }
  
  .perfect-for-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .perfect-for-text-panel {
    min-height: auto;
    padding: 0;
  }
  
  .orange-sector {
    width: 130px;
    height: 130px;
    position: relative;
    margin-top: 2.5rem;
    margin-left: 0;
    bottom: auto;
    left: auto;
    top: auto;
    right: auto;
    transform: none;
    opacity: 0.9;
  }
  
  .slide-image-wrapper {
    height: 320px;
  }
  
  .swiper-dots {
    left: 50%;
    bottom: 20px;
  }
  
  .sizes-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .sizes-grid .size-column:not(:last-child)::after {
    display: none; /* Hide vertical borders when stacked */
  }
  
  .size-column {
    border-bottom: 1px solid var(--border-muted);
    padding-bottom: 3rem;
  }
  
  .size-column:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Small Mobiles */
@media (max-width: 480px) {
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }
  
  .slide-category {
    font-size: 1.8rem;
  }
  
  .slide-description {
    font-size: 1rem;
    max-width: 100%;
  }
  
  .perfect-for-text-panel {
    padding: 0;
  }
  
  .orange-sector {
    width: 110px;
    height: 110px;
    position: relative;
    margin-top: 2rem;
    margin-left: 0;
    bottom: auto;
    left: auto;
    top: auto;
    right: auto;
    transform: none;
    opacity: 0.9;
  }
  
  .size-name {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #181716; /* Solid dark off-black background */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5rem 2rem 2rem 2rem;
  color: #FAF6EF; /* Off-white text for readability */
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  max-height: 180px;
  width: auto;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.footer-description {
  font-size: 0.95rem;
  color: #CFC9C0; /* Muted off-white/grey text */
  line-height: 1.7;
  max-width: 380px;
  font-weight: 300;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #FFFFFF; /* High-contrast white for headers */
  letter-spacing: 0.02em;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  font-weight: 300;
  color: #CFC9C0;
}

.footer-list a {
  text-decoration: none;
  color: #CFC9C0;
  transition: var(--transition-fast);
}

.footer-list a:hover {
  color: var(--accent-orange);
  padding-left: 4px;
}

.contact-label {
  font-weight: 500;
  color: #FFFFFF;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.88rem;
  color: #A09A91; /* More muted off-white/grey */
  font-weight: 300;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  text-decoration: none;
  font-size: 0.88rem;
  color: #A09A91;
  font-weight: 300;
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--accent-orange);
}

/* Footer Responsiveness */
@media (max-width: 768px) {
  .footer {
    padding: 4rem 1.5rem 2rem 1.5rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-logo {
    max-height: 120px;
  }
  
  .footer-description {
    max-width: 100%;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
