/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');
@import url('variables.css');
@import url('animations.css');

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  line-height: 1.8;
  overflow-x: hidden;
  font-weight: 300;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  letter-spacing: 0.5px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.8rem; }

p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

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

a:hover {
  color: var(--color-secondary);
}

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

/* Common Layout */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

section {
  padding: var(--space-xxl) 0;
}

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

.section-title {
  margin-bottom: var(--space-md);
  color: #fff;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-secondary);
}

.section-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: var(--space-md) auto var(--space-xl);
  color: var(--color-text-muted);
  font-family: var(--font-primary);
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  font-family: var(--font-primary);
}

.btn-primary {
  background: var(--color-secondary);
  color: #000;
}

.btn-primary:hover {
  background: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-main);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

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

.btn-outline-primary:hover {
  background: var(--color-secondary);
  color: #000;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md) 0;
  z-index: var(--z-nav);
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: var(--color-bg-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

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

.nav-logo img {
  height: 80px;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-links a {
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a.active {
  color: var(--color-secondary);
}

.nav-links .btn {
  padding: 10px 24px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--color-bg-card);
    flex-direction: column;
    justify-content: center;
    transition: right var(--transition-normal) cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    border-left: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
    z-index: calc(var(--z-nav) + 1);
  }
}

/* Footer */
.footer {
  background: var(--color-bg-card);
  padding: var(--space-xxl) 0 var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-col h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  color: #888;
}

/* Sticky Action Buttons */
.sticky-actions {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: var(--z-modal);
}

.sticky-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: all var(--transition-normal);
  background: var(--color-bg-card);
  border: 1px solid rgba(255,255,255,0.1);
}

.sticky-btn:hover {
  transform: translateY(-5px);
  background: var(--color-secondary);
  color: #000;
  border-color: var(--color-secondary);
}

/* --- Mega Menu (Green Orange Modern) --- */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > a {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 90vw;
  max-width: 1200px;
  background: #111;
  border-top: 3px solid #ff9800;
  border-bottom: 3px solid #4caf50;
  box-shadow: 0 20px 40px rgba(0,0,0,0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 30px;
  border-radius: 0 0 10px 10px;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  overflow-y: auto;
}

.nav-item-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.mega-menu-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mega-menu-title {
  color: #ff9800;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(76, 175, 80, 0.3);
  padding-bottom: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mega-menu-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #4caf50;
  transition: transform 0.3s ease;
}

.mega-menu-img:hover {
  transform: scale(1.05);
}

.mega-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 0.85rem;
  transition: color 0.2s;
  cursor: pointer;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  padding-bottom: 8px;
  line-height: 1.2;
}

.mega-menu-item:hover {
  color: #4caf50;
}

.mega-menu-item span:first-child {
  flex: 1;
  padding-right: 10px;
}

.mega-menu-price {
  color: #ff9800;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .mega-menu {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: 15px 0;
    box-shadow: none;
    border: none;
    background: transparent;
    max-height: none;
    overflow-y: visible;
  }
  .nav-item-dropdown.active .mega-menu {
    display: flex;
  }
  .nav-item-dropdown > a {
    justify-content: space-between;
    width: 100%;
  }
  }
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
