/*
Theme Name: NeighbourHelp
Description: A modern, community-focused WordPress theme for neighbourhood assistance platforms. Features a clean design system with semantic tokens, responsive layout, and accessible components.
Version: 1.0.0
Author: NeighbourHelp Team
Text Domain: neighbourhelp
*/

/* ===== CSS Variables (Design System) ===== */
:root {
  /* Base colors - soft, modern palette */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(210, 15%, 15%);

  /* Card and surfaces */
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(210, 15%, 15%);

  /* Primary - Community Green */
  --primary: hsl(142, 60%, 45%);
  --primary-light: hsl(142, 50%, 55%);
  --primary-foreground: hsl(0, 0%, 100%);

  /* Secondary - Trust Blue */
  --secondary: hsl(210, 50%, 96%);
  --secondary-foreground: hsl(210, 15%, 15%);

  /* Accent - Vibrant Trust Blue */
  --accent: hsl(210, 85%, 55%);
  --accent-light: hsl(210, 75%, 65%);
  --accent-foreground: hsl(0, 0%, 100%);

  /* Muted colors */
  --muted: hsl(210, 15%, 96%);
  --muted-foreground: hsl(210, 15%, 45%);

  /* Success - Helper Green */
  --success: hsl(142, 70%, 50%);
  --success-foreground: hsl(0, 0%, 100%);

  /* Warning - Attention Orange */
  --warning: hsl(38, 85%, 55%);
  --warning-foreground: hsl(0, 0%, 100%);

  /* Destructive */
  --destructive: hsl(0, 75%, 55%);
  --destructive-foreground: hsl(0, 0%, 100%);

  /* Borders and inputs */
  --border: hsl(210, 20%, 90%);
  --input: hsl(210, 20%, 94%);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(142, 60%, 45%), hsl(142, 70%, 50%));
  --gradient-accent: linear-gradient(135deg, hsl(210, 85%, 55%), hsl(210, 75%, 65%));
  --gradient-hero: linear-gradient(135deg, hsl(142, 60%, 45%) 0%, hsl(210, 85%, 55%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%), hsl(210, 15%, 98%));

  /* Shadows */
  --shadow-soft: 0 4px 20px hsla(210, 15%, 15%, 0.08);
  --shadow-medium: 0 8px 30px hsla(210, 15%, 15%, 0.12);
  --shadow-strong: 0 20px 40px hsla(210, 15%, 15%, 0.15);
  --shadow-glow: 0 0 30px hsla(142, 60%, 45%, 0.2);

  /* Border radius */
  --radius: 0.75rem;

  /* Container */
  --container-max-width: 1280px;
  --container-padding: 1rem;

  /* Spacing */
  --section-padding: 5rem 0;
  --grid-gap: 2rem;
}

/* Dark mode variables */
.dark {
  --background: hsl(222.2, 84%, 4.9%);
  --foreground: hsl(210, 40%, 98%);
  --card: hsl(222.2, 84%, 4.9%);
  --card-foreground: hsl(210, 40%, 98%);
  --primary: hsl(210, 40%, 98%);
  --primary-foreground: hsl(222.2, 47.4%, 11.2%);
  --secondary: hsl(217.2, 32.6%, 17.5%);
  --secondary-foreground: hsl(210, 40%, 98%);
  --muted: hsl(217.2, 32.6%, 17.5%);
  --muted-foreground: hsl(215, 20.2%, 65.1%);
  --accent: hsl(217.2, 32.6%, 17.5%);
  --accent-foreground: hsl(210, 40%, 98%);
  --border: hsl(217.2, 32.6%, 17.5%);
  --input: hsl(217.2, 32.6%, 17.5%);
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* ===== Utility Classes ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--muted-foreground); }

.bg-primary { background-color: var(--primary); }
.bg-accent { background-color: var(--accent); }
.bg-success { background-color: var(--success); }
.bg-warning { background-color: var(--warning); }

.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-accent { background: var(--gradient-accent); }
.bg-gradient-hero { background: var(--gradient-hero); }

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Button Styles ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Button variants */
.btn-default {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-medium);
}

.btn-default:hover {
  background-color: var(--primary-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-hero {
  background: var(--gradient-hero);
  color: white;
  box-shadow: var(--shadow-medium);
  font-weight: 600;
}

.btn-hero:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px) scale(1.02);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-medium);
}

.btn-accent:hover {
  background-color: var(--accent-light);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
}

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

.btn-ghost {
  color: var(--foreground);
  background-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

/* Button sizes */
.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
}

.btn-default, .btn-lg {
  height: 2.5rem;
  padding: 0 1rem;
}

.btn-lg {
  height: 2.75rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* ===== Navigation Styles ===== */
.navbar {
  background-color: hsla(0, 0%, 100%, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
}

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

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background-color: hsla(0, 0%, 100%, 0.95);
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.mobile-menu-content {
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--section-padding);
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, hsla(142, 60%, 45%, 0.05) 0%, var(--background) 50%, hsla(210, 85%, 55%, 0.05) 100%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeIn 1s ease-out;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

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

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-image {
  position: relative;
  animation: fadeIn 1s ease-out 0.3s both;
}

.hero-image-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(0, 0%, 0%, 0.2) 0%, transparent 100%);
}

.floating-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-medium);
}

.floating-card-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.floating-card-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.floating-card-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===== How It Works Section ===== */
.how-it-works {
  padding: var(--section-padding);
  background-color: hsla(210, 15%, 96%, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
  margin-bottom: 4rem;
}

.step-card {
  position: relative;
  background: var(--gradient-card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.step-number {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 2rem;
  height: 2rem;
  background: var(--gradient-hero);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.step-description {
  color: var(--muted-foreground);
}

.examples-section {
  background: var(--gradient-card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
}

.examples-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.example-category {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-title {
  font-weight: 600;
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-list li {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.examples-cta {
  text-align: center;
}

/* ===== Subscription Section ===== */
.subscription {
  padding: var(--section-padding);
  background: linear-gradient(to bottom, var(--background), hsla(210, 15%, 96%, 0.2));
}

.launch-offer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsla(142, 70%, 50%, 0.1);
  color: var(--success);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--grid-gap);
  margin-bottom: 3rem;
}

.plan-card {
  position: relative;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-medium);
}

.plan-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px) scale(1.02);
}

.plan-popular {
  background: var(--gradient-card);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-glow);
}

.plan-popular-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.plan-discount {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--warning);
  color: var(--warning-foreground);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.plan-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.plan-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.plan-icon-popular {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.plan-description {
  color: var(--muted-foreground);
}

.plan-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.plan-original-price {
  font-size: 1.5rem;
  text-decoration: line-through;
  color: var(--muted-foreground);
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.plan-duration {
  color: var(--muted-foreground);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-features .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.plan-features .feature-item i {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.plan-features .feature-item span {
  font-size: 0.875rem;
}

.benefits-section {
  background: var(--gradient-card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
}

.benefits-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.benefit-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.benefit-title {
  font-weight: 600;
}

.benefit-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Footer ===== */
.footer {
  background-color: hsla(210, 15%, 15%, 0.05);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo .logo {
  font-size: 1.5rem;
}

.footer-description {
  color: var(--muted-foreground);
}

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

.social-link {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
  text-decoration: none;
}

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

.footer-section-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.footer-links li {
  color: var(--muted-foreground);
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.whatsapp-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.copyright {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-made-with {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive Design ===== */
@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .nav-menu,
  .nav-actions {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .nav-menu,
  .nav-actions {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .floating-card {
    position: static;
    margin-top: 1rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}