/* ===== Kavungal Estate - Custom Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --estate-dark: #303830;
  --estate-green: #254E33;
  --estate-footer: #3F4039;
  --text-muted-custom: #D2D2D2;
  --text-subtle: #B6B6B6;
}

/* ===== SMOOTH SCROLL OVERRIDE ===== */
html.has-scroll-smooth {
  overflow: hidden;
}

html.has-scroll-smooth body {
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, Roboto, Helvetica, sans-serif;
  background-color: var(--estate-dark);
  color: #fff;
  margin: 0;
  overflow-x: hidden;
}

/* ===== FLOATING LEAF ICONS ===== */
.leaf-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.leaf {
  position: absolute;
  color: rgba(37, 78, 51, 0.08);
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.leaf-1 {
  width: 60px;
  top: 8%;
  left: 5%;
  animation: leafFloat1 18s ease-in-out infinite;
}

.leaf-2 {
  width: 45px;
  top: 22%;
  right: 8%;
  animation: leafFloat2 22s ease-in-out infinite;
  animation-delay: -3s;
}

.leaf-3 {
  width: 55px;
  top: 38%;
  left: 12%;
  animation: leafFloat3 20s ease-in-out infinite;
  animation-delay: -7s;
}

.leaf-4 {
  width: 40px;
  top: 52%;
  right: 15%;
  animation: leafFloat1 25s ease-in-out infinite;
  animation-delay: -5s;
}

.leaf-5 {
  width: 50px;
  top: 65%;
  left: 3%;
  animation: leafFloat2 19s ease-in-out infinite;
  animation-delay: -10s;
}

.leaf-6 {
  width: 35px;
  top: 75%;
  right: 6%;
  animation: leafFloat3 23s ease-in-out infinite;
  animation-delay: -2s;
}

.leaf-7 {
  width: 48px;
  top: 85%;
  left: 20%;
  animation: leafFloat1 21s ease-in-out infinite;
  animation-delay: -8s;
}

.leaf-8 {
  width: 42px;
  top: 92%;
  right: 22%;
  animation: leafFloat2 17s ease-in-out infinite;
  animation-delay: -12s;
}

@keyframes leafFloat1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(15deg); }
  50% { transform: translateY(10px) rotate(-10deg); }
  75% { transform: translateY(-15px) rotate(8deg); }
}

@keyframes leafFloat2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(15px) rotate(-12deg); }
  60% { transform: translateY(-25px) rotate(18deg); }
}

@keyframes leafFloat3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-10px) rotate(20deg); }
  40% { transform: translateY(20px) rotate(-15deg); }
  60% { transform: translateY(-18px) rotate(10deg); }
  80% { transform: translateY(12px) rotate(-8deg); }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-revealed,
.reveal-left.is-revealed,
.reveal-right.is-revealed,
.reveal-scale.is-revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for gallery */
.reveal-scale:nth-child(2) { transition-delay: 0.08s; }
.reveal-scale:nth-child(3) { transition-delay: 0.16s; }
.reveal-scale:nth-child(4) { transition-delay: 0.24s; }
.reveal-scale:nth-child(5) { transition-delay: 0.32s; }
.reveal-scale:nth-child(6) { transition-delay: 0.4s; }
.reveal-scale:nth-child(7) { transition-delay: 0.48s; }
.reveal-scale:nth-child(8) { transition-delay: 0.56s; }
.reveal-scale:nth-child(9) { transition-delay: 0.64s; }

/* Image hover zoom */
.img-hover-zoom {
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-hover-zoom:hover {
  transform: scale(1.03);
}

/* ===== NAVBAR ===== */
.nav-kavungal {
  background: transparent;
  padding: 1rem 0;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
  z-index: 1000;
}

.nav-kavungal.scrolled {
  background: rgba(37, 78, 51, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #fff;
}

.brand-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 0.7rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
}

.nav-kavungal .nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85) !important;
  padding: 0.5rem 0.75rem !important;
  transition: color 0.3s;
  position: relative;
}

.nav-kavungal .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--estate-green);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-kavungal .nav-link:hover::after {
  width: 100%;
  left: 0;
}

.nav-kavungal .nav-link:hover,
.nav-kavungal .nav-link.active {
  color: #fff !important;
}

.nav-kavungal .nav-link.active::after {
  width: 100%;
  left: 0;
  background: #fff;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.5), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1.1;
  max-width: 650px;
}

.btn-estate {
  background-color: var(--estate-green);
  color: #fff;
  border: none;
  border-radius: 46px;
  padding: 12px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-estate:hover {
  background-color: #1d3d28;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 78, 51, 0.3);
}

/* Social sidebar */
.social-sidebar {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-sidebar .follow-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.social-sidebar a {
  color: #fff;
  font-size: 1.4rem;
  transition: all 0.3s;
}

.social-sidebar a:hover {
  color: var(--estate-green);
  transform: scale(1.2);
}

/* ===== ABOUT ===== */
.about-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.about-label {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-statement {
  font-size: 3.2rem;
  text-align: center;
  line-height: 1.35;
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.about-statement strong {
  font-weight: 600;
}

.text-muted-custom {
  color: var(--text-muted-custom) !important;
}

.text-justify {
  text-align: justify;
}

.leading-relaxed {
  line-height: 1.8;
}

.about-quote {
  font-family: 'Playfair Display', serif;
  font-size: 2.35rem;
  font-style: italic;
  font-weight: 600;
  color: var(--text-muted-custom);
  line-height: 1.7;
}

.bordered-image-wrapper {
  position: relative;
}

.bordered-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 1rem;
  border: 2px solid var(--estate-green);
  z-index: 0;
}

.bordered-image-wrapper img {
  position: relative;
  z-index: 1;
}

/* ===== GALLERY ===== */
.gallery-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.gallery-section h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-img:hover {
  transform: scale(1.04);
}

/* ===== SERVICES ===== */
.services-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.services-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.services-header h2 {
  font-size: 5rem;
  margin: 0;
}

.services-header .arrow-icon {
  font-size: 3rem;
  transform: rotate(90deg);
}

.service-block {
  margin-bottom: 5rem;
}

.service-title {
  font-size: 2.8rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 1.1rem;
  color: var(--text-muted-custom);
  line-height: 1.6;
}

.service-intro {
  font-size: 1.05rem;
  color: var(--text-muted-custom);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.service-image-bordered {
  position: relative;
}

.service-image-bordered::before {
  content: '';
  position: absolute;
  inset: -0.75rem;
  border: 2px solid #9D9D9D;
  z-index: 0;
}

.service-image-bordered img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-image-bordered:hover img {
  transform: scale(1.02);
}

/* ===== FOOTER ===== */
.footer-section {
  background-color: var(--estate-footer);
  padding: 60px 0 30px;
  border: 3px solid #254E33;
  border-radius: 12px;
  margin: 0 1rem 1rem;
  position: relative;
  z-index: 1;
}

.footer-logo-box {
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.book-now-title {
  font-size: 2.2rem;
  font-weight: 400;
  color: #fff;
}

.book-input {
  background: transparent !important;
  border: 2px solid #d2d2d21f !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: 10px 14px !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.book-input::placeholder {
  color: rgba(255,255,255,0.7);
}

.book-input:focus {
  box-shadow: 0 0 0 3px rgba(74, 139, 173, 0.25) !important;
  border-color: #6ab0d0 !important;
}

.btn-book-submit {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 6px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-book-submit:hover {
  background: #fff;
  color: var(--estate-footer);
  transform: translateY(-2px);
}

.footer-divider {
  border-color: rgba(255,255,255,0.15);
  margin: 2rem 0 0;
}

.footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1rem;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.footer-text {
  font-family: 'Inter', sans-serif;
  color: var(--text-subtle);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-link-underline {
  color: var(--text-subtle);
  text-decoration: underline;
  transition: color 0.3s;
}

.footer-link-underline:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: var(--text-subtle);
  text-decoration: underline;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  color: #fff;
  background: #3b5998;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.footer-social a:nth-child(2) {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social a:hover {
  opacity: 0.8;
  color: #fff;
  transform: translateY(-3px);
}

.footer-copyright {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--estate-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--estate-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1d3d28;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }
  .about-statement {
    font-size: 2rem;
  }
  .services-header h2 {
    font-size: 3.5rem;
  }
  .service-title {
    font-size: 2rem;
  }
  .social-sidebar {
    display: none;
  }
  .leaf-1, .leaf-3, .leaf-5, .leaf-7 {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .about-statement {
    font-size: 1.5rem;
  }
  .services-header h2 {
    font-size: 2.5rem;
  }
  .about-quote {
    font-size: 1.1rem;
  }
  .leaf-container {
    display: none;
  }
}