/* EverPath Website Styles */

/* ========================================
   CSS Variables - Brand Colors from App
   ======================================== */
:root {
  --color-teal: #00D1C7;
  --color-coral: #FF7A61;
  --color-dark: #17293E;
  --color-light-bg: #F5F5F5;
  --color-white: #FFFFFF;
  --color-text-dark: #2C3E50;
  --color-text-light: #7F8C8D;
  --color-purple: #8B5CF6;
  --color-orange: #F97316;
  --color-green: #22C55E;

  --border-radius: 16px;
  --border-radius-sm: 12px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

  --max-width: 1200px;
  --spacing: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-light-bg);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-coral);
}

/* ========================================
   Header & Navigation
   ======================================== */
header {
  background: var(--color-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-coral));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.25rem;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--color-text-dark);
  transition: color 0.3s ease;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-dark);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--color-teal), var(--color-coral));
  color: var(--color-white);
  padding: 6rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

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

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

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

.app-store-badge {
  display: inline-block;
  margin-top: 1rem;
}

.app-store-badge img {
  height: 50px;
  width: auto;
}

/* ========================================
   Sections
   ======================================== */
section {
  padding: 4rem 2rem;
}

.section-light {
  background: var(--color-white);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--color-text-light);
  font-size: 1.125rem;
}

/* ========================================
   Features Grid
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-coral));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.feature-card p {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ========================================
   Statistics Section
   ======================================== */
.stats-section {
  background: linear-gradient(135deg, var(--color-dark), #2C4A63);
  color: var(--color-white);
  text-align: center;
  padding: 4rem 2rem;
}

.stats-section h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-teal);
  margin: 1rem 0;
}

.stat-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 1rem;
}

.stat-source {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* ========================================
   How It Works Section
   ======================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-coral));
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-card h3 {
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--color-text-light);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--color-light-bg);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--color-teal);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-teal);
  margin: 1rem 0;
}

/* ========================================
   Legal Pages
   ======================================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.last-updated {
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-light-bg);
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content ul, .legal-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}

.toc {
  background: var(--color-light-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  margin: 2rem 0;
}

.toc h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.toc ul {
  list-style: none;
  margin-left: 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--color-text-dark);
  font-weight: 500;
}

.toc a:hover {
  color: var(--color-teal);
}

/* ========================================
   Footer
   ======================================== */
footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

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

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
  }

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

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

  .hero {
    padding: 4rem 1.5rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-content {
    padding: 2rem 1.5rem;
  }

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

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
