/* =========================================
   MEGAMINE SOLUTION AFRICA
   Main Stylesheet
========================================= */


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

:root {
  --navy: #111a32;
  --lime: #b4d83d;
  --text: #1b2638;
  --muted: #667085;
  --border: #e8ebf0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

/* TOP BAR */

.topbar {
  height: 38px;
  padding: 0 4%;
  background: rgb(211, 93, 2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.topbar > a {
  font-size: 17px;
  font-weight: bold;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar a:hover {
  color: var(--lime);
}

/* MAIN NAVBAR */

.navbar {
  min-height: 92px;
  padding: 12px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: white;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav-left {
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: 190px;
  max-height: 65px;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
}

.nav-item {
  position: relative;
}

.nav-link {
  border: none;
  background: none;
  color: rgb(63, 63, 63);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .25s;
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
  color: #e06703;
}

.arrow {
  font-size: 17px;
  transition: transform .25s;
}

.nav-link[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

/* CONTACT BUTTON */

.nav-button {
  padding: 15px 20px;
  background: var(--navy);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  transition: background .25s, transform .25s;
}

.nav-button span {
  color: var(--lime);
}

.nav-button:hover {
  background: #25334c;
  transform: translateY(-2px);
}

/* SOLUTIONS MEGA MENU */

.mega-menu {
  border-top: 2px solid orangered;
  position: absolute;
  top: calc(100% + 28px);
  left: 75%;
  width: min(1250px, calc(100vw - 40px));
  padding: 24px;
  background: rgb(254, 254, 254);
  /* border: 1px solid var(--border); */
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(17, 26, 50, .13);

  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);

  transition: opacity .25s, transform .3s, visibility .25s;
}

.nav-item.open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-heading {
  padding: 22px 18px;
  background-color: rgb(255, 77, 0);
  color: white;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mega-heading > span {
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: bold;
}

.mega-heading h2 {
  margin: 22px 0 14px;
  font-size: 18px;
  line-height: 1.3;
}

.mega-heading p {
  font-size: 12px;
  line-height: 1.8;
  color: #d0d7e4;
}

.mega-heading > a {
  margin-top: auto;
  padding-top: 22px;
  color: var(--lime);
  font-size: 12px;
  font-weight: bold;
}

/* SOLUTION CARDS */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.solution {
  min-width: 0;
  padding: 12px 9px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  transition: background .2s, border-color .2s, transform .2s;
}

.solution:hover {
  background: #f7f9f2;
  border-color: #e3e9d3;
  transform: translateY(-2px);
}

.solution img {
  width: 62px;
  height: 58px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 7px;
  background: #f5f6f8;
}

.solution h3 {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 6px;
  font-weight: 700;
}

.solution p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}

/* INDUSTRIES DROPDOWN */

.dropdown-menu {
  position: absolute;
  top: calc(100% + 28px);
  left: -20px;
  width: 240px;
  padding: 9px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(17, 26, 50, .12);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
}

.nav-item.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 13px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s, color .2s;
}

.dropdown-menu a:hover {
  background: #f4f7eb;
  color: #648416;
}

/* MOBILE ELEMENTS */

.menu-toggle,
.mobile-close,
.mobile-contact {
  display: none;
}

/* TABLET AND MOBILE */

.overlay {
  display: none;
}

@media (max-width: 1100px) {
  .navbar {
    padding: 12px 3%;
    gap: 18px;
  }

  .logo img {
    width: 155px;
  }

  .nav-right {
    gap: 16px;
  }

  .nav-link {
    font-size: 12px;
  }

  .nav-button {
    padding: 13px;
    gap: 10px;
    font-size: 12px;
  }

  .mega-menu {
    width: min(950px, calc(100vw - 24px));
    grid-template-columns: 175px 1fr;
    padding: 16px;
    gap: 12px;
  }

  .solutions-grid {
    gap: 4px;
  }

  .solution {
    gap: 7px;
    padding: 9px 5px;
  }

  .solution img {
    width: 45px;
    height: 48px;
  }

  .solution h3 {
    font-size: 10px;
  }

  .solution p {
    font-size: 9px;
  }
}

/* LEFT-SLIDING MOBILE MENU */

@media (max-width: 800px) {
  .topbar {
    height: 34px;
    padding: 0 20px;
  }

  .topbar-right {
    gap: 16px;
  }

  .topbar-right span {
    display: none;
  }

  .navbar {
    min-height: 76px;
    padding: 10px 20px;
  }

  .logo img {
    width: 165px;
    max-height: 54px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 19px;
    height: 2px;
    background: var(--navy);
    border-radius: 5px;
    transition: transform .25s;
  }

  .menu-toggle.active span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(8, 15, 30, .55);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s, visibility .3s;
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-right {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: min(390px, 88vw);
    height: 100vh;
    height: 100dvh;
    padding: 22px 20px 30px;
    background: white;
    border-radius: 0 20px 20px 0;
    box-shadow: 15px 0 50px rgba(0, 0, 0, .12);

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;

    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1),
                visibility .4s;
  }

  .nav-right.active {
    transform: translateX(0);
    visibility: visible;
  }

  .mobile-close {
    display: block;
    align-self: flex-end;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    background: #f5f7fa;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    min-height: 54px;
    justify-content: space-between;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
  }

  .nav-right > .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .nav-button {
    margin-top: 22px;
    min-height: 50px;
    padding: 15px;
    justify-content: space-between;
    font-size: 13px;
  }

  /* Mobile dropdowns open inside the drawer */

  .mega-menu,
  .dropdown-menu {
    position: static;
    width: 100%;
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;

    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #f8f9fb;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: max-height .35s ease;
  }

  .nav-item.open .mega-menu,
  .nav-item.open .dropdown-menu {
    transform: none;
  }

  .mega-heading {
    display: none;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px;
  }

  .solution {
    padding: 9px;
    gap: 12px;
    border-radius: 9px;
  }

  .solution img {
    width: 48px;
    height: 44px;
  }

  .solution h3 {
    font-size: 11px;
  }

  .solution p {
    font-size: 10px;
  }

  .dropdown-menu a {
    padding: 14px 12px;
    font-size: 12px;
  }

  .mobile-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
  }

  .mobile-contact p {
    color: var(--muted);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
  }

  .mobile-contact a {
    font-size: 12px;
    font-weight: 600;
  }

  .mobile-contact a:last-child {
    color: #668817;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* ###################################################### about main starts here */






/* ========================================
   MEGAMINE - OUR BRANDS PAGE
======================================== */

.brands-page {
    --brand-orange: #c65b2a;
    --brand-orange-dark: #a9471d;
    --brand-charcoal: #292b2d;
    --brand-muted: #737983;
    --brand-border: #e6e7e8;
    --brand-soft: #f6f6f4;
    --brand-white: #ffffff;
    --brand-container: 1320px;

    color: var(--brand-charcoal);
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

.brands-page *,
.brands-page *::before,
.brands-page *::after {
    box-sizing: border-box;
}

.brands-page a {
    text-decoration: none;
}

.brands-container {
    width: 1100px;
    margin:0 auto;
    /* background-color: red; */
}

.brands-section-label {
    display: inline-block;
    color: var(--brand-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.6;
}

.brands-page h1,
.brands-page h2,
.brands-page h3,
.brands-page p {
    margin-top: 0;
}


/* ========================================
   HERO
======================================== */

.brands-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 590px;
    background: #202326;
    color: var(--brand-white);
    overflow: hidden;
}

.brands-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("pics/hero3.jpg");
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.brands-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(25, 28, 31, 0.96) 0%,
        rgba(25, 28, 31, 0.84) 48%,
        rgba(25, 28, 31, 0.35) 100%
    );
}

.brands-hero-content {
    padding-top: 80px;
    padding-bottom: 85px;
}

.brands-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: #f0c2a9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.brands-eyebrow > span {
    width: 30px;
    height: 2px;
    background: var(--brand-orange);
}

.brands-hero h1 {
    max-width: 800px;
    margin-bottom: 22px;
    font-size: clamp(40px, 5.4vw, 70px);
    /* font-weight: 700; */
    font-family: poppins;
    line-height: 1.12;
    letter-spacing: -2.5px;
}

.brands-hero h1 span {
    color: #e18b61;
}

.brands-hero-content > p {
    max-width: 610px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.9;
}

.brands-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.brands-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    min-height: 54px;
    padding: 0 24px;
    background: var(--brand-orange);
    color: var(--brand-white);
    font-size: 12px;
    font-weight: 700;
    transition: background 0.25s ease,
                transform 0.25s ease;
}

.brands-btn:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-2px);
}

.brands-btn span {
    font-size: 18px;
}

.brands-text-link {
    color: var(--brand-white);
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 6px;
}

.brands-text-link:hover {
    color: #e18b61;
}

.brands-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 55px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.brands-breadcrumb a {
    color: var(--brand-white);
}

.brands-breadcrumb span:nth-child(2) {
    color: var(--brand-orange);
}

.brands-hero-caption {
    position: absolute;
    right: 32px;
    bottom: 0;
    left: 32px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.4px;
}


/* ========================================
   INTRODUCTION
======================================== */

.brands-intro {
    padding: 100px 0;
    background: var(--brand-white);
}

.brands-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.brands-intro-heading h2 {
    max-width: 480px;
    margin: 18px 0 0;
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -1.4px;
}

.brands-intro-heading h2 span,
.brands-benefits-heading h2 span,
.brands-cta h2 span {
    color: var(--brand-orange);
}

.brands-intro-copy p {
    margin-bottom: 18px;
    color: var(--brand-muted);
    font-size: 14px;
    line-height: 1.95;
}

.brands-intro-copy p:last-child {
    margin-bottom: 0;
}


/* ========================================
   BRAND PORTFOLIO
======================================== */

.brands-portfolio {
    padding: 95px 0 100px;
    background: var(--brand-soft);
}

.brands-portfolio-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 42px;
}

.brands-portfolio-heading h2 {
    margin: 14px 0 12px;
    font-size: clamp(30px, 3.5vw, 42px);
    line-height: 1.2;
    letter-spacing: -1px;
}

.brands-portfolio-heading p {
    max-width: 560px;
    margin-bottom: 0;
    color: var(--brand-muted);
    font-size: 13px;
    line-height: 1.8;
}

.brands-portfolio-count {
    flex-shrink: 0;
    padding-bottom: 5px;
    color: var(--brand-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.brand-card {
    min-width: 0;
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(41, 43, 45, 0.09);
}

.brand-card-image {
    position: relative;
    height: 205px;
    overflow: hidden;
    background: #e8e7e3;
}

.brand-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.brand-card:hover .brand-card-image img {
    transform: scale(1.06);
}

.brand-category {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 10px;
    background: var(--brand-orange);
    color: var(--brand-white);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-card-content {
    padding: 22px 20px 24px;
}

.brand-logo-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    width: 100%;
    min-height: 74px;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px dashed #c7c9ca;
    background: #fafafa;
    color: #777b7e;
}

.brand-logo-placeholder > span {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 2px;
}

.brand-logo-placeholder small {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.brand-card-label {
    display: block;
    margin-bottom: 10px;
    color: var(--brand-orange);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.6;
}

.brand-card-content h3 {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}

.brand-card-content p {
    min-height: 78px;
    margin-bottom: 20px;
    color: var(--brand-muted);
    font-size: 12px;
    line-height: 1.8;
}

.brand-card-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--brand-border);
    color: var(--brand-charcoal);
    font-size: 10px;
    font-weight: 700;
}

.brand-card-link span {
    color: var(--brand-orange);
    font-size: 17px;
    transition: transform 0.2s ease;
}

.brand-card-link:hover {
    color: var(--brand-orange);
}

.brand-card-link:hover span {
    transform: translate(3px, -3px);
}

.brands-disclaimer {
    margin: 24px 0 0;
    color: var(--brand-muted);
    font-size: 11px;
    line-height: 1.8;
}


/* ========================================
   WHY MEGAMINE
======================================== */

.brands-benefits {
    padding: 100px 0;
    background: var(--brand-white);
}

.brands-benefits-heading {
    max-width: 750px;
    margin-bottom: 55px;
}

.brands-benefits-heading h2 {
    margin: 15px 0 0;
    font-size: clamp(30px, 3.5vw, 43px);
    line-height: 1.3;
    letter-spacing: -1.2px;
}

.brands-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--brand-border);
    border-bottom: 1px solid var(--brand-border);
}

.brands-benefit {
    padding: 35px 35px 35px 0;
}

.brands-benefit + .brands-benefit {
    padding-left: 35px;
    border-left: 1px solid var(--brand-border);
}

.brands-benefit-number {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 700;
}

.brands-benefit h3 {
    margin-bottom: 14px;
    font-size: 18px;
}

.brands-benefit p {
    max-width: 320px;
    margin-bottom: 0;
    color: var(--brand-muted);
    font-size: 12px;
    line-height: 1.9;
}


/* ========================================
   CALL TO ACTION
======================================== */

.brands-cta {
    padding: 75px 0;
    background: var(--brand-charcoal);
    color: var(--brand-white);
}

.brands-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.brands-cta .brands-section-label {
    color: #e18b61;
}

.brands-cta h2 {
    max-width: 680px;
    margin: 16px 0;
    font-size: clamp(30px, 3.5vw, 43px);
    line-height: 1.25;
    letter-spacing: -1.2px;
}

.brands-cta h2 span {
    color: #e18b61;
}

.brands-cta p {
    max-width: 650px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.9;
}

.brands-btn-light {
    flex-shrink: 0;
    min-width: 190px;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1050px) {

    .brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-card-image {
        height: 240px;
    }

    .brands-intro-grid {
        gap: 50px;
    }

    .brands-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 650px) {

    .brands-container {
        width: calc(100% - 40px);
    }

    .brands-hero {
        min-height: 600px;
    }

    .brands-hero-content {
        padding: 45px 30px;
        padding-bottom: 90px;
    }

    .brands-hero h1 {
        font-size: clamp(37px, 10vw, 50px);
        letter-spacing: -1.6px;
    }

    .brands-hero-content > p {
        font-size: 13px;
    }

    .brands-hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .brands-breadcrumb {
        margin-top: 40px;
    }

    .brands-hero-caption {
        right: 20px;
        left: 20px;
        flex-direction: column;
        gap: 8px;
        font-size: 8px;
    }

    .brands-intro,
    .brands-portfolio,
    .brands-benefits {
        padding: 70px 0;
    }

    .brands-intro-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .brands-intro-heading h2 {
        font-size: 34px;
    }

    .brands-portfolio-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .brands-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .brand-card-image {
        height: 230px;
    }

    .brand-card-content p {
        min-height: auto;
    }

    .brands-benefits-heading h2 {
        font-size: 32px;
    }

    .brands-benefits-grid {
        grid-template-columns: 1fr;
    }

    .brands-benefit {
        padding: 28px 0;
    }

    .brands-benefit + .brands-benefit {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--brand-border);
    }

    .brands-benefit-number {
        margin-bottom: 18px;
    }

    .brands-cta {
        padding: 65px 0;
    }

    .brands-cta h2 {
        font-size: 32px;
    }

    .brands-btn-light {
        width: 100%;
    }
}


/* ========================================
   REDUCED MOTION ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
    .brands-page *,
    .brands-page *::before,
    .brands-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}





/* ################################################# logo carousel */



/* =================================
   MEGAMINE LOGO CAROUSEL
================================= */

.partner-carousel {
    --orange: #c65b2a;
    --charcoal: #292b2d;
    --muted: #737983;
    --border: #e6e7e8;
    --container: 1320px;

    padding: 85px 0;
    background: #ffffff;
    color: var(--charcoal);
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

.partner-carousel *,
.partner-carousel *::before,
.partner-carousel *::after {
    box-sizing: border-box;
}

.partner-container {
    width: min(var(--container), calc(100% - 64px));
    margin: 0 auto;
}

/* Heading */

.partner-heading {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.partner-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--orange);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.partner-heading h2 {
    margin: 0 0 15px;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -1.2px;
}

.partner-heading h2 span {
    color: var(--orange);
}

.partner-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

/* Carousel viewport */

.logo-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;

    /* Soft fade at both ends */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );

    mask-image: linear-gradient(
        to right,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );
}

/* Moving track */

.logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: logo-scroll 32s linear infinite;
}

/* Pause on hover or keyboard focus */

.logo-carousel:hover .logo-track,
.logo-carousel:focus-within .logo-track {
    animation-play-state: paused;
}

/* Individual logo */

.logo-slide {
    display: flex;
    flex: 0 0 220px;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 25px 38px;
    margin-right: 12px;
    border-right: 1px solid var(--border);
}

.logo-slide img {
    display: block;
    width: 100%;
    max-width: 145px;
    height: 65px;
    object-fit: contain;

    /* filter: grayscale(100%); */
    opacity: 0.65;

    transition:
        filter 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.logo-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.06);
}

/* Seamless movement:
   The duplicated logos make up the second half. */

@keyframes logo-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Bottom caption */

.partner-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 35px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: center;
}

.partner-footer-line {
    width: 35px;
    height: 1px;
    background: var(--orange);
}

/* Tablet */

@media (max-width: 768px) {
    .partner-carousel {
        padding: 65px 0;
    }

    .partner-container {
        width: calc(100% - 40px);
    }

    .partner-heading {
        margin-bottom: 35px;
    }

    .logo-slide {
        flex-basis: 175px;
        height: 100px;
        padding: 20px 28px;
    }

    .logo-slide img {
        max-width: 120px;
        height: 55px;
    }

    .logo-track {
        animation-duration: 25s;
    }
}

/* Small mobile */

@media (max-width: 480px) {
    .partner-heading h2 {
        font-size: 29px;
        letter-spacing: -0.8px;
    }

    .partner-heading p {
        font-size: 12px;
    }

    .logo-slide {
        flex-basis: 150px;
        height: 90px;
        padding: 18px 23px;
    }

    .logo-slide img {
        max-width: 105px;
        height: 48px;
    }

    .partner-footer {
        gap: 10px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .partner-footer-line {
        width: 20px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .logo-track {
        animation: none;
        transform: none;
    }

    .logo-carousel {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .logo-slide {
        flex-basis: 150px;
    }
}





/* the footer starts here */

/* =========================================
   FOOTER
========================================= */

.site-footer {
    position: relative;

    width: 100%;

    background: #282828;

    color: #ffffff;

    overflow: hidden;
}


/* =========================================
   BACKGROUND IMAGE
========================================= */

.footer-bg {
    position: absolute;

    inset: 0;

    background-image:
        url("pics/Calm.png");

    background-size: cover;

    background-position: center;

    opacity: .18;

    transform: scale(1.02);
}


.footer-overlay {
    position: absolute;

    inset: 0;

    background-color: rgba(41, 41, 41, 0.65);
}


/* =========================================
   MAIN CONTAINER
========================================= */

.footer-container {
    position: relative;
    z-index: 2;

    width: min(1100px, 90%);

    margin: 0 auto;

    padding: 95px 0 75px;

    display: grid;

    grid-template-columns:
        1.35fr
        .75fr
        1fr
        1fr;

    gap: 55px;
}


/* =========================================
   COMPANY
========================================= */

.footer-company {
    max-width: 290px;
}


/* =========================================
   LOGO
========================================= */

.footer-logo {
    display: inline-flex;

    flex-direction: column;

    text-decoration: none;

    margin-bottom: 25px;
}


.logo-main {
    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 30px;

    font-weight: 600;

    letter-spacing: 4px;

    line-height: 1;
}


.logo-sub {
    margin-top: 7px;

    color: #d8a928;

    font-family: Arial, sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 3px;
}


/* =========================================
   DESCRIPTION
========================================= */

.footer-description {
    margin: 0;

    color: #c8d0dc;

    font-family: Arial, sans-serif;

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================
   OFFICE HOURS
========================================= */

.footer-hours {
    margin-top: 28px;

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.footer-hours span {
    color: #d8a928;

    font-size: 12px;

    font-weight: 600;
}


.footer-hours strong {
    color: #ffffff;

    font-family: Arial, sans-serif;

    font-size: 12px;

    font-weight: 500;
}


/* =========================================
   COLUMN HEADINGS
========================================= */

.footer-column h3 {
    position: relative;

    margin: 0 0 25px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 21px;

    font-weight: 500;
}


.footer-column h3::after {
    content: "";

    display: block;

    width: 35px;

    height: 2px;

    margin-top: 12px;

    background: #d8a928;
}


/* =========================================
   LINKS
========================================= */

.footer-links {
    list-style: none;

    padding: 0;
    margin: 0;

    display: flex;

    flex-direction: column;

    gap: 13px;
}


.footer-links li {
    margin: 0;
}


.footer-links a {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #c8d0dc;

    text-decoration: none;

    font-family: Arial, sans-serif;

    font-size: 12px;

    line-height: 1.5;

    transition:
        color .3s ease,
        transform .3s ease;
}


.footer-links a i {
    color: #d8a928;

    font-size: 8px;

    transition:
        transform .3s ease;
}


.footer-links a:hover {
    color: #ffffff;

    transform: translateX(4px);
}


.footer-links a:hover i {
    transform: translateX(3px);
}


/* =========================================
   CONTACT
========================================= */

.contact-list {
    list-style: none;

    padding: 0;
    margin: 0;

    display: flex;

    flex-direction: column;

    gap: 18px;
}


.contact-list li {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    color: #c8d0dc;

    font-family: Arial, sans-serif;

    font-size: 12px;

    line-height: 1.6;
}


.contact-list li > i {
    width: 18px;

    margin-top: 3px;

    color: #d8a928;

    font-size: 13px;
}


.contact-list a {
    display: block;

    color: #c8d0dc;

    text-decoration: none;

    transition: color .3s ease;
}


.contact-list a:hover {
    color: #ffffff;
}


/* =========================================
   SOCIALS
========================================= */

.footer-socials {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 30px;
}


.footer-socials a {
    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(216, 169, 40, .45);

    border-radius: 50%;

    color: #ffffff;

    text-decoration: none;

    font-size: 12px;

    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .3s ease;
}


.footer-socials a:hover {
    background: #d8a928;

    border-color: #d8a928;

    color: #061b3b;

    transform: translateY(-4px);
}


/* =========================================
   FOOTER BOTTOM
========================================= */

.footer-bottom {
    position: relative;

    z-index: 2;

    border-top:
        1px solid rgba(255,255,255,.1);
}


.footer-bottom-container {
    width: min(1100px, 90%);

    margin: 0 auto;

    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.footer-bottom p {
    margin: 0;

    color: #8f9aaa;

    font-family: Arial, sans-serif;

    font-size: 11px;
}


.footer-legal {
    display: flex;

    align-items: center;

    gap: 25px;
}


.footer-legal a {
    color: #8f9aaa;

    text-decoration: none;

    font-family: Arial, sans-serif;

    font-size: 11px;

    transition: color .3s ease;
}


.footer-legal a:hover {
    color: #d8a928;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

    .footer-container {
        grid-template-columns: 1fr 1fr;

        gap: 55px 45px;
    }

    .footer-company {
        max-width: 360px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .footer-container {
        width: 90%;

        padding: 70px 0 55px;

        grid-template-columns: 1fr;

        gap: 45px;
    }

    .footer-company {
        max-width: 100%;
    }

    .footer-bottom-container {
        width: 90%;

        padding: 20px 0;

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

    .footer-legal {
        flex-wrap: wrap;

        gap: 15px;
    }

}

/* =========================================================
   FINAL CLEANUP / RESPONSIVE FIXES
   ========================================================= */

/* Keep navigation above the hero without affecting layout */


/* Make the service icon a real, consistent component */
.service-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border: 1px solid rgba(9, 40, 93, .08);
}

/* Prevent shared labels from fighting each other */
.about-section .section-label {
    color: #ffae00;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.intro-section .section-label {
    color: #555;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.about-section .section-label::before,
.intro-section .section-label::before {
    display: none;
}

/* Better image sizing */
.videocontainer {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.videocontainer img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}



/* Prevent long text from causing horizontal overflow */
body {
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1000px) {
       .about-container {
        gap: 55px;
    }

    .contact-card {
        width: min(80%, 520px);
    }

    .expertise-header,
    .vm-header,
    .partners-header {
        gap: 40px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 6vw;
    }

    .logo-img {
        width: 125px;
    }

    .hero {
        height: 100svh;
        min-height: 620px;
    }

    .hero-content {
        width: 88%;
        margin: 0 auto;
        padding-top: 180px;
    }



    .hero-content p {
        max-width: 500px;
        margin-top: 22px;
        font-size: 14px;
        line-height: 1.65;
    }

    .hero-buttons {
        align-items: center;
        margin-top: 28px;
    }

    .primary-btn,
    .secondary-btn {
        width: min(100%, 280px);
        justify-content: center;
    }

    .slider-controls {
        right: 50%;
        transform: translateX(50%);
        bottom: 24px;
        width: 88%;
        justify-content: center;
        gap: 14px;
    }

    .slide-indicators {
        gap: 10px;
    }

    .indicator-line {
        width: 28px;
    }

    /* About */
    .about-section {
        padding: 75px 20px 85px;
    }

    .about-container {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .main-image {
        height: 430px;
    }

    .contact-card {
        left: 20px;
        bottom: 180px;
        width: calc(100% - 40px);
        max-width: none;
        padding: 10px;
    }

    .contact-image {
        width: 85px;
        height: 65px;
    }

    .contact-info {
        padding-left: 12px;
    }

    .small-images {
        gap: 12px;
        margin-top: 45px;
    }

    .small-image {
        height: 145px;
    }

    .about-content h2 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .stats-container {
        margin-top: 75px;
    }

    /* Intro */
    .intro-section {
        padding: 75px 6vw 70px;
    }

    .intro-main {
        gap: 35px;
    }

    .intro-heading h2 {
        font-size: clamp(38px, 11vw, 58px);
    }

    .intro-tags {
        justify-content: flex-start;
    }

    /* Expertise */
    .expertise-section,
    .vision-mission-section,
    .partners-section {
        padding: 75px 0;
    }

    .expertise-container,
    .vm-container,
    .partners-container {
        width: 90%;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .expertise-card:last-child {
        grid-column: auto;
    }

    .expertise-card {
        min-height: 0;
    }

    /* Vision / Mission */
    .vm-header {
        margin-bottom: 45px;
    }

    .vm-header > p {
        margin-left: 0;
        padding-left: 55px;
    }

    .vm-cards {
        grid-template-columns: 1fr;
    }

    .vm-card {
        min-height: 0;
    }

    .vm-image {
        min-height: 360px;
        height: 70vw;
    }

    /* FAQ / contact */
    .faq-contact-section {
        padding: 75px 0;
    }

    .faq-contact-container {
        width: 90%;
        gap: 45px;
    }

    .faq-intro {
        margin-left: 0;
    }

    .inquiry-panel {
        padding: 30px 24px;
    }

    /* Insights */
    .insights-section {
        padding: 75px 0;
    }

    .insights-container {
        width: 90%;
    }

    .videocontainer img {
        min-height: 320px;
    }

    /* Partners */
    .partners-header {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 55px;
    }

    .partners-heading h2 {
        font-size: clamp(36px, 10vw, 50px);
    }

    /* Footer */
    .footer-container {
        width: 90%;
    }
}

/* Small phones */
@media (max-width: 480px) {


    .hero-label {
        font-size: 10px;
        letter-spacing: 1.5px;
    }



    .hero-content p {
        font-size: 13px;
    }

    .main-image {
        height: 360px;
    }

    .contact-card {
        bottom: 150px;
    }

    .small-images {
        grid-template-columns: 1fr;
    }

    .small-image {
        height: 180px;
    }

    .image-caption {
        width: 80%;
    }

    .faq-question {
        padding: 19px 18px;
        font-size: 14px;
    }

    .faq-answer p {
        padding-left: 18px;
        padding-right: 18px;
    }

    .faq-item.active .faq-answer p {
        padding-left: 18px;
        padding-right: 18px;
    }

    .inquiry-panel {
        padding: 26px 18px;
    }

    .vm-container,
    .expertise-container,
    .partners-container {
        width: 92%;
    }

    .vm-header > p {
        padding-left: 0;
    }

    .vm-image {
        min-height: 300px;
        height: 80vw;
    }
}

/* Accessibility / reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}