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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #76B82A;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5fa022;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Top Bar */
.top-bar {
  background-color: #1a1a1a;
  color: white;
  padding: 0.5rem 0;
}

.top-bar-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-right {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-right a:hover {
  color: #76B82A;
}

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

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

.logo {
  background-color: #76B82A;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Legacy logo styles - kept for footer if needed */
.logo-icon {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-icon::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 4px solid #76B82A;
  transform: rotate(45deg);
}

.logo-text {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Navigation */
nav {
  display: none;
  gap: 2rem;
  padding: 0 2rem;
}

nav a {
  color: #1a1a1a;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #76B82A;
}

.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 16rem;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
}

.dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s;
}

.dropdown a:hover {
  background-color: #76B82A;
  color: white;
}

/* Auth Buttons */
.auth-buttons {
  display: none;
  gap: 1rem;
  padding: 0 2rem;
}

.btn-login {
  color: #1a1a1a;
  font-weight: 500;
  transition: color 0.3s;
}

.btn-login:hover {
  color: #76B82A;
}

.btn-register {
  background-color: #76B82A;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.3s;
}

.btn-register:hover {
  background-color: #5fa022;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  padding: 1rem;
  display: block;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid #e5e5e5;
  padding: 1rem;
}

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

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.mobile-menu .dropdown-mobile a {
  padding-left: 1rem;
  background: #f9f9f9;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 33.333%;
  height: 100%;
  background: linear-gradient(to left, rgba(255, 165, 0, 0.3), transparent);
  transform: skewX(12deg) translateX(25%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 42rem;
  color: white;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-text h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.hero-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.hero-nav-arrow.prev {
  left: 1rem;
}

.hero-nav-arrow.next {
  right: 1rem;
}

.hero-nav-arrow svg {
  width: 24px;
  height: 24px;
  color: white;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
}

.hero-dot.active {
  background: #76B82A;
  width: 32px;
  border-radius: 6px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: #76B82A;
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.25rem;
  font-size: 1.125rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #5fa022;
}

.btn-secondary {
  display: inline-block;
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: #1a1a1a;
  color: white;
}

/* Sections */
section {
  padding: 5rem 1rem;
}

.bg-white {
  background-color: white;
}

.bg-gray {
  background-color: #f9fafb;
}

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

.section-subtitle {
  color: #76B82A;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.section-description {
  color: #6b7280;
  max-width: 42rem;
  margin: 0 auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 16rem;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.card-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a1a1a;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.card-description {
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: white;
  padding: 4rem 1rem 2rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
}

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

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #9ca3af;
  line-height: 1.8;
}

.footer-section a:hover {
  color: #76B82A;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.social-link {
  width: 40px;
  height: 40px;
  background-color: #76B82A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.social-link:hover {
  background-color: #5fa022;
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: #76B82A;
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  z-index: 999;
}

.scroll-top:hover {
  background-color: #5fa022;
  transform: scale(1.1);
}

.scroll-top.visible {
  display: flex;
}

.scroll-top svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (min-width: 768px) {
  .top-bar-right {
    display: flex;
  }
  
  nav {
    display: flex;
  }
  
  .auth-buttons {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Form Styles */
input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #76B82A;
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s;
}

.accordion-trigger:hover {
  color: #76B82A;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #6b7280;
  line-height: 1.8;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  margin-top: 1rem;
}

.accordion-icon {
  transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}