/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap");
/* For headings */

:root {
  /* Color Palette - Agro Tourism Theme */
  --primary-color: #2e7d32;
  /* Forest Green */
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;
  --secondary-color: #795548;
  /* Earth Brown */
  --accent-color: #ffc107;
  /* Harvest Yellow */
  --text-color: #333333;
  --text-light: #666666;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --black: #000000;

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-light);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Utilities */
.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.navbar {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: "Playfair Display", serif;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding-bottom: 5px;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a.active {
  color: var(--primary-color);
}

.mobile-nav-btn {
  display: none !important;
}

/* Mobile Menu */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  /* Ensure above header */
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-dark);
  margin: 5px auto;
  transition: var(--transition);
}

/* Footer */
footer {
  background-color: #222;
  color: #eee;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-section p,
.footer-section li a {
  color: #ccc;
  font-size: 0.95rem;
}

.footer-socials {
  margin-top: 20px;
}

.footer-socials a {
  color: var(--white);
  margin-right: 15px;
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 20px;
  font-size: 0.85rem;
}

/* Responsive */
/* Responsive Header */
/* Mobile Media Query Moved to End */

/* ... Previous CSS ... */

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../images/hero-bg.jpg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  margin-top: 0;
  /* Override if needed */
  position: relative;
  width: 100%;
}

.hero-content {
  max-width: 800px;
  padding: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about-section {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img img {
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.about-img::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-top: 5px solid var(--primary-color);
  border-left: 5px solid var(--primary-color);
  z-index: -1;
}

/* Amenities Section */
.amenities-section {
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 10px auto 0;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.amenity-card {
  background: var(--white);
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.amenity-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.amenity-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Gallery Preview */
.gallery-section {
  padding-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Call to Action */
.cta-section {
  background: linear-gradient(rgba(46, 125, 50, 0.9), rgba(46, 125, 50, 0.9)),
    url("../images/cta-bg.jpg") fixed center/cover;
  color: var(--white);
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Home */
@media screen and (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==============================
   HEADER – FINAL FIX
============================== */

#header {
  width: 100%;
  height: 80px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* MAIN WRAPPER */
.navbar-wrapper {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;

  display: flex;
  align-items: center;
}

/* LEFT */
.nav-left {
  flex: 0 0 auto;
}

.logo img {
  max-height: 55px;
  width: auto;
  display: block;
}

/* CENTER */
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  padding-bottom: 5px;
}

.nav-links a.active {
  color: #0a8f3c;
  border-bottom: 2px solid #0a8f3c;
}

/* RIGHT */
.nav-right {
  flex: 0 0 auto;
}

/* BUTTON */
.book-btn {
  background: #0a8f3c;
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.book-btn:hover {
  background: #087432;
}

/* ==============================
   CONTACT PAGE STYLES
============================== */

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/contact-bg.jpg") center/cover;
  padding: 100px 0;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.contact-form-wrapper h3 {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.1);
}

.contact-info h3 {
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}

.info-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 15px;
  margin-top: 5px;
  min-width: 25px;
}

.info-item p {
  color: var(--text-color);
}

.map-container {
  width: 100%;
  height: 300px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 30px;
  box-shadow: var(--shadow-sm);
}

.alert-success {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
}

.btn-block {
  width: 100%;
  border: none;
}


@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: #FFF;
}

@media screen and (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Wave Divider */
.custom-shape-divider-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.custom-shape-divider-bottom .shape-fill {
  fill: #FFFFFF;
}

/* Enhance Mobile Buttons */
@media screen and (max-width: 768px) {
  .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
}

/* Instagram Reels Grid */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.reel-item {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  /* Stylish shadow */
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.reel-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Force Instagram Embed to responsive width */
.instagram-media {
  min-width: unset !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Responsive Reels */
@media screen and (max-width: 1024px) {
  .reels-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media screen and (max-width: 768px) {
  .reels-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   MOBILE RESPONSIVE FIX (Moved to End)
   ========================================= */
@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    text-align: center;

    /* Animation - Use transform instead of right/left to prevent scrollbars */
    transform: translateX(100%);
    visibility: hidden;
    /* Prevent interaction when closed */
    transition: transform 0.4s ease-in-out, visibility 0.4s;

    box-shadow: none;
    padding: 40px 0;
    justify-content: flex-start;
    gap: 40px;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-center {
    position: static;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-right .book-btn {
    display: none;
  }

  .mobile-nav-btn {
    display: block !important;
    margin-top: 10px;
  }

  .mobile-nav-btn .book-btn {
    display: inline-block;
  }

  .nav-links li.mobile-nav-btn a::after {
    display: none;
  }
}