/* Drasis Brands — 8-Card Asymmetric Bento Grid & Luxury Hover Styling */

:root {
  --brand-orange: #28c76f;
  --brand-orange-hover: #22b363;
  --brand-border-light: rgba(0, 0, 0, 0.12);
  --brand-border-dark: #222222;
  --brand-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 1. BLACK SECTION: Brands Hero */
.brands-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 150px 7vw 70px;
  background: radial-gradient(circle at 85% 15%, rgba(40, 199, 111, 0.08) 0%, transparent 65%), #050505;
  border-bottom: 1px solid #1f1f1f;
  color: #fff;
  overflow: hidden;
}

.brands-hero-grid {
  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(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

.brands-hero h1 {
  font-size: clamp(46px, 6.5vw, 102px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: #fff;
  margin: 14px 0 24px;
  max-width: 980px;
}

.brands-hero p.hero-desc {
  font-size: clamp(15px, 1.25vw, 19px);
  color: #999;
  max-width: 700px;
  line-height: 1.75;
  margin: 0;
}

/* 2. LIGHT SECTION: 8-Layout Bento Grid */
.brands-bento-section {
  background: #f3f1ec;
  padding: 90px 7vw 120px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.brands-bento-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 28px;
  margin-top: 50px;
}

/* 60 / 40 Alternating Grid Spans */
/* Row 1: 60 - 40 */
.brand-card-1 { grid-column: span 6; min-height: 440px; } /* 60% */
.brand-card-2 { grid-column: span 4; min-height: 440px; } /* 40% */

/* Row 2: 40 - 60 */
.brand-card-3 { grid-column: span 4; min-height: 440px; } /* 40% */
.brand-card-4 { grid-column: span 6; min-height: 440px; } /* 60% */

/* Row 3: 60 - 40 */
.brand-card-5 { grid-column: span 6; min-height: 440px; } /* 60% */
.brand-card-6 { grid-column: span 4; min-height: 440px; } /* 40% */

/* Row 4: 40 - 60 */
.brand-card-7 { grid-column: span 4; min-height: 440px; } /* 40% */
.brand-card-8 { grid-column: span 6; min-height: 440px; } /* 60% */

/* Asymmetric Bento Span Layout */
.brand-bento-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--brand-border-light);
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: box-shadow 0.35s ease, border-color 0.3s ease;
}

.brand-bento-card:hover {
  transform: none !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  border-color: var(--brand-orange);
}

/* Card Visual Background */
.brand-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: none !important;
}

.brand-bento-card:hover .brand-card-bg {
  transform: none !important;
}

/* FADED BOTTOM SHADOW HOVER OVERLAY */
.brand-card-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.75) 55%, rgba(0, 0, 0, 0.05) 100%);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 3;
}

.brand-bento-card:hover .brand-card-hover-overlay {
  opacity: 1;
  transform: translateY(0);
}

.brand-hover-tag {
  font-family: var(--brand-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-orange);
  font-weight: 700;
  margin-bottom: 6px;
}

.brand-hover-title {
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.brand-hover-desc {
  color: #cccccc;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.brand-hover-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.brand-hover-tech-list span {
  font-family: var(--brand-mono);
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 10px;
  border-radius: 0;
}

.brand-hover-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.brand-hover-link:hover {
  color: var(--brand-orange);
}

/* 3. BLACK SECTION: Standards Section */
.brands-standards-section {
  background: #090909;
  color: #fff;
  padding: 100px 7vw;
  border-top: 1px solid var(--brand-border-dark);
}

.brands-standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.standard-card {
  background: #111111;
  border: 1px solid #222222;
  border-top: 2px solid #333333;
  padding: 32px 26px;
  transition: border-top-color 0.3s;
}

.standard-card:hover {
  border-top-color: var(--brand-orange);
}

.standard-card small {
  font-family: var(--brand-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--brand-orange);
  display: block;
  margin-bottom: 12px;
}

.standard-card h4 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 10px;
  color: #fff;
}

.standard-card p {
  color: #888;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

/* Responsive */
@media (max-width: 1080px) {
  .brands-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .brand-card-1, .brand-card-2, .brand-card-3,
  .brand-card-4, .brand-card-5, .brand-card-6,
  .brand-card-7, .brand-card-8 {
    grid-column: span 1 !important;
    min-height: 400px;
  }
  .brands-standards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .brands-hero {
    padding: 110px 20px 50px;
  }
  .brands-bento-section {
    padding: 50px 20px 80px;
  }
  .brands-bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .brand-card-1, .brand-card-2, .brand-card-3,
  .brand-card-4, .brand-card-5, .brand-card-6,
  .brand-card-7, .brand-card-8 {
    grid-column: span 1 !important;
    min-height: 340px;
  }
  .brands-standards-section {
    padding: 70px 20px;
  }
  .brands-standards-grid {
    grid-template-columns: 1fr;
  }
}
