/* /www/apply.altproductiongroup.com/public/assets/css/brands/hosting.css
 *
 * Brand: Alt Production Hosting
 * Visual intent:
 * - Dark, restrained infrastructure aesthetic
 * - Magenta neon as the primary "signal" (from logo)
 * - Subtle industrial texture (grit) without looking messy
 * - Corporate-grade UI, but with Alt DNA
 *
 * Integration contract:
 * - Your HTML should set either:
 *     <body data-brand="hosting"> ... OR ...
 *     <section class="brand brand--hosting" data-brand="hosting">
 *
 * - Base stylesheet (global.css) handles:
 *     - grids, spacing, typography baseline
 *     - shared components (cards, buttons)
 *
 * This file overrides via CSS variables + scoped component rules.
 */

/* -------------------------------------------------------------------------- */
/* Hosting brand tokens                                                        */
/* -------------------------------------------------------------------------- */

:root {
  --hosting-bg-0: #05040a;
  --hosting-bg-1: #070611;

  --hosting-ink: #f2f2ff;
  --hosting-ink-dim: rgba(242, 242, 255, 0.80);
  --hosting-ink-muted: rgba(242, 242, 255, 0.62);

  /* Primary accent from logo */
  --hosting-magenta: #ff19c9;

  /* Secondary accents tuned for “security + ops” vibe */
  --hosting-violet: #8b5cf6;
  --hosting-cyan: #00e5ff;

  /* Infrastructure gradient (magenta-forward) */
  --hosting-grad-primary: linear-gradient(90deg, var(--hosting-magenta), var(--hosting-violet));
  --hosting-grad-soft: linear-gradient(135deg,
    rgba(255, 25, 201, 0.16),
    rgba(139, 92, 246, 0.12),
    rgba(0, 229, 255, 0.08)
  );

  --hosting-border: rgba(255, 255, 255, 0.10);
  --hosting-border-strong: rgba(255, 255, 255, 0.16);

  /* Surfaces */
  --hosting-surface: rgba(12, 10, 22, 0.72);
  --hosting-surface-2: rgba(14, 12, 26, 0.80);

  /* Focus / glow */
  --hosting-focus: rgba(255, 25, 201, 0.55);
  --hosting-shadow: 0 10px 32px rgba(0, 0, 0, 0.62);
  --hosting-glow: 0 0 26px rgba(255, 25, 201, 0.18), 0 0 22px rgba(139, 92, 246, 0.12);

  --hosting-radius: 14px;
}

/* Apply tokens when Hosting is active */
body[data-brand="hosting"],
.brand--hosting,
section[data-brand="hosting"] {
  --brand-bg-0: var(--hosting-bg-0);
  --brand-bg-1: var(--hosting-bg-1);

  --brand-ink: var(--hosting-ink);
  --brand-ink-dim: var(--hosting-ink-dim);
  --brand-ink-muted: var(--hosting-ink-muted);

  --brand-accent-1: var(--hosting-magenta);
  --brand-accent-2: var(--hosting-violet);
  --brand-accent-3: var(--hosting-cyan);

  --brand-gradient: var(--hosting-grad-primary);
  --brand-gradient-soft: var(--hosting-grad-soft);

  --brand-border: var(--hosting-border);
  --brand-border-strong: var(--hosting-border-strong);

  --brand-surface: var(--hosting-surface);
  --brand-surface-2: var(--hosting-surface-2);

  --brand-focus: var(--hosting-focus);
  --brand-shadow: var(--hosting-shadow);
  --brand-glow: var(--hosting-glow);

  --brand-radius: var(--hosting-radius);
}

/* -------------------------------------------------------------------------- */
/* Hosting background: “infra darkness + signal”                               */
/* -------------------------------------------------------------------------- */

body[data-brand="hosting"] {
  background:
    radial-gradient(1100px 700px at 20% 10%, rgba(255, 25, 201, 0.10), transparent 55%),
    radial-gradient(900px 520px at 82% 22%, rgba(139, 92, 246, 0.09), transparent 58%),
    linear-gradient(180deg, var(--brand-bg-0), var(--brand-bg-1));
  color: var(--brand-ink);
}

/* If Hosting is a section on a mixed-brand page */
.brand--hosting,
section[data-brand="hosting"] {
  position: relative;
  color: var(--brand-ink);
  background:
    radial-gradient(1000px 600px at 20% 8%, rgba(255, 25, 201, 0.09), transparent 58%),
    radial-gradient(860px 540px at 80% 24%, rgba(139, 92, 246, 0.08), transparent 60%),
    linear-gradient(180deg, var(--brand-bg-0), var(--brand-bg-1));
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow);
  overflow: hidden;
}

/* Subtle “grit” layer (matches logo distressed texture without actual image) */
.brand--hosting::before,
section[data-brand="hosting"]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.08) 50%, transparent 52%),
    radial-gradient(1px 1px at 45% 25%, rgba(255,255,255,0.05) 50%, transparent 52%),
    radial-gradient(1px 1px at 70% 55%, rgba(255,255,255,0.06) 50%, transparent 52%),
    radial-gradient(2px 2px at 30% 70%, rgba(0,0,0,0.25) 50%, transparent 55%),
    radial-gradient(2px 2px at 80% 78%, rgba(0,0,0,0.22) 50%, transparent 55%);
  opacity: 0.45;
  mix-blend-mode: overlay;
}

/* Signal bar at top edge */
.brand--hosting::after,
section[data-brand="hosting"]::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: -2px;
  height: 3px;
  background: var(--brand-gradient);
  opacity: 0.85;
  pointer-events: none;
}

/* Ensure content above background layers */
.brand--hosting > *,
section[data-brand="hosting"] > * {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* Hosting logo lockup                                                        */
/* -------------------------------------------------------------------------- */

/* Expected markup:
 * <div class="brand-lockup brand-lockup--hosting">
 *   <img class="brand-lockup__logo" src="/assets/img/brands/hosting/logo.png" alt="Alt Production Hosting">
 * </div>
 */
.brand-lockup--hosting {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup--hosting .brand-lockup__logo {
  height: 46px;
  width: auto;
  filter:
    drop-shadow(0 12px 28px rgba(0,0,0,0.70))
    drop-shadow(0 0 20px rgba(255,25,201,0.20));
}

/* Optional “signal title” text */
.brand-title--hosting {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.25px;
}

/* -------------------------------------------------------------------------- */
/* Lane cards (skills/domains)                                                 */
/* -------------------------------------------------------------------------- */

.brand--hosting .lane-grid,
section[data-brand="hosting"] .lane-grid {
  display: grid;
  gap: 14px;
}

/* Card base */
.brand--hosting .lane-card,
section[data-brand="hosting"] .lane-card {
  border: 1px solid var(--brand-border);
  background: linear-gradient(180deg, rgba(12,10,22,0.78), rgba(12,10,22,0.58));
  border-radius: calc(var(--brand-radius) - 2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.55);
  position: relative;
  overflow: hidden;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

/* Soft highlight */
.brand--hosting .lane-card::before,
section[data-brand="hosting"] .lane-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-gradient-soft);
  opacity: 0.38;
  pointer-events: none;
}

/* Hover behaviour */
.brand--hosting .lane-card:hover,
section[data-brand="hosting"] .lane-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-border-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,0.62), var(--brand-glow);
}

.brand--hosting .lane-card__title,
section[data-brand="hosting"] .lane-card__title {
  margin: 0 0 6px 0;
  font-weight: 750;
  letter-spacing: 0.2px;
}

.brand--hosting .lane-card__desc,
section[data-brand="hosting"] .lane-card__desc {
  margin: 0;
  color: var(--brand-ink-dim);
}

.brand--hosting .lane-card__cta,
section[data-brand="hosting"] .lane-card__cta {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Optional badge (if you mark "High Priority" lanes later) */
.brand--hosting .badge,
section[data-brand="hosting"] .badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--brand-ink);
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */

.brand--hosting .btn,
section[data-brand="hosting"] .btn {
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  background: rgba(255,255,255,0.06);
  color: var(--brand-ink);
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
}

.brand--hosting .btn:hover,
section[data-brand="hosting"] .btn:hover {
  transform: translateY(-1px);
  border-color: var(--brand-border-strong);
  background: rgba(255,255,255,0.08);
}

.brand--hosting .btn:focus-visible,
section[data-brand="hosting"] .btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--brand-focus), var(--brand-glow);
}

/* Primary: magenta signal */
.brand--hosting .btn--primary,
section[data-brand="hosting"] .btn--primary {
  border: 0;
  background: var(--brand-gradient);
  color: #0a0612;
  font-weight: 750;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55), 0 0 24px rgba(255,25,201,0.16);
}

.brand--hosting .btn--primary:hover,
section[data-brand="hosting"] .btn--primary:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.62), 0 0 30px rgba(255,25,201,0.18), 0 0 22px rgba(139,92,246,0.14);
}

/* Outline */
.brand--hosting .btn--outline,
section[data-brand="hosting"] .btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.18);
}

/* -------------------------------------------------------------------------- */
/* Form styling (when Hosting brand is selected)                               */
/* -------------------------------------------------------------------------- */

.brand--hosting .form-shell,
section[data-brand="hosting"] .form-shell {
  border: 1px solid var(--brand-border);
  background: rgba(12,10,22,0.66);
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow);
}

.brand--hosting input[type="text"],
.brand--hosting input[type="email"],
.brand--hosting input[type="url"],
.brand--hosting textarea,
.brand--hosting select,
section[data-brand="hosting"] input[type="text"],
section[data-brand="hosting"] input[type="email"],
section[data-brand="hosting"] input[type="url"],
section[data-brand="hosting"] textarea,
section[data-brand="hosting"] select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--brand-ink);
  border-radius: 12px;
}

.brand--hosting input:focus,
.brand--hosting textarea:focus,
.brand--hosting select:focus,
section[data-brand="hosting"] input:focus,
section[data-brand="hosting"] textarea:focus,
section[data-brand="hosting"] select:focus {
  outline: 0;
  border-color: rgba(255,25,201,0.48);
  box-shadow: 0 0 0 3px rgba(255,25,201,0.18);
}

.brand--hosting .help-text,
section[data-brand="hosting"] .help-text {
  color: var(--brand-ink-muted);
}

/* -------------------------------------------------------------------------- */
/* Brandstripe                                                                  */
/* -------------------------------------------------------------------------- */

.brand--hosting .brandstripe,
section[data-brand="hosting"] .brandstripe {
  height: 4px;
  border-radius: 999px;
  background: var(--brand-gradient);
  box-shadow: 0 0 18px rgba(255,25,201,0.18), 0 0 12px rgba(139,92,246,0.10);
}

/* -------------------------------------------------------------------------- */
/* Responsive tweaks                                                            */
/* -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .brand-lockup--hosting .brand-lockup__logo {
    height: 40px;
  }

  .brand--hosting .btn,
  section[data-brand="hosting"] .btn {
    width: 100%;
  }
}
