@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --secondary: #52b788;
  --dark: #1b4332;
  --light: #f8fcf9;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

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

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

/* Typography Utility */
.text-center { text-align: center; }
.section-subtitle {
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.4);
}

.btn-primary:hover {
  background-color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.4);
}

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

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

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

header.scrolled .nav-links a {
  color: var(--dark);
}

header.scrolled .logo {
  color: var(--primary);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

header.scrolled .mobile-toggle {
  color: var(--dark);
}

/* Utility */
.mt-4 { margin-top: 2rem; }

/* Hero Slider */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

/* Slides container */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.05);
  animation: none;
}

.hero-slide.active {
  opacity: 1;
  animation: zoomSlide 8s ease-in-out forwards;
}

@keyframes zoomSlide {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

/* Dark overlay on each slide */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27,67,50,0.55) 0%, rgba(27,67,50,0.35) 60%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  z-index: 10;
  position: relative;
  padding: 0 1.5rem;
}

.hero h1 {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.slider-arrow:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-50%) scale(1.1);
}
.slider-arrow.prev { left: 2rem; }
.slider-arrow.next { right: 2rem; }

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.6rem;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.6);
}
.slider-dot.active {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.3);
}

/* Slide counter badge */
.slide-counter {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 20;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}


/* Page Header (for inner pages) */
.page-header {
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-bottom: 0;
  padding-top: 80px; /* account for fixed navbar */
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(27, 67, 50, 0.7);
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 3.5rem;
  color: var(--white);
}

/* Sections */
.section {
  padding: 5rem 0;
}

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

/* Card Component */
.card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

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

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

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-price {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

/* Features List */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
}

.feature-list i {
  color: var(--secondary);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
}

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

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

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

/* Footer */
footer {
  background-color: var(--dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100'%3E%3Cpath fill='%23112a20' d='M 30 40 L 21 52 L 25 52 L 15 67 L 21 67 L 9 85 L 27 85 L 27 100 L 33 100 L 33 85 L 51 85 L 39 67 L 45 67 L 35 52 L 39 52 Z M 90 10 L 75 30 L 82 30 L 65 55 L 75 55 L 55 85 L 85 85 L 85 100 L 95 100 L 95 85 L 125 85 L 105 55 L 115 55 L 98 30 L 105 30 Z M 160 20 L 148 36 L 154 36 L 140 56 L 148 56 L 132 80 L 156 80 L 156 100 L 164 100 L 164 80 L 188 80 L 172 56 L 180 56 L 166 36 L 172 36 Z'/%3E%3C/svg%3E");
  background-position: bottom center;
  background-repeat: repeat-x;
  background-size: auto 80%; /* Height becomes 80% of the footer, reaching up to the menu */
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 0 2rem;
  position: relative;
  z-index: 1;
}

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

.footer-brand h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--secondary);
}

.footer-title {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 5px;
}

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

/* Price Badge */
.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(82, 183, 136, 0.3);
  align-self: flex-start;
}


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

.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Animation for dynamically injected cards */
@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-appear {
  animation: cardAppear 0.5s ease-out both;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }

  .nav-links a {
    color: var(--dark);
    font-size: 1.1rem;
  }

  header:not(.scrolled) .mobile-toggle {
    color: var(--white);
  }
  
  .mobile-toggle {
    display: block;
    color: var(--dark);
  }

  /* Grid responsive */
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  /* Section title */
  .section-title {
    font-size: 1.8rem;
  }

  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }

  /* Feature list single column */
  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet: 2 columns for grid-3 */
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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