/* ==========================================================================
   Farmers Wayanad - Ultra-Modern Eco-Resort & Farmers Community CSS System
   ========================================================================== */

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

:root {
  --primary-emerald: #0A3925;
  --primary-dark: #052418;
  --primary-light: #124D37;
  --accent-gold: #E5A842;
  --accent-gold-hover: #D4952D;
  --accent-soft: #F9F3E8;
  --bg-body: #F4F7F4;
  --bg-card: #FFFFFF;
  --text-dark: #16241E;
  --text-muted: #52645D;
  --text-light: #879991;
  --border-color: #E0E7E2;
  --shadow-sm: 0 4px 14px rgba(10, 57, 37, 0.05);
  --shadow-md: 0 10px 30px rgba(10, 57, 37, 0.09);
  --shadow-lg: 0 20px 45px rgba(10, 57, 37, 0.15);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-emerald);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

/* Form Styling System */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-emerald);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  color: var(--text-dark);
  background: #ffffff;
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-emerald);
  box-shadow: 0 0 0 4px rgba(10, 57, 37, 0.08);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.alert-msg {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 24px;
}

.alert-success-msg {
  background: #DEF7EC;
  color: #03543F;
  border: 1px solid #BCF0DA;
}

.alert-error-msg {
  background: #FDE8E8;
  color: #9B1C1C;
  border: 1px solid #FBD5D5;
}

/* ==========================================================================
   OFFICIAL LOGO PRELOADER
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 0 25px rgba(229, 168, 66, 0.4);
  animation: logoPulse 1.8s ease-in-out infinite alternate;
}

.preloader-pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
  animation: spinRing 1.4s linear infinite;
}

.preloader-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.preloader-title span {
  color: var(--accent-gold);
}

.preloader-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.preloader-progress-bar {
  width: 160px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.preloader-progress-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: var(--accent-gold);
  border-radius: 10px;
  animation: lineMove 1.5s ease-in-out infinite;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logoPulse {
  0% { transform: scale(0.94); filter: brightness(0.95); }
  100% { transform: scale(1.06); filter: brightness(1.1); }
}

@keyframes lineMove {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* ==========================================================================
   TOP BAR & NAVIGATION HEADER
   ========================================================================== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info {
  display: flex;
  gap: 22px;
  align-items: center;
}

.top-info a, .top-info span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}

.top-info a:hover {
  color: var(--accent-gold);
}

.top-social {
  display: flex;
  gap: 10px;
}

.top-social a {
  color: rgba(255, 255, 255, 0.7);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.top-social a:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

/* Ultra-Modern Navbar */
.navbar-main {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px -2px rgba(5, 36, 24, 0.08);
  border-bottom: 1px solid rgba(10, 57, 37, 0.06);
  padding: 10px 0;
  transition: var(--transition-normal);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.official-logo-img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  border: 1px solid rgba(229, 168, 66, 0.3);
  box-shadow: 0 4px 12px rgba(10, 57, 37, 0.1);
  transition: transform 0.3s ease;
}

.brand-logo:hover .official-logo-img {
  transform: scale(1.06) rotate(3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .main-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--primary-emerald);
  line-height: 1.1;
  letter-spacing: -0.2px;
}

.brand-text .main-title span {
  color: var(--accent-gold);
}

.brand-text .tag-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-emerald);
  background: var(--accent-soft);
  border: 1px solid rgba(229, 168, 66, 0.3);
  padding: 1px 8px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 2px;
  width: fit-content;
}

/* Nav Link Pills */
.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 57, 37, 0.03);
  padding: 5px;
  border-radius: 50px;
  border: 1px solid rgba(10, 57, 37, 0.05);
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-dark);
  padding: 8px 20px;
  border-radius: 50px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--primary-emerald);
  background: rgba(255, 255, 255, 0.8);
}

.nav-link.active {
  color: #ffffff;
  background: var(--primary-emerald);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(10, 57, 37, 0.25);
}

/* Header CTA Button */
.nav-cta-btn {
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(229, 168, 66, 0.35);
  border: none;
  transition: all 0.25s ease;
}

.nav-cta-btn:hover {
  background: var(--accent-gold-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 168, 66, 0.45);
}

.mobile-toggle {
  display: none;
  font-size: 1.4rem;
  background: var(--accent-soft);
  border: 1px solid var(--border-color);
  color: var(--primary-emerald);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Floating WhatsApp & Call */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: var(--transition-fast);
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn.whatsapp { background: #25D366; }
.float-btn.call { background: var(--primary-emerald); }

/* Sliding Hero Carousel */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 540px;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 36, 24, 0.88) 0%, rgba(10, 57, 37, 0.72) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 680px;
  padding: 0 20px;
  transform: translateY(20px);
  transition: transform 0.8s ease;
}

.hero-slide.active .hero-slide-content {
  transform: translateY(0);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 168, 66, 0.22);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: 3.6rem;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.hero-controls {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-gold);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.hero-dot.active {
  width: 32px;
  border-radius: 20px;
  background: var(--accent-gold);
}

/* Section Header */
.section-padding {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-sub {
  font-family: 'Outfit', sans-serif;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.6rem;
  color: var(--primary-emerald);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 22px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* Gallery & Category Filter */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 26px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-emerald);
  color: #fff;
  border-color: var(--primary-emerald);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 36, 24, 0.88), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-fast);
}

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

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: #fff;
  font-size: 1.15rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
}

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.blog-img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.blog-card:hover .blog-img-wrap img {
  transform: scale(1.08);
}

.blog-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
}

.blog-body {
  padding: 24px;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.read-more {
  color: var(--primary-emerald);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more:hover {
  color: var(--accent-gold);
}

/* Footer */
.footer-main {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand {
  font-size: 1.6rem;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 16px;
}

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

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

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

/* Responsive */
@media (max-width: 991px) {
  .nav-links-wrap {
    position: fixed;
    top: 72px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background: #ffffff;
    flex-direction: column;
    padding: 30px 20px;
    align-items: stretch;
    border-radius: 0;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    gap: 12px;
  }

  .nav-links-wrap.active {
    left: 0;
  }

  .nav-link {
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 1.1rem;
  }

  .nav-cta-btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .top-bar {
    display: none;
  }
}
