/* ===============================
   MOBILE-FIRST RESPONSIVE STYLES
   (Phones + Tablets)
   =============================== */

/* ---------- Base adjustments for small screens ---------- */
@media (max-width: 679px) {
  nav { height: 70px; padding: 0 20px; }
  .leftnav { padding: 0; }
  .leftnav img { width: 80px; }
  #rightnav1 { display: none; }  /* hide emergency text link */
  #rightnav2 { display: block; cursor: pointer; font-size: 1.8rem; } /* show hamburger */

  #home { width: 100%; height: auto; border-radius: 0; margin: 0; }
  #homeimg img { position: static; width: 100%; height: auto; filter: none; }
  #scrollarrow { display: none; }

  #hometext { width: 100%; padding: 40px 20px; height: auto; text-align: center; }
  #hometext p { font-size: clamp(0.9rem, 4vw, 1rem); }
  #hometext p:nth-child(2) { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  #hometext button { padding: 12px 24px; font-size: 0.9rem; border-radius: 30px; }

  /* Second Page */
  #secondpage { flex-direction: column; height: auto; padding: 40px 20px; gap: 20px; }
  .secdiv { margin: 0; width: 100% !important; height: auto !important; }
  .secdiv:nth-child(1) h1 { font-size: clamp(1.5rem, 6vw, 2rem); text-align: center; }
  .secdiv:nth-child(1) p { font-size: clamp(0.9rem, 3.5vw, 1rem); text-align: center; }
  .doubleimg { justify-content: center; gap: 10px; }
  .roundimgdiv { width: 50px; height: 50px; }
  .secimgdiv { height: 250px; }

  /* Third Page */
  #thirdpage { height: auto; padding: 40px 20px; }
  #thirdmain { height: auto; border-radius: 15px; }
  .thirdmindiv:nth-child(1) { flex-direction: column; height: auto; padding: 20px; text-align: center; }
  .thirdmindivtop:nth-child(1),
  .thirdmindivtop:nth-child(2) { width: 100%; padding: 0; }
  .thirdmindiv:nth-child(2) { flex-direction: column; gap: 20px; padding: 20px; height: auto; }
  .thirdcard { width: 100%; height: auto; padding: 20px; }

  /* Fourth Page */
  #fourthpage { height: auto; padding: 40px 20px; gap: 30px; }
  .fourthdivs { flex-direction: column; gap: 20px; padding: 0; height: auto; }
  .fourthdivs:nth-child(1) h1,
  .fourthdivs:nth-child(1) p { width: 100%; text-align: center; }
  .fourthdivs:nth-child(2),
  .fourthdivs:nth-child(3) { flex-direction: column; gap: 20px; padding: 0; }
  .fourthmid, .fourthfoot { width: 100% !important; height: 250px !important; }

  /* Fifth Page */
  #fifthpage { height: auto; padding: 40px 20px; }
  #fifthdiv { height: auto; padding: 20px; border-radius: 15px; }
  .fifthcontent:nth-child(1) { flex-direction: column; gap: 10px; padding: 0; text-align: center; }
  .fifthcontent:nth-child(2) { flex-direction: column; gap: 20px; padding: 0; }
  .fifthmain:nth-child(1), .fifthmain:nth-child(2) { width: 100%; height: auto; }
  .fifthdual { flex-direction: column; gap: 20px; }
  .fifthcard { width: 100%; }
  #candidimg { height: 250px; }

  /* Footer / Booking */
  #foot { flex-direction: column; padding: 40px 20px; gap: 20px; height: auto; }
  .footdiv:nth-child(1), .footdiv:nth-child(2) { width: 100%; height: auto; }
  .footimg { height: 200px; border-radius: 15px; }
  .foothead { flex-direction: column; gap: 10px; }
  .foothead h1, .foothead p { width: 100%; text-align: center; }
  form { width: 100%; }

  /* Menu adjustments */
  #menu-bar a { font-size: clamp(1rem, 6vw, 1.25rem); height: auto; padding: 15px; }
  .cross { top: 20px; right: 20px; }

  /* Elfsight widget */
  .elfsight-app-baf1c677-2c05-457b-83eb-ef4978f93539 { min-height: 400px; }
}

/* ---------- Tablets (680px–999px) ---------- */
@media (min-width: 680px) and (max-width: 999px) {
  #secondpage { flex-direction: column; gap: 40px; padding: 60px 40px; height: auto; }
  .secdiv { width: 100% !important; margin: 0; text-align: center; }
  .secimgdiv { height: 300px; }

  #thirdpage, #fourthpage, #fifthpage, #foot { padding: 60px 40px; height: auto; }
  .thirdmindiv:nth-child(2) { flex-wrap: wrap; gap: 20px; justify-content: center; }
  .thirdcard { flex: 1 1 calc(50% - 20px); height: auto; }

  .fourthdivs, .fifthcontent:nth-child(2) { flex-direction: column; gap: 30px; }
  .fifthmain:nth-child(1), .fifthmain:nth-child(2) { width: 100%; }
  .fifthdual { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .fifthcard { flex: 1 1 calc(50% - 10px); }

  #foot { flex-direction: row; gap: 40px; }
  .footdiv:nth-child(1), .footdiv:nth-child(2) { width: 48%; }
}

/* ---------- Small Desktop (1000px–1199px) ---------- */
@media (min-width: 1000px) and (max-width: 1199px) {
  #secondpage, #thirdpage, #fourthpage, #fifthpage, #foot { padding: 80px 60px; height: auto; }
  .thirdmindiv:nth-child(2) { flex-wrap: wrap; gap: 30px; }
  .thirdcard { flex: 1 1 calc(33.333% - 20px); height: auto; }
  .fifthcontent:nth-child(2) { flex-wrap: wrap; gap: 30px; }
  .fifthmain:nth-child(1), .fifthmain:nth-child(2) { width: 48%; }
}


 /* ===============================
   Mobile Drawer Menu
   =============================== */
@media screen and (max-width: 768px) {

  /* Backdrop overlay */
  #menudiv {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  #menudiv.active {
    opacity: 1;
    visibility: visible;
  }

  /* Drawer panel */
  #menu-bar {
    position: fixed;
    top: 0;
    right: -250px; /* keep hidden */
    width: 250px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 6px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1001; /* above overlay */
    padding: 1.5rem 1rem;
  }

  #menu-bar.active {
    right: 0; /* slide in */
  }
  /* Links */
#menu-bar a {
  color: #333;
  text-decoration: none;
  font-size: 1.2rem;
  display: block;
  padding: 10px 0;
}
#menu-bar a:hover {
  color: #007bff;
  transition: color 0.2s ease;
}


  /* Close button */
  .cross {
    cursor: pointer;
    font-size: 1.5rem;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  /* Menu links */
  #menu-bar ul {
    list-style: none;
    padding: 60px 0 0 0; /* push below close button */
    margin: 0;
  }

  #menu-bar ul li {
    margin-bottom: 20px;
  }

  #menu-bar ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    display: block;
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Show hamburger (mobile only) */
  #rightnav2 {
    display: block;
    cursor: pointer;
    font-size: 1.8rem;
  }

  /* Hide desktop emergency link */
  #rightnav1 {
    display: none;
  }
}


.whatsapp-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    transform: translateX(100px); /* initially hidden */
    transition: transform 0.3s ease;
}

.whatsapp-wrapper.show {
    transform: translateX(0); /* slide in */
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
