/* ===== Variables ===== */
:root {
  --green-dark: #1f4d2c;
  --green: #2f7a3d;
  --green-light: #6bbf59;
  --gold: #e6b325;
  --cream: #fdf9ef;
  --text-dark: #1c2b1e;
  --text-light: #6b7a6d;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(31, 77, 44, 0.15);
  --radius: 16px;
  --font-heading: "Playfair Display", serif;
  --font-body: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.center {
  text-align: center;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

.section-tag {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.section-tag.center {
  display: block;
}

section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--green-dark);
  margin-bottom: 16px;
}

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
#preloader.hide {
  opacity: 0;
  visibility: hidden;
}
.leaf-spinner {
  font-size: 3rem;
  animation: spin 1.4s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--text-dark);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green-dark);
  transform: translateY(-3px);
}
.btn-light {
  background: var(--white);
  color: var(--green-dark);
}
.btn-light:hover {
  background: var(--gold);
  color: var(--text-dark);
  transform: translateY(-3px);
}
.btn-nav {
  background: var(--green);
  color: var(--white);
  padding: 10px 24px;
}
.btn-nav:hover {
  background: var(--green-dark);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(253, 249, 239, 0.97);
  box-shadow: var(--shadow);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  transition: color 0.4s ease;
}
.navbar.scrolled .logo {
  color: var(--green-dark);
}
.logo span {
  color: var(--gold);
}
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}
.nav-links a {
  color: var(--white);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.navbar.scrolled .nav-links a {
  color: var(--text-dark);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.navbar.scrolled .hamburger span {
  background: var(--green-dark);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.hamburger.active span {
  background: var(--green-dark);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 40, 25, 0.55) 0%,
    rgba(20, 40, 25, 0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 720px;
}
.tagline {
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 18px;
}
.hero h1 span {
  color: var(--gold);
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  color: #eef3ea;
}
.hero-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid var(--white);
  border-radius: 20px;
  z-index: 2;
}
.scroll-down span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDown 1.6s infinite;
}
@keyframes scrollDown {
  0% {
    top: 8px;
    opacity: 1;
  }
  70% {
    top: 26px;
    opacity: 0;
  }
  100% {
    top: 8px;
    opacity: 0;
  }
}

/* ===== Marquee ===== */
.marquee-strip {
  background: var(--green-dark);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-track span {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
}
.marquee-track span i {
  color: var(--gold);
  margin-right: 6px;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== About ===== */
.about {
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  transition: transform 0.5s ease;
}
.about-img:hover img {
  transform: scale(1.06);
}
.about-img-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--green-dark);
}
.about-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-stats {
  display: flex;
  gap: 24px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.stat-box h3 {
  color: var(--green);
  font-size: 2rem;
}
.stat-box p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== Features ===== */
.features {
  padding: 80px 0;
  background: var(--white);
}
.features h2 {
  margin-bottom: 50px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--cream);
  padding: 36px 26px;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.35s ease;
  border: 1px solid rgba(47, 122, 61, 0.1);
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  background: var(--white);
}
.feature-icon {
  font-size: 2.2rem;
  color: var(--green);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--green-dark);
}
.feature-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== Amenities ===== */
.amenities {
  padding: 80px 0;
  background: var(--cream);
}
.amenities h2 {
  margin-bottom: 50px;
}
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.amenity-item {
  background: var(--white);
  padding: 26px 18px;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.35s ease;
  border: 1px solid rgba(47, 122, 61, 0.1);
}
.amenity-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.amenity-item i {
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}
.amenity-item span {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== Offer ===== */
.offer {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.offer::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f06c";
  position: absolute;
  font-size: 14rem;
  opacity: 0.08;
  color: var(--white);
  top: -40px;
  right: -30px;
  transform: rotate(15deg);
}
.offer-inner {
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.offer-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 22px;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 20px;
}
.offer h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 18px;
}
.offer h2 span {
  color: var(--gold);
}
.offer-sub {
  max-width: 560px;
  margin: 0 auto 32px;
  color: #dcecd8;
  line-height: 1.7;
}

/* ===== Gallery ===== */
.gallery {
  padding: 100px 0;
}
.gallery h2 {
  margin-bottom: 50px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 77, 44, 0);
  color: transparent;
  opacity: 0;
  transition:
    background 0.3s ease,
    opacity 0.3s ease,
    color 0.3s ease;
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay,
.gallery-item.zoom-active .gallery-overlay {
  background: rgba(31, 77, 44, 0.45);
  color: var(--white);
  opacity: 1;
}
.gallery-overlay svg {
  display: block;
}
/* Touch devices have no :hover, so show a persistent zoom badge instead */
@media (hover: none) {
  .gallery-overlay {
    inset: auto 10px 10px auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(31, 77, 44, 0.55);
    color: var(--white);
    opacity: 1;
  }
  .gallery-overlay svg {
    width: 18px;
    height: 18px;
  }
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===== Location ===== */
.location {
  padding: 80px 0;
  background: var(--white);
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.location-address {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 26px;
}
.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
}
.contact h2 {
  margin-bottom: 50px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease;
}
.contact-card:hover {
  transform: translateY(-8px);
}
.contact-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 16px;
}
.contact-card h3 {
  color: var(--green-dark);
  margin-bottom: 10px;
}
.contact-card a {
  display: block;
}
.contact-card > a:first-of-type {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 10px;
}
.tagline i,
.offer-badge i,
.about-img-badge i,
.location-address i,
.contact-note i,
.footer-tag i {
  color: var(--gold);
}
.back-to-top i {
  font-size: 1.4rem;
}
.lightbox-close i {
  font-size: 2rem;
}
.contact-note {
  text-align: center;
  margin-top: 46px;
  color: var(--text-light);
  font-style: italic;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 30px 0;
  text-align: center;
}
.footer-tag {
  color: var(--gold);
  margin-top: 6px;
  font-weight: 500;
}

/* ===== Floating buttons ===== */
.call-float {
  position: fixed;
  bottom: 96px;
  right: 26px;
  width: 58px;
  height: 58px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 900;
  animation: pulseCall 2.2s infinite;
  transition: background 0.3s ease;
}
.call-float:hover {
  background: var(--green-dark);
}
@keyframes pulseCall {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 122, 61, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(47, 122, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 122, 61, 0);
  }
}
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}
.back-to-top:hover {
  background: var(--green);
}
.back-to-top.show {
  display: flex;
}

.enquiry-float {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  background: #e6b325;
  color: var(--white);
  border: none;
  padding: 18px 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 900;
  transition:
    background 0.3s ease,
    padding-right 0.3s ease;
}
.enquiry-float:hover {
  background: #7c1246;
  padding-right: 16px;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 12, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 88%;
  max-height: 82%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 34px;
  color: var(--white);
  font-size: 2.4rem;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}
.lightbox-prev {
  left: 24px;
}
.lightbox-next {
  right: 24px;
}

/* ===== Enquiry Popup ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 12, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
}
.popup-overlay.active {
  display: flex;
}
.popup-box {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 420px;
  padding: 40px 32px 32px;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: popupIn 0.35s ease;
}
@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.popup-tag {
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.popup-box h3 {
  color: var(--green-dark);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.popup-sub {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 22px;
  line-height: 1.6;
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--text-light);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.25s ease;
}
.popup-close:hover {
  color: var(--green-dark);
}
.popup-box .form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(47, 122, 61, 0.25);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease;
}
.popup-box .form-control:focus {
  border-color: var(--green);
}
.popup-box .btn-block {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.25s ease;
}
.popup-box .btn-block:hover {
  opacity: 0.9;
}
@media (max-width: 480px) {
  .popup-box {
    padding: 34px 22px 26px;
  }
}

/* ===== Scroll reveal ===== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
[data-aos].aos-show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: var(--white);
    flex-direction: column;
    padding: 100px 30px;
    gap: 26px;
    transition: right 0.4s ease;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.1);
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links a {
    color: var(--text-dark) !important;
  }
  .hamburger {
    display: flex;
  }
  .btn-nav {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns .btn {
    text-align: center;
  }
}
