/* ==========================================
   TaskMutuals Landing Page Styles
   Brand Colors:
   - Forest Green: #2C4F41
   - Cream/Beige: #F5EDE4
   ========================================== */

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

:root {
  --primary: #2C4F41;
  --primary-dark: #1e3a2f;
  --primary-light: #3d6b5a;
  --cream: #F5EDE4;
  --cream-dark: #e8ddd2;
  --white: #ffffff;
  --gray-100: #f7f7f7;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-500: #737373;
  --gray-700: #404040;
  --gray-900: #171717;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px;
}

.btn-nav:hover {
  background: var(--primary-dark);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.hero .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

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

.stat-label {
  font-size: 14px;
  color: var(--gray-500);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--gray-900);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: var(--gray-900);
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--cream);
  border-radius: 32px;
  overflow: hidden;
}

.app-preview {
  padding: 60px 16px 20px;
}

.preview-header {
  margin-bottom: 20px;
}

.preview-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.preview-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.preview-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.preview-card-meta {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* ==========================================
   Section Common Styles
   ========================================== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--gray-500);
}

/* ==========================================
   Features Section
   ========================================== */
.features {
  background: var(--cream);
}

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

.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.feature-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ==========================================
   How It Works Section
   ========================================== */
.how-it-works {
  background: var(--white);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 280px;
  padding: 0 20px;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.step-content p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

.step-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  margin-top: 32px;
}

/* ==========================================
   Categories Section
   ========================================== */
.categories {
  background: var(--cream);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--white);
  padding: 24px 16px;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--primary);
}

.category-card:hover span {
  color: var(--white);
}

.category-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.category-card span {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.3s ease;
}

/* ==========================================
   For Providers Section
   ========================================== */
.for-providers {
  background: var(--primary);
  color: var(--white);
}

.provider-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.provider-text {
  flex: 1;
  max-width: 500px;
}

.provider-text h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 20px;
}

.provider-text > p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.provider-benefits {
  list-style: none;
  margin-bottom: 32px;
}

.provider-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  margin-bottom: 16px;
}

.provider-benefits svg {
  color: var(--cream);
  flex-shrink: 0;
}

.for-providers .btn-primary {
  background: var(--cream);
  color: var(--primary);
}

.for-providers .btn-primary:hover {
  background: var(--white);
}

.provider-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.provider-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-xl);
  min-width: 320px;
}

.provider-avatar {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.provider-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.provider-info > p {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.provider-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-700);
}

.provider-rating .stars {
  color: #f59e0b;
}

/* ==========================================
   Download Section
   ========================================== */
.download {
  background: var(--cream);
  text-align: center;
}

.download-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.download-content > p {
  font-size: 18px;
  color: var(--gray-500);
  margin-bottom: 40px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-900);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s ease;
}

.store-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.store-btn.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.store-btn.coming-soon:hover {
  background: var(--gray-900);
  transform: none;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-label {
  font-size: 11px;
  opacity: 0.8;
}

.store-name {
  font-size: 18px;
  font-weight: 600;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  /* App icon image - no background needed */
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-300);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--gray-700);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--gray-500);
}

/* ==========================================
   Responsive Styles
   ========================================== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

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

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

  .provider-content {
    flex-direction: column;
    text-align: center;
  }

  .provider-text {
    max-width: 100%;
  }

  .provider-benefits {
    display: inline-block;
    text-align: left;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .steps {
    flex-direction: column;
    gap: 40px;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }

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

  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .provider-card {
    min-width: auto;
    flex-direction: column;
    text-align: center;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scroll reveal classes - added via JS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
