/* ===================================
   Kallas FASHION WITH SOUL — styles.css
   Bold Editorial Style
   =================================== */

/* --- Base --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

/* --- Overflow Containment --- */
section {
  max-width: 100%;
  overflow: hidden;
}

section.relative {
  overflow: hidden;
}

.overflow-contain {
  overflow: hidden;
  max-width: 100%;
}

/* --- Text Overflow Prevention --- */
h1, h2, h3, h4, h5, h6 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

p, span, div {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.max-w-\[1400px\] {
  overflow: hidden;
}

.mt-20 {
  overflow: hidden;
}

/* --- Testimonials Overflow Fix --- */
.testimonial-grid {
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 767px) {
  .testimonial-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
  }
}

/* --- Touch Target Improvements --- */
a, button, [role="button"] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

nav a {
  padding: 12px 8px;
}

/* --- Large Headline Responsive --- */
.font-anton {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 1024px) {
  .font-anton {
    word-break: break-word;
    hyphens: auto;
  }
}

::selection {
  background: #ffe17c;
  color: #171e19;
}

/* --- Pulse Dot --- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.pulse-dot {
  animation: pulse 2s infinite ease-in-out;
}

/* --- Floating Squares --- */
@keyframes float {
  0%, 100% { transform: rotate(15deg) translateY(0); }
  50% { transform: rotate(15deg) translateY(-10px); }
}

.floating-square {
  animation: float 6s infinite ease-in-out;
}

.floating-square:nth-child(2) {
  animation-delay: -3s;
}

/* --- Bento Card Hover --- */
.bento-card {
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(23, 30, 25, 0.1);
}

/* --- Gallery Hover --- */
.gallery-item img {
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* --- Marquee --- */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-wrapper {
  overflow: hidden;
  max-width: 100%;
}

.marquee-track {
  animation: marquee 30s linear infinite;
  width: max-content;
  white-space: nowrap;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* --- Mobile Menu Active State --- */
#mobile-menu.active {
  transform: translateX(0);
}

/* Burger animation */
#mobile-menu-btn.active #burger-1 {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active #burger-2 {
  opacity: 0;
}

#mobile-menu-btn.active #burger-3 {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Step Number Active State --- */
.step-number.active {
  color: #ffe17c !important;
  opacity: 1 !important;
}

/* --- Testimonial Carousel (Mobile) --- */
@media (max-width: 767px) {
  .testimonial-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
  }

  .testimonial-card {
    min-width: 85vw;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  .testimonial-card.md\:-translate-y-4 {
    transform: none;
  }
}

/* --- Mobile Responsive Overrides --- */
@media (max-width: 768px) {
  #hero-bg-text {
    font-size: 30vw !important;
  }

  .columns-1.md\:columns-2.lg\:columns-3 {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .columns-1.md\:columns-2.lg\:columns-3 {
    columns: 1;
  }
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #171e19;
}

::-webkit-scrollbar-thumb {
  background: #ffe17c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffd84a;
}

/* --- Map Responsive --- */
@media (max-width: 1023px) {
  #contact-map iframe {
    min-height: 350px !important;
  }
}

/* --- Highlight bar animations (triggered by GSAP) --- */
.showcase-highlight,
.contact-highlight {
  transition: none;
}

/* --- Nav shadow on scroll --- */
#nav-header.scrolled {
  box-shadow: 0 1px 0 rgba(23, 30, 25, 0.1);
}

/* --- Loading state --- */
body.loading {
  overflow: hidden;
}
