/* MVM Agro - Agricultural Business Website - Modern Clean Design */

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

:root {
  --header-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --accent-green: #334E24;
  --accent-dark: #2a3f1d;
  --hero-white: #ffffff;
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --primary-green: #334E24;
  --border-light: #e8e8e8;
}

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  font-weight: 400;
}

/* Header */
header {
  background-color: #334E24;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  left: 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo a:hover {
  opacity: 0.8;
}

.logo-placeholder {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-dark) 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--hero-white);
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(51, 78, 36, 0.3);
}

.logo h1 {
  color: var(--text-dark);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #000000;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* Dropdown Menu */
.nav-links li {
  position: relative;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  margin-left: 0.2rem;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-toggle.active::after {
  display: inline;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--header-white);
  min-width: 220px;
  border-radius: 8px;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0.5rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-menu a:hover {
  color: var(--accent-green);
  background-color: rgba(51, 78, 36, 0.05);
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-submenu > a:hover {
  color: var(--accent-green);
  background-color: rgba(51, 78, 36, 0.05);
}

/* Nested Dropdown */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.5rem;
}

.dropdown-submenu > a::after {
  content: '▶';
  font-size: 0.7rem;
  margin-left: 1rem;
  display: inline !important;
  transition: transform 0.3s ease;
}

.dropdown-submenu:hover > a::after {
  transform: translateX(3px);
}

.dropdown-submenu > .dropdown-menu {
  left: 100%;
  top: 0;
  margin-left: 0.5rem;
  margin-top: 0;
  min-width: 180px;
  z-index: 1001;
}

.dropdown-submenu:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-submenu .dropdown-menu a {
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--light-text);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
              url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--hero-white);
  padding: 10rem 0;
  text-align: left;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero .container {
  max-width: 1200px;
}

.hero h2 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 0 2.5rem;
  opacity: 0.95;
  font-weight: 400;
  letter-spacing: 1px;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent-green);
  color: var(--hero-white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(51, 78, 36, 0.3);
}

.btn:hover {
  background-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 63, 29, 0.4);
}

/* Main Content Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-green);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

a .product-card {
  height: 100%;
}

a:has(.product-card) {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(51, 78, 36, 0.08) 0%, rgba(42, 63, 29, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--accent-green);
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.product-card:hover .product-image::before {
  left: 100%;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  color: var(--text-dark);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-info p {
  color: var(--dark-text);
  line-height: 1.6;
}

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

.about-image {
  width: 100%;
  height: 400px;
  background-color: #f5f5f5;
  border-radius: 10px;
  font-size: 4rem;
  color: var(--secondary-green);
  overflow: hidden;
  position: relative;
}

.about-image .image-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
}

.about-image .slider-images {
  width: 100%;
  height: 100%;
}

.about-image .slider-image {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h3 {
  color: var(--text-dark);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Contact Form */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  transition: all 0.3s ease;
  background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(51, 78, 36, 0.1);
}

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

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

/* Footer */
footer {
  background-color: var(--primary-green);
  color: var(--light-text);
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

footer p {
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Container adjustments */
  .container {
    padding: 0 1.5rem;
  }

  /* Header and Navigation */
  header {
    padding: 1rem 0;
  }

  nav {
    justify-content: space-between;
  }

  .logo {
    position: static;
  }

  .logo img {
    height: 50px !important;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle span {
    background-color: white;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #334E24;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 0.8rem 0;
  }

  .nav-links a {
    color: white;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    display: block;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.1);
  }

  .nav-links > li {
    width: 100%;
  }

  /* Mobile Dropdown */
  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    margin-top: 0.5rem;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.25);
    transform: none;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    border-radius: 8px;
  }

  .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    max-height: 600px;
    margin-top: 0.5rem;
  }

  .dropdown-menu a {
    padding: 1rem 1.5rem;
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    display: block;
    width: 100%;
    text-align: left;
  }

  .dropdown-menu a:last-child {
    border-bottom: none;
  }

  .dropdown-menu a:active,
  .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }

  .dropdown-toggle {
    width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  .dropdown-toggle::after {
    content: '▼';
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 0.8rem;
  }

  .dropdown-menu.show ~ .dropdown-toggle::after,
  .dropdown:has(.dropdown-menu.show) > a.dropdown-toggle::after {
    transform: rotate(180deg);
  }

  /* Mobile Nested Dropdown */
  .dropdown-submenu .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.3);
    padding-left: 0;
    margin-top: 0;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border-left: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
  }

  .dropdown-submenu > a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    padding: 1rem 1.5rem;
    font-weight: 500;
  }

  .dropdown-submenu > a::after {
    content: '▼' !important;
    margin-left: 0.5rem !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
    font-size: 0.8rem !important;
  }

  .dropdown-submenu:has(.dropdown-menu.show) > a::after,
  .dropdown-submenu .dropdown-menu.show ~ a::after {
    transform: rotate(180deg) !important;
  }

  .dropdown-submenu .dropdown-menu a {
    padding-left: 2rem;
    font-size: 0.9rem;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 4rem 0;
    min-height: 400px;
  }

  .hero h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn {
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
  }

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

  .section-title {
    font-size: 1.8rem;
    padding-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Products Grid */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .product-card {
    margin: 0 auto;
    max-width: 100%;
  }

  .product-info {
    padding: 1.2rem;
  }

  .product-info h3 {
    font-size: 1.2rem;
  }

  .product-info p {
    font-size: 0.95rem;
  }

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

  .about-image {
    height: 300px;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

  /* Contact Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Image Slider Mobile */
  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .slider-btn.prev {
    left: 5px;
  }

  .slider-btn.next {
    right: 5px;
  }

  .slider-dots {
    bottom: 10px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  /* Footer */
  footer {
    padding: 1.5rem 0;
    margin-top: 3rem;
  }

  footer p {
    font-size: 0.9rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 3rem 0;
    min-height: 350px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }

  .product-info h3 {
    font-size: 1.1rem;
  }

  .about-text h3 {
    font-size: 1.3rem;
  }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .hero h2 {
    font-size: 3rem;
  }

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

/* Image Slider */
.image-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-images {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.slider-image {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0 !important;
  transition: opacity 0.5s ease;
  z-index: 1;
  display: block;
}

.slider-image.active {
  opacity: 1 !important;
  z-index: 2;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
  background-color: var(--accent-green);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.dot.active {
  background-color: var(--accent-green);
  border-color: white;
}

/* Success Message */
.success-message {
  background-color: var(--primary-green);
  color: white;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  display: none;
}

.success-message.show {
  display: block;
}
