/* ===============================
   GLOBAL
================================ */

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* =====================================================
   GLOBAL CONTENT PADDING FIX (NON-DESTRUCTIVE)
===================================================== */

.brands-page,
.brands-wrapper,
.brands-content,
.build-scale,
.our-verticals {
  padding-left: clamp(20px, 6vw, 90px);
  padding-right: clamp(20px, 6vw, 90px);
  box-sizing: border-box;
}


/* ===============================
   HERO + SLIDER
================================ */

.brands-hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.brands-hero .hero-slider div {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: brandsHero 18s ease-in-out infinite;
}

.brands-hero .hero-slider div:nth-child(1) {
  background-image: url('/roneemedia/assets/images/brands-roneemedia-1.jpg');
  animation-delay: 0s;
}
.brands-hero .hero-slider div:nth-child(2) {
  background-image: url('/roneemedia/assets/images/brands-roneemedia-2.jpg');
  animation-delay: 6s;
}
.brands-hero .hero-slider div:nth-child(3) {
  background-image: url('/roneemedia/assets/images/brands-roneemedia-3.jpg');
  animation-delay: 12s;
}

@keyframes brandsHero {
  0% { opacity: 0; }
  10% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.8)
  );
  z-index: 2;
}

.hero-center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content {
  max-width: 820px;
  padding: 0 24px;
}

/* ===============================
   BUILT FOR SCALE – ENHANCED
================================ */

.brands-intro {
  padding: 80px 0 100px; /* reduced top & balanced bottom */
  background: #ffffff;
}

.brands-intro h2 {
  font-size: 44px;
  color: #191660;
  margin-bottom: 24px;
}

.intro-lead {
  font-size: 20px;
  font-weight: 500;
  max-width: 880px;
  margin-bottom: 24px;
}

.brands-intro p {
  max-width: 900px;
  font-size: 17px;
  line-height: 1.75;
  color: #444;
}

/* COUNTERS */
.brand-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 48px;
  margin-top: 64px;
   margin-bottom: 10px; /* controls gap before Our Verticals */
}

.stat {
  text-align: center;
}

.stat .count {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: #191660;
}

.stat small {
  font-size: 14px;
  color: #666;
  font-weight: 700;
}

/* ===============================
   BUILT FOR SCALE – ENHANCED
================================ */

.brands-intro {
  padding: 10px 0 120px;
  background: #ffffff;
}

.brands-intro .container {
  text-align: center;
}

.brands-intro p,
.brands-intro .intro-lead {
  margin-left: auto;
  margin-right: auto;
}


.brands-intro h2 {
  font-size: 44px;
  color: #191660;
  margin-bottom: 24px;
}

.intro-lead {
  font-size: 20px;
  font-weight: 500;
  max-width: 880px;
  margin-bottom: 24px;
}

.brands-intro p {
  max-width: 900px;
  font-size: 17px;
  line-height: 1.75;
  color: #444;
}

/* COUNTERS */
.brand-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-top: 64px;

  background: #191660;
  padding: 48px 40px;
  border-radius: 1px;
}

.stat {
  text-align: center;
}

.stat .count {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
}

.stat small {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: #d6d6ff;
  font-weight: 700;
}



/* ===============================
   BRAND SECTIONS
================================ */

.brands-section {
  padding: 100px 0;
  background: #f7f9fc;
}

.brand-category {
  margin-bottom: 80px;
}

.category-header h3 {
  font-size: 28px;
  margin-bottom: 32px;
  color: #191660;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.brand-tile {
  background: #fff;
  height: 90px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ===============================
   CTA
================================ */

.brands-cta {
  padding: 100px 0;
  background: linear-gradient(120deg, #191660, #000);
  color: #fff;
}

.center {
  text-align: center;
}

.btn-primary {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 36px;
  border-radius: 999px;
  background: #7ed0fb;
  color: #191660;
  font-weight: 600;
  text-decoration: none;
}





/* ===============================
   OUR VERTICALS
================================ */

.verticals-section {
  padding: 10px 0 10px; /* ↓ reduced top, balanced bottom */
  background: #ffffff;
  
}

.verticals-title {
  font-size: 48px;
  font-weight: 700;
  color: #191660;
  margin-bottom: 48px; /* was 80px */
  position: relative;
}

.vertical-card:first-child {
  padding-top: 10px; /* instead of full 64px */
}


.verticals-title::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #7ed0fb;
  display: block;
  margin-top: 16px;
}

/* VERTICAL CARD */
.vertical-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  padding: 64px 0;
  border-bottom: 1px solid #eef1f6;
}

.vertical-card:last-child {
  border-bottom: none;
}

/* TEXT */
.vertical-content h3 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #191660;
}

.vertical-content p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 24px;
}

.vertical-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #555;
}

/* BUTTON */
.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid #191660;
  color: #191660;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
}

.btn-outline:hover {
  background: #191660;
  color: #fff;
  transform: translateY(-2px);
}

/* LOGOS */
.vertical-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  align-content: center;
}

.vertical-logos img {
  width: 100%;
  height: auto;
  background: #f5f7fb;
  padding: 16px;
  border-radius: 12px;
  transition: all .25s ease;
}

.vertical-logos img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* =====================================================
   SECTION SPACING FIX
===================================================== */

.build-scale {
  padding-top: 80px;
  padding-bottom: 80px;
}

.our-verticals {
  padding-top: 90px;
  padding-bottom: 110px;
}

.vertical-block {
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* =====================================================
   VERTICAL ICON SYSTEM
===================================================== */

.vertical-block h3 {
  position: relative;
  padding-left: 46px;
}

/* default icon */
.vertical-block h3::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 22px;
  color: #191660;
}

/* specific vertical icons */
.vertical-entertainment h3::before { content: "🎬"; }
.vertical-gaming h3::before { content: "🎮"; }
.vertical-social h3::before { content: "🔥"; }
.vertical-people h3::before { content: "🧑‍🤝‍🧑"; }
.vertical-world h3::before { content: "🌍"; }
.vertical-news h3::before { content: "📰"; }
.vertical-tools h3::before { content: "🛠️"; }
.vertical-lifestyle h3::before { content: "✨"; }
.vertical-shopping h3::before { content: "🛒"; }
.vertical-tech h3::before { content: "🧠"; }
.vertical-sports h3::before { content: "🏆"; }
.vertical-food h3::before { content: "🍔"; }
.vertical-travel h3::before { content: "✈️"; }
.vertical-education h3::before { content: "🎓"; }
.vertical-finance h3::before { content: "💰"; }
.vertical-health h3::before { content: "❤️"; }
.vertical-ai h3::before { content: "🤖"; }
.vertical-automotive h3::before { content: "🚗"; }
.vertical-martech h3::before { content: "📊"; }

/* =====================================================
   LOGO GRID SPACING IMPROVEMENT
===================================================== */

.vertical-logos {
  padding-left: 10px;
  padding-right: 10px;
}

/* ===============================
   VERTICAL FILTERS
================================ */

.vertical-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #191660;
  background: transparent;
  color: #191660;
  cursor: pointer;
  font-weight: 600;
  transition: all .25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #191660;
  color: #fff;
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
  .vertical-card {
    grid-template-columns: 1fr;
  }

  .verticals-title {
    font-size: 36px;
  }

  .vertical-content h3 {
    font-size: 26px;
  }
}

/* =====================================================
   NON-DESTRUCTIVE ADDITIONS (DO NOT REMOVE OLD CSS)
   Fixes: Verticals, Filters, Logos, Spacing
===================================================== */

/* ----- SECTION HEADINGS ----- */
.our-verticals h2 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.build-scale h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* ----- BUILD FOR SCALE TEXT ----- */
.build-scale p {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.92;
}

/* ----- VERTICAL FILTER BAR ----- */
.vertical-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 48px;
}

.vertical-filter button {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(25,22,96,.25);
  background: #fff;
  color: #191660;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}

.vertical-filter button:hover,
.vertical-filter button.active {
  background: #191660;
  color: #fff;
}

/* ----- INDIVIDUAL VERTICAL BLOCK ----- */
.vertical-block {
  margin-bottom: 72px;
}

.vertical-block h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.vertical-block p {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.9;
}

/* ----- BRAND LOGOS (NO LOOPS REQUIRED) ----- */
.vertical-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 24px;
}

.vertical-logos img {
  width: 150px;
  height: 86px;
  object-fit: contain;
  background: #f4f5f7;
  border-radius: 12px;
  padding: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.vertical-logos img:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

/* ----- RESPONSIVE FIXES ----- */
@media (max-width: 900px) {
  .our-verticals h2 {
    font-size: 34px;
  }

  .vertical-block h3 {
    font-size: 22px;
  }

  .vertical-logos img {
    width: 120px;
    height: 72px;
  }
}

@media (max-width: 560px) {
  .vertical-logos {
    justify-content: center;
  }
}

/* =====================================================
   FINAL GLOBAL WIDTH + CENTER FIX (SAFE)
===================================================== */

.brands-page,
.brands-wrapper,
.brands-content,
.build-scale,
.our-verticals,
.verticals-section,
.vertical-card,
.vertical-block {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure inner content breathes */
.build-scale,
.our-verticals,
.verticals-section {
  padding-left: clamp(24px, 6vw, 96px);
  padding-right: clamp(24px, 6vw, 96px);
}

/* =====================================================
   VERTICAL ICONS – FORCE VISIBILITY
===================================================== */

.vertical-block h3 {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Override any collapse */
.vertical-block h3::before {
  position: static;
  font-size: 26px;
  line-height: 1;
}
/* =====================================================
   BRAND LOGO SPACING – FINAL
===================================================== */

.vertical-logos {
  gap: 32px !important;
}

.vertical-logos img {
  margin: 6px;
}
/* =====================================================
   FILTER BAR ALIGNMENT FIX
===================================================== */

.vertical-filter,
.vertical-filters {
  justify-content: center;
}

/* ===============================
   BUILT FOR SCALE – FINAL CENTER FIX
================================ */

.build-scale {
  text-align: center;
}

.build-scale h2 {
  font-size: 44px;
  font-weight: 800;
  color: #191660;
  margin-bottom: 18px;
}

.build-scale p {
  margin-left: auto;
  margin-right: auto;
  max-width: 880px;
}

/* =========================================
   COUNTERS STRIP STYLING
========================================= */

.brand-counters,
.counters,
.stats-row {
  background: #191660;
  padding: 48px 24px;
  border-radius: 18px;
  margin: 40px auto 0;
}

.brand-counters *,
.counters *,
.stats-row * {
  color: #ffffff !important;
}

.brand-counters h3,
.counters h3,
.stats-row h3 {
  font-size: 42px;
  font-weight: 700;
}

.brand-counters span,
.counters span,
.stats-row span {
  opacity: 0.85;
  font-size: 14px;
  letter-spacing: 0.4px;
}

/* =====================================================
   RESPONSIVE MEDIA QUERIES – SAFE ADDITIONS ONLY
===================================================== */

/* ---------- TABLETS (≤ 1024px) ---------- */
@media (max-width: 1024px) {

  .brands-intro {
    padding: 64px 0 80px;
  }

  .brands-intro h2 {
    font-size: 38px;
  }

  .intro-lead {
    font-size: 18px;
  }

  .brand-stats {
    gap: 32px;
    padding: 40px 28px;
  }

  .stat .count {
    font-size: 40px;
  }

  .vertical-card {
    gap: 40px;
  }

  .vertical-content h3 {
    font-size: 26px;
  }

  .verticals-title {
    font-size: 38px;
    margin-bottom: 40px;
  }
}


/* ---------- MOBILE (≤ 768px) ---------- */
@media (max-width: 768px) {

  /* GLOBAL SIDE PADDING */
  .brands-page,
  .brands-wrapper,
  .brands-content,
  .build-scale,
  .our-verticals,
  .verticals-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* BUILT FOR SCALE */
  .brands-intro {
    padding: 48px 0 64px;
  }

  .brands-intro h2 {
    font-size: 32px;
  }

  .intro-lead {
    font-size: 16px;
  }

  .brands-intro p {
    font-size: 15px;
  }

  /* COUNTERS */
  .brand-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px 20px;
  }

  .stat .count {
    font-size: 34px;
  }

  .stat small {
    font-size: 13px;
  }

  /* VERTICAL FILTER BAR */
  .vertical-filter,
  .vertical-filters {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* VERTICAL SECTIONS */
  .vertical-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0;
  }

  .vertical-content h3 {
    font-size: 22px;
  }

  .vertical-content p {
    font-size: 15px;
  }

  /* LOGOS */
  .vertical-logos {
    justify-content: center;
    gap: 20px;
  }

  .vertical-logos img {
    width: 120px;
    height: 70px;
  }

  /* HEADERS */
  .verticals-title {
    font-size: 32px;
    margin-bottom: 32px;
  }
}


/* ---------- SMALL MOBILE (≤ 480px) ---------- */
@media (max-width: 480px) {

  .brands-intro h2 {
    font-size: 28px;
  }

  .intro-lead {
    font-size: 15px;
  }

  .brands-intro p {
    font-size: 14px;
  }

  .brand-stats {
    grid-template-columns: 1fr;
  }

  .stat .count {
    font-size: 32px;
  }

  .vertical-content h3 {
    font-size: 20px;
  }

  .verticals-title {
    font-size: 28px;
  }

  .btn-outline {
    padding: 10px 22px;
    font-size: 14px;
  }
}


/* =====================================================
   MOBILE FILTER – FINAL STABLE FIX (2 ROW SCROLL)
===================================================== */

@media (max-width: 768px) {

  /* Parent must not clip */
  .our-verticals,
  .verticals-section {
    overflow: visible !important;
  }

  /* Scroll viewport */
  .vertical-filter,
  .vertical-filters {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;

    padding: 12px 0;

    -webkit-overflow-scrolling: touch;
  }

  /* Inner grid (2 rows) */
  .vertical-filter-inner {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: max-content;

    gap: 12px;
    padding: 0 16px;
    width: max-content;
  }

  .filter-btn {
    white-space: nowrap;
  }

  .vertical-filter::-webkit-scrollbar {
    display: none;
  }
}

/* =====================================================
   MOBILE FILTER – SIMPLE STACKED LAYOUT (FINAL)
===================================================== */

@media (max-width: 768px) {

  /* Filter wrapper */
  .vertical-filter,
  .vertical-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;

    gap: 10px 10px;           /* spacing between pills */
    padding: 8px 4px 0;
    margin: 0;
  }

  /* Individual pills */
  .vertical-filter button,
  .vertical-filters button,
  .filter-btn {
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;

    white-space: nowrap;
    line-height: 1.2;
  }

  /* Section spacing */
  .our-verticals {
    padding-top: 40px;
  }

  .verticals-title {
    margin-bottom: 28px;
  }
}


/* =====================================================
   TABLET BREAKPOINT – STACK LOGOS BELOW CONTENT
   (≤ 1150px)
===================================================== */

@media (max-width: 1150px) {

  .vertical-card {
    grid-template-columns: 1fr;   /* single column */
    gap: 40px;
  }

  /* Ensure content stays on top */
  .vertical-content {
    order: 1;
  }

  /* Logos move below Explore button */
  .vertical-logos {
    order: 2;
  }

}

/* =========================================
   BRANDS HERO - REFINED STYLE
   ========================================= */

.brands-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ensure the center content is layered correctly */
.brands-hero .hero-center {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Heading Styling (Our Brands) */
.brands-hero .hero-content h1 {
    font-size: clamp(3rem, 7vw, 5rem); /* Responsive sizing */
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out;
}

/* Paragraph Styling (Description) */
.brands-hero .hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 1.2s ease-out;
}

/* Slider Image Fix (To ensure they cover the area) */
.brands-hero .hero-slider div {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Simple Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE FIXES
   ========================================= */

@media (max-width: 768px) {
    .brands-hero {
        height: 75vh;
        min-height: 550px;
    }

    .brands-hero .hero-content h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .brands-hero .hero-content p {
        font-size: 1.15rem;
        padding: 0 10px;
    }
}