/* =========================
   Base / Reset
========================= */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

html {
  background: #f7faf9; /* prevents white flash between pages */
  scroll-padding-top: 90px; /* helps with in-page anchors + sticky header */
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.7;

  /* ✅ FIX: solid background so it looks consistent on all pages */
  background: #f7faf9;

  /* Page transitions (fade in/out controlled by JS classes) */
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* Start hidden ONLY when JS is enabled */
html.js body { opacity: 0; }

/* When ready, fade in */
html.js body.is-ready { opacity: 1; }

/* Fade out on navigation */
body.fade-out { opacity: 0; }

/* Default links */
a { color: #2f7f88; }
a:hover { color: #256a71; }


/* =========================
   Header & Navigation
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);

  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

/* Container: row on desktop, stacked on mobile */
.site-header .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

/* Brand (image + text) */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #2f7f88;
  line-height: 1.15;
  max-width: 420px;
}

.tagline {
  margin: 0;
  font-size: 0.85rem;
  color: #6a9fa3;
  font-weight: 500;
  opacity: 0.9;
}

/* Nav pill */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  row-gap: 10px;

  background: rgba(47, 127, 136, 0.08);
  padding: 10px 14px;
  border-radius: 999px;

  flex: 0 0 auto;
  flex-wrap: wrap;
  white-space: normal;
  overflow: visible;
  max-width: 100%;
}

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;

  color: #1f3d40;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;

  transition: background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  background: rgba(47, 127, 136, 0.16);
  transform: translateY(-1px);
}

.main-nav a:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(247, 200, 115, 0.45);
}

/* Highlight Enquire */
.main-nav a.enquire {
  background: #f7c873;
  color: #2a2a2a;
}
.main-nav a.enquire:hover { background: #f0b957; }

/* Desktop keep title on one line */
@media (min-width: 900px) {
  .logo { white-space: nowrap; }
}

/* Mobile header stack */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand { justify-content: center; }

  .brand-logo { width: 48px; height: 48px; }

  .logo {
    font-size: 1.25rem;
    text-align: center;
    max-width: 100%;
    white-space: normal;
  }

  .tagline { font-size: 0.8rem; text-align: center; }

  .main-nav {
    justify-content: center;
    padding: 10px 12px;
    border-radius: 16px;
    gap: 6px;
  }

  .main-nav a {
    padding: 7px 10px;
    font-size: 0.92rem;
    line-height: 1;
  }
}


/* =========================
   Main Layout
========================= */
main {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 50px auto;
  padding: 0 20px;
}

/* Content cards */
section,
.hero,
form {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

section:hover,
.hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}


/* =========================
   Typography
========================= */
h2 {
  font-size: 1.9rem;
  color: #2f7f88;
  margin: 0 0 15px;
}

h3 {
  font-size: 1.4rem;
  color: #355f61;
  margin: 30px 0 10px;
}

h4 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: #444;
}

p { margin: 0 0 15px; font-size: 1rem; }

ul {
  padding-left: 20px;
  margin: 0 0 20px;
}
ul li { margin-bottom: 8px; }


/* =========================
   Hero
========================= */
.hero {
  text-align: center;
  padding: 60px 40px;
}

.hero h2 {
  font-size: 2.4rem;
  margin-top: 0;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  max-width: 650px;
  margin: 0 auto;
}

/* Hero logo image */
.hero-logo {
  width: 500px;
  max-width: 70vw;
  margin: 0 auto 12px;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.08));
}

@media (max-width: 768px) {
  .hero-logo {
    width: 250px;
    margin-bottom: 12px;
  }
  .hero { padding: 38px 20px; }
  .hero h2 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }
}


/* =========================
   Buttons
========================= */
.button,
form button {
  display: inline-block;
  background: #f7c873;
  color: #2a2a2a;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-top: 25px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
form button:hover {
  background: #f0b957;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.button:focus,
form button:focus,
.main-nav a:focus,
.gallery-close:focus,
.lightbox-close:focus,
.lightbox-nav:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(247, 200, 115, 0.45);
}


/* =========================
   Forms
========================= */
form {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

form label {
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.95rem;
}

form input,
form textarea {
  margin-top: 8px;
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccdede;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #4fa3a5;
  box-shadow: 0 0 0 3px rgba(79, 163, 165, 0.2);
}

textarea { min-height: 150px; resize: vertical; }

#status {
  margin-top: 15px;
  font-weight: 500;
  text-align: center;
  color: #2f7f88;
  font-size: 0.95rem;
}


/* =========================
   Gallery (general)
========================= */
.gallery { text-align: center; }
.gallery h2 { margin-bottom: 25px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
}
.gallery-item:hover img { transform: scale(1.06); }

/* Home gallery */
.home-gallery { text-align: center; }
.home-gallery .button {
  margin: 24px auto 0;
  display: inline-block;
}

/* Teaser grid sizing */
.gallery-grid--teaser {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}


/* =========================
   Profile Images & Sections
========================= */
.profile-image {
  width: 100%;
  max-width: 260px;
  height: auto;

  display: block;
  margin: 20px auto 25px;

  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.profile-section { text-align: center; }
.profile-section p,
.profile-section ul,
.profile-section h4 { text-align: left; }


/* =========================
   Gallery Modal (Overlay)
========================= */
.gallery-modal {
  position: fixed;
  inset: 0;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2000;
}

.gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-modal-content {
  width: min(1000px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.gallery-modal-content h2 {
  margin-top: 0;
  text-align: center;
}

.gallery-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(47, 127, 136, 0.10);
  color: #1f3d40;
  font-size: 24px;
  cursor: pointer;
}

.gallery-close:hover { background: rgba(47, 127, 136, 0.18); }

.gallery-modal .gallery-grid { gap: 16px; }
.gallery-modal .gallery-item { aspect-ratio: 4 / 3; }
.gallery-modal .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}


/* =========================
   Lightbox (Full-size image viewer)
========================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 3000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  width: min(1100px, 100%);
  max-height: 88vh;

  display: grid;
  align-items: center;
  grid-template-columns: 50px 1fr 50px;
  gap: 10px;
}

.lightbox-figure {
  margin: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
}

#lightboxImg {
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;

  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  background: #fff;
}

#lightboxCaption {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  text-align: center;
  max-width: 90ch;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;

  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;

  cursor: pointer;
  z-index: 5;
}

.lightbox-close:hover { background: rgba(0,0,0,0.7); }

.lightbox-nav {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;

  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 28px;

  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-nav:hover { background: rgba(0,0,0,0.65); }


/* =========================
   Utilities
========================= */
.center { text-align: center; }
.center p { max-width: 620px; margin-left: auto; margin-right: auto; }
.center ul {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}


/* =========================
   Footer
========================= */
footer {
  background: #eef4f5;
  text-align: center;
  padding: 25px 15px;
  font-size: 0.9rem;
  color: #555;
}


/* =========================
   Responsive (Mobile)
========================= */
@media (max-width: 768px) {
  main {
    margin: 28px auto;
    padding: 0 14px;
  }

  section,
  .hero,
  form {
    padding: 28px 18px;
    margin-bottom: 18px;
  }

  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }

  .profile-image { max-width: 200px; }

  /* Teaser tiles */
  .gallery-grid--teaser {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-grid--teaser .gallery-item img {
    height: 140px;
    object-fit: cover;
  }

  /* Modal sizing */
  .gallery-modal-content {
    width: calc(100% - 20px);
    max-width: 520px;
    padding: 16px;
    border-radius: 16px;
  }

  #galleryModal .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #galleryModal .gallery-grid img {
    height: 140px;
    object-fit: cover;
  }

  /* Lightbox */
  .lightbox { padding: 12px; }
  .lightbox-inner {
    grid-template-columns: 40px 1fr 40px;
    gap: 8px;
  }

  #lightboxImg { max-height: 72vh; }

  .lightbox-nav,
  .lightbox-close {
    width: 46px;
    height: 46px;
  }

  section:hover,
  .hero:hover { transform: none; }
}

@media (max-width: 420px) {
  .gallery-grid--teaser { grid-template-columns: 1fr; }
  .gallery-grid--teaser .gallery-item img { height: 180px; }

  #galleryModal .gallery-grid { grid-template-columns: 1fr; }
  #galleryModal .gallery-grid img { height: 200px; }
}


/* =========================
   Accessibility: Reduced Motion
========================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* =========================
   Honeypot spam protection
========================= */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.h2-icon {
  width: 96px;
  height: 96px;
}


.instagram-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin: 6px auto 22px;
  padding: 10px 18px;

  background: linear-gradient(
    135deg,
    #f58529,
    #dd2a7b,
    #8134af,
    #515bd4
  );
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;

  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.18);
}

.instagram-icon {
  font-size: 1.1rem;
}
