
/* Base styles and variables */
:root {
  --color-ecorota-green: #34A853;
  --color-ecorota-green-light: #4caf50;
  --color-ecorota-blue: #1A73E8;
  --color-ecorota-gray: #333333;
  --color-ecorota-gray-light: #666666;
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition-default: all 0.3s ease;
  --container-padding: 1.5rem;
  --section-padding: 5rem 0;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--color-ecorota-gray);
  background-color: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-default);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

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

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-ecorota-gray);
}

.section-divider {
  width: 6rem;
  height: 0.25rem;
  background-color: var(--color-ecorota-green);
  margin: 0 auto 1.5rem;
}

.section-desc {
  max-width: 48rem;
  margin: 0 auto;
  color: var(--color-ecorota-gray-light);
}

.sub-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-ecorota-blue);
}

.mb-3 {
  margin-bottom: 0.75rem;
}

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

.text-ecorota-green {
  color: var(--color-ecorota-green);
}

.text-ecorota-blue {
  color: var(--color-ecorota-blue);
}

.text-gray {
  color: var(--color-ecorota-gray-light);
}

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

.bg-gray-50 {
  background-color: var(--color-gray-50);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 0.375rem;
  transition: var(--transition-default);
  cursor: pointer;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--color-ecorota-green-light);
}

.btn-outline {
  border: 1px solid var(--color-ecorota-blue);
  color: var(--color-ecorota-blue);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-ecorota-blue);
  color: var(--color-white);
}

.btn-outline-green {
  border: 1px solid var(--color-ecorota-green);
  color: var(--color-ecorota-green);
  background-color: transparent;
  width: 100%;
}

.btn-outline-green:hover {
  background-color: var(--color-ecorota-green);
  color: var(--color-white);
}

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

.btn-white:hover {
  background-color: var(--color-gray-100);
}

.btn-full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  padding: 1rem 0;
  transition: var(--transition-default);
}

.header.scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}

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

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

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

.desktop-nav {
  display: none;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-ecorota-gray);
}

.mobile-menu-btn .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-gray-100);
  color: var(--color-ecorota-gray);
}

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

.nav-link {
  margin-left: 1.5rem;
  color: var(--color-ecorota-gray);
  font-weight: 500;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-ecorota-green);
  transition: var(--transition-default);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 5rem;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(to right, var(--color-white), var(--color-gray-100));
}

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
  background-image: url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7');
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem 0;
}

.hero-text {
  text-align: center;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--color-ecorota-gray-light);
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}

.about-text p {
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-gray-100);
  transition: var(--transition-default);
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--color-ecorota-gray);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--color-white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-default);
}

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

.service-image {
  height: 12rem;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-default);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-ecorota-blue);
}

.service-desc {
  color: var(--color-ecorota-gray-light);
  margin-bottom: 1.25rem;
}

.cta-container {
  margin-top: 4rem;
  background: linear-gradient(to right, var(--color-ecorota-blue), var(--color-ecorota-green));
  color: var(--color-white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-desc {
  margin-bottom: 1.5rem;
}

.cta-image {
  display: none;
}

.cta-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Tracking Section */
.tracking-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.tracking-image {
  display: none;
}

.tracking-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}

.tracking-form-container {
  background-color: var(--color-gray-50);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-ecorota-gray);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-default);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-ecorota-green);
  box-shadow: 0 0 0 2px rgba(52, 168, 83, 0.2);
}

.form-help {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin-top: 0.25rem;
}

.tracking-result {
  display: none;
  background-color: var(--color-gray-50);
  padding: 2rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--color-ecorota-green);
  margin-top: 2rem;
}

.tracking-result.show {
  display: block;
}

/* FAQ Section */
.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

.accordion {
  border-radius: 0.5rem;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--color-gray-200);
}

.accordion-button {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-ecorota-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-default);
}

.accordion-button:after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
}

.accordion-button.active:after {
  content: '−';
}

.accordion-button:hover {
  color: var(--color-ecorota-green);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 0 0 1rem;
}

.accordion-content.active {
  max-height: 1000px;
  padding-bottom: 1.5rem;
}

.faq-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.faq-list li {
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-form-container {
  order: 2;
}

.contact-info {
  background-color: var(--color-gray-50);
  padding: 2rem;
  border-radius: 0.5rem;
  order: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.info-items {
  display: grid;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  background-color: rgba(52, 168, 83, 0.1);
  color: var(--color-ecorota-green);
  border-radius: 9999px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item h4 {
  font-weight: 600;
  color: var(--color-ecorota-blue);
  margin-bottom: 0.25rem;
}

.info-item p {
  color: var(--color-ecorota-gray-light);
}

.social-links {
  margin-top: 2rem;
}

.social-links h4 {
  font-weight: 600;
  color: var(--color-ecorota-blue);
  margin-bottom: 1rem;
}

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

.social-icon {
  background-color: rgba(52, 168, 83, 0.1);
  color: var(--color-ecorota-green);
  border-radius: 9999px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-default);
}

.social-icon:hover {
  background-color: var(--color-ecorota-green);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background-color: var(--color-ecorota-gray);
  color: var(--color-white);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-item {
  margin-bottom: 2rem;
}

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

.footer-title span {
  color: var(--color-ecorota-green-light);
}

.footer-about p {
  color: var(--color-gray-300);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social-icon {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-300);
  transition: var(--transition-default);
}

.footer-social-icon:hover {
  background-color: var(--color-ecorota-green);
  color: var(--color-white);
}

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

.footer-links a {
  color: var(--color-gray-300);
}

.footer-links a:hover {
  color: var(--color-ecorota-green-light);
}

.footer-address {
  font-style: normal;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--color-gray-300);
  align-items: flex-start;
}

.footer-contact-item svg {
  color: var(--color-ecorota-green-light);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.copyright {
  color: var(--color-gray-400);
  font-size: 0.875rem;
}

.footer-terms {
  display: flex;
  gap: 1rem;
}

.footer-terms a {
  color: var(--color-gray-400);
  font-size: 0.875rem;
}

.footer-terms a:hover {
  color: var(--color-ecorota-green-light);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-white);
  min-width: 300px;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 2000;
  transition: bottom 0.3s ease;
  overflow: hidden;
}

.toast.show {
  bottom: 2rem;
}

.toast-content {
  display: flex;
  align-items: center;
}

.toast-icon {
  color: var(--color-ecorota-green);
  margin-right: 0.75rem;
}

.toast-message {
  font-weight: 500;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--color-ecorota-green);
  width: 0;
  transition: width 3s linear;
}

.toast.show .toast-progress {
  width: 100%;
}

/* Responsive styles */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
  
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .hero-text {
    text-align: left;
  }
  
  .hero-desc {
    margin-left: 0;
  }
  
  .hero-buttons {
    justify-content: flex-start;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tracking-image {
    display: block;
  }
  
  .tracking-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
  }
  
  .about-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .cta-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .cta-image {
    display: block;
  }
  
  .contact-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-form-container {
    order: 1;
  }
  
  .contact-info {
    order: 2;
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
