/*
Theme Name: LeaseBase Theme V2
Theme URI: https://leasebase.ai
Description: Premium marketing theme for LeaseBase — operational intelligence for modern property owners. Child of Twenty Twenty-Five.
Author: LeaseBase
Template: twentytwentyfive
Version: 2.0.0
Text Domain: leasebase-theme-v2
*/

/* ============================================================
   DESIGN SYSTEM — LeaseBase Premium Marketing V2
   ============================================================
   Color system, typography, spacing, layout utilities,
   and base component styles for the premium marketing site.
   ============================================================ */

/* ── 1. Design Tokens ───────────────────────────────────── */

:root {
  /* Brand */
  --lb-primary: #22c55e;
  --lb-primary-dark: #15803d;
  --lb-primary-light: #dcfce7;
  --lb-primary-50: #f0fdf4;
  --lb-gradient-brand: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  --lb-gradient-cta: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);

  /* Surfaces */
  --lb-dark: #0D1320;
  --lb-dark-surface: #1a2332;
  --lb-dark-border: rgba(255, 255, 255, 0.08);
  --lb-dark-border-hover: rgba(255, 255, 255, 0.16);
  --lb-white: #ffffff;
  --lb-gray-50: #f8fafc;
  --lb-gray-100: #f1f5f9;
  --lb-gray-200: #e2e8f0;
  --lb-gray-300: #cbd5e1;
  --lb-gray-400: #94a3b8;
  --lb-gray-500: #64748b;
  --lb-gray-600: #475569;
  --lb-gray-700: #334155;
  --lb-gray-800: #1e293b;
  --lb-gray-900: #0f172a;

  /* Typography */
  --lb-font: 'Inter', system-ui, -apple-system, sans-serif;
  --lb-text-xs: 0.75rem;
  --lb-text-sm: 0.875rem;
  --lb-text-base: 1rem;
  --lb-text-lg: 1.125rem;
  --lb-text-xl: 1.25rem;
  --lb-text-2xl: 1.5rem;
  --lb-text-3xl: clamp(1.875rem, 3vw, 2rem);
  --lb-text-4xl: clamp(2rem, 4vw, 3rem);
  --lb-text-5xl: clamp(2.5rem, 5vw, 3.75rem);

  /* Spacing */
  --lb-space-xs: 4px;
  --lb-space-sm: 8px;
  --lb-space-md: 16px;
  --lb-space-lg: 24px;
  --lb-space-xl: 32px;
  --lb-space-2xl: 48px;
  --lb-space-3xl: 64px;
  --lb-space-4xl: 96px;
  --lb-space-5xl: 128px;

  /* Radius */
  --lb-radius-sm: 6px;
  --lb-radius-md: 8px;
  --lb-radius-lg: 12px;
  --lb-radius-xl: 16px;
  --lb-radius-2xl: 24px;
  --lb-radius-full: 9999px;

  /* Shadows */
  --lb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --lb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --lb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --lb-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --lb-transition: 200ms ease;
  --lb-transition-slow: 400ms ease;
}

/* ── 2. Reset & Base ────────────────────────────────────── */

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

body {
  font-family: var(--lb-font);
  font-size: var(--lb-text-base);
  line-height: 1.6;
  color: var(--lb-gray-900);
  background: var(--lb-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Remove default WP block spacing that fights our design system */
.wp-site-blocks {
  padding: 0 !important;
}
.wp-site-blocks > * + * {
  margin-top: 0 !important;
}
.wp-block-post-content > * + * {
  margin-block-start: 0 !important;
}

/* ── 3. Typography ──────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--lb-font);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--lb-text-5xl); font-weight: 700; }
h2 { font-size: var(--lb-text-4xl); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: var(--lb-text-2xl); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: var(--lb-text-xl); font-weight: 600; }

p {
  margin: 0 0 var(--lb-space-md);
  line-height: 1.7;
}

a {
  color: var(--lb-primary);
  text-decoration: none;
  transition: color var(--lb-transition);
}
a:hover { color: var(--lb-primary-dark); }

/* ── 4. Layout ──────────────────────────────────────────── */

.lb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--lb-space-lg);
}

.lb-container--narrow {
  max-width: 800px;
}

.lb-section {
  padding: var(--lb-space-4xl) 0;
}

.lb-section--dark {
  background: var(--lb-dark);
  color: var(--lb-gray-100);
}
.lb-section--dark h2,
.lb-section--dark h3 {
  color: var(--lb-white);
}
.lb-section--dark p {
  color: var(--lb-gray-300);
}

.lb-section--gray {
  background: var(--lb-gray-50);
}

.lb-section--white {
  background: var(--lb-white);
}

.lb-section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--lb-space-3xl);
}

.lb-section__header p {
  font-size: var(--lb-text-lg);
  color: var(--lb-gray-600);
  margin-top: var(--lb-space-md);
}

.lb-section--dark .lb-section__header p {
  color: var(--lb-gray-400);
}

/* Grid system */
.lb-grid {
  display: grid;
  gap: var(--lb-space-lg);
}

.lb-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lb-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lb-grid--4 { grid-template-columns: repeat(4, 1fr); }
.lb-grid--6 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) {
  .lb-grid--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .lb-grid--6 { grid-template-columns: repeat(6, 1fr); }
}

/* ── 5. Buttons ─────────────────────────────────────────── */

.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--lb-space-sm);
  font-family: var(--lb-font);
  font-weight: 600;
  font-size: var(--lb-text-base);
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--lb-radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--lb-transition);
  text-decoration: none;
  white-space: nowrap;
}

.lb-btn--primary {
  background: var(--lb-gradient-cta);
  color: var(--lb-white);
  box-shadow: 0 1px 2px rgba(21, 128, 61, 0.2);
}
.lb-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  color: var(--lb-white);
}

.lb-btn--secondary {
  background: transparent;
  color: var(--lb-gray-700);
  border: 1px solid var(--lb-gray-300);
}
.lb-btn--secondary:hover {
  background: var(--lb-gray-50);
  border-color: var(--lb-gray-400);
  color: var(--lb-gray-900);
}

.lb-btn--ghost {
  background: transparent;
  color: var(--lb-primary);
  padding: 14px 0;
}
.lb-btn--ghost:hover {
  color: var(--lb-primary-dark);
}
.lb-btn--ghost::after {
  content: ' →';
}

/* Light variant for dark backgrounds */
.lb-section--dark .lb-btn--secondary {
  color: var(--lb-gray-200);
  border-color: var(--lb-dark-border);
}
.lb-section--dark .lb-btn--secondary:hover {
  background: var(--lb-dark-surface);
  border-color: var(--lb-dark-border-hover);
  color: var(--lb-white);
}
.lb-section--dark .lb-btn--ghost {
  color: var(--lb-primary-light);
}

.lb-btn--lg {
  padding: 18px 36px;
  font-size: var(--lb-text-lg);
  border-radius: var(--lb-radius-lg);
}

/* ── 6. Trust Line ──────────────────────────────────────── */

.lb-trust-line {
  font-size: var(--lb-text-sm);
  color: var(--lb-gray-500);
  font-style: italic;
  margin-top: var(--lb-space-sm);
}

.lb-section--dark .lb-trust-line {
  color: var(--lb-gray-400);
}

/* ── 7. Badge ───────────────────────────────────────────── */

.lb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--lb-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--lb-radius-full);
}

.lb-badge--live {
  background: var(--lb-primary-50);
  color: var(--lb-primary-dark);
}
.lb-badge--live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lb-primary);
  animation: lb-pulse 2s ease-in-out infinite;
}

.lb-badge--soon {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.lb-badge--category {
  background: rgba(34, 197, 94, 0.1);
  color: var(--lb-primary-dark);
  font-size: var(--lb-text-sm);
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
}

.lb-section--dark .lb-badge--live {
  background: rgba(34, 197, 94, 0.15);
}
.lb-section--dark .lb-badge--soon {
  background: rgba(59, 130, 246, 0.15);
}

@keyframes lb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── 8. Responsive ──────────────────────────────────────── */

@media (max-width: 1023px) {
  .lb-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .lb-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  :root {
    --lb-space-4xl: 64px;
  }

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

  .lb-container {
    padding: 0 var(--lb-space-md);
  }

  .lb-btn--lg {
    width: 100%;
  }
}

/* ── 9. Skip Link (Accessibility) ───────────────────────── */

.lb-skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
  background: var(--lb-primary);
  color: var(--lb-white);
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--lb-radius-md);
}
.lb-skip-link:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  z-index: 10000;
}

/* ── 10. Reduced Motion ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
