/* FermaCore Brand Colors */
:root {
  --primary: #1D6A3E;
  --secondary: #0D3D20;
  --accent: #7BC67A;
  --amber: #854F0B;
  --light-bg: #F8F9F7;
  --text-dark: #1a1a1a;
  --text-light: #666;
}

/* Typography */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #fff;
  padding-top: 0; /* Navbar is fixed, so no body padding needed for hero */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Navigation */
.navbar {
  background-color: #fff;
  padding: 1.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1040;
  transition: transform 0.3s ease;
}

.navbar.transparent {
  background-color: transparent;
  box-shadow: none;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

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

/* Hero Section - Full Screen Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--primary);
}

#heroSlider {
  height: 100%;
}

#heroSlider .carousel-inner {
  height: 100%;
}

#heroSlider .carousel-item {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease-in-out;
}

.carousel-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.8;
}

.carousel-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.carousel-cta .btn {
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.carousel-cta .btn-light {
  background-color: white;
  color: var(--primary);
}

.carousel-cta .btn-light:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.carousel-cta .btn-outline-light {
  border-color: white;
  color: white;
}

.carousel-cta .btn-outline-light:hover {
  background-color: white;
  color: var(--primary);
  transform: translateY(-3px);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
}

.carousel-control-prev i,
.carousel-control-next i {
  font-size: 1.5rem;
}

/* Carousel Indicators */
.carousel-indicators {
  bottom: 2rem;
  gap: 0.75rem;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: white;
  border-color: white;
  width: 30px;
  border-radius: 12px;
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  animation: bounce 2s infinite;
  z-index: 10;
  font-size: 0.9rem;
  opacity: 0.8;
}

.scroll-indicator i {
  display: block;
  margin-top: 0.5rem;
  animation: chevronBounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes chevronBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

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

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
}

.btn-accent:hover {
  background-color: #6ab562;
  border-color: #6ab562;
}

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

.section:first-of-type {
  margin-top: 0;
}

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

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

.section-title h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.5rem;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* Stats Section */
.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-weight: 500;
}

/* Feature Section */
.feature-box {
  text-align: center;
  padding: 2rem;
}

.feature-box h3 {
  color: var(--primary);
  margin: 1rem 0;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

/* Partners Section */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background-color: var(--light-bg);
  border-radius: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  transition: background-color 0.3s ease;
}

.partner-logo:hover {
  background-color: #e8ede4;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Forms */
.form-control {
  border-color: #e0e0e0;
  padding: 0.75rem;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(123, 198, 122, 0.25);
}

/* Footer */
footer {
  background-color: var(--secondary);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

footer h5 {
  color: var(--accent);
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent);
}

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

/* Service Grid */
.service-box {
  background: white;
  border-left: 4px solid var(--accent);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.25rem;
}

.service-box h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-box ul {
  list-style: none;
  padding-left: 0;
}

.service-box li {
  padding: 0.5rem 0;
  color: var(--text-light);
  border-bottom: 1px solid #eee;
}

.service-box li:last-child {
  border-bottom: none;
}

.service-box li:before {
  content: "✓ ";
  color: var(--accent);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Product Card */
.product-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(29, 106, 62, 0.15);
}

.product-image {
  height: 200px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.product-info {
  padding: 1.5rem;
}

.product-info h5 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-spec {
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Table Styling */
.table {
  border-top: 2px solid var(--primary);
}

.table thead {
  background-color: var(--light-bg);
  border-bottom: 2px solid var(--primary);
}

.table thead th {
  color: var(--primary);
  font-weight: 700;
  border: none;
}

.table tbody tr:hover {
  background-color: var(--light-bg);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .carousel-title {
    font-size: 2rem;
  }

  .carousel-subtitle {
    font-size: 1rem;
  }

  .carousel-cta {
    flex-direction: column;
    align-items: center;
  }

  .carousel-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 45px;
    height: 45px;
  }

  .scroll-indicator {
    bottom: 1rem;
    font-size: 0.8rem;
  }

  .section {
    padding: 3rem 0;
  }

  .stat-number {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .nav-link {
    margin: 0.5rem 0;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.border-accent {
  border-color: var(--accent) !important;
}

.underline-accent {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.5rem;
}
