/*
Theme Name: Driven Systems
Theme URI: https://drivensystem.co
Description: Conversion landing page for Driven Systems LLC — websites, local SEO, and automation for home service businesses.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Author: Driven Systems LLC
License: GPL-2.0-or-later
Text Domain: driven-systems
*/

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Colors */
  --ds-navy:      #0A0F2C;
  --ds-navy-mid:  #1A2B3C;
  --ds-ink:       #1B1B1B;
  --ds-slate:     #C0C7D1;
  --ds-ash:       #E5E7EB;
  --ds-off-white: #F2F2F2;
  --ds-white:     #FFFFFF;

  /* Fonts */
  --ds-font-display: 'Instrument Serif', serif;
  --ds-font-body:    'Space Grotesk', sans-serif;

  /* Spacing (4px grid) */
  --sp-2xs: 4px;
  --sp-xs:  8px;
  --sp-s:   16px;
  --sp-m:   24px;
  --sp-l:   40px;
  --sp-xl:  64px;
  --sp-2xl: 96px;

  /* Layout */
  --ds-max-width:     1440px;
  --ds-content-width: 720px;
  --ds-radius:        12px;
  --ds-radius-sm:     8px;
  --ds-radius-lg:     20px;

  /* Animation */
  --ds-ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ds-duration:    600ms;
  --ds-duration-sm: 400ms;
}

/* ============================================================
   RESET + BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ds-ink);
  background: var(--ds-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; -webkit-tap-highlight-color: transparent; }

/* Remove default WP block margins that conflict with our layout */
.wp-site-blocks, .wp-block-group { margin: 0 !important; padding: 0 !important; }
.entry-content > * + * { margin-block-start: 0 !important; }

/* ============================================================
   TYPOGRAPHY UTILITY CLASSES
   Semantic h1-h6 are for structure/SEO only.
   All visual sizing is applied via these classes.
   ============================================================ */

.ds-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem); /* 28–44px */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.ds-body-lg {
  font-size: 1.25rem; /* 20px */
  font-weight: 400;
  line-height: 1.6;
}

.ds-body {
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.6;
}

.ds-body-sm {
  font-size: 0.75rem; /* 12px */
  font-weight: 400;
  line-height: 1.5;
}

.ds-overline {
  font-size: 0.75rem; /* 12px */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   TEXT COLOR MODIFIERS
   ============================================================ */

.ds-text-light     { color: var(--ds-off-white); }
.ds-text-muted     { color: var(--ds-slate); }
.ds-text-dim       { color: rgba(192, 199, 209, 0.5); }
.ds-text-ink       { color: var(--ds-ink); }
.ds-text-ink-muted { color: rgba(27, 27, 27, 0.6); }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

.ds-container {
  width: 100%;
  max-width: var(--ds-max-width);
  margin-inline: auto;
  padding-inline: var(--sp-s);
}

@media (min-width: 768px) {
  .ds-container { padding-inline: var(--sp-l); }
}

.ds-section {
  padding-block: var(--sp-2xl); /* 96px */
}

/* Dark section surfaces */
.ds-bg-navy     { background-color: var(--ds-navy); }
.ds-bg-navy-mid { background-color: var(--ds-navy-mid); }
.ds-bg-ink      { background-color: var(--ds-ink); }
.ds-bg-ash      { background-color: var(--ds-ash); }
.ds-bg-white    { background-color: var(--ds-white); }

/* ============================================================
   BUTTONS
   ============================================================ */

.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  padding: 14px var(--sp-l); /* 14px 40px */
  border-radius: 9999px; /* pill */
  font-family: var(--ds-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--ds-duration-sm) var(--ds-ease),
              color var(--ds-duration-sm) var(--ds-ease),
              border-color var(--ds-duration-sm) var(--ds-ease),
              transform var(--ds-duration-sm) var(--ds-ease),
              box-shadow var(--ds-duration-sm) var(--ds-ease);
}

.ds-btn:hover  { transform: translateY(-3px); }
.ds-btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }

/* Primary: off-white fill + dark text. Main CTA on dark backgrounds. */
.ds-btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--ds-off-white);
  color: var(--ds-ink);
  border-color: var(--ds-off-white);
}

/* Shine sweep — slides across on hover */
.ds-btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.ds-btn--primary:hover::after {
  transform: translateX(100%);
}
.ds-btn--primary:hover {
  background: #f8f8f8;
  border-color: #f8f8f8;
  box-shadow: 0 8px 28px rgba(242, 242, 242, 0.14);
}

/* Outline: ghost button for secondary CTA on dark backgrounds. */
.ds-btn--outline {
  background: transparent;
  color: var(--ds-off-white);
  border-color: rgba(192, 199, 209, 0.4);
}
.ds-btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(192, 199, 209, 0.65);
}

/* Dark: ink fill for CTAs on light/ash backgrounds. */
.ds-btn--dark {
  background: var(--ds-ink);
  color: var(--ds-off-white);
  border-color: var(--ds-ink);
}
.ds-btn--dark:hover {
  background: #000;
  box-shadow: 0 8px 24px rgba(27, 27, 27, 0.25);
}

.ds-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-s);
  align-items: center;
}

/* ============================================================
   CARDS
   ============================================================ */

/* Dark-bg cards — use liquid glass by default */
.ds-card {
  border-radius: var(--ds-radius);
  padding: var(--sp-l); /* 40px */
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform var(--ds-duration-sm) var(--ds-ease),
              box-shadow var(--ds-duration-sm) var(--ds-ease);
}

/* glass border via pseudo */
.ds-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.2) 0%,
    rgba(255,255,255,0.04) 50%,
    rgba(255,255,255,0.1) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ds-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12),
              0 12px 32px rgba(0,0,0,0.25);
}

/* ============================================================
   SECTION EYEBROW
   ============================================================ */

.ds-eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-s); /* 16px */
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.ds-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 100% -10%, rgba(0, 200, 255, 0.45) 0%, transparent 65%),
    radial-gradient(ellipse 70% 80% at 85% 50%,  rgba(26, 70, 212, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 65% 100%, rgba(90, 20, 180, 0.30) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 60%,  rgba(10, 15, 60, 0.80)  0%, transparent 75%),
    #03060f;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  padding-bottom: var(--sp-2xl);
}

/* Gradient handles atmosphere — pseudo-element not needed */
.ds-hero::before {
  display: none;
}

@keyframes hero-glow {
  from { opacity: 0.85; transform: translateY(-50%) scale(1);    }
  to   { opacity: 1.00; transform: translateY(-50%) scale(1.08); }
}

/* Bottom fade */
.ds-hero::after {
  display: none;
}

/* Full-section wave canvas */
.ds-hero__wave {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Scroll-driven dark overlay — JS sets opacity via style */
.ds-hero__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #03060f;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* Wider container for hero */
.ds-hero .ds-container {
  max-width: 1400px;
}

/* Centered stack */
.ds-hero__center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  padding-bottom: var(--sp-xl);
}

/* Mixed headline: sans-serif bold + serif italic */
.ds-hero__headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--sp-m);
}

.ds-hero__line1 {
  display: block;
  font-family: var(--ds-font-body);
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ds-off-white);
}

.ds-hero__line2 {
  display: block;
  font-family: var(--ds-font-display);
  font-size: clamp(3.25rem, 7vw, 6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #66bbff;
}

.ds-hero__sub {
  margin-bottom: var(--sp-l);
  max-width: 520px;
  text-align: center;
}


/* Nav bar — transparent, gradient fades into hero */
.ds-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  background: transparent;
  border-bottom: none;
  pointer-events: none;
}

/* Gradient veil — extends below nav so it bleeds seamlessly into the page */
.ds-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(
    to bottom,
    rgba(3, 6, 15, 0.82) 0%,
    rgba(3, 6, 15, 0.45) 45%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* When scrolled: deepen the veil slightly, still no border or line */
.ds-nav.is-scrolled::before {
  background: linear-gradient(
    to bottom,
    rgba(3, 6, 15, 0.96) 0%,
    rgba(3, 6, 15, 0.65) 55%,
    transparent 100%
  );
}

.ds-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  pointer-events: all;
}

.ds-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ds-off-white);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}

/* Desktop nav links */
.ds-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-l); /* 40px */
  list-style: none;
  margin: 0;
  padding: 0;
}

.ds-nav__link {
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  color: rgba(242, 242, 242, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ds-nav__link:hover {
  color: var(--ds-off-white);
}

.ds-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-s); /* 16px */
}

/* Hamburger — hidden on desktop, shown on mobile */
.ds-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.ds-nav__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ds-off-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Hamburger → X when open */
.ds-nav.menu-open .ds-nav__hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.ds-nav.menu-open .ds-nav__hamburger span:nth-child(2) {
  opacity: 0;
}
.ds-nav.menu-open .ds-nav__hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Solid bg when menu is open (replaces gradient veil) */
.ds-nav.menu-open {
  background: rgba(8, 12, 35, 0.98);
}
.ds-nav.menu-open::before {
  display: none;
}

/* Mobile slide-down menu */
.ds-nav__mobile-menu {
  display: none;
  pointer-events: all;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--sp-s);
}

.ds-nav.menu-open .ds-nav__mobile-menu {
  display: block;
}

.ds-nav__mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ds-nav__mobile-link {
  display: block;
  padding: var(--sp-m) 0; /* 24px top/bottom */
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ds-off-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease;
}

.ds-nav__mobile-link:hover {
  color: #66bbff;
}

/* ============================================================
   CTA + TESTIMONIAL SECTION
   ============================================================ */

.ds-cta-section {
  position: relative;
  overflow: hidden;
  background: #070a16;
  padding-block: var(--sp-2xl);
}

.ds-cta-section > .ds-container {
  position: relative;
  z-index: 1;
}

.ds-cta-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.ds-cta-section .ds-overline {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-s);
}

.ds-cta-section__headline {
  font-family: var(--ds-font-body);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-m);
}

.ds-cta-section__sub {
  margin-bottom: var(--sp-l);
}

/* Liquid glass card */
.ds-testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 24px 64px rgba(0, 0, 0, 0.45);
  touch-action: pan-y;   /* browser handles vertical scroll, we handle horizontal swipe */
  user-select: none;
  -webkit-user-select: none;
}

/* All items share one grid cell — stacked overlay */
.ds-testimonial__track {
  display: grid;
  min-height: 220px;
}

.ds-testimonial__item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

.ds-testimonial__item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ds-testimonial__stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: var(--sp-s);
}

.ds-testimonial__quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ds-slate);
  margin: 0 0 var(--sp-m);
  quotes: none;
}

.ds-testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
}

.ds-testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2255ee, #6633ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ds-off-white);
  flex-shrink: 0;
}

.ds-testimonial__name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ds-off-white);
}

.ds-testimonial__role {
  font-size: 0.75rem;
  color: var(--ds-slate);
  opacity: 0.7;
}

/* Progress dots */
.ds-testimonial__dots {
  display: flex;
  gap: 8px;
  margin-top: var(--sp-m);
  padding-top: var(--sp-s);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ds-testimonial__dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.20);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.35s ease, width 0.35s ease;
}

.ds-testimonial__dot.is-active {
  width: 24px;
  background: rgba(255, 255, 255, 0.80);
}

/* Bean glow — atmospheric bottom light */
.ds-cta-section__bean {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 900px;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(100, 30, 200, 0.50) 0%, rgba(50, 10, 150, 0.22) 45%, transparent 70%);
  filter: blur(56px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   ANIMATIONS — SCROLL-TRIGGERED REVEALS
   ============================================================ */

.ds-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--ds-duration) var(--ds-ease),
              transform var(--ds-duration) var(--ds-ease);
}

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

/* Stagger children */
.ds-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--ds-duration) var(--ds-ease),
              transform var(--ds-duration) var(--ds-ease);
}

.ds-stagger.is-visible > *:nth-child(1) { transition-delay:   0ms; }
.ds-stagger.is-visible > *:nth-child(2) { transition-delay:  80ms; }
.ds-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.ds-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.ds-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.ds-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

.ds-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */

.ds-footer {
  padding-block: var(--sp-l);
  background: var(--ds-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ds-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-s);
}

/* ============================================================
   BLUR TEXT ANIMATION
   Add data-blur-text to any heading. JS splits into words
   and animates each in with blur-to-clear stagger.
   ============================================================ */

.ds-blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(24px);
  transition: opacity 0.4s var(--ds-ease),
              filter 0.4s var(--ds-ease),
              transform 0.4s var(--ds-ease);
}

.ds-blur-word.is-visible {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}


/* ============================================================
   SHOWCASE / SOLUTIONS SECTION
   ============================================================ */

.ds-showcase {
  background: #F5F8FF;
}

.ds-showcase__header {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--sp-l); /* 40px */
  align-items: end;
  margin-bottom: var(--sp-l); /* 40px */
}

.ds-showcase__headline {
  margin-top: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.ds-showcase__intro {
  color: var(--ds-ink);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
}

/* Bento grid: 2-up top + 1 full-width bottom */
.ds-showcase__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 580px 380px;
  gap: 12px;
}

/* Base card */
.ds-showcase__card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ds-navy-mid);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Full-width bottom card */
.ds-showcase__card--wide {
  grid-column: 1 / -1;
}

/* Photo layer — scales on hover for zoom effect */
.ds-showcase__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.ds-showcase__card:hover::before {
  transform: scale(1.06);
}

/* Gradient overlay — sits above photo, below content */
.ds-showcase__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 25, 0.20) 0%,
    rgba(5, 8, 25, 0.10) 30%,
    rgba(5, 8, 25, 0.65) 60%,
    rgba(5, 8, 25, 0.94) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.ds-showcase__card-content {
  position: relative;
  z-index: 2;
  padding: var(--sp-l); /* 40px */
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs); /* 8px */
}

.ds-showcase__card-category {
  color: rgba(192, 199, 209, 0.6);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--sp-2xs); /* 4px */
}

.ds-showcase__card-title {
  font-size: 1.375rem; /* 22px */
  font-weight: 700;
  color: var(--ds-off-white);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.ds-showcase__card-desc {
  font-size: 0.875rem; /* 14px */
  color: var(--ds-slate);
  line-height: 1.6;
  opacity: 0.8;
  margin: 0;
}

/* Liquid glass CTA button */
.ds-showcase__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  margin-top: var(--sp-s); /* 16px */
  align-self: flex-start;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.ds-showcase__card-cta:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
  color: #fff;
}

/* Real photo backgrounds */
.ds-showcase__card--websites::before {
  background-image: url('https://driven-systems.local/wp-content/uploads/2026/04/websites-premium-background.jpg');
}

.ds-showcase__card--seo::before {
  background-image: url('https://driven-systems.local/wp-content/uploads/2026/04/seo-premium-background.jpg');
}

.ds-showcase__card--ai::before {
  background-image: url('https://driven-systems.local/wp-content/uploads/2026/04/ai-automation-showcase.jpg');
  background-position: center 30%;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.ds-about {
  background: #F5F8FF;
  border-top: 1px solid rgba(27, 27, 27, 0.07);
}

.ds-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-l); /* 40px */
  align-items: start;
}

.ds-about__headline {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: var(--sp-s); /* 16px */
}

.ds-about__copy p + p {
  margin-top: var(--sp-s); /* 16px */
}

/* Credential card — dark navy, floats on the light background */
.ds-about__card {
  background: var(--ds-navy);
  border-radius: 20px;
  padding: var(--sp-xl); /* 64px */
  display: flex;
  flex-direction: column;
  gap: var(--sp-l); /* 40px */
}

.ds-about__card-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs); /* 8px */
}

.ds-about__card-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ds-off-white);
  line-height: 1.3;
}

.ds-about__card-desc {
  font-size: 0.9375rem; /* 15px */
  color: var(--ds-slate);
  line-height: 1.65;
  opacity: 0.75;
  margin: 0;
}

.ds-about__card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   HERO CREDIBILITY BAR (anchored to hero bottom)
   ============================================================ */

.ds-hero__cred {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-s);      /* 16px */
}

.ds-hero__cred-stats {
  display: flex;
  align-items: stretch;
}

.ds-hero__cred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: var(--sp-m); /* 24px */
  gap: var(--sp-2xs);          /* 4px */
}

.ds-hero__cred-value {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  color: var(--ds-off-white);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ds-hero__cred-label {
  font-size: 0.6875rem; /* 11px */
  font-weight: 400;
  color: var(--ds-slate);
  opacity: 0.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */

@media (max-width: 767px) {
  .ds-section { padding-block: var(--sp-xl); }   /* 64px on mobile */
  .ds-hero { min-height: auto; }
  .ds-cta-section__inner { grid-template-columns: 1fr; gap: var(--sp-l); }
  .ds-cta-section__headline { font-size: clamp(1.75rem, 8vw, 2.5rem); }

  /* Nav — hide desktop links, show hamburger */
  .ds-nav__links { display: none; }
  .ds-nav__hamburger { display: flex; }
  .ds-nav__cta {
    padding: 8px 16px;
    font-size: 0.8125rem; /* 13px */
  }

  /* Hero — smaller headings, tighter spacing */
  .ds-hero__line1 {
    font-size: 1.875rem; /* 30px */
  }
  .ds-hero__line2 {
    font-size: 2rem; /* 32px */
  }
  .ds-hero__headline {
    margin-bottom: var(--sp-s); /* 16px */
  }
  .ds-hero__sub {
    font-size: 0.875rem; /* 14px */
    margin-bottom: var(--sp-m); /* 24px */
  }

  /* Showcase section */
  .ds-showcase__headline { font-size: 1.625rem; }
  .ds-about__headline { font-size: 1.625rem; }

  .ds-showcase__header {
    grid-template-columns: 1fr;
    gap: var(--sp-s); /* 16px */
    margin-bottom: var(--sp-m); /* 24px */
  }

  .ds-showcase__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .ds-showcase__card,
  .ds-showcase__card--wide {
    grid-column: auto;
    min-height: 360px;
  }

  /* Card overlay — darker on mobile for readability */
  .ds-showcase__card::after {
    background: linear-gradient(
      to bottom,
      rgba(5, 8, 25, 0.55) 0%,
      rgba(5, 8, 25, 0.45) 20%,
      rgba(5, 8, 25, 0.80) 55%,
      rgba(5, 8, 25, 0.97) 100%
    );
  }

  /* Card desc — full opacity on mobile for readability */
  .ds-showcase__card-desc {
    opacity: 1;
    font-size: 0.9375rem; /* 15px */
  }

  /* About section */
  .ds-about__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-l); /* 40px */
  }

  .ds-about__card {
    padding: var(--sp-l); /* 40px */
  }

  /* Hero cred bar — tighter on mobile, keep on one row */
  .ds-hero__cred {
    bottom: var(--sp-l); /* 40px */
    gap: var(--sp-xs);   /* 8px */
  }

  .ds-hero__cred-item {
    padding-inline: var(--sp-s); /* 16px */
  }

  .ds-hero__cred-value {
    font-size: 1rem; /* 16px */
  }

  .ds-hero__cred-label {
    white-space: nowrap; /* prevent US-BASED wrapping to two lines */
  }
}

/* Nav CTA — show short label on very narrow screens */
.ds-nav__cta-short { display: none; }

@media (max-width: 420px) {
  .ds-nav__cta-full  { display: none; }
  .ds-nav__cta-short { display: inline; }
}

/* Credibility bar — stack 2-top + 1-bottom on very narrow screens */
@media (max-width: 360px) {
  .ds-hero__cred-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    row-gap: var(--sp-m); /* 24px between rows */
  }
  .ds-hero__cred-item:last-child {
    grid-column: 1 / -1;
  }
  .ds-hero__cred-item {
    padding-inline: var(--sp-xs); /* 8px */
  }
}
