/* Trash Can Transport - Main Stylesheet */

/* Variables */
:root {
  --primary: #5D3FD3;    /* Purple */
  --secondary: #4CAF50;  /* Green */
  --accent: #333333;     /* Black */
  --background: #FFFFFF; /* White */
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --text-color: #333333;
  --large-font: 1.5rem;
  --medium-font: 1.2rem;
  --normal-font: 1rem;
  --small-font: 0.9rem;
}

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

html {
  font-size: 18px; /* Larger base font size for senior citizens */
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
}

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: var(--normal-font);
}

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

a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 3rem 0;
}

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

/* Header */
header {
  background-color: var(--background);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  margin-right: 10px;
}

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

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  font-size: var(--medium-font);
  font-weight: 600;
  padding: 0.5rem;
}

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

/* Hero Section */
.hero {
  background-color: var(--light-gray);
  padding: 4rem 0;
  text-align: center;
}

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

.hero h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.hero p {
  font-size: var(--medium-font);
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--medium-font);
}

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

.btn-primary:hover {
  background-color: #4930A8;
  border-color: #4930A8;
  text-decoration: none;
}

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

.btn-secondary:hover {
  background-color: #3d8b40;
  border-color: #3d8b40;
  text-decoration: none;
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  text-decoration: none;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: var(--large-font);
}

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

.features-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.feature {
  flex-basis: calc(33.333% - 2rem);
  margin: 1rem;
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 1rem;
}

/* How It Works Section */
.how-it-works {
  background-color: var(--light-gray);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 2rem;
}

.step {
  flex-basis: calc(33.333% - 2rem);
  margin: 1rem;
  padding: 2rem;
  background-color: var(--background);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: var(--medium-font);
}

.step img {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--background);
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.testimonial {
  flex-basis: calc(50% - 2rem);
  margin: 1rem;
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: 10px;
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
}

/* Pricing Section */
.pricing {
  background-color: var(--light-gray);
  text-align: center;
}

.price-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  background-color: var(--background);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

.price-period {
  font-size: var(--medium-font);
  color: var(--accent);
}

.price-features {
  list-style: none;
  margin: 2rem 0;
}

.price-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--medium-gray);
}

.price-features li:last-child {
  border-bottom: none;
}

/* FAQ Section */
.faq {
  background-color: var(--background);
}

.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--medium-gray);
  padding-bottom: 1.5rem;
}

.faq-question {
  font-weight: 700;
  font-size: var(--medium-font);
  color: var(--primary);
  margin-bottom: 0.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  display: none;
  padding-top: 1rem;
}

.faq-answer.show {
  display: block;
}

/* Contact Section */
.contact {
  background-color: var(--light-gray);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.8rem;
  font-size: var(--normal-font);
  border: 1px solid var(--medium-gray);
  border-radius: 5px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(93, 63, 211, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Sign Up Form */
.signup-form {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--background);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.form-col {
  flex: 1;
  padding: 0 10px;
  min-width: 250px;
}

/* Map Section */
.map {
  height: 400px;
  background-color: var(--medium-gray);
  margin-top: 2rem;
}

/* Footer */
footer {
  background-color: var(--accent);
  color: white;
  padding: 3rem 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-col {
  flex-basis: calc(25% - 2rem);
  margin: 1rem;
}

.footer-col h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: var(--medium-font);
}

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

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

.footer-links a {
  color: white;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary);
}

/* Responsive Styles */
@media (max-width: 992px) {
  html {
    font-size: 16px;
  }
  
  .feature, .step {
    flex-basis: calc(50% - 2rem);
  }
  
  .footer-col {
    flex-basis: calc(50% - 2rem);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 1rem;
    justify-content: center;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 0.5rem 0;
  }
  
  .mobile-menu-btn {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  .nav-menu {
    display: none;
    width: 100%;
  }
  
  .nav-menu.show {
    display: block;
  }
  
  .feature, .step, .testimonial {
    flex-basis: 100%;
  }
  
  .form-col {
    flex-basis: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .footer-col {
    flex-basis: 100%;
  }
  
  .btn-large {
    padding: 0.8rem 1.5rem;
    font-size: var(--normal-font);
  }
}

/* Accessibility Enhancements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary: #3b1da1;
    --secondary: #2e7d32;
    --text-color: #000000;
  }
  
  .btn, .feature, .step, .testimonial, .price-card, .signup-form {
    border: 2px solid black;
  }
}
