/* Brand/partner detail pages (synology.php, netac.php, horion.php, etc.).
   Same light q-home-* design system as the homepage (index.php +
   corporate-home.css) — reuses quantum-theme.css tokens directly so these
   pages feel like the same site, not a different theme. Intentionally
   light-only (no dark sections) per explicit request. This file is the
   reusable template; synology.php is the reference implementation other
   brand pages should be rebuilt from. */

.q-brand-hero {
  padding: calc(var(--q-header-h) + var(--q-space-14)) var(--q-space-4) var(--q-space-14);
  background: var(--q-bg-secondary);
  border-bottom: 1px solid var(--q-border);
}
.q-brand-hero-inner {
  max-width: var(--q-container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--q-space-8);
}
.q-brand-logo-badge {
  width: 128px; height: 128px;
  flex-shrink: 0;
  border-radius: var(--q-radius-lg);
  /* Most brand logo assets on file are white-on-transparent (made for a dark
     background) — a light badge would make the mark invisible, so this one
     chip stays dark navy even though the rest of the page is light-only. */
  background: #0e2238;
  display: flex; align-items: center; justify-content: center;
  padding: var(--q-space-5);
}
.q-brand-logo-badge img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* For brands whose real logo asset is full-color (not white-on-transparent) —
   keep the badge light instead of the dark default. */
.q-brand-logo-badge.q-brand-logo-badge-light { background: var(--q-surface); border: 1px solid var(--q-border); }
.q-brand-hero-text .q-home-eyebrow { color: var(--q-primary); }
.q-brand-hero-text h1 {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--q-text);
  margin: var(--q-space-2) 0 var(--q-space-3);
}
.q-brand-hero-text p {
  font-size: 16px; line-height: 1.7; color: var(--q-text-muted);
  max-width: 720px; margin: 0;
}
.q-brand-hero-text a { color: var(--q-primary); font-weight: 700; text-decoration: none; }
.q-brand-hero-text a:hover { text-decoration: underline; }

/* Service pages (International-Maintenance.php, website-development.php, etc.)
   reuse this same hero but have no brand logo badge — single column instead
   of the icon+text grid. */
.q-brand-hero-inner.q-brand-hero-inner-noicon {
  grid-template-columns: 1fr;
  max-width: 820px;
}

@media (max-width: 700px) {
  .q-brand-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .q-brand-logo-badge { margin: 0 auto; }
}

/* ---- body: description + feature list + gallery ---- */
.q-brand-body {
  padding: var(--q-space-14) var(--q-space-4);
}
.q-brand-body-inner {
  max-width: var(--q-container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--q-space-12);
  align-items: start;
}
.q-brand-copy p {
  font-size: 15.5px; line-height: 1.8; color: var(--q-text-muted);
  margin: 0 0 var(--q-space-5);
}
.q-brand-copy a { color: var(--q-primary); font-weight: 600; text-decoration: none; }
.q-brand-copy a:hover { text-decoration: underline; }
.q-brand-copy h3 {
  font-size: 19px; font-weight: 800; color: var(--q-text);
  margin: var(--q-space-8) 0 var(--q-space-4);
}
.q-brand-feature-list {
  list-style: none; margin: 0 0 var(--q-space-6); padding: 0;
  display: grid; gap: var(--q-space-3);
}
.q-brand-feature-list li {
  display: flex; gap: var(--q-space-3);
  font-size: 14.5px; line-height: 1.6; color: var(--q-text-muted);
  padding: var(--q-space-4);
  background: var(--q-bg-secondary);
  border-radius: var(--q-radius-md);
}
.q-brand-feature-list li i {
  color: var(--q-primary); font-size: 15px; margin-top: 2px; flex-shrink: 0;
}
.q-brand-feature-list li strong { color: var(--q-text); }

/* ---- product gallery: static grid, not a slideshow ---- */
.q-brand-gallery {
  position: sticky; top: calc(var(--q-header-h) + var(--q-space-6));
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--q-space-3);
}
.q-brand-gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--q-surface);
  border: 1px solid var(--q-border);
  border-radius: var(--q-radius-md);
  padding: var(--q-space-3);
  transition: border-color 200ms ease, transform 200ms ease;
}
.q-brand-gallery img:hover { border-color: var(--q-primary); transform: translateY(-2px); }

/* Single-photo variant for brands with only one real product image on file
   (Hystou, Jacarta) — one large image instead of a multi-image grid. */
.q-brand-gallery.q-brand-gallery-single {
  grid-template-columns: 1fr;
}
.q-brand-gallery-single img { aspect-ratio: 4 / 3; padding: var(--q-space-6); }

@media (max-width: 900px) {
  .q-brand-body-inner { grid-template-columns: 1fr; }
  .q-brand-gallery { position: static; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .q-brand-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---- bottom CTA: reuses the same visual language as index.php's CTA
   but light, per "keep light mode no dark" ---- */
.q-brand-cta {
  padding: var(--q-space-12) var(--q-space-4);
  background: var(--q-bg-secondary);
  border-top: 1px solid var(--q-border);
  text-align: center;
}
.q-brand-cta h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; color: var(--q-text); margin: 0 0 var(--q-space-5); }
