/*
Theme Name: BorderlessMobility
Description: Custom WordPress theme for BorderlessMobility.org
Version: 1.0
*/

/* CSS Variables */
:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --muted: 210 40% 98%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --primary: 221.2 83.2% 53.3%;
  --primary-foreground: 210 40% 98%;
  --secondary: 142.1 76.2% 36.3%;
  --secondary-foreground: 355.7 100% 97.3%;
  --accent: 210 40% 98%;
  --accent-foreground: 222.2 84% 4.9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --ring: 221.2 83.2% 53.3%;
  --radius: 0.5rem;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  margin: 0;
  padding: 0;
}

.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container-custom {
    padding: 0 1rem;
  }
}

/* Typography */
.heading-1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .heading-1 {
    font-size: 2rem;
  }
}

.heading-2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

@media (max-width: 768px) {
  .heading-2 {
    font-size: 1.875rem;
  }
}

.heading-3 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

@media (max-width: 768px) {
  .heading-3 {
    font-size: 1.5rem;
  }
}

.paragraph {
  font-size: 1.125rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

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

.text-primary {
  color: hsl(var(--primary));
}

/* Utility classes */
.text-center {
  text-align: center;
}

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

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

.flex {
  display: flex;
}

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

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

/* Grid system */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Responsive grid utilities */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .md\:p-10 {
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Spacing utilities */
.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mt-24 {
  margin-top: 6rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

/* Size utilities */
.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.max-w-3xl {
  max-width: 48rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Border radius utilities */
.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Typography utilities */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

/* Background utilities */
.bg-white {
  background-color: white;
}

.bg-gray-50 {
  background-color: #F9FAFB;
}

.bg-gradient-to-b {
  background: linear-gradient(to bottom, white, #F9FAFB);
}

/* Border utilities */
.border {
  border-width: 1px;
}

.border-gray-100 {
  border-color: #F3F4F6;
}

.border-gray-200 {
  border-color: #E5E7EB;
}

/* Shadow utilities */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

/* Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  text-decoration: none;
}

.logo .secondary-text {
  color: hsl(var(--secondary));
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 767px) {
  .nav-menu {
    display: none;
  }
}

.nav-link {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: hsl(var(--primary));
}

.hidden-desktop {
  display: flex;
}

@media (min-width: 768px) {
  .hidden-desktop {
    display: none;
  }
}

/* Hero Section specific styles */
.hero-card {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 2rem;
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
}

.hero-content:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.hero-badge {
  position: absolute;
  top: -1rem;
  right: -1rem;
  background-color: hsl(var(--accent));
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary) / 0.1);
  margin-bottom: 1.5rem;
}

.hero-icon svg {
  width: 2rem;
  height: 2rem;
  color: hsl(var(--primary));
}

.hero-steps {
  margin-top: 1rem;
}

.hero-step {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-step:last-child {
  margin-bottom: 0;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-weight: 700;
  margin-right: 1rem;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-red {
  background-color: #FEE2E2;
  color: #DC2626;
}

.step-amber {
  background-color: #FEF3C7;
  color: #D97706;
}

.step-green {
  background-color: #DCFCE7;
  color: #059669;
}

.hero-background {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 100%;
  height: 100%;
  background-color: hsl(var(--secondary) / 0.2);
  border-radius: 0.75rem;
  z-index: -10;
}

/* Service cards */
.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  height: 100%;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Benefit items */
.benefit-item {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  height: 100%;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Icon styles */
.icon-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  background-color: hsl(var(--primary));
  color: white;
}

.icon-secondary {
  background-color: hsl(var(--secondary));
  color: white;
}

.icon-accent {
  background-color: hsl(var(--accent));
  color: white;
}

/* Contact section styles */
.contact-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-info .bg-gray-50 {
  background-color: #F9FAFB;
}

.contact-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-form .space-y-6 > * + * {
  margin-top: 1.5rem;
}

.contact-form .grid {
  display: grid;
}

@media (min-width: 768px) {
  .contact-form .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-form .gap-6 {
  gap: 1.5rem;
}

.icon-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary));
  color: white;
}

.icon-primary svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Footer */
.site-footer {
  background-color: #111827;
  color: white;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

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

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

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.footer-brand .secondary-text {
  color: hsl(var(--secondary));
}

.footer-description {
  color: #9CA3AF;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #9CA3AF;
  transition: color 0.3s ease;
  font-size: 1.5rem;
}

.social-link:hover {
  color: white;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

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

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-bottom-links {
    justify-content: flex-start;
  }
}

.footer-bottom-links a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: white;
}

.footer-made-with {
  color: #9CA3AF;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.heart-icon {
  color: #EF4444;
}

/* Case study cards */
.case-study-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.case-study-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

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

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.2;
}

/* Transformation section */
.transformation-section {
  padding: 4rem 0 6rem;
  background-color: #f9fafb;
  overflow: hidden;
}

@media (min-width: 768px) {
  .transformation-section {
    padding: 6rem 0;
  }
}

.transformation-container {
  position: relative;
}

.transformation-timeline {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 1px;
  background-color: hsl(var(--primary) / 0.2);
  z-index: 0;
}

.transformation-step-wrapper {
  position: relative;
  z-index: 10;
  margin-bottom: 5rem;
}

.transformation-step-wrapper:last-child {
  margin-bottom: 0;
}

.transformation-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .transformation-step {
    flex-direction: row;
  }
}

.transformation-step-reverse {
  flex-direction: column;
}

@media (min-width: 768px) {
  .transformation-step-reverse {
    flex-direction: row-reverse;
  }
}

.transformation-text {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .transformation-text {
    text-align: right;
    padding-right: 3rem;
  }
  
  .transformation-text-left {
    text-align: left;
    padding-left: 3rem;
    padding-right: 1rem;
  }
}

.transformation-number-wrapper {
  position: relative;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .transformation-number-wrapper {
    margin: 0;
  }
}

.transformation-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: hsl(var(--primary));
  color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  z-index: 10;
}

.transformation-image {
  flex: 1;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .transformation-image {
    padding-left: 3rem;
  }
  
  .transformation-step-reverse .transformation-image {
    padding-left: 1rem;
    padding-right: 3rem;
  }
}

.transformation-image-card {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.transformation-img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Stats section */
.stats-section {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  color: white;
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 auto 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.stats-section .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1;
  color: white;
}

@media (min-width: 768px) {
  .stats-section .stat-number {
    font-size: 3rem;
  }
}

.stats-section .stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .hero-card {
    max-width: 100%;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card,
  .benefit-item {
    padding: 1.5rem;
  }
  
  .navbar-nav {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu-button {
  display: block;
  color: hsl(var(--foreground));
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid hsl(var(--border));
  padding: 1rem 0;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-links a {
  color: hsl(var(--foreground));
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.mobile-menu-links a:hover {
  color: hsl(var(--primary));
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-8px);
  }
  70% {
    transform: translateY(-4px);
  }
  90% {
    transform: translateY(-2px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.shrink-0 {
  flex-shrink: 0;
}

.h-2 {
  height: 0.5rem;
}

/* Language switcher */
.language-switcher {
  position: relative;
  display: inline-block;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  z-index: 50;
  display: none;
}

.language-switcher.active .language-dropdown {
  display: block;
}

.language-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: background-color 0.2s;
}

.language-dropdown a:hover {
  background-color: hsl(var(--muted));
}

.language-trigger {
  cursor: pointer;
  padding: 0.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hover\:underline:hover {
  text-decoration: underline;
}