@font-face {
  font-family: 'Black Chancery';
  src: url('../assets/BLKCHCRY.TTF') format('truetype');
}

/* CSS Boilerplate */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
  font-family: 'Black Chancery', cursive;
  font-size: 20px;
  line-height: 1.5;
  background: #CFE1C4;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

nav {
    position: relative;
    top: 0;
    left: 0;
    float: right;
    width: 50%;
    height: 60px;
    z-index: 1000;
}

nav ul {
  list-style: none;
  padding: 0 24px; /* top/bottom 0, keep right-side spacing */
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* group links to the right */
  gap: 1.5rem;
  width: auto;
  height: 100%;
}

/* Header layout: keep title and nav on one line, vertically centered */
header {
  display: flex;
  align-items: center;       /* vertical centering */
  justify-content: space-between; /* title left, nav right */
  height: 60px;             /* match nav height */
  padding: 0 16px;
  box-sizing: border-box;
}

.site-title {
  margin: 0; /* remove extra bottom margin for vertical centering */
  color: #075E2B;
}

.page-title {
  margin: 0 0 16px 0; /* bottom margin for spacing from content */
  color: #075E2B;
  text-shadow: 2px 2px 2px rgba(0,0,0,1);
  font-size: 3rem;
  text-align: center;
}

nav ul li {
    display: inline;
}

.nav-links {
    color: #075E2B;
    text-shadow: 2px 2px 2px rgba(0,0,0,1);
    font-size: 1.8rem;
    text-decoration: none;
}


img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}



button, input, select, textarea {
    font: inherit;
}

 .shadow-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: url('../assets/shadowBG.png') center center no-repeat;
    background-size: 100% 100%;
    opacity: 0.3;
    z-index: 10;
} 

/* allow header to span full width so flex can push nav to the right */
header {
  width: 100%;
}

.gallery {
  padding-top: 30px;
}

.gallery-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 24px auto;
  font-size: 1.2rem;
  color: #333;
}


h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em 0;
    font-weight: 600;
    color: #075E2B;
    text-shadow: 2px 2px 2px rgba(0,0,0,1);
}

  .hero a.contact-hyper {
    color: #075E2B;
    text-decoration: underline !important;
    padding: 0 !important;
    margin: 0 !important;
  }

.hero-image {
    max-width: 100%;
    max-height: 500px;
    margin-bottom: 16px;
    object-fit: contain;
    z-index: 1000;
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;    /* adjust as needed */
  padding: 32px 16px;  /* optional spacing */
  box-sizing: border-box;
}

footer {
  text-align: center;
  padding: 16px 16px;
  box-sizing: border-box;
  font-size: 0.8em;
}

footer p {
  margin: 0;
}

/* ensure main content grows to push footer to bottom when content is short */
main {
  flex: 1 0 auto;
}

p {
    margin: 0 0 1em 0;
}

/* Thank-you page styling */
.thankyou {
  text-align: center;
  max-width: 820px;
  margin: 48px auto;
  padding: 20px 16px;
}

/* center images inside thankyou section */
.thankyou img {
  display: block;
  margin: 16px auto;
  max-width: 100%;
  height: auto;
}

/* smaller hero image on narrow screens to save vertical space */
@media (max-width: 600px) {
  .hero-image {
    max-width: 78vw;
    max-height: 500px;
    width: auto;
    height: auto;
  }
}

/* Constrain hero paragraph on large screens so it doesn't span full width */
@media (min-width: 1100px) {
  .hero p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 22px;
    line-height: 1.6;
  }
}

/* Accessible visually-hidden utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;               /* desktop: hidden */
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* simple hamburger icon */
.nav-toggle .hamburger {
  width: 26px;
  height: 2px;
  background: #222;
  display: block;
  position: relative;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: #222;
}
.nav-toggle .hamburger::before { top: -8px; }
.nav-toggle .hamburger::after  { top: 8px; }

/* Mobile and medium-screen styles */
@media (max-width: 1050px) {

  /* show hamburger button */
  .nav-toggle {
    display: inline-flex;
    z-index: 1100; /* above overlay/content */
  }

  /* hide the original nav flex layout (desktop) */
  /* make the mobile menu span the full viewport (not constrained by nav width) */
  nav {
    float: none;
    width: 100%;
  }

  nav .nav-list {
    display: none;
    position: absolute;
    top: 56px;
    right: 0;
    left: auto;
    width: min(220px, 100vw);
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 12px 16px;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    height: auto;
    max-height: none;
    overflow-y: visible;
    z-index: 1250;
  }

  /* nav links in mobile stack */
  nav .nav-list li {
    display: block;
  }
  nav .nav-list li a.nav-links {
    display: block;
    padding: 10px 8px;
    font-size: 1.25rem;
  }

  .hero a.contact-hyper {
    color: #075E2B;
    text-decoration: underline !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* when open, display block */
  header.nav-open nav .nav-list,
  body.nav-open nav .nav-list {
    display: flex;
  }

  /* transform the hamburger into an X when open */
  .nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
  }
  .nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }
  .nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* keep the header in normal flow so it scrolls with the page */
  header {
    position: relative;
    width: 100%;
    z-index: 1300;
  }
  

  /* fix the hamburger button relative to the header, not the viewport */
  .nav-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px;
    display: inline-flex;
    z-index: 1400; /* above header/nav */
  }

  nav .nav-list {
    top: 0; /* keep the open menu aligned to the viewport top */
  }
}

/* Center the About block and its contents */
.aboutText {
  max-width: 900px;      /* limit line length for readability */
  margin: 36px auto;     /* center horizontally and add vertical spacing */
  padding: 0 16px;       /* side padding on narrow screens */
  box-sizing: border-box;
  text-align: center;    /* center text inside the block */
}

.aboutText p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

/* replace the old ul, ol rule with this to remove bullets globally */
ul, ol {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1em 0;
}

.enquiry-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;
    position: relative;
}

.enquiry-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.enquiry-form form {
    display: flex;
    flex-direction: column;
}

.enquiry-form label {
    margin: 10px 0 5px;
    font-weight: bold;
}

.enquiry-form input,
.enquiry-form textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    opacity: 0.5;
    border-radius: 4px;
}

.enquiry-form button {
    margin-top: 20px;
    padding: 12px;
    width: 50%;
    margin: 20px auto 0;
    background-color: #78866b;
    opacity: 0.8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: block;
}

.enquiry-form button:hover {
    background-color: #78866b;
}

/* make submit button style reusable for anchors too */
.submit-btn {
  display: inline-block;
  padding: 12px 18px;
  background-color: #78866b;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.95;
}
.submit-btn:hover {
  background-color: #6a7a59;
}

.FindUsText {
    max-width: 900px;
    margin: 36px auto;
    padding: 0 16px;
    text-align: center;
    box-sizing: border-box;
}

.FindUsText h2 {
    margin-bottom: 8px;
    font-size: 1.6rem;
}

.FindUsText p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}


/* Center map container and make iframe responsive */
.map-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: min(60vh, 600px);
  border: 0;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    z-index: 1000;
}

.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: white;
    z-index: 1000;
}

.photo-img {
    position: relative;
    overflow: hidden;
}

.photo-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-img:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay button {
    background: #ffffff;
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* Basic gallery still works the same */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* Overlay container (initially hidden) */
.photo-detail-overlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9); /* semi-transparent black */
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

/* Activated overlay */
.photo-detail-overlay.active {
  display: flex;
}

/* Inner content layout */
.photo-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 90%;
  max-height: 90%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Image side */
.photo-detail-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Info side */
.photo-detail-info {
  padding: 30px;
  overflow-y: auto;
}

.photo-detail-info h3 {
  margin-top: 0;
}

.close-detail {
  margin-top: 20px;
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* Optional: fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1050px) {
  .site-title {
    font-size: 2.3rem;
    margin-top: 60px;
  }

  body {
    font-size: 25px;
  }

  .nav-toggle .hamburger {
    margin-top: 10px;
    width: 34px;
    height: 4px;
    background: #222;
  }
  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    width: 34px;
    height: 4px;
    background: #222;
  }
  .nav-toggle .hamburger::before { top: -10px; }
  .nav-toggle .hamburger::after  { top: 10px; }

  /* make enquiry form and its fields fill available width on medium screens */
  .enquiry-form {
    max-width: 100%;
    width: 100%;
    margin: 20px auto;
    padding: 20px 16px;
  }

  .enquiry-form input,
  .enquiry-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin: 0, 10px, 0, 10px;
  }

  .enquiry-form .submit-btn {
    font-size: 28px;
  }
}

@media (max-width: 1000px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }

  .site-title {
    font-size: 2rem;
    margin-top: 25px;
  }

  .page-title {
    font-size: 2.2rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  nav ul li {
    font-size: 1rem;
  }

  .aboutText,
  .enquiry-form,
  .FindUsText,
  .map-container {
    max-width: 100%;
    width: 100%;
    margin: 24px auto;
    padding: 0 16px;
  }

  .enquiry-form {
    padding: 20px 16px;
  }

  /* make the submit button more readable on medium screens */
  .enquiry-form .submit-btn {
    font-size: 24px;
  }

  /* center paragraphs in the enquiry form on tablet/medium screens */
  .enquiry-form p {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .photo-grid {
    grid-template-columns: 1fr; /* 1 per row on mobile */
  }

  body {
    font-size: 16px;
  }

  .site-title {
    font-size: 1.2rem;
    margin-top: 25px;
  }
}

.carousel {
    position: relative;
    max-width: 1000px;
    margin: 20px auto;
    overflow: visible;
    z-index: 1000;
}

:root {
  --reserved-vertical: 120px; /* adjust for header+footer if needed */
  --carousel-height: calc(70vh - (var(--reserved-vertical) * 0.2)); /* change as desired */
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    height: auto;
    max-height: 100%;
    transition: height 0.3s ease;
}

.carousel-track {
    display: flex;
    align-items: flex-start;
    transition: transform 300ms ease-in-out;
    will-change: transform;
    padding: 0;
    margin: 0;
    list-style: none;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    max-height: none;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* nav buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(120,134,107,0.9);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 5;
    font-size: 18px;
    line-height: 1;
    opacity: 0.95;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn:focus { outline: 2px solid #fff; }

/* dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    border: none;
    cursor: pointer;
}
.carousel-dots .dot.active {
    background: rgba(0,0,0,0.7);
}

/* smaller screens */
@media (max-width: 600px) {
    .carousel-btn { padding: 8px 10px; font-size: 16px; }
    .carousel-slide { padding: 8px; }

    /* smaller hamburger and touch target on very small screens */
    .nav-toggle {
      padding: 6px;
      border-radius: 4px;
      background: transparent;
      box-shadow: none;
      transform: none;
      position: absolute;
      top: 8px;
      right: 8px;
      z-index: 1400;
    }

    .nav-toggle .hamburger {
      width: 26px;
      height: 2px;
      background: #222;
    }
    .nav-toggle .hamburger::before,
    .nav-toggle .hamburger::after {
      width: 26px;
      height: 2px;
      background: #222;
    }
    .nav-toggle .hamburger::before { top: -8px; }
    .nav-toggle .hamburger::after  { top: 8px; }

    .enquiry-form p {
        text-align: center;
    }
}
