/* ==========================================================================
   DRASIS AUTOMATION — BRAND DETAIL & CATEGORIZED PRODUCTS STYLESHEET
   ========================================================================== */

:root {
  --brand-theme-color: #28c76f;
  --brand-theme-glow: rgba(40, 199, 111, 0.16);
  --brand-theme-border: rgba(40, 199, 111, 0.3);
  --brand-theme-bg-subtle: rgba(40, 199, 111, 0.05);
  --brand-badge-bg: rgba(40, 199, 111, 0.12);
  --brand-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 1. HERO SECTION */
.brand-hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 140px 7vw 60px;
  background: radial-gradient(circle at 85% 20%, var(--brand-theme-glow) 0%, transparent 65%), #060606;
  border-bottom: 1px solid #1a1a1a;
  color: #ffffff;
  overflow: hidden;
}

.brand-hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 25%, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 25%, black 35%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.brand-hero>*:not(.brand-hero-grid-bg) {
  position: relative;
  z-index: 1;
}

.brand-hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--brand-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 18px;
}

.brand-hero-breadcrumb a {
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand-hero-breadcrumb a:hover {
  color: #ffffff;
}

.brand-hero-breadcrumb span.current {
  color: var(--brand-theme-color);
  font-weight: 600;
}

.brand-hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-badge-bg);
  border: 1px solid var(--brand-theme-border);
  padding: 6px 14px;
  border-radius: 0 !important;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-theme-color);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.brand-hero h1 {
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 0 0 20px;
  max-width: 950px;
}

.brand-hero p.brand-hero-desc {
  font-size: clamp(15px, 1.2vw, 18px);
  color: #9e9e9e;
  max-width: 720px;
  line-height: 1.75;
  margin: 0 0 32px;
}

.brand-hero-protocols {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.protocol-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 !important;
  color: #cccccc;
  font-family: var(--brand-font-mono);
  font-size: 11.5px;
  padding: 6px 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-banner-visual {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  aspect-ratio: 16 / 6;
  border-radius: 0 !important;
  overflow: hidden;
  margin: 36px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  background: #0d0d0d;
  position: relative;
}

.brand-banner-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .brand-hero {
    padding: 110px 5vw 40px;
  }

  .brand-banner-visual {
    aspect-ratio: 16 / 9;
    margin: 24px 0 12px;
  }
}

.brand-links-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.brand-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0 !important;
  color: #fff;
  font-size: 12.5px;
  font-family: var(--brand-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.brand-ext-link:hover {
  background: var(--brand-theme-color);
  border-color: var(--brand-theme-color);
  color: #fff;
}

/* 2. STATS & ARCHITECTURE BAR */
.brand-spec-bar {
  background: #0d0d0d;
  border-bottom: 1px solid #1a1a1a;
  padding: 30px 7vw;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.brand-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-stat-item small {
  font-family: var(--brand-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666666;
}

.brand-stat-item strong {
  font-size: 17px;
  color: #ffffff;
  font-weight: 500;
}

.brand-stat-item p {
  font-size: 13px;
  color: #888888;
  margin: 0;
  line-height: 1.5;
}

/* 3. CATEGORIZED PRODUCTS SECTION */
.brand-products-section {
  background: #f4f2ee;
  color: #111111;
  padding: 80px 7vw 110px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.brand-products-header {
  margin-bottom: 36px;
}

.brand-products-header .kicker {
  font-family: var(--brand-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-theme-color);
  margin-bottom: 10px;
}

.brand-products-header h2 {
  font-size: clamp(32px, 4vw, 56px);
  color: #111111;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  line-height: 1.05;
}

.brand-products-header p {
  font-size: 15.5px;
  color: #555555;
  max-width: 680px;
  line-height: 1.7;
  margin: 0;
}

/* Category Filter Tabs - Horizontally Scrollable on Touch Devices */
.category-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 10px;
  margin: 30px 0 35px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex-shrink: 0;
  white-space: nowrap;
  background: #ffffff;
  color: #444444;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-btn:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.filter-btn.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.filter-btn .count-badge {
  font-family: var(--brand-font-mono);
  font-size: 11px;
  opacity: 0.7;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: 0 !important;
}

.filter-btn.active .count-badge {
  background: var(--brand-theme-color);
  color: #ffffff;
  opacity: 1;
}

/* 3. LUXURY ARCHITECTURAL PRODUCT SHOWCASE SECTION */
.brand-products-section,
.brand-showcase-section {
  background: #080808;
  color: #ffffff;
  padding: 100px 7vw 120px;
  border-bottom: 1px solid #1a1a1a;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.brand-products-section::before,
.brand-showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.brand-products-header,
.brand-showcase-header {
  position: relative;
  z-index: 2;
  margin-bottom: 56px;
  max-width: 900px;
}

.brand-products-header .kicker,
.brand-showcase-header .kicker {
  font-family: var(--brand-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-theme-color);
  margin-bottom: 12px;
  display: inline-block;
}

.brand-products-header h2,
.brand-showcase-header h2 {
  font-size: clamp(34px, 4.5vw, 62px);
  color: #ffffff;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  line-height: 1.08;
}

.brand-products-header p,
.brand-showcase-header p {
  font-size: 16px;
  color: #999999;
  line-height: 1.7;
  margin: 0;
}

/* Collection Divider Title */
.showcase-collection-divider {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 60px 0 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid #222222;
  font-family: var(--brand-font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.showcase-collection-divider span.collection-tag {
  background: var(--brand-theme-color);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* Showcase List Container */
.brand-showcase-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

/* Individual Showcase Row */
.brand-showcase-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #101010;
  border: 1px solid #222222;
  border-radius: 0 !important;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.brand-showcase-row:hover {
  border-color: var(--brand-theme-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px var(--brand-theme-glow);
  transform: translateY(-4px);
}

.brand-showcase-row.reverse {
  grid-template-columns: 1fr 1.15fr;
}

.brand-showcase-row.reverse .showcase-media-side {
  order: 2;
}

.brand-showcase-row.reverse .showcase-content-side {
  order: 1;
}

/* Media Side (Large Architectural Image with Overlay Badges) */
.showcase-media-side {
  position: relative;
  min-height: 440px;
  background: #090909;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-media-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.brand-showcase-row:hover .showcase-media-side img {
  transform: scale(1.06);
}

.showcase-tag-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 3px solid var(--brand-theme-color);
  color: #ffffff;
  font-family: var(--brand-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  z-index: 3;
}

.showcase-model-pill {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #282828;
  color: #888888;
  font-family: var(--brand-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  z-index: 3;
}

/* Content Side */
.showcase-content-side {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background: #101010;
}

.showcase-eyebrow {
  display: block;
  font-family: var(--brand-font-mono);
  font-size: 11px;
  color: var(--brand-theme-color);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin: 0 0 10px 0;
  padding: 0;
}

.showcase-eyebrow .icon-dot {
  display: none !important;
}

.showcase-title {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 14px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.showcase-desc {
  font-size: 14.5px;
  color: #a0a0a0;
  line-height: 1.7;
  margin: 0 0 24px;
}

/* Specs & Features Grid */
.showcase-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.showcase-spec-pill {
  background: #161616;
  border: 1px solid #242424;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #d0d0d0;
  line-height: 1.4;
}

.showcase-spec-pill span.icon-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-theme-color);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Action CTA Bar */
.showcase-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid #1f1f1f;
  padding-top: 22px;
  margin-top: auto;
}

.showcase-btn-primary,
.showcase-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-theme-color);
  color: #ffffff;
  padding: 13px 26px;
  font-family: var(--brand-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.25s ease;
  border: 1px solid var(--brand-theme-color);
}

.showcase-btn-primary:hover,
.showcase-btn-download:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.showcase-btn-download svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.showcase-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #999999;
  border: 1px solid #333333;
  padding: 11px 20px;
  font-family: var(--brand-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.showcase-btn-secondary:hover {
  color: #ffffff;
  border-color: #777777;
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {

  .brand-showcase-row,
  .brand-showcase-row.reverse {
    grid-template-columns: 1fr !important;
  }

  .brand-showcase-row.reverse .showcase-media-side {
    order: 1 !important;
  }

  .brand-showcase-row.reverse .showcase-content-side {
    order: 2 !important;
  }

  .showcase-media-side {
    min-height: 320px;
  }

  .showcase-content-side {
    padding: 36px 26px;
  }
}

@media (max-width: 640px) {

  .brand-products-section,
  .brand-showcase-section {
    padding: 60px 20px 70px !important;
  }

  .showcase-specs-list {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .showcase-content-side {
    padding: 26px 18px;
  }

  .showcase-title {
    font-size: 21px !important;
  }

  .showcase-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .showcase-btn-primary,
  .showcase-btn-secondary {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Legacy fallback classes if needed */
.product-card {
  display: none !important;
}

/* 4. BRAND ARCHITECTURE HIGHLIGHTS */
.brand-architecture-section {
  background: #080808;
  color: #ffffff;
  padding: 100px 7vw;
  border-bottom: 1px solid #1a1a1a;
}

.brand-arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

.brand-arch-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 !important;
  padding: 34px 28px;
  transition: border-color 0.3s ease;
}

.brand-arch-card:hover {
  border-color: var(--brand-theme-border);
}

.brand-arch-card .arch-num {
  font-family: var(--brand-font-mono);
  font-size: 12px;
  color: var(--brand-theme-color);
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 14px;
}

.brand-arch-card h3 {
  font-size: 20px;
  color: #ffffff;
  font-weight: 500;
  margin: 0 0 12px;
}

.brand-arch-card p {
  font-size: 14px;
  color: #888888;
  line-height: 1.65;
  margin: 0;
}

/* 5. SWITCH BETWEEN BRANDS BAR */
.other-brands-bar {
  background: #050505;
  padding: 50px 7vw;
  border-bottom: 1px solid #1a1a1a;
}

.other-brands-title {
  font-family: var(--brand-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #777777;
  margin-bottom: 24px;
}

.other-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.other-brand-pill {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0 !important;
  padding: 14px 18px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.other-brand-pill small {
  font-family: var(--brand-font-mono);
  font-size: 9.5px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.other-brand-pill:hover {
  background: #1c1c1c;
  border-color: var(--brand-theme-border);
  transform: translateY(-2px);
}

.other-brand-pill.current {
  background: #181818;
  border-color: var(--brand-theme-color);
  border-left: 3px solid var(--brand-theme-color);
}

.other-brand-pill.current small {
  color: var(--brand-theme-color);
}

.driver-line-card {
  background: #121212;
  border: 1px solid #222;
  border-radius: 0 !important;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.driver-line-card h3 {
  font-size: 24px;
  color: #fff;
  margin: 0 0 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .brand-hero {
    padding: 110px 20px 45px;
  }

  .brand-products-section {
    padding: 50px 20px 70px;
  }

  .brand-architecture-section {
    padding: 60px 20px;
  }

  .brand-spec-bar {
    padding: 24px 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .other-brands-bar {
    padding: 35px 20px;
  }
}