/**
 * Street Digital - Kinetic Midnight Theme Stylesheet
 * Incorporates all Stitch Design System tokens, typography, utilities, and glassmorphism components
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,700&display=swap');

:root {
  --sd-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Palette */
  --sd-primary: #3525cd;
  --sd-indigo: #4f46e5;
  --sd-purple: #581c87;
  --sd-secondary: #7c43ab;
  --sd-midnight: #0b0b28;
  --sd-midnight-deep: #07071a;
  --sd-midnight-surface: #131338;
  --sd-whatsapp: #25d366;
  --sd-magenta: #a824a8;
  
  /* Light Surfaces */
  --sd-bg-light: #faf8ff;
  --sd-card-light: #ffffff;
  --sd-surface-dim: #d2d9f4;
  --sd-text-dark: #0f172a;
  --sd-text-muted: #64748b;
  
  /* Dark Surfaces */
  --sd-text-light: #ffffff;
  --sd-text-light-muted: #94a3b8;
  --sd-glass-bg: rgba(19, 19, 56, 0.65);
  --sd-glass-border: rgba(255, 255, 255, 0.12);
  --sd-glass-subtle: rgba(255, 255, 255, 0.05);

  /* Gradients */
  --sd-grad-primary: linear-gradient(135deg, #4f46e5 0%, #581c87 100%);
  --sd-grad-accent: linear-gradient(135deg, #3525cd 0%, #a824a8 100%);
  --sd-grad-glow: radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.25), transparent 70%);

  /* Radius */
  --sd-radius-sm: 0.375rem;
  --sd-radius-md: 0.5rem;
  --sd-radius-lg: 1rem;
  --sd-radius-xl: 1.5rem;
  --sd-radius-full: 9999px;
  
  /* Shadows */
  --sd-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --sd-shadow-card: 0 10px 30px -5px rgba(11, 11, 40, 0.2);
  --sd-glow: 0 0 25px rgba(79, 70, 229, 0.4);
}

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

html {
  font-family: var(--sd-font);
  color: var(--sd-text-light);
  background-color: var(--sd-midnight-deep);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Container */
.sd-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .sd-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Typography Scale */
.sd-display {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.sd-headline-lg {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sd-headline-md {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
}

.sd-headline-sm {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.sd-body-lg {
  font-size: 1.125rem;
  line-height: 1.6;
}

.sd-body {
  font-size: 1rem;
  line-height: 1.55;
}

.sd-body-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}

.sd-label-sm {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Gradient Text */
.sd-text-gradient {
  background: var(--sd-grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sd-font);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--sd-radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.sd-btn-primary {
  background: var(--sd-grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.sd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.55);
  color: #ffffff;
}

.sd-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid var(--sd-glass-border);
  backdrop-filter: blur(10px);
}

.sd-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

.sd-btn-whatsapp {
  background: var(--sd-whatsapp);
  color: #ffffff;
  border-radius: var(--sd-radius-full);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.sd-btn-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

/* Glassmorphism Cards */
.sd-glass-card {
  background: var(--sd-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--sd-glass-border);
  border-radius: var(--sd-radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sd-glass-card:hover {
  border-color: rgba(79, 70, 229, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -5px rgba(11, 11, 40, 0.4), 0 0 20px rgba(79, 70, 229, 0.15);
}

/* Badges & Chips */
.sd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--sd-radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.3);
  color: #c7d2fe;
}

.sd-badge-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

/* Header & Navigation */
.sd-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 7, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.sd-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.sd-nav-logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.sd-nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

@media (min-width: 1024px) {
  .sd-nav-menu {
    display: flex;
  }
}

.sd-nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #cbd5e1;
  position: relative;
  padding: 0.5rem 0;
}

.sd-nav-link:hover,
.sd-nav-link.active {
  color: #ffffff;
}

.sd-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--sd-grad-primary);
  border-radius: 2px;
}

/* Submenu Dropdown */
.sd-has-dropdown {
  position: relative;
}

.sd-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: rgba(13, 13, 40, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--sd-glass-border);
  border-radius: var(--sd-radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  padding: 0.75rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1001;
}

.sd-has-dropdown:hover .sd-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sd-dropdown-item a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 500;
}

.sd-dropdown-item a:hover {
  background: rgba(79, 70, 229, 0.15);
  color: #ffffff;
  padding-left: 1.5rem;
}

/* Mobile Toggle */
.sd-mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

@media (min-width: 1024px) {
  .sd-mobile-toggle {
    display: none;
  }
}

.sd-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.sd-mobile-drawer {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(7, 7, 26, 0.98);
  backdrop-filter: blur(20px);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.sd-mobile-drawer.open {
  transform: translateX(0);
}

.sd-mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sd-mobile-nav-list a {
  font-size: 1.125rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* Sections */
.sd-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

@media (min-width: 1024px) {
  .sd-section {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}

/* Background Ambient Glows */
.sd-glow-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

/* Footer */
.sd-footer {
  background: #050512;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  position: relative;
  z-index: 10;
}

.sd-footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .sd-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sd-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
  }
}

.sd-footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.sd-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sd-footer-links a {
  color: #94a3b8;
  font-size: 0.9375rem;
}

.sd-footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.sd-footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #64748b;
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 768px) {
  .sd-footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* Floating WhatsApp Button */
.sd-float-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--sd-whatsapp);
  border-radius: var(--sd-radius-full);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sd-float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
  color: #ffffff;
}

/* Forms */
.sd-form-group {
  margin-bottom: 1.25rem;
}

.sd-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.sd-input, .sd-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: rgba(19, 19, 56, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--sd-radius-md);
  color: #ffffff;
  font-family: var(--sd-font);
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.sd-input:focus, .sd-textarea:focus {
  outline: none;
  border-color: var(--sd-indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
  background: rgba(19, 19, 56, 0.8);
}

/* Accordion FAQ */
.sd-faq-item {
  border: 1px solid var(--sd-glass-border);
  border-radius: var(--sd-radius-md);
  background: rgba(19, 19, 56, 0.4);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.sd-faq-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #ffffff;
}

.sd-faq-content {
  padding: 0 1.5rem 1.25rem;
  color: #94a3b8;
  display: none;
  line-height: 1.6;
}

.sd-faq-item.active .sd-faq-content {
  display: block;
}

.sd-faq-item.active {
  background: rgba(19, 19, 56, 0.7);
  border-color: rgba(79, 70, 229, 0.4);
}
