/* ================================================
   MOCHLOS BLUE — blusea.css

   ================================================

   TABLE OF CONTENTS
   1.  Custom Properties (Design Tokens)
   2.  Base & Reset
   3.  Typography
   4.  Layout Utilities
   5.  Navigation
   6.  Hero Carousel + Gradient
   7.  About / Facilities
   8.  Gallery Cards
   9.  Modals
   10. Contact Section
   11. Footer
   12. Skip Link (Accessibility)
   13. Info Tabs
   14. Scroll-reveal Animation
   15. Responsive Adjustments

   ================================================ */


/* ── 1. Custom Properties ───────────────────────────────────────── */
:root {
  --color-primary:     #536576;
  --color-dark:        #354755;
  --color-text:        #777;
  --color-text-mid:    #555;
  --color-text-light:  #bdbdbd;
  --color-white:       #fff;
  --color-bg-light:    #f6f6f6;
  --color-border:      #f0f0f0;

  --navbar-height:      62px;
  --sticky-bar-height:  54px;
  --section-padding-y:  50px;
  --section-padding-x:  40px;
}


/* ── 2. Base & Reset ────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* Offset scroll targets to account for fixed navbar */
#band,
#photos,
#info {
  scroll-margin-top: calc(var(--navbar-height) + 8px);
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
}


/* ── 3. Typography ──────────────────────────────────────────────── */
h1 {
  color: var(--color-primary);
  font-size: 40px;
}

h2 {
  color: var(--color-primary);
}

h3,
h4 {
  margin: 10px 0 30px;
  letter-spacing: 7px;
  font-size: 20px;
  color: #111;
}


/* ── 4. Layout Utilities ────────────────────────────────────────── */
.container-fluid2 {
  padding: var(--section-padding-y) var(--section-padding-x);
}

/* Dark gallery section */
.bg-1 {
  background-color: var(--color-dark);
  color: var(--color-text-light);
}

.bg-1 h2,
.bg-1 h3 {
  color: var(--color-white);
}

.bg-1 p {
  color: var(--color-text-light);
}


/* ── 5. Navigation ──────────────────────────────────────────────── */
.navbar {
  background-color: var(--color-dark);
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.95;
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #d5d5d5;
  transition: color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--color-white);
}

.navbar .nav-link.active {
  color: var(--color-white);
}

/* Language switcher */
.navbar .lang-switch {
  color: #d5d5d5;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 3px;
}

.navbar .lang-switch a {
  color: #d5d5d5;
  text-decoration: none;
}

.navbar .lang-switch a:hover {
  color: var(--color-white);
}

.navbar-toggler {
  border-color: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.3);
}


/* ── 6. Hero Carousel + Gradient ────────────────────────────────── */
.carousel-inner img {
  width: 100%;
  object-fit: cover;
  max-height: 80vh;
}

.carousel-item {
  position: relative;
}

/*
  Black gradient at the bottom of every carousel slide.
  Ensures caption text is legible regardless of image brightness.
  Adjust height (45%) or the rgba stop (0.65) to taste.
*/
.carousel-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Caption sits above the gradient */
.carousel-caption {
  z-index: 2;
}

.carousel-caption h3 {
  color: var(--color-white);
}

.carousel-indicators [data-bs-target] {
  background-color: var(--color-white);
  opacity: 0.6;
}

.carousel-indicators .active {
  opacity: 1;
}


/* ── 7. About / Facilities ──────────────────────────────────────── */
.facility-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: block;
}


/* ── 8. Gallery Cards ───────────────────────────────────────────── */
/*
  .thumbnail was removed from Bootstrap 4+.
  Redefined here as a custom component.
*/
.thumbnail {
  border-radius: 0;
  padding: 0 0 20px;
  background-color: var(--color-white);
  transition: box-shadow 0.25s ease;
  height: 100%;
}

.thumbnail img {
  width: 100%;
  display: block;
}

.thumbnail p {
  margin: 12px 16px 0;
  color: var(--color-text-mid);
}

.thumbnail h2 {
  margin: 16px 0 4px;
  font-size: 1.25rem;
}

.thumbnail:hover {
  box-shadow: 5px 0 40px rgba(0, 0, 0, 0.2);
}

/* Scoped gallery button — does NOT override Bootstrap's global .btn */
.card-btn {
  display: block;
  width: 88%;
  margin: 16px auto 0;
  padding: 12px 16px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary);
  border-radius: 0;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
}

.card-btn:hover,
.card-btn:focus {
  background-color: var(--color-white);
  color: var(--color-primary);
  outline: none;
}


/* ── 9. Modals ──────────────────────────────────────────────────── */
.modal-header {
  background-color: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  border-bottom: none;
  padding: 20px;
}

.modal-title {
  color: var(--color-white);
  letter-spacing: 5px;
  font-size: 18px;
  width: 100%;
  text-align: center;
}

.modal-body {
  padding: 20px;
  border: none;
}

/* Carousel inside modals — gradient not needed here */
.modal .carousel-item::after {
  display: none;
}

.modal .carousel-inner img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
}


/* ── 10. Contact Section ────────────────────────────────────────── */
.contact-details p {
  font-size: 16px;
  margin-bottom: 12px;
}

.contact-details a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-details .detail-icon {
  color: var(--color-primary);
  margin-right: 6px;
  width: 18px;
  text-align: center;
}

/* CTA buttons row */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* WhatsApp */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25d366;
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.whatsapp-link:hover {
  background-color: #1ebe5d;
  color: var(--color-white);
  text-decoration: none;
}

/* Booking.com */
.booking-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #003580;
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.booking-link:hover {
  background-color: #00224f;
  color: var(--color-white);
  text-decoration: none;
}


/* ── 11. Footer ─────────────────────────────────────────────────── */
footer {
  background-color: var(--color-dark);
  color: #f5f5f5;
  padding: 32px;
  /* Extra bottom padding so content clears the sticky contact bar */
  padding-bottom: calc(32px + var(--sticky-bar-height));
}

footer a {
  color: #f5f5f5;
  text-decoration: none;
}

footer a:hover {
  color: var(--color-text-light);
}

footer .up-arrow {
  display: inline-block;
  font-size: 20px;
}


/* ── 12. Skip Link (Accessibility) ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  z-index: 9999;
  font-size: 14px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: var(--color-white);
}


/* ── 13. Info Tabs ──────────────────────────────────────────────── */
.info-tabs {
  border-bottom: 2px solid var(--color-primary);
}

.info-tabs .nav-link {
  color: var(--color-text);
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  letter-spacing: 3px;
  font-size: 13px;
  padding: 10px 24px;
  transition: color 0.2s, background-color 0.2s;
}

.info-tabs .nav-link:hover {
  color: var(--color-primary);
  border-color: transparent;
}

.info-tabs .nav-link.active {
  color: var(--color-white);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.info-tab-content {
  border: 1px solid #dee2e6;
  border-top: none;
  padding: 32px;
  background-color: var(--color-white);
  text-align: left;
}

.info-tab-img {
  width: 100%;
  object-fit: cover;
  margin-bottom: 16px;
}

.info-tab-heading {
  color: var(--color-primary);
  letter-spacing: 3px;
  font-size: 16px;
  margin: 0 0 16px;
}


/* ── 14. Scroll-reveal Animation ────────────────────────────────── */
.slideanim {
  visibility: hidden;
}

.slide {
  visibility: visible;
  animation: slideUp 0.5s ease both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger children for a cascade effect */
.slideanim .col-sm-4:nth-child(1) { animation-delay: 0s;   }
.slideanim .col-sm-4:nth-child(2) { animation-delay: 0.1s; }
.slideanim .col-sm-4:nth-child(3) { animation-delay: 0.2s; }


/* ── 16. Sticky Contact Bar ─────────────────────────────────────── */
.sticky-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--sticky-bar-height);
  background-color: var(--color-primary);
  display: flex;
  align-items: stretch;
  z-index: 1025; /* above sticky (1020), below navbar + modals (1030+) */
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.35);
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 0 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
  overflow: hidden;
}

.sticky-btn:last-child {
  border-right: none;
}

.sticky-btn:hover {
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--color-white);
  text-decoration: none;
}

.sticky-btn i {
  font-size: 15px;
  flex-shrink: 0;
}

/*
  Mobile: all 4 buttons always visible, same as desktop.
  Reduce font and padding to fit comfortably at 25% width each.
  Phone and email swap to short labels via Bootstrap d-* utilities in HTML.
*/
@media (max-width: 767px) {
  .sticky-btn {
    font-size: 10px;
    padding: 0 4px;
    gap: 4px;
  }

  .sticky-btn i {
    font-size: 13px;
  }
}


/* ── 17. Responsive Adjustments ─────────────────────────────────── */

/* Phones only — below BS5 'sm' breakpoint */
@media (max-width: 575px) {
  .container-fluid2 {
    padding: 36px 20px;
  }

  h1 {
    font-size: 28px;
  }

  h3,
  h4 {
    letter-spacing: 4px;
    font-size: 17px;
  }

  /*
    Portrait carousel — phones only (≤ 575px).
    Forces a 3:4 portrait ratio; object-fit: cover crops from centre.

    To fine-tune crop per slide, override object-position:
      .carousel-item:nth-child(1) img { object-position: center top; }

    For full control, replace that slide's <img> with a <picture>
    element pointing to a hand-cropped portrait source.
  */
  .carousel-item {
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }

  .carousel-item img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
  }

  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Small tablets and large phones in landscape (576px–767px) */
/* Landscape images display fine at this width — no changes needed */
