/* ============================================================
   JA CATFISH MASTERS — VISIBILITY & LAYOUT FIXES v5
   Fixes: dark text on dark bg, overflowing video, button layout
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   1. VISION GRID (Homepage "Who We Are" — text + video side by side)
   ══════════════════════════════════════════════════════════ */
.vision-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 60px !important;
  align-items: center !important;
}
@media (max-width: 900px) {
  .vision-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
}

/* Video container — constrained, no overflow */
.vision-media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  background: #111 !important;
  display: block !important;
  /* Critical: never exceed the grid column */
  max-width: 100% !important;
}
.vision-media video,
.vision-media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 6px !important;
}

/* Text side — always readable dark text on grey bg */
.section[data-chapter="who-we-are"] {
  background: #f5f5f5 !important;
  padding: 80px 60px !important;
}
.section[data-chapter="who-we-are"] .section-label {
  color: #e6b422 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3em !important;
}
.section[data-chapter="who-we-are"] .section-headline {
  color: #111 !important;
  font-size: clamp(30px, 3.5vw, 46px) !important;
  font-weight: 300 !important;
  line-height: 1.1 !important;
}
.section[data-chapter="who-we-are"] .section-headline strong {
  color: #c0392b !important;
  font-weight: 700 !important;
}
.section[data-chapter="who-we-are"] .section-body p {
  color: #444 !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}
.section[data-chapter="who-we-are"] .divider {
  background: #e6b422 !important;
  height: 3px !important;
  width: 48px !important;
  margin: 20px 0 24px !important;
}

/* ══════════════════════════════════════════════════════════
   2. PILLARS "FOR THE PEOPLE" SECTION — dark bg, ALL text white
   ══════════════════════════════════════════════════════════ */
.pillars-section {
  background: #1a1a1a !important;
}
.pillars-intro .section-label {
  color: #e6b422 !important;
}
.pillars-intro .section-headline {
  color: #ffffff !important;
  font-weight: 300 !important;
  font-size: clamp(28px, 3.5vw, 44px) !important;
}
.pillar-word { color: #e6b422 !important; }
.pillar-stat { color: #ffffff !important; font-size: 52px !important; font-weight: 300 !important; }
.pillar-stat-label { color: #e6b422 !important; }
.pillar-text { color: rgba(255,255,255,0.70) !important; font-size: 14px !important; line-height: 1.7 !important; }

/* ══════════════════════════════════════════════════════════
   3. COMMITMENT SECTION (Our Commitment — white section)
   ══════════════════════════════════════════════════════════ */
.section[data-chapter="our-impact"] {
  background: #ffffff !important;
}
.section[data-chapter="our-impact"] .section-label { color: #e6b422 !important; }
.section[data-chapter="our-impact"] .section-headline { color: #111 !important; }
.section[data-chapter="our-impact"] .section-headline strong { color: #c0392b !important; }
.section[data-chapter="our-impact"] .section-body p { color: #444 !important; }

/* Stats grid on white section */
.section[data-chapter="our-impact"] [style*="padding:36px"],
.section[data-chapter="our-impact"] [style*="padding:36px 28px"] {
  background: #f0f0f0 !important;
}
.section[data-chapter="our-impact"] [style*="font-size:48px"] {
  color: #c0392b !important;
}
.section[data-chapter="our-impact"] [style*="font-size:10px;font-weight:600"] {
  color: #666 !important;
}
.section[data-chapter="our-impact"] [style*="font-size:32px;font-weight:300;color:var(--green)"] {
  color: #111 !important;
}
/* Keep one box dark/red */
.section[data-chapter="our-impact"] [style*="background:var(--green);padding:36px"],
.section[data-chapter="our-impact"] [style*="background:#c0392b"] {
  background: #c0392b !important;
}
.section[data-chapter="our-impact"] [style*="background:#c0392b"] * { color: #fff !important; }

/* ══════════════════════════════════════════════════════════
   4. DISCOVER SECTION ("The JA Difference")
   ══════════════════════════════════════════════════════════ */
.discover-section {
  background: #ffffff !important;
  padding: 100px 60px !important;
}
.discover-inner .section-label { color: #e6b422 !important; display: block !important; text-align: center !important; }
.discover-quote {
  color: #222 !important;
  font-size: clamp(17px, 2vw, 24px) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  line-height: 1.65 !important;
  max-width: 800px !important;
  margin: 24px auto 40px !important;
  text-align: center !important;
}
.discover-quote em { color: #c0392b !important; font-style: normal !important; font-weight: 600 !important; }

/* ══════════════════════════════════════════════════════════
   5. GALLERY — "Watch us at work" dark section — text MUST be white
   ══════════════════════════════════════════════════════════ */
.gallery-section[style*="background:var(--ink)"],
.gallery-section[style*="background:#1a1a1a"] {
  background: #1a1a1a !important;
}
/* Force white text when on dark gallery section */
.gallery-section[style*="background:var(--ink)"] .gallery-section-title,
.gallery-section[style*="background:var(--ink)"] h2 {
  color: #ffffff !important;
}
.gallery-section[style*="background:var(--ink)"] .gallery-section-label {
  color: #e6b422 !important;
}

/* Inline style override for gallery section title */
.gallery-section-title[style*="color:var(--white)"],
.gallery-section h2[style*="color:var(--white)"] {
  color: #ffffff !important;
}

/* Video items in gallery — proper sizing */
.video-item {
  position: relative !important;
  overflow: hidden !important;
  background: #111 !important;
  border-radius: 4px !important;
}
.video-item video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  aspect-ratio: 16/9 !important;
}
.video-item--large { grid-column: span 2 !important; }
@media (max-width: 768px) {
  .video-item--large { grid-column: span 1 !important; }
}

/* ══════════════════════════════════════════════════════════
   6. ABOUT PAGE — dark "Two Worlds" section text = WHITE
   ══════════════════════════════════════════════════════════ */
.section[style*="background:var(--ink)"] h2,
.section[style*="background:var(--ink)"] h3,
.section[style*="background:#1a1a1a"] h2,
.section[style*="background:#1a1a1a"] h3,
.section[style*="background:#111"] h2,
.section[style*="background:#111"] h3 {
  color: #ffffff !important;
}
.section[style*="background:var(--ink)"] p,
.section[style*="background:#1a1a1a"] p,
.section[style*="background:#111"] p {
  color: rgba(255,255,255,0.72) !important;
}
/* The dark section on about.html inline style */
[style*="background:rgba(13,26,15,0.6)"],
[style*="background:rgba(31,95,59,0.3)"] {
  padding: 48px 40px !important;
}
[style*="background:rgba(13,26,15,0.6)"] h3,
[style*="background:rgba(31,95,59,0.3)"] h3 {
  color: #ffffff !important;
}
[style*="background:rgba(13,26,15,0.6)"] p,
[style*="background:rgba(31,95,59,0.3)"] p {
  color: rgba(255,255,255,0.70) !important;
}
[style*="background:rgba(13,26,15,0.6)"] a,
[style*="background:rgba(31,95,59,0.3)"] a {
  color: #e6b422 !important;
}

/* ══════════════════════════════════════════════════════════
   7. SUSTAINABILITY PAGE — dark sections all visible
   ══════════════════════════════════════════════════════════ */
.sustain-pledge {
  background: #1a1a1a !important;
}
.sustain-pledge .section-label { color: #e6b422 !important; }
.sustain-pledge h2,
.sustain-pledge .section-headline {
  color: #ffffff !important;
  font-size: clamp(28px, 3.5vw, 48px) !important;
}
.sustain-pledge .section-body p,
.sustain-pledge p { color: rgba(255,255,255,0.75) !important; }
.pledge-text { color: rgba(255,255,255,0.85) !important; font-size: 14px !important; }
.pledge-text strong { color: #ffffff !important; font-weight: 700 !important; }
.sustain-pledge-left .section-body { color: rgba(255,255,255,0.70) !important; }

/* Sustainability commitment section — light bg, dark text */
[style*="background:var(--cream)"],
[style*="background:#f5f5f5"] {
  background: #f5f5f5 !important;
}
[style*="background:var(--cream)"] h2,
[style*="background:var(--cream)"] .section-headline {
  color: #111 !important;
}
[style*="background:var(--cream)"] p,
[style*="background:var(--cream)"] .section-body {
  color: #444 !important;
}

/* ══════════════════════════════════════════════════════════
   8. PROCESS PAGE — step text visible
   ══════════════════════════════════════════════════════════ */
.step-title { color: #111 !important; font-weight: 700 !important; font-size: 20px !important; }
.step-text { color: #444 !important; font-size: 15px !important; line-height: 1.75 !important; }
.step-num { color: #c0392b !important; font-weight: 800 !important; }

/* Process sections alternating bg */
.process-step { background: #f5f5f5 !important; }
.process-step:nth-child(even) { background: #ffffff !important; }

/* ══════════════════════════════════════════════════════════
   9. BUTTONS — always readable
   ══════════════════════════════════════════════════════════ */
.btn-green,
.btn-gold,
a.btn-green,
a.btn-gold {
  background: #c0392b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.15em !important;
  padding: 14px 32px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: none !important;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s !important;
  cursor: pointer !important;
}
.btn-green:hover,
.btn-gold:hover {
  background: #922b21 !important;
  transform: translateY(-2px) !important;
}

/* Ghost button on light bg */
.btn-ghost-dark {
  background: transparent !important;
  color: #111 !important;
  border: 1.5px solid #111 !important;
  padding: 14px 32px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s !important;
}
.btn-ghost-dark:hover {
  background: #c0392b !important;
  color: #fff !important;
  border-color: #c0392b !important;
}

/* Ghost on dark bg */
.btn-ghost-white {
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.65) !important;
  padding: 14px 32px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s !important;
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.10) !important;
  border-color: #fff !important;
}

/* ══════════════════════════════════════════════════════════
   10. SECTION PADDING — consistent breathing room
   ══════════════════════════════════════════════════════════ */
.section { padding: 90px 60px !important; }
.section-inner { max-width: 1200px !important; margin: 0 auto !important; width: 100% !important; }

@media (max-width: 768px) {
  .section { padding: 60px 24px !important; }
  .vision-grid { grid-template-columns: 1fr !important; }
  .discover-section { padding: 72px 24px !important; }
}

/* ══════════════════════════════════════════════════════════
   11. COUNT-UP NUMBERS IN STATS GRID
   ══════════════════════════════════════════════════════════ */
.count-up { color: #c0392b !important; font-weight: 300 !important; }

/* ══════════════════════════════════════════════════════════
   12. CHAPTER NAV VISIBILITY
   ══════════════════════════════════════════════════════════ */
.chapter-nav { background: #fff !important; border-bottom: 1px solid #ddd !important; border-top: 1px solid #ddd !important; }
.chapter-item { color: #777 !important; font-weight: 600 !important; font-size: 11px !important; }
.chapter-item.active, .chapter-item:hover { color: #c0392b !important; }
.chapter-num { color: #c0392b !important; }


/* ============================================================
   v5.1 — MEDIA FIT FIXES (videos & images fill containers)
   ============================================================ */

/* ── UNIVERSAL MEDIA RULE — every video/img fills its parent ── */
video, img {
  max-width: 100%;
  display: block;
}

/* ── HERO VIDEOS — always fill hero fully ── */
.hero-video {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
.about-hero .hero-video,
.products-hero .hero-video,
.contact-hero .hero-video,
.gallery-hero .hero-video,
.process-hero .hero-video,
.sustain-hero .hero-video {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 0.55 !important;
  z-index: 0 !important;
}

/* ── VISION MEDIA (homepage "Who We Are" side video) ── */
.vision-media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #111 !important;
  display: block !important;
}
.vision-media video,
.vision-media img {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 8px !important;
}

/* ── PRODUCT IMAGES ── */
.product-img {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4/3 !important;
  overflow: hidden !important;
  background: #e0e0e0 !important;
  display: block !important;
}
.product-img img {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}
.product-card:hover .product-img img {
  transform: scale(1.04) !important;
}

/* ── PROCESS STEP MEDIA (left/right alternating) ── */
.step-media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4/3 !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  background: #222 !important;
  display: block !important;
}
.step-media video,
.step-media img {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* ── GALLERY PHOTO ITEMS ── */
.photo-item {
  position: relative !important;
  aspect-ratio: 4/3 !important;
  overflow: hidden !important;
  background: #ddd !important;
  display: block !important;
}
.photo-item img {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.5s ease !important;
}
.photo-item:hover img { transform: scale(1.04) !important; }

/* ── GALLERY VIDEO ITEMS ── */
.video-item {
  position: relative !important;
  overflow: hidden !important;
  background: #111 !important;
  border-radius: 4px !important;
  display: block !important;
}
.video-item video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  aspect-ratio: 16/9 !important;
}
.video-item--large { grid-column: span 2 !important; }
.video-item--large video { aspect-ratio: 16/9 !important; }

/* ── FOOTER LOGO IMAGE ── */
.footer-brand-logo-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* ── HEADER LOGO IMAGE ── */
.header-logo-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* ── ABOUT FARM IMAGE ── */
.about-sticky img,
[style*="aspect-ratio:1"] img,
[style*="border-radius:2px"] img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* ── PROCESS HERO VIDEO ── */
.process-hero-video {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0.5 !important;
  z-index: 0 !important;
}

/* ── ENSURE SECTIONS WITH VIDEOS ARE POSITION:RELATIVE ── */
.process-hero {
  position: relative !important;
  overflow: hidden !important;
}

/* ============================================================
   v5.1 — BUTTON VISIBILITY FIXES
   ============================================================ */

/* Ghost-dark — always visible on light backgrounds */
.btn-ghost-dark,
a.btn-ghost-dark {
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important;
  color: #111111 !important;
  border: 2px solid #111111 !important;
  padding: 14px 32px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}
.btn-ghost-dark:hover,
a.btn-ghost-dark:hover {
  background: #c0392b !important;
  color: #ffffff !important;
  border-color: #c0392b !important;
}

/* Ghost-white — only on dark backgrounds */
.btn-ghost-white,
a.btn-ghost-white {
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.7) !important;
  padding: 14px 32px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}
.btn-ghost-white:hover,
a.btn-ghost-white:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: #ffffff !important;
}

/* ── "The Result" section on process page ── */
section[style*="background:#f5f5f5"][style*="text-align:center"] .section-label {
  color: #e6b422 !important;
}

/* ============================================================
   v5.1 — RESPONSIVE MEDIA
   ============================================================ */
@media (max-width: 768px) {
  .vision-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .vision-media {
    aspect-ratio: 16/9 !important;
    width: 100% !important;
  }
  .step-media {
    aspect-ratio: 16/9 !important;
  }
  .video-item--large {
    grid-column: span 1 !important;
  }
  .photo-item--wide {
    grid-column: span 1 !important;
  }
}



/* ════════════════════════════════════════════
   MOBILE RESPONSIVENESS — COMPREHENSIVE FIX
   Targets all inline grids and overflow issues
   ════════════════════════════════════════════ */

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Fix all sections from bleeding off-screen */
section, footer, header, .gallery-section, .gallery-hero,
.about-hero, .about-story, .contact-body, .products-hero,
.products-section, .discover-section, .pillars-section {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ── WHY BUY CATFISH strips (homepage + gallery) ── */
@media (max-width: 900px) {
  /* Homepage dark green strip */
  div[style*="repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 520px) {
  div[style*="repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Why choose catfish on gallery page */
  div[style*="repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Homepage: Our Commitment stat grid ── */
@media (max-width: 768px) {
  /* The 2-col stat grid */
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:2px"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* The 2-col Our Commitment outer grid */
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:72px"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* Section inner padding */
  .section-inner { padding-left: 0 !important; padding-right: 0 !important; }
  .section { padding: 56px 20px !important; }
}

/* ── Gallery: Watch Us at Work photo strip ── */
@media (max-width: 768px) {
  div[style*="grid-template-columns:1fr 1fr 1fr"][style*="gap:3px"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:3px"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 480px) {
  div[style*="grid-template-columns:1fr 1fr 1fr"][style*="gap:3px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Gallery photo + video grids ── */
@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .photo-item--wide { grid-column: span 1 !important; }
  .video-grid { grid-template-columns: 1fr !important; }
  .video-item--large { grid-column: span 1 !important; }
  .gallery-section { padding: 48px 20px !important; }
}
@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr !important; }
}

/* ── Gallery Why Choose Catfish 2-col layout ── */
@media (max-width: 768px) {
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:72px"] {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
}

/* ── Products: Why Buy Catfish 3-col grid ── */
@media (max-width: 768px) {
  div[style*="grid-template-columns:repeat(3,1fr)"][style*="gap:3px"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  div[style*="grid-template-columns:repeat(3,1fr)"][style*="gap:3px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── About: Our Specialties 2-col grid ── */
@media (max-width: 640px) {
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:2px"][style*="background:rgba"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Hero sections: padding and sizing ── */
@media (max-width: 768px) {
  .gallery-hero { padding: 100px 20px 56px !important; min-height: 50vh; }
  .about-hero { padding: 100px 20px 56px !important; }
  .contact-hero { padding: 100px 20px 56px !important; }
  .products-hero { padding: 100px 20px 56px !important; }
  .hero-headline { font-size: clamp(44px, 12vw, 72px) !important; }
  .about-hero-headline { font-size: clamp(36px, 10vw, 60px) !important; }
  .gallery-hero-headline { font-size: clamp(36px, 10vw, 60px) !important; }
  .hero-content { padding: 0 20px !important; }
  .hero-actions { flex-direction: column !important; align-items: flex-start !important; }
}

/* ── Navigation ── */
@media (max-width: 768px) {
  .header-inner { padding: 0 20px !important; }
  .top-bar-inner { padding: 0 16px !important; }
  .top-contact-bar { padding: 0 !important; }
}

/* ── Footer ── */
@media (max-width: 768px) {
  .footer-inner { padding: 0 20px !important; }
  footer { padding: 48px 20px 24px !important; }
  div[style*="grid-template-columns:2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Contact grid ── */
@media (max-width: 768px) {
  .contact-grid { padding: 0 20px !important; gap: 40px !important; }
  .contact-body { padding: 48px 20px !important; }
}

/* ── Discover/quote section ── */
@media (max-width: 768px) {
  .discover-quote { font-size: clamp(20px, 5vw, 32px) !important; }
  .discover-inner { padding: 56px 20px !important; }
}

/* ── About story inner ── */
@media (max-width: 768px) {
  .about-story-inner { padding: 0 20px !important; }
  .about-story { padding: 48px 0 !important; }
}

/* ── Products section ── */
@media (max-width: 768px) {
  .products-section { padding: 48px 20px !important; }
}

/* ── General inline style overrides for mobile ── */
@media (max-width: 768px) {
  /* Fix any section with 60px horizontal padding */
  section[style*="padding:90px 60px"],
  section[style*="padding: 90px 60px"],
  section[style*="padding:64px 60px"],
  section[style*="padding:80px 60px"],
  section[style*="padding:48px 60px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  /* Fix inner divs with 60px padding */
  div[style*="padding:48px 60px"],
  div[style*="padding: 48px 60px"],
  div[style*="padding:80px 60px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ── Pillar stats section ── */
@media (max-width: 768px) {
  .pillars-grid { grid-template-columns: 1fr !important; }
  .pillars-section { padding: 56px 20px !important; }
  .pillar-stat { font-size: 56px !important; }
}

/* ── Vision grid (homepage who we are) ── */
@media (max-width: 768px) {
  .vision-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .vision-media { max-height: 280px !important; }
}

/* ── Process steps ── */
@media (max-width: 768px) {
  .process-step-inner { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* ── Founder card in about ── */
@media (max-width: 768px) {
  div[style*="max-width:300px"] { max-width: 100% !important; }
}

/* ── Values grid ── */
@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr !important; }
}

/* ── Buttons ── */
@media (max-width: 480px) {
  .btn-green, .btn-ghost-dark, .btn-gold, .btn-ghost-white {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
  div[style*="display:flex"][style*="gap:14px"] {
    flex-direction: column !important;
  }
}


/* ════════════════════════════════════════════
   HARD OVERFLOW CLAMP — prevents any element 
   from pushing page wider than viewport
   ════════════════════════════════════════════ */

html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Clamp ALL direct children of body */
body > * {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Fix inline-padded sections that use 60px on small screens */
@media (max-width: 600px) {
  section[style], div[style] {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Collapse ALL 4-col inline grids */
  div[style*="repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Collapse ALL 3-col inline grids */
  div[style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Collapse any 2-col inline grid with large gap */
  div[style*="gap:72px"],
  div[style*="gap: 72px"],
  div[style*="gap:90px"],
  div[style*="gap: 90px"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Fix section horizontal padding */
  section[style*="60px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  div[style*="60px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Fix gallery sections */
  .gallery-section {
    padding: 40px 16px !important;
  }

  /* Watch us at work photo strip */
  div[style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Founder photo card */
  div[style*="max-width:300px"],
  div[style*="max-width: 300px"] {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Why buy catfish on gallery page */
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:6px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Tablet: 601–768px ── */
@media (min-width: 601px) and (max-width: 768px) {
  div[style*="repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
  div[style*="repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
  }
  section[style*="60px"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  div[style*="60px"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* ── Video items: never overflow ── */
.video-item video,
.video-item iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* ── Images: never overflow ── */
img {
  max-width: 100% !important;
  height: auto;
}


/* ════════════════════════════════════════════
   TARGETED CLASS-BASED MOBILE FIXES
   More reliable than attribute selectors
   ════════════════════════════════════════════ */

/* Add class="resp-grid-4" to 4-col grids */
.resp-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; }
@media (max-width: 900px) { .resp-grid-4 { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 480px) { .resp-grid-4 { grid-template-columns: 1fr !important; } }

/* Add class="resp-grid-3" to 3-col grids */
.resp-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
@media (max-width: 768px) { .resp-grid-3 { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 480px) { .resp-grid-3 { grid-template-columns: 1fr !important; } }

/* Add class="resp-grid-2" to 2-col 50/50 grids */
.resp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .resp-grid-2 { grid-template-columns: 1fr !important; gap: 28px !important; } }

/* Add class="resp-section-pad" for sections with 60px padding */
.resp-section-pad { padding-left: 60px; padding-right: 60px; }
@media (max-width: 768px) { .resp-section-pad { padding-left: 20px !important; padding-right: 20px !important; } }
@media (max-width: 480px) { .resp-section-pad { padding-left: 16px !important; padding-right: 16px !important; } }

/* Add class="resp-inner" to max-width:1200px inner wrappers */
.resp-inner { max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) { .resp-inner { padding: 0 !important; } }
