/* ==========================================================================
   banner.css - Left-Aligned, Topbar-Adjusted Premium Banner
   ========================================================================== */

/* --- Base Banner Layout (Desktop) --- */
.hero-banner {
  position: relative;
  width: 100%;
  /* Desktop height constraints */
  height: clamp(550px, 70vh, 700px);
  overflow: hidden;
  background-color: #1a1a1a;

  /* Pushes the banner down exactly below the 34px solid Topbar.
       This ensures the Topbar doesn't overlap the image, but the transparent header still does. */
  margin-top: 42px;
}

.slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s ease-in-out,
    visibility 1s;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Wrapper making the entire slide a clickable link */
.slide-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* --- Background Image & Zoom Animation --- */
.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center; /* Focuses the image to the right since text is on the left */
  transform: scale(1.08);
  transition: transform 8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide.active .slide-bg {
  transform: scale(1);
}

/* Gradient Overlay - Strictly Left to Right Fade for Text Readability */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 20, 20, 0.95) 0%,
    rgba(30, 30, 30, 0.7) 45%,
    rgba(0, 0, 0, 0) 80%
  );
  z-index: 2;
  transition: background 0.4s ease;
}

.slide-link:hover .slide-overlay {
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(20, 20, 20, 0.8) 45%,
    rgba(0, 0, 0, 0.1) 80%
  );
}

/* --- Slide Content & STRICT Left Alignment --- */
.h-100 {
  height: 100%;
}
.slide-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding-left: var(--space-6);
  padding-top: 100px; /* Clearance for the overlapping transparent header */
  padding-bottom: var(--space-8);

  /* Enforce Left Alignment */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;

  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

/* --- Fluid Typography --- */
.slide-subtitle {
  color: var(--color-accent-yellow);
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
  display: block;
}

.slide-title {
  color: var(--color-white);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.slide-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  margin-bottom: 0;
  font-weight: 300;
}

/* --- Slider Controls (Arrows) --- */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: clamp(44px, 5vw, 60px);
  height: clamp(44px, 5vw, 60px);
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-nav i {
  font-size: 1.75rem;
  line-height: 1;
}

.slider-nav:hover {
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}

.slider-nav.prev {
  left: clamp(16px, 4vw, 48px);
}
.slider-nav.next {
  right: clamp(16px, 4vw, 48px);
}

/* --- Slider Controls (Dots) --- */
.slider-pagination {
  position: absolute;
  bottom: clamp(24px, 5vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dot.active {
  background-color: var(--color-primary);
  width: 28px;
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
  .hero-banner {
    height: 60vh;
    min-height: 500px;
  }
  .slide-content {
    max-width: 75%;
  }
}

/* Mobile Devices (Under 768px) - Strict Landscape & Fixed Overlap */
@media (max-width: 767px) {
  .hero-banner {
    /* Slightly taller to accommodate text comfortably without squishing */
    height: clamp(280px, 70vw, 420px);
    min-height: auto;
    max-height: none;
    margin-top: 0px;
  }

  .slide-overlay {
    background: linear-gradient(
      90deg,
      rgba(15, 15, 15, 0.95) 0%,
      rgba(25, 25, 25, 0.8) 75%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .slide-link:hover .slide-overlay {
    background: linear-gradient(
      90deg,
      rgba(5, 5, 5, 0.95) 0%,
      rgba(15, 15, 15, 0.9) 75%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .slide-content {
    max-width: 90%;
    text-align: left;
    align-items: flex-start;
    /* Push content toward the bottom */
    justify-content: flex-end;
    /* Massively increased top padding to ensure it clears the header */
    padding-top: 90px;
    padding-bottom: 35px;
    padding-left: var(--space-4);
  }

  /* Hide subtitle on mobile to prevent clutter and save vertical space */
  .slide-subtitle {
    /* display: none; */
  }

  .slide-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: var(--space-2);
    line-height: 1.15;
  }

  .slide-text {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slide-title br,
  .slide-text br {
    display: none;
  }

  .slider-nav {
    display: none;
  }

  .slider-pagination {
    bottom: 10px;
  }
}

/* ==========================================================================
   about.css - Editorial About Section (Right Image + Founder)
   ========================================================================== */

.about-section {
  background-color: var(--color-bg-alt);
  overflow: hidden; /* Prevents the overlapping images from causing horizontal scroll */
  padding: clamp(var(--space-6), 8vw, var(--space-12)) 0;
}

.about-grid {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-6), 8vw, var(--space-12));
}

/* --- Left: Content --- */
.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: var(--space-4);
}

.about-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--color-primary-dark);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.about-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-main);
  margin-bottom: var(--space-4);
}

.founder-signature-block {
  margin-bottom: var(--space-6);
}

.about-signature {
  font-size: 1.75rem;
  color: var(--color-primary);
  font-style: italic;
  margin-bottom: 2px;
}

.founder-title {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: var(--font-weight-bold);
}

.btn-read-story {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary-dark);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 4px;
  transition: all var(--transition-fast);
}

.btn-read-story i {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}
.btn-read-story:hover {
  color: var(--color-primary);
  gap: 12px;
}

/* --- Right: Editorial Visuals --- */
.about-visual {
  flex: 1;
  position: relative;
  /* Extra padding on the left and bottom so the offset elements have room */
  padding-left: var(--space-6);
  padding-bottom: var(--space-6);
}

/* The elegant offset gold/primary frame */
.about-frame {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80%;
  height: 85%;
  border: 1px solid rgba(188, 40, 101, 0.4);
  z-index: 1;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base);
}

/* Main Store Image */
.about-img-wrapper {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}

/* Small Overlapping Founder Image */
.about-founder-wrapper {
  position: absolute;
  bottom: -10px;
  left: -15px;
  z-index: 3;
  width: 30%; /* Scales relatively to the main image */
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  /* Thick white border creates the overlapping magazine cutout effect */
  border: 8px solid var(--color-bg-alt);
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s ease;
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover Interactions */
.about-visual:hover .about-img {
  transform: scale(1.05);
}
.about-visual:hover .about-frame {
  transform: translate(8px, -8px);
}
.about-visual:hover .about-founder-wrapper {
  transform: translateY(-8px);
}

/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 991px) {
  .about-grid {
    flex-direction: column; /* Puts image on top of text for tablets */
    gap: var(--space-8);
  }

  .about-content {
    padding-right: 0;
    align-items: center;
    text-align: center;
  }

  .about-visual {
    width: 80%; /* Shrinks the image block slightly so it doesn't overwhelm */
    max-width: 500px;
    padding-left: var(--space-5);
    padding-bottom: var(--space-5);
  }
}

@media (max-width: 767px) {
  .about-visual {
    width: 95%; /* Use more width on mobile */
    padding-left: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .about-img-wrapper {
    border-radius: var(--radius-md);
  }

  .about-founder-wrapper {
    width: 30%; /* Make founder slightly larger relative to main img on mobile */
    border-width: 6px;
    border-radius: var(--radius-sm);
    left: -10px;
  }

  .about-content {
    text-align: left;
    align-items: flex-start;
  }

  .about-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-3);
  }

  .about-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
  }

  .about-signature {
    font-size: 1.5rem;
  }
}
