/* =============================================================
   Brand Page — Shared Stylesheet
   Extends: styles.css + component library
   Only adds styles genuinely absent from the v5 master stylesheet.
   Do not duplicate any class already defined in styles.css or components/.
   Used by: /brands/u8asia/  /brands/hb88/  /brands/udompet/
============================================================= */

/* ── Brand Colour Tokens (defaults; each page overrides in <style>) ── */
:root {
  --brand-hero-from:  #07071A;
  --brand-hero-mid:   #0D1B4B;
  --brand-hero-to:    #1565C0;
  --brand-accent:     #FF6D00;
  --brand-glow:       rgba(21, 101, 192, 0.15);
  --brand-cta-from:   #0D47A1;
  --brand-cta-to:     #1565C0;
}

/* ── Hero Override — Shared Layout ──────────────────────────────────
   Each brand page inline <style> sets the full background-image directly:
     background-image: linear-gradient(...), url('./hero-final.png');
   This file provides only shared structural properties.
──────────────────────────────────────────────────────────────────── */
.section-hero--brand {
  position: relative;
  overflow: hidden;
  background-color: #07071a; /* fallback while image loads */
}

/* Gradient is now baked into background-image in each brand's <style>.
   Disable ::before to prevent a second overlay darkening the image. */
.section-hero--brand::before {
  display: none;
}

.section-hero--brand .hero-bg-glow {
  background: radial-gradient(circle, var(--brand-glow, rgba(21,101,192,0.15)), transparent 70%);
  z-index: 2;
}

.section-hero--brand .container {
  position: relative;
  z-index: 3;
}

/* ── Hero Featured Image (background handles the visual) ─────── */
.brand-hero-img {
  display: none;
}

/* ── Hero Text zone — constrained to left clear zone ─────────── */
.section-hero--brand .hero-text {
  max-width: 520px;
}

/* ── Hero Text legibility ─────────────────────────────────────── */
.section-hero--brand .hero-title,
.section-hero--brand .hero-eyebrow,
.section-hero--brand .hero-subtitle {
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
}

@media (max-width: 900px) {
  .section-hero--brand .hero-text {
    width: 100%;
    max-width: 100%;
  }
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.brand-breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  padding: 20px 0 0;
}

.brand-breadcrumb a {
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  transition: color 150ms ease;
}

.brand-breadcrumb a:hover { color: #fff; }

.brand-breadcrumb .sep {
  margin: 0 6px;
  opacity: 0.4;
}

/* ── Prose Content ─────────────────────────────────────────── */
/* Styles for long-form SEO article text.
   Typography tokens (color, font-family, line-height) come from styles.css. */
.brand-prose {
  /* inherits font from body */
}

.brand-prose h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-heading);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

.brand-prose h2:first-child { margin-top: 0; }

.brand-prose p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-body);
  margin-bottom: 16px;
}

.brand-prose strong {
  color: var(--color-text-heading);
  font-weight: 600;
}

.brand-prose a {
  color: var(--color-blue-primary);
  font-weight: 500;
  text-decoration: none;
}

.brand-prose a:hover { text-decoration: underline; }

/* ── Key Information Table ─────────────────────────────────── */
/* Sits inside .brand-prose, not a standalone section. */
.brand-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0 28px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.brand-info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.brand-info-table tr:last-child { border-bottom: none; }

.brand-info-table th {
  text-align: left;
  padding: 11px 16px;
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-text-heading);
  width: 38%;
  font-size: 13px;
}

.brand-info-table td {
  padding: 11px 16px;
  color: var(--color-text-body);
}

/* ── CTA Banner Brand Override ─────────────────────────────── */
/* Replaces default blue gradient with brand gradient. */
.cta-banner--brand .cta-banner__bg {
  background: linear-gradient(
    135deg,
    var(--brand-cta-from) 0%,
    var(--brand-cta-to)   100%
  );
}

/* ── Compliance Bar ────────────────────────────────────────── */
.i1p-compliance {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 12px 0;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.i1p-compliance a {
  color: var(--color-blue-primary);
  text-decoration: none;
}

.i1p-compliance a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-content--brand {
    padding: 60px 0 80px;
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .hero-content--brand {
    padding: 48px 0 60px;
    max-width: 100%;
  }

  .brand-prose h2 {
    font-size: 20px;
  }
}
