:root {
  --navy: #0f2540;
  --navy-light: #163a63;
  --accent: #d98c1f;
  --gray-bg: #f4f6f8;
  --gray-line: #dfe4e8;
  --text: #1c2a36;
  --text-light: #47535e;
  --white: #ffffff;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-mark-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

.brand-tagline {
  display: block;
  margin-top: 2px;
  margin-left: 52px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--accent);
}

.brand-mark .logo-box {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px dashed rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  text-align: center;
  color: rgba(255,255,255,0.8);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  font-weight: 500;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 64px 0 52px;
}

.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 14px;
  max-width: 720px;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 0 22px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn.secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}

/* Sections */
section { padding: 52px 0; }
section.alt { background: var(--gray-bg); }

h2.section-title {
  font-size: 1.55rem;
  margin: 0 0 8px;
}
p.section-sub {
  color: var(--text-light);
  margin: 0 0 34px;
  max-width: 640px;
}

/* Brand cards on homepage */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

/* Force the "Brands we carry" cards into a single row on wider screens */
.brands-carry-grid {
  grid-template-columns: repeat(5, 1fr);
}
.brands-carry-grid .brand-card {
  padding: 20px 14px;
}
.brands-carry-grid .tags { display: none; }
@media (max-width: 1000px) {
  .brands-carry-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .brands-carry-grid { grid-template-columns: repeat(2, 1fr); }
}

.brand-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.brand-card:hover {
  box-shadow: 0 8px 24px rgba(15,37,64,0.1);
  transform: translateY(-2px);
}
.brand-card .logo-box {
  height: 46px;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.brand-card .logo-box img { max-height: 40px; width: auto; }
.brand-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.brand-card p { color: var(--text-light); font-size: 0.92rem; margin: 0 0 14px; }
.brand-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.brand-card .tag {
  font-size: 0.75rem;
  background: var(--gray-bg);
  border: 1px solid var(--gray-line);
  color: var(--text-light);
  padding: 3px 9px;
  border-radius: 20px;
}

/* Valued clients logo grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.client-logo {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.client-logo:hover {
  box-shadow: 0 8px 20px rgba(15,37,64,0.1);
  transform: translateY(-2px);
}
.client-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.product-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
}

.product-card {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.product-card:hover {
  box-shadow: 0 8px 24px rgba(15,37,64,0.1);
  transform: translateY(-2px);
  border-color: var(--gray-line);
}

.product-photo {
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 30% 25%, #f4f6f8 0%, #e2e5e8 45%, #cdd2d7 80%, #b7bec5 100%);
  box-shadow: inset 0 0 30px rgba(30,40,50,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-photo.placeholder {
  color: var(--text-light);
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
  border-bottom: 1px dashed var(--gray-line);
}

.product-card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card h4 { margin: 0 0 6px; font-size: 1.02rem; }
.product-card p { margin: 0 0 12px; color: var(--text-light); font-size: 0.9rem; flex: 1; }
.product-card .src { font-size: 0.78rem; }
.product-card .cta { margin-top: 4px; }

.tab-intro {
  color: var(--text-light);
  font-size: 0.92rem;
  margin: 0 0 20px;
  max-width: 760px;
}
.tab-count {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 5px 14px;
  background: var(--navy);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2px;
  border-radius: 20px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.learn-more:hover { background: #061426; transform: translateX(2px); }

.brochure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  margin-left: 6px;
  padding: 4px 14px;
  background: transparent;
  color: var(--accent) !important;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2px;
  border: 2px solid var(--accent);
  border-radius: 20px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.brochure:hover { background: var(--accent); color: var(--white) !important; transform: translateX(2px); }

/* Excel-worksheet-style tabs for switching product categories on a brand page */
.excel-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: var(--navy-light);
  border: 1px solid var(--navy);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 10px 22px;
  cursor: pointer;
  position: relative;
  top: 2px;
  transition: background 0.15s, color 0.15s;
}

.tab-btn:hover { background: var(--navy); color: var(--white); }

.tab-btn.active {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
  border-bottom: 2px solid var(--white);
  top: 2px;
  z-index: 2;
  font-weight: 700;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Category heading within brand page */
.category-block { margin-bottom: 48px; }
.category-block h3 {
  font-size: 1.25rem;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 6px;
}
.category-block .category-note {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

.notice-box {
  background: #fff7e8;
  border: 1px solid #f0d9a8;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #6b5218;
  margin-bottom: 28px;
}

/* Brand hero (sub pages) */
.brand-hero {
  background: var(--gray-bg);
  border-bottom: 1px solid var(--gray-line);
  padding: 26px 0;
}
.brand-hero .logo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.brand-hero .logo-box {
  height: 54px;
  display: flex;
  align-items: center;
}
.brand-hero .logo-box img { max-height: 48px; width: auto; }
.brand-hero .placeholder-logo {
  width: 150px;
  height: 50px;
  border: 1px dashed #b9c2ca;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-light);
  background: var(--white);
}
.brand-hero h1 { margin: 0 0 10px; font-size: 1.8rem; }
.brand-hero p { color: var(--text-light); max-width: 700px; margin: 0; }

/* Image hero banner (used on brand pages with a source photo banner) */
.brand-hero.image-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  background-size: cover;
  background-position: center;
  border-bottom: none;
}
.brand-hero.image-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 31, 0.6);
  z-index: 1;
}
.brand-hero.image-hero .wrap {
  position: relative;
  z-index: 2;
}
.brand-hero.image-hero h1,
.brand-hero.image-hero p { color: #ffffff; }
.brand-hero.image-hero p a { color: #ffd27a; }
.brand-hero.image-hero .logo-box {
  background: rgba(255,255,255,0.95);
  border-radius: 6px;
  padding: 6px 12px;
  display: inline-flex;
}

/* Video hero banner (used on brand pages with a source video) */
.brand-hero.video-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  background: #06121f;
  border-bottom: none;
}
.brand-hero.video-hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.brand-hero.video-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 31, 0.65);
  z-index: 1;
}
.brand-hero.video-hero .wrap {
  position: relative;
  z-index: 2;
}
.brand-hero.video-hero h1,
.brand-hero.video-hero p { color: #ffffff; }
.brand-hero.video-hero p a { color: #ffd27a; }
.brand-hero.video-hero .logo-box {
  background: rgba(255,255,255,0.95);
  border-radius: 6px;
  padding: 6px 12px;
  display: inline-flex;
}

/* Integrator / footer-about */
.integrator-section {
  background: var(--navy);
  color: var(--white);
  padding: 52px 0;
}
.integrator-section h2 { margin: 0 0 12px; }
.integrator-section .placeholder-logo {
  width: 180px;
  height: 64px;
  border: 1px dashed rgba(255,255,255,0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.integrator-section p { color: rgba(255,255,255,0.8); max-width: 680px; }

footer.site-footer {
  background: #0a1a2e;
  color: rgba(255,255,255,0.6);
  padding: 26px 0;
  font-size: 0.85rem;
}
footer.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Quote / register-project form */
.quote-form {
  max-width: 640px;
  margin-top: 8px;
}
.quote-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.quote-form label {
  display: block;
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.quote-form .required { color: #c22; }
.quote-form input,
.quote-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--navy-light);
}
.quote-form input[type="file"] {
  padding: 8px;
  background: var(--gray-bg);
}
.quote-form button.btn {
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.quote-form .form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-light);
}
@media (max-width: 640px) {
  .quote-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav.main-nav ul { gap: 14px; }
  .hero h1 { font-size: 1.6rem; }
}

/* Visitor counter */
.visitor-counter-section {
  padding: 8px 0 44px;
  text-align: center;
}
.visitor-counter-section .label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.visitor-counter {
  display: inline-block;
  background: #0a1a2e;
  color: #ffcc00;
  font-family: "Courier New", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 5px;
  padding: 10px 20px;
  border-radius: 6px;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  text-decoration: none;
}
.whatsapp-float:hover {
  text-decoration: none;
}
.whatsapp-label {
  background: #ffffff;
  color: #128C7E;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  white-space: nowrap;
  transition: transform 0.15s;
}
.whatsapp-float:hover .whatsapp-label {
  transform: translateX(-2px);
}
.whatsapp-icon {
  position: relative;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.15s;
}
.whatsapp-float:hover .whatsapp-icon {
  transform: scale(1.07);
}
.whatsapp-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.2s infinite;
}
.whatsapp-icon svg { width: 30px; height: 30px; fill: #ffffff; position: relative; z-index: 1; }

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 480px) {
  .whatsapp-label { font-size: 0.78rem; padding: 7px 12px; }
  .whatsapp-icon { width: 50px; height: 50px; }
  .whatsapp-icon svg { width: 26px; height: 26px; }
}
