/* ==========================================================================
   Mistyhills Travelplanner — Homepage (index.html)
   Extracted from the original inline styles. Font is loaded via css/fonts.css.
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: #F7FCFA;
  color: #1c2b22;
  overflow-x: hidden;
}

/* ---- Header / Nav ---- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  z-index: 1000;
  border-bottom: 1px solid #eee;
  transition: transform 0.4s ease;
  padding: 1px 0;
}
header.hide-header,
.header-hidden { transform: translateY(-100%); }

.container { width: 90%; max-width: 1200px; margin: auto; }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }

.logo { font-size: 22px; font-weight: 700; color: #173b2d; letter-spacing: 0.2px; }
.logo span { color: #1FA774; }

nav { display: flex; align-items: center; gap: 28px; }
nav a {
  text-decoration: none;
  color: #1c2b22;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: 0.3s ease;
}
nav a:hover { color: #1FA774; }
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #1FA774;
  transition: 0.3s ease;
  border-radius: 10px;
}
nav a:hover::after { width: 100%; }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.2)),
    url('../images/pexels-3848200.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 180px 0 180px;
}
.hero-grid {
  display: grid;
  justify-items: center;
  text-align: center;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: auto;
}
.hero h1 { font-size: 72px; line-height: 1.08; color: white; font-weight: 800; letter-spacing: -1px; }
.hero h1 .hero-accent { color: #8CF5C5; }
.hero p { margin-top: 18px; font-size: 20px; line-height: 1.8; color: rgba(255, 255, 255, 0.9); font-weight: 400; }

.buttons { display: flex; justify-content: center; gap: 15px; margin-top: 28px; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn { padding: 9px 16px; border-radius: 16px; text-decoration: none; font-weight: 600; display: inline-block; }
.btn-primary {
  background: linear-gradient(135deg, #1FA774, #2cc487);
  color: white;
  box-shadow: 0 12px 24px rgba(31, 167, 116, 0.25);
  transition: 0.3s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(31, 167, 116, 0.32); }
.btn-secondary { background: white; color: #1c2b22; }

/* ---- Section titles ---- */
.section-title { text-align: center; margin-bottom: 65px; }
.section-title h2 { font-size: 48px; margin-top: 12px; line-height: 1.15; font-weight: 700; }
.section-title p { max-width: 700px; margin: 20px auto 0; color: #666; line-height: 1.8; }

/* ---- Cards ---- */
.cards { display: flex; gap: 30px; overflow-x: auto; padding-bottom: 10px; margin-top: 25px; }
.cards::-webkit-scrollbar { display: none; }
.cards { scrollbar-width: none; }

.card {
  min-width: 320px;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: 0.35s ease;
  border: 1px solid #eef5f1;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); }
.card img { width: 100%; height: 220px; object-fit: cover; }

.card-content { padding: 28px; }
.card-content h3 { margin: 14px 0 10px; font-size: 24px; line-height: 1.25; font-weight: 600; }
.card-content p { color: #666; line-height: 1.8; }

.tour-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid #eef5f1; color: #666; font-size: 14px;
}
.tour-price { color: #1FA774; font-size: 28px; font-weight: 700; margin-top: 14px; }
.tour-days {
  position: absolute; top: 18px; right: 18px;
  background: white; padding: 10px 14px; border-radius: 50px;
  font-size: 13px; font-weight: 700; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.badge {
  background: #E8F7F1; color: #168a60; display: inline-block;
  padding: 8px 14px; border-radius: 50px; font-size: 13px; font-weight: 700;
}

/* ---- Search package ---- */
#search-package { position: relative; margin-top: -180px; z-index: 100; padding: 0; }
.search-card { max-width: 1000px; margin: auto; background: #fff; padding: 25px; border-radius: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .12); }
.destination { width: 100%; height: 65px; border: 2px solid #f2f2f2; border-radius: 14px; padding: 0 18px; font-size: 16px; margin-bottom: 15px; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.field { display: flex; flex-direction: column; }
.field label { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #666; }
.field input, .field select { height: 60px; border: 2px solid #f2f2f2; border-radius: 14px; padding: 0 15px; font-size: 15px; }
.search-btn { width: 100%; height: 65px; border: none; margin-top: 18px; border-radius: 14px; background: #1FA774; color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; }

/* ---- Contact ---- */
.contact {
  background: linear-gradient(135deg, #ffffff, #f6fbf8);
  border-radius: 35px; padding: 60px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5f4ed; position: relative; overflow: hidden;
}
.contact::before {
  content: ''; position: absolute; width: 260px; height: 260px;
  background: rgba(31, 167, 116, 0.08); border-radius: 50%; top: -120px; right: -80px;
}
.contact-card { background: #fff; padding: 24px; border-radius: 24px; margin-bottom: 18px; border: 1px solid #eef5f1; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); }
.contact-card h3 { font-size: 18px; margin-bottom: 8px; color: #173b2d; }
.contact-card p { color: #5f6f67; line-height: 1.7; }
.contact-form { background: #fff; padding: 32px; height: 100%; border-radius: 28px; border: 1px solid #eef5f1; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 16px; margin-bottom: 14px;
  border: 1px solid #dfe7e3; border-radius: 14px;
  font-family: 'Poppins', sans-serif; font-size: 15px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-grid > div { display: flex; flex-direction: column; justify-content: center; }
.enquiry-btn { width: 100%; padding: 18px; border: none; border-radius: 14px; background: #1FA774; color: white; font-size: 16px; font-weight: 600; cursor: pointer; }

/* ---- Floating WhatsApp ---- */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
}
.whatsapp i { font-size: 32px; line-height: 1; }

/* ---- Section spacing ---- */
section { padding: 100px 0; }
#packages { padding-top: 130px; padding-bottom: 110px; }
#destinations, #safari, #gallery, #reviews { padding: 110px 0; }
#contact { padding: 120px 0; }
footer { margin-top: 60px; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .navbar { flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; }
  .logo { font-size: 20px; text-align: center; }
  nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
  nav a { font-size: 13px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 170px; }
  .hero h1 { font-size: 52px; text-align: center; }
  .hero p { text-align: center; }
  .buttons { justify-content: center; }
}

@media (max-width: 768px) {
  nav { display: none; }
  .contact { padding: 32px 20px; }
  .contact-grid { gap: 20px; }
  .contact-card { padding: 18px; margin-bottom: 14px; }
  .contact-form { padding: 22px; }
  .container { width: 92%; }
  section { padding: 70px 0; }
  #packages { padding-top: 90px; }
  #destinations, #safari, #gallery, #reviews, #contact { padding: 80px 0; }
  .section-title { margin-bottom: 40px; }
  .hero { padding-top: 90px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  #search-package { margin-top: -90px; padding: 0 15px; }
  .search-card { padding: 15px; border-radius: 18px; }
  .search-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .destination, .field input, .field select { height: 55px; font-size: 14px; }
  .search-btn { height: 58px; font-size: 16px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 42px; line-height: 1.1; }
  .hero p { font-size: 16px; line-height: 1.7; }
  .section-title h2 { font-size: 34px; line-height: 1.2; }
}

/* ==========================================================================
   Layout override — render card sections as responsive grids (was h-scroll)
   ========================================================================== */
.cards {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  overflow: visible !important;
}
.card { width: 100% !important; min-width: 0 !important; max-width: none !important; }
.card img { height: 160px !important; object-fit: cover !important; }
.card-content { padding: 16px !important; }
.card-content h3 { font-size: 18px !important; margin: 8px 0 !important; line-height: 1.3 !important; }
.card-content p { font-size: 13px !important; line-height: 1.5 !important; }
.tour-price { font-size: 22px !important; margin-top: 8px !important; }
.tour-meta { margin-top: 10px !important; padding-top: 10px !important; font-size: 12px !important; }

@media (max-width: 992px) { .cards { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 768px) {
  .cards { grid-template-columns: 1fr !important; }
  .card img { height: 170px !important; }
}

/* Gallery & Reviews grids */
#gallery .cards { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; }
#gallery img.card { height: 260px !important; object-fit: cover !important; border-radius: 20px !important; transition: .4s ease; }
#gallery img.card:hover { transform: translateY(-6px); }
#reviews .cards { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 28px !important; max-width: 1000px; margin: 35px auto 0; }
#reviews .card { min-width: auto !important; }
#reviews .card-content { padding: 30px !important; }

@media (max-width: 768px) {
  #gallery .cards { grid-template-columns: 1fr 1fr !important; }
  #gallery img.card { height: 180px !important; }
  #reviews .cards { grid-template-columns: 1fr !important; }
}

/* Performance hints */
.card, section, .contact, .search-card { content-visibility: auto; contain-intrinsic-size: 500px; }
.card, header, .btn, img { will-change: transform; }

/* ==========================================================================
   Animations & interactions
   ========================================================================== */

/* Logo as a home link */
.logo a { color: inherit; text-decoration: none; }

/* Sticky header: subtle elevation once the page is scrolled */
header { transition: transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease; }
header.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }

/* Buttons — smooth hover lift + press feedback */
.btn, .btn-primary, .btn-secondary, .search-btn, .enquiry-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, filter 0.25s ease;
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); }
.search-btn:hover, .enquiry-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 28px rgba(31, 167, 116, 0.3); }
.btn:active, .btn-primary:active, .btn-secondary:active, .search-btn:active, .enquiry-btn:active { transform: translateY(0) scale(0.98); }

/* Card image zoom on hover */
.card img { transition: transform 0.5s ease; }
.card:hover img { transform: scale(1.06); }

/* Floating WhatsApp pop on hover */
.whatsapp { transition: transform 0.3s ease, filter 0.3s ease; }
.whatsapp:hover { transform: scale(1.1); }

/* Hero entrance */
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero .buttons { animation: heroIn 0.8s ease 0.45s both; }

/* Banner lead text — blur-slide entrance, gentle float, soft glow pulse */
@keyframes heroTextIn { 0% { opacity: 0; transform: translateY(32px); filter: blur(8px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes leadFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes leadGlow { 0%, 100% { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); } 50% { text-shadow: 0 2px 22px rgba(255, 255, 255, 0.45); } }
.hero h1 .hero-lead {
  display: inline-block;
  animation: heroTextIn 0.9s ease both, leadFloat 4.5s ease-in-out 1s infinite, leadGlow 3.2s ease-in-out 1s infinite;
}
.hero p { animation: heroTextIn 0.9s ease 0.25s both; }

/* Highlighted banner word "Munnar" — animated gradient shimmer + soft glow pulse */
.hero h1 .hero-accent {
  background: linear-gradient(90deg, #8CF5C5, #2cc487, #8CF5C5, #2cc487);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #8CF5C5; /* fallback */
  animation: shimmer 5s linear infinite, glowPulse 2.6s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(140, 245, 197, 0)); }
  50% { filter: drop-shadow(0 0 14px rgba(140, 245, 197, 0.55)); }
}

/* Contact-card font icons */
.contact-card h3 i { color: #1FA774; margin-right: 8px; }

/* Scroll reveal (only active when JS is on, so no-JS keeps content visible) */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.reveal-in { opacity: 1; transform: none; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero h1, .hero p, .hero .buttons, .hero h1 .hero-lead, .hero h1 .hero-accent { animation: none; }
  .card:hover img { transform: none; }
  * { scroll-behavior: auto !important; }
}
