/* ==========================================================================
   Sitecrafts Design System & Base Styles
   Studio: Sitecrafts (Abuja, Nigeria)
   Strict Rules: Zero emojis, No generic gradients, Crisp editorial typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Color Palette - Warm Natural Linen & Obsidian Contrast */
  --bg-primary: #F9F8F5;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F3F1EC;
  --bg-surface-hover: #ECEAE3;
  --bg-dark: #111315;
  --bg-dark-surface: #191C1F;
  --bg-dark-card: #202428;
  --bg-dark-border: #2A3036;

  /* Typography Colors */
  --text-primary: #131517;
  --text-secondary: #565D67;
  --text-tertiary: #848C97;
  --text-light: #F4F4F1;
  --text-light-secondary: #9DA4AF;
  --text-light-tertiary: #6E7683;

  /* Accent - Architectural Terracotta / Burnt Clay */
  --accent-primary: #C24D2C;
  --accent-hover: #A93E20;
  --accent-subtle: #FAF0EC;
  --accent-border: #E8BDB0;

  /* Functional Accents */
  --accent-gold: #B45309;
  --accent-gold-bg: #FEF3C7;
  --accent-green: #15803D;
  --accent-green-bg: #DCFCE7;
  --accent-green-dot: #22C55E;

  /* Borders & Dividers */
  --border-light: #E4E1D8;
  --border-subtle: #EBE8E0;
  --border-strong: #D1CDC1;

  /* Shadows (Subtle, clean, tangible) */
  --shadow-xs: 0 1px 2px rgba(19, 21, 23, 0.04);
  --shadow-sm: 0 2px 6px rgba(19, 21, 23, 0.05), 0 1px 2px rgba(19, 21, 23, 0.03);
  --shadow-md: 0 8px 24px -4px rgba(19, 21, 23, 0.08), 0 2px 6px -1px rgba(19, 21, 23, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(19, 21, 23, 0.12), 0 4px 12px -2px rgba(19, 21, 23, 0.05);

  /* Typography Stacks */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --container-max: 1180px;
  --container-narrow: 860px;
  --section-spacing-y: clamp(4.5rem, 8vw, 7.5rem);
  --section-spacing-y-sm: clamp(3rem, 5vw, 4.5rem);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.028em;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.68;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-top: var(--section-spacing-y);
  padding-bottom: var(--section-spacing-y);
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-light);
}

.section-dark p {
  color: var(--text-light-secondary);
}

.section-divider {
  height: 1px;
  background-color: var(--border-light);
  width: 100%;
}

/* Section Header Structure */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.text-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  background-color: var(--accent-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  margin-bottom: 1rem;
}

.section-tag.tag-dark {
  background-color: rgba(194, 77, 44, 0.15);
  border-color: rgba(194, 77, 44, 0.35);
  color: #E87A5B;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  padding: 0.875rem 1.625rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 2px 8px rgba(194, 77, 44, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(194, 77, 44, 0.32);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-whatsapp {
  background-color: #128C7E;
  color: #FFFFFF;
  border: 1px solid #0F766A;
  box-shadow: 0 2px 8px rgba(18, 140, 126, 0.25);
}

.btn-whatsapp:hover {
  background-color: #075E54;
  border-color: #054C44;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(18, 140, 126, 0.32);
}

.btn-instagram {
  background-color: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-instagram:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: 1px solid var(--bg-dark);
}

.btn-dark:hover {
  background-color: #23272C;
  border-color: #23272C;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-dark-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-dark-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Badge Component */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}

.badge-live {
  background-color: var(--accent-green-bg);
  color: var(--accent-green);
  border: 1px solid rgba(21, 128, 61, 0.25);
}

.badge-concept {
  background-color: var(--accent-gold-bg);
  color: var(--accent-gold);
  border: 1px solid rgba(180, 83, 9, 0.25);
}

.badge-neutral {
  background-color: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

/* Live Pulse Indicator */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green-dot);
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--accent-green-dot);
  animation: pulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Accessibility / Screen Readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
