/* ============================================
   MEGA COMMUNICATION — Main Stylesheet
   ============================================ */


:root {
  --primary:      #0a2342;
  --primary-dark: #061528;
  --secondary:    #1a3a5c;
  --accent:       #e8a020;
  --accent-hover: #c88b18;
  --text:         #2c2c2c;
  --text-light:   #6b7280;
  --bg-light:     #f4f7fb;
  --white:        #ffffff;
  --border:       #dde3eb;
  --shadow:       0 4px 24px rgba(10,35,66,0.10);
  --shadow-lg:    0 8px 40px rgba(10,35,66,0.16);
  --radius:       10px;
  --radius-lg:    16px;
  --transition:   all 0.28s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 15px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

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

img { max-width: 100%; display: block; }

/* <picture> wrappers must not affect layout — the <img> stays the
   styled element and the direct flex/grid child. */
picture { display: contents; }

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ ACCESSIBILITY ============ */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Keyboard users get a visible ring; mouse users do not. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ============ ICONS ============ */
/* Line icons replace the emoji set. Sized in em so each one inherits the
   font-size its container already used for the glyph it replaced. */
.icon-sprite { display: none; }

.ico {
  width: 1em;
  height: 1em;
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-solid { fill: currentColor; stroke: none; }

.ico-inline {
  display: inline-block;
  vertical-align: -0.14em;
  margin-right: 0.55em;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,160,32,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-dark:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============ SECTION LABELS ============ */
.section-label {
  display: inline-block;
  background: rgba(232,160,32,0.12);
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 16px;
  max-width: 580px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 52px;
}

.section-header.center {
  text-align: center;
}
.section-header.center .section-subtitle {
  margin: 0 auto;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--primary-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* The header runs full-bleed so the logo sits in the top-left corner
   instead of being indented by the 1200px content container. */
.navbar > .container {
  max-width: none;
  padding: 0 34px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 74px;
  gap: 4px;
}

/* everything after the logo clusters at the right edge */
.navbar-inner .nav-links { margin-left: auto; }
[dir="rtl"] .navbar-inner .nav-links { margin-left: 0; margin-right: auto; }

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* The supplied logo is dark navy artwork, so the navbar and footer use the
   white knockout; light surfaces use the original. */
.navbar-logo img,
.footer-brand img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-brand img { height: 46px; margin-bottom: 16px; }

/* Keeps the company name in the accessibility tree and for search engines
   without showing it twice beside the logo. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.88);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(255,255,255,0.06);
}

.nav-link svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
}
.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 26px;
}
/* ---- Second-level flyout: product types inside a category ---- */
.dropdown-menu .has-sub { position: relative; }

.submenu {
  position: absolute;
  top: -8px;
  /* The header is full-bleed, so the Products dropdown always sits at the
     right edge — the flyout must open leftwards or it runs off-screen. */
  right: 100%;
  min-width: 252px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.dropdown-menu .has-sub:hover > .submenu,
.dropdown-menu .has-sub:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
}

.submenu a:hover { background: var(--bg-light); color: var(--primary); }
.submenu a .n { font-size: 11px; color: var(--text-light); font-weight: 700; }
.submenu .sep { height: 1px; background: var(--border); margin: 6px 12px; }

/* Anchor targets must clear the fixed 74px header */
[id^="brand-"], .product-group[id], #categories { scroll-margin-top: 96px; }

/* ---- Brand-first mega menu ---- */
/* A brand's groups open over the category column, so the flyout is always
   inside the panel and can never be clipped by the viewport edge. */
.dropdown-menu.mega .has-sub { position: relative; }

.dropdown-menu.mega .has-sub > a::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-right: 2px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(135deg);
  opacity: 0.45;
  flex: none;
}

.dropdown-menu.mega .has-sub:hover > a::before { opacity: 1; color: var(--accent-hover); }

/* Level 2 = the brand's categories. Level 3 = that category's groups.
   Both are positioned against the panel (their .has-sub is position:static),
   so they sit side by side inside it and can never be clipped. */
.dropdown-menu.mega .submenu {
  position: absolute;
  /* flush against the parent row, so there is no dead gap to cross,
     and sized to its own content rather than the panel height */
  top: -10px;
  bottom: auto;
  max-height: calc(100vh - 140px);
  right: 100%;
  left: auto;
  width: 238px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--white);
  padding: 8px 0;
  transform: none;
  z-index: 3;
  overflow: visible;
}

.dropdown-menu.mega .submenu .submenu {
  /* right:100% of its own row = flush against level 2, whatever its width */
  right: 100%;
  left: auto;
  width: 256px;
  z-index: 4;
  overflow-y: auto;
}

.dropdown-menu.mega .submenu a { padding: 7px 14px; font-size: 12.5px; }

/* keeps :hover alive while the pointer travels between levels */
.dropdown-menu.mega .has-sub > .submenu::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  width: 10px;
}

.dropdown-menu.mega .submenu .sub-head {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-hover);
  padding: 4px 14px 8px;
}

/* keep the parent row highlighted while its child level is open */
.dropdown-menu.mega .has-sub:hover > a,
.dropdown-menu.mega .submenu .has-sub:hover > a {
  background: var(--bg-light);
  color: var(--primary);
}

.dropdown-menu.mega .has-sub:hover > .submenu,
.dropdown-menu.mega .has-sub:focus-within > .submenu { transform: none; }

.dropdown-menu.mega .submenu .sub-note {
  padding: 2px 18px 10px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-light);
}

.dropdown-menu.mega .submenu .sub-head {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-hover);
  padding: 4px 18px 10px;
}

/* the brand row stays highlighted while its flyout is open */
.dropdown-menu.mega .has-sub:hover > a { background: var(--bg-light); color: var(--primary); }


.dropdown-menu.mega {
  /* right-aligned: the nav sits at the right edge of a full-bleed header */
  left: auto;
  right: 0;
  min-width: 0;
  width: 300px;
  padding: 16px 0;
  display: block;
}

.mega-col { padding: 0 6px; }
.mega-col + .mega-col { border-left: 1px solid var(--border); }

.mega-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 4px 18px 10px;
}

.dropdown-menu.mega a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
}

.dropdown-menu.mega a:hover { padding-left: 22px; }

.dropdown-menu.mega .n {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
}

.dropdown-menu.mega a:hover .n { color: var(--primary); }

.mega-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: none;
  letter-spacing: 0;
}

/* Icom is the only brand spanning several categories — show them indented */
.brand-sub {
  padding-left: 34px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--text-light) !important;
}

.brand-sub::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  flex: none;
}

.brand-sub:hover { color: var(--primary) !important; padding-left: 38px !important; }
.brand-sub:hover::before { background: var(--accent); }

.mega-sep { height: 1px; background: var(--border); margin: 8px 18px; }

.mega-all {
  color: var(--accent-hover) !important;
  font-weight: 700 !important;
}

/* Not enough room to cascade three levels sideways — expand them inline
   inside the panel instead, which also suits touch. */
@media (max-width: 1150px) {
  .dropdown-menu.mega { width: 320px; max-height: 70vh; overflow-y: auto; }
  .dropdown-menu.mega .submenu,
  .dropdown-menu.mega .submenu .submenu {
    position: static;
    width: auto;
    inset: auto;
    opacity: 1;
    visibility: visible;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    margin: 2px 0 6px 16px;
    padding-left: 6px;
  }
  .dropdown-menu.mega .has-sub > a::before { display: none; }
}

.dropdown-menu a span.cat-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--primary);
}
.dropdown-menu a:hover span.cat-icon {
  background: var(--primary);
  color: var(--accent);
}

.nav-contact-btn {
  background: var(--accent);
  color: var(--primary-dark) !important;
  padding: 9px 22px !important;
  border-radius: 6px;
  font-weight: 700 !important;
  margin-left: 10px;
}
.nav-contact-btn:hover {
  background: var(--accent-hover) !important;
  color: var(--primary-dark) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 74px; left: 0; right: 0;
  background: var(--primary-dark);
  padding: 16px 24px 24px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-height: calc(100vh - 74px);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav a:last-child { border-bottom: none; }

/* Touch devices get an always-open indented list rather than a hover flyout */
.mobile-sub { padding-left: 26px; border-left: 2px solid rgba(232,160,32,0.35); margin: 2px 0 6px; }
.mobile-sub a { font-size: 12.5px; font-weight: 600; padding: 9px 0; color: rgba(255,255,255,0.62); border-bottom: none; }
.mobile-sub a:hover { color: var(--accent); }
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .sub-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 16px 0 6px;
  font-weight: 700;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  /* Sized by its content, which is kept deliberately compact so the
     brand marquee below clears the fold without scrolling. */
  min-height: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #061528 0%, #0a2342 50%, #0f3460 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(232,160,32,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26,58,92,0.6) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(15,52,96,0.4) 0%, transparent 40%);
  pointer-events: none;
}

/* Grid lines decoration */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  /* top clears the 74px fixed navbar */
  padding: 78px 0 24px;
  max-width: 880px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.3);
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 30px;
  margin-bottom: 10px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.14;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 800;
}
.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: clamp(14px, 1.7vw, 17px);
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  margin-bottom: 11px;
}

.hero p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 600px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 38px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.stat-item {}
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Hero right decoration */
.hero-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.12;
  pointer-events: none;
}
.hero-visual svg {
  width: 100%;
  height: 100%;
}

/* ============ TOP BAR ============ */
.topbar {
  background: var(--primary-dark);
  padding: 8px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.topbar-contact a:hover { color: var(--accent); }

/* ============ SECTION SPACING ============ */
section { padding: 90px 0; }
section.tight { padding: 60px 0; }
section.bg-light { background: var(--bg-light); }
section.bg-dark {
  background: linear-gradient(135deg, #061528, #0a2342);
  color: var(--white);
}
section.bg-dark h1,
section.bg-dark h2,
section.bg-dark h3,
section.bg-dark h4 { color: var(--white); }
section.bg-dark .section-subtitle { color: rgba(255,255,255,0.65); }

/* ============ BRAND LOGOS STRIP ============ */
.brands-strip {
  padding: 26px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.brands-strip-label {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}
/* The three principal brands sit fixed above the marquee, full colour
   and larger; the remaining eight scroll below. */
.brands-featured {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* Two classes so these beat the later, single-class .brand-logo-item rules
   that grey out and shrink the scrolling logos. */
.brand-logo-item.brand-featured {
  opacity: 1;
  filter: none;
  transition: var(--transition);
}

.brand-logo-item.brand-featured img { height: 46px; }

.brand-logo-item.brand-featured:hover { transform: translateY(-3px); opacity: 1; }

@media (max-width: 640px) {
  .brands-featured { gap: 30px; padding-bottom: 20px; margin-bottom: 18px; }
  .brand-featured img { height: 40px; }
}

.brands-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.brand-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.3s;
  filter: grayscale(100%);
}
.brand-logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}
.brand-logo-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* ============ FEATURED BRANDS ============ */
.featured-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.brand-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.brand-card-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 36px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  position: relative;
}
.brand-card-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.brand-card-header img {
  max-height: 70px;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-card-body {
  padding: 24px 28px;
}
.brand-card-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.brand-card-body p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.brand-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.tag {
  background: var(--bg-light);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.tag.marine { background: #e8f4fd; color: #1565c0; }
.tag.land   { background: #e8f5e9; color: #2e7d32; }
.tag.tetra  { background: #f3e5f5; color: #6a1b9a; }
.tag.aviation   { background: #fdece5; color: #b23c17; }
.tag.accessory  { background: #e0f2f1; color: #00594f; }
.tag.safety     { background: #fdeaea; color: #b3261e; }

.brand-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  transition: gap 0.2s;
}
.brand-card-link:hover { gap: 10px; }

/* ============ CATEGORIES SECTION ============ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}

/* Five cards in a six-column grid: three across the top, two wider ones
   below, so the row never ends on an empty cell. */
.category-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.category-card:nth-child(4),
.category-card:nth-child(5) { grid-column: span 3; }
/* Wider cards get a shallower banner so the studio headroom doesn't
   stretch into dead space. */
.category-card:nth-child(4) .cat-media,
.category-card:nth-child(5) .cat-media { aspect-ratio: 21 / 9; }

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(10, 26, 48, 0.14);
  border-color: #d3dbe6;
}

.category-card.land        { --cat: #1c6b3c; }
.category-card.marine      { --cat: #11508f; }
.category-card.tetra       { --cat: #58308d; }
.category-card.aviation    { --cat: #bf5220; }
.category-card.accessories { --cat: #0b7268; }

.cat-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eef2f7;
}
/* The clip lives on <picture>, not .cat-media — .cat-icon-wrap hangs below
   the media box and would otherwise be cut off by overflow:hidden. */
.cat-media picture {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.category-card:hover .cat-media img { transform: scale(1.04); }
.cat-media::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--cat);
}

.cat-icon-wrap {
  position: absolute;
  left: 22px;
  bottom: -23px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--cat);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  box-shadow: 0 6px 16px rgba(10, 26, 48, 0.2);
  z-index: 2;
}
.cat-icon-wrap .ico { width: 21px; height: 21px; }

.cat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 40px 24px 26px;
}
.category-card h3 {
  color: var(--primary);
  font-size: 19px;
  margin-bottom: 9px;
}
.category-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.72;
  margin-bottom: 20px;
}
.category-card .cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  align-self: flex-start;
  color: var(--cat);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.category-card:hover .cat-link { border-bottom-color: var(--cat); }

/* The whole card reads as clickable (cursor:pointer), so stretch the link
   across it. .cat-link stays position:static, so inset:0 resolves against
   .category-card rather than the anchor box. */
.category-card .cat-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.category-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[dir="rtl"] .category-card { text-align: right; }
[dir="rtl"] .cat-icon-wrap { left: auto; right: 22px; }

/* ============ ALL BRANDS GRID ============ */
.all-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.brand-mini-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}
.brand-mini-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(232,160,32,0.15);
  transform: translateY(-3px);
}
.brand-mini-card img {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 14px;
}
.brand-mini-card h4 {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 6px;
}
.brand-mini-card p {
  font-size: 12px;
  color: var(--text-light);
}

/* ============ WHY CHOOSE US ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
}

.feature-text h4 {
  font-size: 16px;
  margin-bottom: 8px;
}
.feature-text p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.75;
}

/* ============ PRODUCT PAGES ============ */
.page-hero {
  background: linear-gradient(135deg, #061528 0%, #0a2342 60%, #0f3460 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  color: var(--white);
  margin-bottom: 14px;
}
.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  max-width: 580px;
}
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: var(--accent); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.3); }

/* Product brand section */
.brand-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.brand-section:last-child { border-bottom: none; }
.brand-section:nth-child(even) { background: var(--bg-light); }

.brand-section-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.brand-section-logo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  box-shadow: var(--shadow);
}
.brand-section-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.brand-section-info h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.brand-section-info p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  max-width: 560px;
}

/* Type dividers inside a brand's product grid. Span every column so the
   grid breaks into labelled runs instead of one undifferentiated block. */
.product-group {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
}

.product-group::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.product-group .count {
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-light);
  text-transform: none;
  font-size: 12px;
}

.product-group:first-child { margin-top: 0; }

@media (max-width: 640px) {
  /* the grid becomes a horizontal snap row on phones, so dividers are hidden */
  .product-group { display: none; }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232,160,32,0.3);
}

.product-card-header {
  background: linear-gradient(135deg, #f4f7fb, #e8edf4);
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.product-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.product-cat-badge.marine { background: #e8f4fd; color: #1565c0; }
.product-cat-badge.land   { background: #e8f5e9; color: #2e7d32; }
.product-cat-badge.tetra  { background: #f3e5f5; color: #6a1b9a; }
.product-cat-badge.aviation   { background: #fdece5; color: #b23c17; }
.product-cat-badge.accessory  { background: #e0f2f1; color: #00594f; }
.product-cat-badge.safety     { background: #fdeaea; color: #b3261e; }

.product-card-header.has-photo {
  min-height: 210px;
  padding: 18px 20px;
}

/* Manufacturer product shots ship on a white ground; multiply drops it
   into the header gradient without needing the images re-cut. */
.product-photo {
  max-width: 100%;
  height: 170px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-img-placeholder {
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent);
}

/* Link out to the manufacturer's own product page / data sheet */
.product-spec-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-light);
  transition: var(--transition);
}

.product-spec-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-light);
}

.product-spec-link .ico {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.product-card-body {
  padding: 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-model {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card-body h3 {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.product-card-body p.product-desc {
  color: var(--text-light);
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 16px;
  flex: 1;
}

.product-specs {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.product-specs h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--text-light); font-weight: 500; flex-shrink: 0; }
.spec-val { color: var(--text); font-weight: 600; text-align: right; }

.product-features {
  margin-bottom: 18px;
}
.product-features h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}
.product-features ul { display: flex; flex-direction: column; gap: 4px; }
.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.product-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.product-inquire-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 11px 20px;
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
  margin-top: auto;
}
.product-inquire-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

/* ============ ABOUT PAGE ============ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-image-block {
  position: relative;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about-img-main {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2;
  flex: none;
  position: relative;
  overflow: hidden;
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-badge-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: var(--radius);
  padding: 12px 20px;
  box-shadow: var(--shadow-lg);
}
.about-badge-overlay strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.about-badge-overlay span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
[dir="rtl"] .about-badge-overlay { right: auto; left: 0; }

.about-text h2 { margin-bottom: 20px; }
.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.85;
}
.about-text .about-list {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-text .about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}
.about-text .about-list li .check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: rgba(232,160,32,0.12);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition);
}
.value-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.value-icon {
  font-size: 34px;
  margin-bottom: 18px;
  color: var(--accent);
}
.value-card h3 { font-size: 18px; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.75; }

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--text-light); line-height: 1.85; margin-bottom: 36px; }

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
}
.contact-detail-text h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
.contact-detail-text p, .contact-detail-text a {
  color: var(--text-light);
  font-size: 14px;
  display: block;
  line-height: 1.7;
  transition: color 0.2s;
}
.contact-detail-text a:hover { color: var(--accent); }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.contact-form-wrap h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.contact-form-wrap .form-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-light);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(232,160,32,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  margin-top: 6px;
}
.form-submit:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

/* ============ CTA BAND ============ */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, #c88b18 100%);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--primary-dark);
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 12px;
}
.cta-band p {
  color: rgba(10,35,66,0.7);
  font-size: 16px;
  margin-bottom: 32px;
}
.cta-band .btn-dark { font-size: 15px; padding: 14px 36px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.85;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.footer-contact-item .icon {
  color: var(--accent);
  font-size: 15px;
  margin-top: 2px;
  flex: none;
}
.footer-contact-item span {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.footer-contact-item a {
  color: rgba(255,255,255,0.6);
  font-size: 13.5px;
  transition: color 0.2s;
  display: block;
}
.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom p span { color: var(--accent); }

/* ============ ABOUT STATS ============ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--primary);
}
.stat-block {
  padding: 40px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-block:last-child { border-right: none; }
.stat-block .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-block .lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* ============ UTILITY ============ */
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }

/* ============ OWNERSHIP ============ */
.owner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 940px;
  margin: 0 auto;
}
.owner-card {
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}
.owner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(10, 26, 48, 0.12);
  border-color: #d3dbe6;
}
.owner-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #eef2f7;
  overflow: hidden;
}
.owner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.owner-card:hover .owner-photo img { transform: scale(1.03); }
.owner-photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
}
.owner-body { padding: 22px 20px 26px; }
.owner-card h3 {
  color: var(--primary);
  font-size: 19px;
  margin-bottom: 6px;
}
.owner-role {
  display: inline-block;
  color: var(--accent-hover);
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .featured-brands-grid { grid-template-columns: 1fr 1fr; }
  .all-brands-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: 1fr; gap: 48px; }
  .about-image-block { max-width: 500px; }
  .owner-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  /* 2-up: cards span 3 of 6, and the odd one out stretches across. */
  .category-card,
  .category-card:nth-child(4),
  .category-card:nth-child(5) { grid-column: span 3; }
  .categories-grid > .category-card:last-child:nth-child(odd) { grid-column: span 6; }
  .categories-grid > .category-card:last-child:nth-child(odd) .cat-media { aspect-ratio: 21 / 9; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .featured-brands-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .owner-grid { grid-template-columns: 1fr; max-width: 420px; }
  .category-card,
  .category-card:nth-child(4),
  .category-card:nth-child(5),
  .categories-grid > .category-card:last-child:nth-child(odd) { grid-column: auto; }
  .categories-grid > .category-card:last-child:nth-child(odd) .cat-media { aspect-ratio: 16 / 9; }
  .all-brands-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .products-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .brand-section-header { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
}

/* Short viewports: shrink the hero further so the marquee still shows.
   Two tiers — the ~160px brand strip needs to clear the fold on laptops
   with browser chrome as well as on full-height windows. */
/* The brand strip must clear the fold. Shed hero content in stages as the
   window gets shorter — the stat row goes first, then the paragraph. */
@media (max-height: 900px) {
  .hero-content { padding: 74px 0 18px; }
  .hero-stats { display: none; }
}

@media (max-height: 820px) {
  .hero-content { padding: 72px 0 14px; }
  .hero p { margin-bottom: 15px; }
  .brands-strip { padding: 20px 0; }
  .brands-strip-label { margin-bottom: 12px; }
  .brands-featured { padding-bottom: 12px; margin-bottom: 10px; gap: 40px; }
  .brand-logo-item.brand-featured img { height: 40px; }
  .brand-logo-item img { height: 34px; }
}

@media (max-height: 720px) {
  .hero-content { padding: 70px 0 12px; }
  .hero p { margin-bottom: 12px; }
  .hero-sub { margin-bottom: 9px; }
  .brands-strip { padding: 16px 0; }
  .brands-strip-label { margin-bottom: 10px; }
  .brands-featured { padding-bottom: 10px; margin-bottom: 8px; gap: 34px; }
  .brand-logo-item.brand-featured img { height: 36px; }
  .brand-logo-item img { height: 30px; }
}

@media (max-height: 620px) {
  .hero-content { padding: 66px 0 10px; }
  .hero p { display: none; }
  .hero-sub { margin-bottom: 14px; }
}

@media (max-width: 768px) {
  .navbar > .container { padding: 0 18px; }
  .hero { min-height: auto; }
  .hero-content { padding: 100px 0 48px; }
}

@media (max-width: 480px) {
  .all-brands-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ============ CONTACT FORM STATUS ============ */
.form-status {
  margin-top: 14px;
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--primary);
  background: var(--bg-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: var(--transition);
}

.form-status.show {
  max-height: 200px;
  opacity: 1;
  padding: 12px 14px;
}

.form-status a {
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: underline;
}


/* ============ MOTION PREFERENCES ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .category-card:hover,
  .product-card:hover,
  .brand-card:hover { transform: none; }

  .brands-logos.is-marquee .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .product-card:hover .product-photo { transform: none; }
  .scroll-progress { display: none; }
}

/* ============ PRINT ============ */
@media print {
  .navbar, .mobile-nav, .hamburger, .skip-link,
  .cta-band, .footer, .product-inquire-btn { display: none !important; }

  body { font-size: 11pt; color: #000; background: #fff; }
  .page-hero { background: none !important; padding: 0 0 18pt; }
  .page-hero h1, .page-hero p, .breadcrumb { color: #000 !important; }
  .product-card { break-inside: avoid; border: 1px solid #999; }
  .products-grid { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}


/* ============================================
   MOTION & INTERACTION ENHANCEMENTS
   Every effect below is switched off wholesale by the
   prefers-reduced-motion block at the end of this file.
   ============================================ */

/* ---- Scroll progress indicator ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1500;
  background: linear-gradient(90deg, var(--accent), #f0b955);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ---- Brand logo marquee ----
   JS clones the logo track and adds .is-marquee; without JS the strip
   stays a plain centred flex row, so nothing depends on scripting. */
.brands-logos.is-marquee {
  --marquee-duration: 42s;
  display: block;
  overflow: hidden;
  position: relative;
  flex-wrap: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brands-logos.is-marquee .marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee var(--marquee-duration) linear infinite;
}

.brands-logos.is-marquee:hover .marquee-track,
.brands-logos.is-marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

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

.brand-logo-item:hover { opacity: 1; filter: grayscale(0%); }

/* ---- Scroll reveal ----
   JS adds .reveal only once it is ready, so content is never
   hidden from users without JS or from crawlers. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---- WhatsApp quick contact ---- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 78px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 40px;
  background: #25d366;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  z-index: 1200;
  transition: var(--transition);
}

.wa-float:hover { background: #1fb955; transform: translateY(-2px); color: #fff; }
.wa-float svg { width: 22px; height: 22px; fill: currentColor; flex: none; }

@media (max-width: 640px) {
  .wa-float { padding: 13px; bottom: 74px; }
  .wa-float .wa-label { display: none; }
}

.form-alt {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}
.form-alt a { color: var(--accent-hover); font-weight: 600; text-decoration: underline; }

/* ---- Back to top ---- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
  z-index: 1200;
  font-size: 20px;
}

.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--secondary); }

/* ---- Product photo lift on card hover ---- */
.product-card .product-photo { transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
.product-card:hover .product-photo { transform: scale(1.06); }

/* ---- Branded scrollbar ---- */
html { scrollbar-color: var(--secondary) var(--bg-light); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 6px;
  border: 3px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---- Horizontal scroll-snap for product rows on small screens ---- */
@media (max-width: 640px) {
  .products-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 14px;
    -webkit-overflow-scrolling: touch;
  }
  .products-grid > .product-card { scroll-snap-align: start; }
}


/* ============ OFFICIAL BRAND SITES ============ */
.brand-site-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
  transition: var(--transition);
}

.brand-site-link:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.brand-site-link .ico { width: 15px; height: 15px; }
.brand-site-link .dom { color: var(--text-light); font-weight: 500; }
.brand-site-link:hover .dom { color: rgba(255,255,255,0.7); }

/* ---- Official sites directory ---- */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.site-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.site-row:hover {
  border-color: rgba(232,160,32,0.6);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.site-row img {
  width: 74px;
  height: 34px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
  flex: none;
}

.site-row:hover img { filter: none; opacity: 1; }

.site-row-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }

.site-row-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.site-row-dom {
  font-size: 12px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-row-go { color: var(--accent-hover); flex: none; }
.site-row-go .ico { width: 17px; height: 17px; }

/* ============ TYPE HUB CARDS ============ */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

.type-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.type-card:hover {
  border-color: rgba(232,160,32,0.55);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.type-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 13px;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: var(--transition);
}

.type-card:hover .type-icon { background: var(--accent); color: var(--primary); }

.type-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.type-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
}

.type-desc { font-size: 13px; color: var(--text-light); line-height: 1.55; }

.type-count {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg-light);
  border-radius: 20px;
  padding: 4px 11px;
  min-width: 34px;
  text-align: center;
}

.type-card:hover .type-count { background: var(--primary); color: var(--white); }

@media (max-width: 640px) {
  .type-grid { grid-template-columns: 1fr; }
}


/* ============ PRODUCT SEARCH ============ */
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  margin-left: 4px;
}
.search-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); }
.search-btn .ico { width: 17px; height: 17px; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6,21,40,0.72);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  padding: 10vh 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.search-overlay.open { opacity: 1; visibility: visible; }

.search-panel {
  width: 100%;
  max-width: 660px;
  height: max-content;
  max-height: 78vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-field { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.search-field .ico { width: 19px; height: 19px; color: var(--text-light); flex: none; }
.search-field input {
  flex: 1; border: none; outline: none; font-size: 16px;
  font-family: 'Open Sans', sans-serif; color: var(--text); background: transparent;
}
.search-close {
  border: none; background: var(--bg-light); color: var(--text-light);
  border-radius: 6px; padding: 4px 9px; font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.search-results { overflow-y: auto; padding: 8px; }
.search-hit { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--radius); transition: background 0.15s; }
.search-hit:hover, .search-hit.active { background: var(--bg-light); }
.search-hit img { width: 46px; height: 46px; object-fit: contain; flex: none; mix-blend-mode: multiply; }
.search-hit-ph { width: 46px; height: 46px; border-radius: 10px; background: var(--primary); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex: none; font-size: 17px; }
.search-hit-body { flex: 1; min-width: 0; }
.search-hit-model { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 13px; color: var(--accent-hover); }
.search-hit-name { font-size: 13px; color: var(--primary); font-weight: 600; }
.search-hit-meta { font-size: 11.5px; color: var(--text-light); margin-top: 1px; }
.search-empty { padding: 30px 20px; text-align: center; color: var(--text-light); font-size: 14px; }
.search-hint { padding: 10px 20px 14px; font-size: 11.5px; color: var(--text-light); border-top: 1px solid var(--border); }
.search-hint kbd { background: var(--bg-light); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 11px; }

@media (max-width: 640px) {
  .search-overlay { padding: 6vh 12px 12px; }
  .search-hit img, .search-hit-ph { width: 38px; height: 38px; }
}


/* ============================================
   ARABIC / RTL
   Model numbers, specs and units stay LTR inside an RTL page.
   ============================================ */
[dir="rtl"] { direction: rtl; }

[dir="rtl"] body {
  font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
  letter-spacing: 0;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] .logo-name {
  font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
  letter-spacing: 0;
}

[dir="rtl"] .navbar-inner,
[dir="rtl"] .hero-content,
[dir="rtl"] .page-hero-content,
[dir="rtl"] .footer-grid { text-align: right; }

[dir="rtl"] .breadcrumb { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .hero-cta,
[dir="rtl"] .footer-contact-item { flex-direction: row-reverse; }
[dir="rtl"] .footer-contact-item { justify-content: flex-end; }

[dir="rtl"] .cat-link,
[dir="rtl"] .btn,
[dir="rtl"] .product-inquire-btn { flex-direction: row-reverse; }

[dir="rtl"] .wa-float { right: auto; left: 22px; flex-direction: row-reverse; }
[dir="rtl"] .to-top { right: auto; left: 22px; }
[dir="rtl"] .skip-link { left: auto; right: 12px; }
[dir="rtl"] .scroll-progress { left: auto; right: 0; }

/* Latin runs — model numbers, frequencies, units — must not reorder */
[dir="rtl"] .ltr,
[dir="rtl"] .product-model,
[dir="rtl"] .spec-val,
[dir="rtl"] .stat-number {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

[dir="rtl"] .spec-row { flex-direction: row-reverse; }

/* language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  transition: var(--transition);
}
.lang-switch:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.55); color: var(--white); }
[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 10px; }


/* Flyouts open leftwards by default; JS adds .open-right when the left
   edge would be off-screen. */
.dropdown-menu.mega .submenu.open-right {
  right: auto;
  left: 100%;
}

[dir="rtl"] .dropdown-menu.mega .submenu {
  right: auto;
  left: 100%;
}
[dir="rtl"] .dropdown-menu.mega .submenu.open-right {
  left: auto;
  right: 100%;
}
