/* Mobile-First Responsive Styles (max-width: 767px) */

/* ============================================================================
   UNIVERSAL MAX-WIDTH OVERRIDE (CRITICAL FIX)
   ============================================================================
   Catch all inline divs with max-width:1080px that aren't otherwise overridden.
   These unnamed wrapper divs need to be constrained to viewport width on mobile
   to prevent horizontal overflow. */

div[style*="max-width:1080px"],
div[style*="max-width: 1080px"] {
  max-width: 100% !important;
}

/* ============================================================================
   1. GLOBAL RESETS & BASE STYLES
   ============================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #111110;
  background-color: #FFFFFF;
}

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

/* ============================================================================
   2. HEADER & NAVIGATION
   ============================================================================ */

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 100;
  height: 56px;
  padding: 0 5% !important;
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2DDD7;
}

.site-header > div:last-child {
  max-width: 100%;
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-header div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header div:first-child div:last-child {
  font-size: 13px !important;
}

/* Navigation - Hide Work link on mobile */
.nav-work {
  display: none !important;
}

/* Contact button - keep visible */
.site-header button[data-contact-open] {
  font-size: 11px;
  padding: 8px 12px !important;
  height: 36px;
}

/* ============================================================================
   3. HERO SECTION
   ============================================================================ */

.hero-section {
  padding: 40px 5% 48px !important;
}

.hero-inner {
  flex-direction: column !important;
  max-width: 100%;
}

.hero-left {
  display: contents !important;
}

.hero-text-top {
  order: 1;
  width: 100%;
}

.hero-text-top h1 {
  font-size: 28px !important;
  margin-bottom: 16px;
}

.hero-deco-svg {
  display: none !important;
}

.hero-mobile-ig-deco {
  display: block !important;
}

.hero-phones-wrap {
  order: 2;
  width: 100%;
  max-width: 260px !important;
  margin: 24px auto 0 !important;
  justify-content: center !important;
  gap: 8px !important;
}

.hero-reel-phone {
  width: 110px !important;
  height: 196px !important;
}

.hero-text-bottom {
  order: 3;
  width: 100%;
  margin-top: 28px;
}

.hero-text-bottom p {
  font-size: 14px;
  line-height: 1.6;
}

.hero-text-bottom > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.hero-text-bottom a {
  width: 100%;
}

/* ============================================================================
   4. MARQUEE / TICKER
   ============================================================================ */

.brand-band {
  height: 320px !important;
  padding: 12px 0 !important;
  overflow: hidden;
}

.brand-band > div {
  display: flex !important;
  animation: marquee 18s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.brand-band span {
  font-size: 10px !important;
  padding: 0 20px !important;
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================================================
   5. WHY REELS SECTION
   ============================================================================ */

.why-section {
  padding: 48px 5% !important;
}

.why-inner {
  flex-direction: column !important;
  gap: 40px !important;
  max-width: 100%;
}

.why-left {
  display: contents !important;
}

.why-text-top {
  order: 1;
  width: 100%;
}

.why-text-top h2 {
  font-size: 28px !important;
  margin-bottom: 16px;
}

.why-phones-wrap {
  order: 2;
  width: 100%;
  display: flex !important;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  margin-top: 0 !important;
  position: relative !important;
}

.why-phones-wrap > svg {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 260px;
}

.why-reel-phone {
  width: 110px !important;
  height: 196px !important;
}

.why-text-bottom {
  order: 3;
  width: 100%;
  margin-top: 0;
}

/* ============================================================================
   6. CLIENTS SECTION
   ============================================================================ */

.clients-section {
  padding: 48px 5% !important;
}

.client-grid-brands {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

.client-grid-brands > div {
  height: 160px !important;
  padding: 16px !important;
}

.client-grid-brands > div div:first-child {
  font-size: 12px !important;
}

/* ============================================================================
   7. VALUES SECTION
   ============================================================================ */

.process-section {
  padding: 48px 5% !important;
}

.process-grid {
  grid-template-columns: 1fr !important;
  gap: 0;
}

.process-grid > div {
  padding: 32px 20px !important;
  border-right: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   8. OUR WORK SECTION
   ============================================================================ */

#our-work {
  padding: 48px 5% 0 !important;
}

#our-work > div:last-child {
  max-width: 100%;
  padding: 0;
}

#our-work h2 {
  font-size: 28px !important;
  line-height: 1.3;
}

/* ============================================================================
   9. PORTFOLIO GRID
   ============================================================================ */

.portfolio-body {
  padding: 0 5% 48px !important;
}

.portfolio-grid {
  grid-template-columns: 1fr !important;
  gap: 32px !important;
  align-items: stretch !important;
}

.portfolio-brand-col {
  position: static !important;
  top: auto !important;
  width: 100% !important;
  margin-bottom: 24px;
}

.portfolio-brand-col > div:first-child {
  font-size: 32px !important;
  color: rgba(192, 57, 43, 0.08);
  margin-bottom: 12px;
}

.portfolio-brand-col h3 {
  font-size: 16px !important;
}

.portfolio-location {
  font-size: 10px !important;
  margin-top: 8px;
}

.portfolio-description {
  font-size: 12px !important;
  margin-top: 12px;
}

.portfolio-reels-col {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  min-height: 240px !important;
  align-items: flex-start !important;
}

.portfolio-reels-col > div {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.reel-card {
  width: 120px !important;
  height: 213px !important;
  flex-shrink: 0;
}

.reel-card.reel-feature {
  width: 100px !important;
  height: 178px !important;
}

.reel-card.reel-sm {
  width: 120px !important;
  height: 213px !important;
}

.reel-caption {
  padding: 8px 10px !important;
}

.reel-caption small {
  font-size: 10px !important;
}

.reel-caption strong {
  font-size: 10px !important;
}

/* ============================================================================
   10. HOW IT WORKS SECTION
   ============================================================================ */

.how-it-works-section {
  padding: 48px 5% !important;
}

.how-it-works-grid {
  grid-template-columns: 1fr !important;
  gap: 24px !important;
}

.how-it-works-grid > div {
  padding: 20px !important;
}

.how-it-works-grid h3 {
  font-size: 16px !important;
}

/* ============================================================================
   11. CTA SECTION
   ============================================================================ */

.cta-section {
  padding: 56px 5% !important;
  text-align: center;
}

.cta-section h2 {
  font-size: 28px !important;
  line-height: 1.3;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 13px;
  margin-bottom: 28px;
}

.cta-section button,
.cta-section a {
  display: block !important;
  width: 100% !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 700;
  border-radius: 2px;
}

.cta-section a[href*="wa.me"] {
  background: #c0392b !important;
  color: #FFFFFF !important;
  text-decoration: none;
  margin-bottom: 12px;
}

.cta-section a:not([href*="wa.me"]) {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================================================
   12. STATS SECTION
   ============================================================================ */

.stat-bar {
  padding: 32px 5% !important;
}

.stat-cell-r {
  border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-bottom: none !important;
}

.stat-cell-r:last-child {
  border-right: none !important;
}

/* ============================================================================
   13. FOOTER
   ============================================================================ */

footer {
  padding: 40px 5% !important;
  text-align: center;
  background: #111110;
  color: rgba(255, 255, 255, 0.5);
}

footer > div > div {
  font-size: 12px !important;
  line-height: 1.8;
}

footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

/* ============================================================================
   14. MODALS
   ============================================================================ */

.site-modal {
  padding: 16px !important;
}

.site-modal-panel {
  width: 100% !important;
  max-width: calc(100vw - 32px);
  padding: 20px !important;
}

.site-modal-panel button {
  right: 8px !important;
  top: 6px !important;
  font-size: 24px !important;
}

.site-modal-panel h2 {
  font-size: 22px !important;
}

.site-modal-panel a {
  font-size: 12px !important;
  padding: 12px 0 !important;
}

/* ============================================================================
   15. ANIMATIONS
   ============================================================================ */

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================================================
   16. UTILITY CLASSES
   ============================================================================ */

.mobile-ig-deco {
  display: block !important;
}

.desktop-deco {
  display: none !important;
}

/* Hide elements only on mobile */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ============================================================================
   17. RESPONSIVE ADJUSTMENTS (max-width: 480px)
   ============================================================================ */

@media (max-width: 480px) {
  html, body {
    font-size: 13px;
  }

  .site-header {
    height: 52px;
  }

  .hero-section {
    padding: 32px 5% 40px !important;
  }

  .hero-text-top h1 {
    font-size: 24px !important;
  }

  .hero-phones-wrap {
    max-width: 220px !important;
  }

  .hero-reel-phone {
    width: 100px !important;
    height: 178px !important;
  }

  .why-section {
    padding: 40px 5% !important;
  }

  .why-text-top h2 {
    font-size: 24px !important;
  }

  .clients-section {
    padding: 40px 5% !important;
  }

  .client-grid-brands {
    grid-template-columns: 1fr !important;
  }

  .reel-card {
    width: 100px !important;
    height: 178px !important;
  }

  .reel-card.reel-feature {
    width: 90px !important;
    height: 160px !important;
  }

  .cta-section {
    padding: 40px 5% !important;
  }

  .cta-section h2 {
    font-size: 24px !important;
  }

  .cta-section button,
  .cta-section a {
    padding: 14px 16px !important;
    font-size: 11px !important;
  }
}

/* ============================================================================
   18. RESPONSIVE ADJUSTMENTS (max-width: 375px)
   ============================================================================ */

@media (max-width: 375px) {
  html, body {
    font-size: 12px;
  }

  .site-header {
    height: 48px;
  }

  .hero-section {
    padding: 24px 5% 32px !important;
  }

  .hero-text-top h1 {
    font-size: 20px !important;
  }

  .hero-phones-wrap {
    max-width: 200px !important;
    gap: 4px !important;
  }

  .hero-reel-phone {
    width: 90px !important;
    height: 160px !important;
  }

  .why-section {
    padding: 32px 5% !important;
  }

  .reel-card {
    width: 90px !important;
    height: 160px !important;
  }

  .portfolio-reels-col {
    gap: 4px !important;
    min-height: 180px !important;
  }

  .cta-section {
    padding: 32px 5% !important;
  }

  .cta-section h2 {
    font-size: 20px !important;
  }

  .cta-section button,
  .cta-section a {
    padding: 12px 14px !important;
    font-size: 10px !important;
  }
}
