/*
Theme Name: BlackLambda
Theme URI: https://blacklambda.net
Author: BlackLambda
Description: BlackLambda marketing theme rebuilt for WordPress with editable Gutenberg sections.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: blacklambda
Tags: full-site-editing, one-column, custom-logo
*/

:root {
  --bg-0: #060606;
  --bg-1: #0d0d0d;
  --bg-2: #161616;
  --surface: #0f0f0f;
  --surface-soft: #1b1b1b;
  --line: #262626;
  --text: #f3f3f3;
  --text-muted: #c1c1c1;
  --accent: #f7f7f7;
  --shadow: rgba(0, 0, 0, 0.58);

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  --container: min(1100px, 92vw);
  --section-pad: clamp(4rem, 8vw, 8rem);

  --font-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  overflow-x: clip;
  background: radial-gradient(circle at 72% 10%, #1f1f1f 0%, transparent 30%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wp-site-blocks {
  padding: 0 !important;
  overflow-x: clip;
}

.wp-site-blocks > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

main.blacklambda-main {
  position: relative;
  z-index: 2;
}

main {
  position: relative;
  z-index: 2;
}

.section {
  width: var(--container);
  margin-inline: auto;
  padding-block: var(--section-pad);
}

.background-grid,
.background-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
}

.background-grid {
  z-index: 0;
  opacity: 0.3;
  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: 46px 46px;
  mask-image: radial-gradient(circle at 50% 20%, black 20%, transparent 70%);
}

.background-noise {
  z-index: 1;
  opacity: 0.1;
  background-image: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1), transparent 24%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.06), transparent 30%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, #d7d7d7, #5f5f5f);
  z-index: 40;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  width: var(--container);
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  margin: 0;
  width: 2.15rem;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #2a2a2a 12%, #171717 100%);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.brand-mark a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.brand-mark img {
  width: 92%;
  opacity: 1;
  filter: contrast(1.12);
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.brand-name a {
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: inline-flex;
  margin-left: auto;
}

.site-nav .wp-block-navigation__container {
  gap: 1.25rem;
}

.site-nav .wp-block-navigation-item__content {
  padding: 0;
}

.site-nav a,
a.cta-pill,
.cta-pill .wp-block-button__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a {
  opacity: 0.92;
}

.site-nav a.is-active {
  color: #ffffff;
  opacity: 1;
}

.header-actions {
  margin: 0;
}

a.cta-pill,
.cta-pill .wp-block-button__link {
  margin: 0;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  transition: border-color 180ms ease, transform 180ms ease;
}

a.cta-pill:hover,
.cta-pill .wp-block-button__link:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.hero {
  min-height: 84vh;
  display: grid;
  align-content: center;
  gap: 1.25rem;
  position: relative;
  isolation: isolate;
}

.hero > :not(.hero-visual) {
  position: relative;
  z-index: 3;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.8vw, 6.3rem);
  line-height: 0.94;
}

.hero-copy {
  margin: 0;
  max-width: 45ch;
  color: #dfdfdf;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-tags {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hero-tags p,
.hero-tags span {
  margin: 0;
  font-size: 0.82rem;
  color: #e2e2e2;
  border: 1px solid #444444;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 9%;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0.78;
  filter: grayscale(1) contrast(1.08) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.46));
  margin: 0 !important;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  box-shadow: 0 30px 90px var(--shadow);
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0;
}

.orb-a {
  inset: 10% auto auto 7%;
  width: 38%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 20% 20%, #2f2f2f, transparent 70%), #111111;
}

.orb-b {
  inset: auto 6% 13% auto;
  width: 28%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 30% 35%, #3a3a3a, transparent 65%), #101010;
}

.orb-c {
  inset: 38% 24% auto auto;
  width: 22%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 40% 20%, #4a4a4a, transparent 65%), #151515;
}

.section-head h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-family: var(--font-display);
}

.service-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid #242424;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), transparent 60%), var(--surface);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
}

.service-card p {
  margin: 0;
  color: #d4d4d4;
  line-height: 1.5;
}

.timeline {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.85rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #252525;
  background: rgba(255, 255, 255, 0.02);
}

.timeline-step .step-index,
.timeline-step span {
  margin: 0;
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #f5f5f5;
}

.timeline-step h3 {
  margin: 0;
  font-family: var(--font-display);
}

.timeline-step p {
  margin: 0.3rem 0 0;
  color: #d0d0d0;
}

.timeline-step .step-index {
  color: #f5f5f5;
}

.contact-link-wrap {
  margin: 0;
}

.contact-link {
  margin-top: 1rem;
  display: inline-flex;
  text-decoration: none;
  color: #fafafa;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  border-bottom: 1px solid #5a5a5a;
}

.contact-wrap {
  margin-top: 1.2rem;
  display: grid;
  gap: 1.2rem;
}

.contact-form {
  width: min(720px, 100%);
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid #2a2a2a;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), transparent 60%), #0f0f0f;
}

.contact-widget-note {
  margin: 0;
  font-size: 0.88rem;
  color: #c9c9c9;
  letter-spacing: 0.02em;
}

.contact-form .wp-block-shortcode {
  margin: 0;
  padding: 0.72rem 0.8rem;
  border: 1px dashed #3a3a3a;
  border-radius: 0.75rem;
  background: #131313;
  color: #d8d8d8;
  font-size: 0.9rem;
}

.contact-field {
  display: grid;
  gap: 0.45rem;
}

.contact-field span {
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c9c9c9;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid #3a3a3a;
  border-radius: 0.75rem;
  background: #131313;
  color: #f4f4f4;
  font: inherit;
  padding: 0.72rem 0.8rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #707070;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.contact-submit {
  justify-self: start;
  border: 1px solid #4a4a4a;
  border-radius: 999px;
  background: #191919;
  color: #f2f2f2;
  padding: 0.6rem 1rem;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  border-color: #808080;
}

.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 500ms ease, transform 500ms ease;
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-title,
.hero-copy {
  transition-duration: 620ms;
}

.section {
  transition: opacity 240ms ease;
}

.section.is-dim {
  opacity: 0.68;
}

@media (max-width: 900px) {
  .site-header {
    border-radius: var(--radius-md);
    top: 0.6rem;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-visual {
    opacity: 0.72;
    width: 74vw;
    right: -10vw;
    top: 34%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .section,
  .hero-title,
  .hero-copy,
  .cta-pill,
  .cta-pill .wp-block-button__link {
    transition: none;
  }
}

/* Keep Site Editor visual and drag-friendly. */
.editor-styles-wrapper .background-grid,
.editor-styles-wrapper .background-noise,
.editor-styles-wrapper .scroll-progress,
.editor-styles-wrapper .hero-visual {
  display: none !important;
}

.editor-styles-wrapper .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.editor-styles-wrapper .section.is-dim {
  opacity: 1 !important;
}

.editor-styles-wrapper .site-header {
  position: relative;
  top: 0;
}
