/* DOPE UTILITIES LLC — High-Energy B2B Revenue Machine */

/* ============================================================
   FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS VARIABLES — Palette & Spacing Scale
   ============================================================ */
:root {
  /* Palette */
  --primary: #0A0E27;
  --secondary: #1A73E8;
  --accent: #FFD60A;
  --background: #FFFFFF;
  --surface: #F5F7FA;
  --text: #0A0E27;
  --textMuted: #64748B;
  --border: #E2E8F0;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Section Padding */
  --section-padding: clamp(6rem, 12vw, 8rem);

  /* Transitions */
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

a {
  color: var(--secondary);
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent);
}

strong {
  font-weight: 600;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--textMuted);
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  width: 100%;
}

.section-padding {
  padding: var(--section-padding) 0;
  position: relative;
}

.text-center {
  text-align: center;
}

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-lg);
}

.grid-2 > *, .grid-3 > *, .grid-4 > * {
  min-width: 0;
}

/* ============================================================
   NAVIGATION — Sticky Dark Bar
   ============================================================ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transition: color var(--transition-base);
}

.nav-logo:hover {
  color: #fff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  height: 64px;
  line-height: 64px;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* Mobile Menu Toggle */
.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-label span {
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

/* ============================================================
   HERO — Asymmetric Split with Stat Badge
   ============================================================ */
.hero-section {
  background: var(--background);
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(90deg, var(--surface) 1px, transparent 1px),
    linear-gradient(0deg, var(--surface) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  transform: skewY(-6deg);
  z-index: 0;
}

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

.hero-section h1 {
  max-width: 900px;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.hero-section p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text);
  max-width: 720px;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-section .btn {
  margin-top: var(--space-md);
}

/* Diagonal accent divider */
.diagonal-split {
  position: relative;
}

.diagonal-split::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  left: 0;
  width: 100%;
  height: 8rem;
  background: var(--accent);
  transform: skewY(-3deg);
  z-index: 0;
  opacity: 0.1;
}

/* ============================================================
   BUTTONS — Pills with Scale Hover
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-bounce);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 214, 10, 0.3);
}

.btn-primary:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 214, 10, 0.4);
  color: var(--primary);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: #fff;
  transform: scale(1.05) translateY(-2px);
  border-color: var(--secondary);
}

/* Button groups */
.hero-section div a.btn,
section div a.btn {
  margin: 0.5rem 0.5rem 0.5rem 0;
}

/* ============================================================
   CARDS — Flat with Border, Hover Lift + Accent
   ============================================================ */
.card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  min-width: 0;
  width: 100%;
}

.card:hover {
  transform: translateY(-2px);
  border-left: 4px solid var(--secondary);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.12);
}

.card h2, .card h3, .card h4 {
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--textMuted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card ul {
  margin: var(--space-md) 0;
  padding-left: var(--space-md);
}

.card ul li {
  color: var(--text);
  font-size: 0.9rem;
}

/* Service Icons */
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border);
}

/* ============================================================
   STATS — Monospace Data Callouts
   ============================================================ */
.stats-section {
  background: var(--primary);
  color: #fff;
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 20rem;
  height: 20rem;
  background: var(--accent);
  opacity: 0.05;
  border-radius: 50%;
  transform: skewY(8deg);
}

.stats-section h2 {
  color: #fff;
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.stats-section article {
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-sm);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stats-section p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* ============================================================
   STORY & TWO-COLUMN LAYOUTS
   ============================================================ */
.story-arc .grid-2 {
  align-items: start;
}

.story-arc article h2,
.story-arc aside h3 {
  margin-bottom: var(--space-md);
}

.story-arc aside .card {
  margin-bottom: var(--space-lg);
}

/* ============================================================
   RESULTS & CASE HIGHLIGHTS
   ============================================================ */
.results-hero .grid-3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

#case-highlights header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--surface);
  border-radius: 4px;
  padding: var(--space-xl);
  border-left: 4px solid var(--accent);
  margin-bottom: var(--space-lg);
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: var(--space-md);
  border: none;
  padding-left: 0;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.9rem;
}

/* ============================================================
   TEAM GRID
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}

.team-member {
  text-align: center;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.12);
}

.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  border: 3px solid var(--surface);
}

.team-member h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.2rem;
}

.team-member p {
  font-size: 0.9rem;
  color: var(--textMuted);
}

/* ============================================================
   FOOTER — Three-Column Dark
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: skewY(-1deg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links-section h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-base);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-social {
  margin-top: var(--space-lg);
}

.social-icons {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all var(--transition-base);
}

.social-icons a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   FORMS
   ============================================================ */
form {
  max-width: 600px;
  margin: 0 auto;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-base);
  background: var(--background);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button[type="submit"],
input[type="submit"] {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-bounce);
}

button[type="submit"]:hover,
input[type="submit"]:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 214, 10, 0.4);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: clamp(4rem, 8vw, 6rem);
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--primary);
    flex-direction: column;
    gap: 0;
    padding: var(--space-md) 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a {
    height: auto;
    line-height: 1.5;
    padding: var(--space-md) var(--space-lg);
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-left-color: var(--accent);
    border-bottom-color: transparent;
  }

  .nav-toggle-checkbox:checked ~ .nav-links {
    max-height: 600px;
    opacity: 1;
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero-section {
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 4rem);
  }

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

/* Small mobile */
@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .btn {
    width: 100%;
    padding: 16px;
  }

  .card {
    padding: var(--space-lg);
  }

  .stat-number {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.bg-surface {
  background: var(--surface);
}

.bg-primary {
  background: var(--primary);
  color: #fff;
}

.text-muted {
  color: var(--textMuted);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

/* ============================================================
   ANGULAR ACCENT ELEMENTS
   ============================================================ */
.accent-bar {
  width: 100%;
  height: 8px;
  background: var(--accent);
  transform: skewY(-2deg);
  margin: var(--space-2xl) 0;
}

.skewed-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: skewX(-8deg);
  margin-bottom: var(--space-md);
}

.skewed-badge span {
  display: inline-block;
  transform: skewX(8deg);
}

/* Geometric decorations */
.hero-section .container::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -5%;
  width: 200px;
  height: 200px;
  background: var(--accent);
  opacity: 0.08;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-section .container::after {
    display: none;
  }
}