html, body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	height: 100%;
  font-size: 1.1rem;
  color: #333;
  overflow-x: hidden;
  }

* {
  box-sizing: border-box;
}

/*300 minimal container, 90% prefer width viewport, 1200 max width*/
.container {
  width: 100%;
  max-width: clamp(300px, 90%, 1200px); 
  margin: 0 auto;
  padding: 0 1.4rem;
}
h2{
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
}
h1{
  font-size: 2rem;
  font-weight: 700;
  padding-top: 2%;
  font-weight: 500;
  text-align: center;
}

/* Separator */
.custom-line {
  width: 20%;           /* width of line */
  height: 3px;           /* thick */
  background-color: #5ba1f8; 
  border: none;          
  margin: 20px auto;     
  border-radius: 2px;  
  margin-top: 4%;
}

/* General header */
header {
  position: relative;
  z-index: 100;   /* The header—and everything that extends from it—remains at the top. */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #5ba1f8;
  padding: 1rem 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/*Hamburger*/
/*We hide the actual checkbox; it's never seen. */
.menu-toggle-checkbox {
  display: none;
}

header .logo img {
  width: clamp(150px, 30vw, 500px);
  height: auto;
  margin-top: 1%;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.navbar {
  flex: 1; /* space for breath */
  display: flex;
  justify-content: center; 
}

.navbar a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s ease;
  font-size: 1.2rem;
}

.navbar a:hover {
  color: #ffffff;
}
/* The ham button remains hidden */
.menu-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 20;
}

.menu-toggle-label span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #262626;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* End of general header */

/* Banner home page */
/*
  Banner with parallax background image + a dark overlay for
  text contrast. The image and the overlay text live in TWO separate
  elements (.banner-section for the image, .banner-overlay for the
  text) stacked on top of each other using position: relative +
  position: absolute, so the text always centers over the image
  regardless of screen size.
*/

.banner-section {
  position: relative; /* required so .banner-overlay (absolute) positions itself relative to THIS box, not the whole page */
  width: 100%;
  height: 60vh; /* 60% of the viewport height, so it scales with different screen sizes */
  background-image: url('/assets/images/banner.jpg');
  background-size: cover; /* fills the box completely without distorting the image's aspect ratio */
  background-position: center; /* keeps the image centered when it gets cropped by "cover" */
  background-attachment: fixed; /* Parallax effect: the background stays still while the page scrolls over it */
  display: flex;
  flex-direction: column;
  justify-content: center; /* centers the overlay content vertically */
  align-items: center;     /* centers the overlay content horizontally */
  text-align: center;
  margin-top: 2%;
}

/* Sits on top of the banner image (same size, same position, z-index: 1)
   to darken the photo slightly so the white text stays readable no
   matter how bright the photo underneath is */
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  z-index: 1; /* stacks above .banner-section's background image */
  background: rgba(0, 0, 0, 0.3); /* semi-transparent black tint — 30% opacity, just enough to darken without hiding the photo */
}

/* Decorative script font for the main banner heading */
.banner-overlay h1 {
  font-size: 2.5rem;
  font-family: 'Petit Formal Script', cursive;
}

/* Italic subtext underneath the heading */
.banner-overlay p {
  font-size: 1.5rem;
  font-style: italic;
}
/* End of banner */


/* anthem */
.anthem-section {
  margin-top: 2rem;
  text-align: center;
}

.anthem-section h2 {
  font-family: 'Petit Formal Script', cursive;
  font-weight: bold;
  font-size: 1.8rem;
  color: #5ba1f8;
  margin-bottom: 0.5rem;
}

.anthem-section audio {
  margin-top: 1rem;
}
audio {
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* End of anthem */

/* form */
.contact-section {
    padding: 50px 0;
    text-align: center; /* text and title center */
}
.responsive-form {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  border-radius: 4px;
  border: 2px solid #5ba1f8;
  background-color: #e0e9f5;  
  padding: 20px;
  margin-bottom: 4%;
 }

form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.responsive-form label {
  min-width: 48%;
  margin-bottom: 10px;
  text-align: left;
  font-family: Roboto;
}

.menu-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  flex-shrink: 0;    /* He never lets it be pushed or stretched. */
  cursor: pointer;
  z-index: 20;
}

input[type=text], select {
  min-width: 45%;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  font-size: 1rem;
  font-family: Roboto;
}

textarea {
  min-width: 45%;
  height: 150px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  font-size: 1rem;
  font-family: Roboto;
}

input[type=submit] {
  width: 100%;
  background-color: #5ba1f8;
  color: white;
  font-size: 1.2rem!important;
  padding: 14px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=reset] {
  width: 100%;
  background-color: #3d3f3e;
  color: white;
  font-size: 1.2rem!important;
  padding: 14px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
/* End of form */

/* General footer */
footer {
  text-align: center; /* Centers text and inline elements */
  padding: 30px;
  background-color: #5ba1f8;
  color: black;
  font-style: italic;
  font-size: 0.8rem;
}


/* Mahori Cultural */

/* table */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth scroll in iPhone */
}

.maori-table {
  width: 100%;
  min-width: 600px; /* prevents the columns from being crushed */
  border-collapse: collapse;
  margin: 2rem auto;
  background: #e0e9f5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 10px;
}

.maori-table th {
  background-color: #5ba1f8;
  color: white;
  padding: 15px;
  font-size: 1.2rem;
  text-align: left;
}

.maori-table td {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  font-size: 1.1rem;
  line-height: 1.5;
}

.maori-table tr:hover {
  background-color: #f3f8f4;
}

/* video banner */
.video-banner {
  position: relative;
  width: 100%;
  height: 80vh; /* banner height */
  overflow: hidden;
  margin-top: 2%;
}

.video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.maori-divider {
  display: block;
  width: 100%;
  height: auto;
}
.maori-divider {
    width: 100%;
    height: 100px;
    opacity: 0.9;
    }

/* value section */

.values-section {
  padding: 3rem 0;
}

.values-section h1 {
  color: #5ba1f8;
  font-family: 'Petit Formal Script', cursive;
  font-weight: bold;
}

.values-section .card img {
  width: 100%;
  height: auto;
  object-fit: contain; /* show complete image */
  padding: 10px;       
  background-color: #e0e9f5;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.values-section .card {
  margin-bottom: 2rem;
}
.card p{
  font-size: 1.1rem;
  text-align: left;
  padding-left: 4%;
  padding-right: 4%;
}

.values-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}
.intro-text {
  text-align: center;
  font-style: italic;
  color: #333;
  margin-bottom: 1.5rem;
}
/* End of values section */

/* Haka section */

.content-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.content-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.haka-section {
  margin: 3% auto;
  width: 80%;
  }

.haka-section h2 {
  font-size: 1.6rem;
  color: #5ba1f8;
  margin-top: 2rem;
  font-style: italic;
  text-align: left;
}
.haka-section h1{
  color:#5ba1f8
}

.haka-section p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  margin: 0.8rem 0;
  text-align: left;
}
/* end of haka section */

/* services */

/* Table */
.tours-title{
  font-size: 2rem;
  color: #5ba1f8;
  margin-bottom: 1rem;
  font-style: normal;
  font-weight: 400;
}

/* video */

.services-video {
  text-align: center;
  margin-top: 2rem;
}

.services-video h1 {
  font-size: 2rem;
  color: #5ba1f8;
  margin-bottom: 1rem;
}

.video-banner {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  margin-top: 2%;
}

.video-container,
.video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
}

/* tours */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}


.card {
  background-color: #e0e9f5;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.view-btn {
  display: inline-block;
  background-color: #5ba1f8;
  text-align: center;
  color: white;
  padding: 10px 20px;
  margin: 15px 0;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.view-btn:hover {
  background-color: #192197;
}

/* Checkbox invisible */
.modal-toggle {
  display: none;
}

/*
  MODAL SYSTEM (CSS-only, no JavaScript):
  Built with the "checkbox hack" — a hidden <input type="checkbox">
  paired with a <label for="..."> that shares its id. Clicking the
  label toggles the checkbox; CSS then reacts to :checked using the
  adjacent-sibling selector (+) below. Three layers, each needing its
  own z-index so they stack correctly:
    1. .modal        -> the fixed full-screen container (lowest, 1000)
    2. .modal-overlay -> the dark background click-to-close layer (999,
       BELOW .modal in the stacking order, but still above the page
       content behind it)
    3. .modal-content -> the actual white box with text (highest, 1001)
*/

/* Modal base: covers the whole screen but stays invisible/unclickable
   until its checkbox is checked (see rule below) */
/* Modal base */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1000; /* bring to the back */
}

/* THE CORE MECHANISM: each checkbox controls ONLY the modal that comes
   immediately after it in the HTML (the "+" is a sibling selector).
   When checked, the modal becomes visible and clickable. */
.modal-toggle:checked + .modal {
  pointer-events: auto;
  opacity: 1;
}

/* Overlay: sits behind the modal box but in front of the page content;
   clicking it acts as a "close" button because it shares the same
   for="modal-toggle" as the visible label, so clicking it un-checks
   the checkbox */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  cursor: pointer;
  z-index: 999; /* back of the content but over the back */
}

/* The visible white box: needs the highest z-index so it always draws
   on top of the dark overlay */
/* box of modal */
.modal-content {
  position: relative;
  background: #e0e9f5;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.5s ease;
  z-index: 1001; /* Over overlay */
}

/* Close button: also a <label for="modalX-toggle">, so clicking the
   "×" un-checks the same checkbox and closes the modal — no JS needed */
/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #5ba1f8;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ff3300;
}

/* Entrance animation: plays once when the modal's opacity switches to 1 */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); } /*Modal invisible, the modal size 90%*/
  to { opacity: 1; transform: scale(1); } /* Modal visible and return norma size*/
}
.modal-img {
  width: 90%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  margin: 0 auto 20px auto;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: 3px solid #5ba1f8; 
}

html {
  scroll-behavior: smooth;
}
/* Gallery photos | Pseudo elements*/
#gallery h1::after,
.gallery-section h1::after {
  content: none !important;/*Empty because no need text here*/
  border: none !important;
  display: none !important;
}
.gallery-section .container {
  display: flex;
  flex-direction: column;
  align-items: center; /* center everything */
}

.gallery-section h1::after {
  content: none; /* delete pseudo-elements */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-card {
  background: #e0e9f5;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-align: center;
}

.gallery-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
   transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-card h2 {
  margin: 10px 0;
  font-size: 1.6rem;
  color: #5ba1f8;
  font-weight: 400;
}

.gallery-card p {
  text-align: justify;
  line-height: 1.6;
}

.gallery-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.gallery-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.gallery-section h1 {
  position: relative;
  display: inline-block;
}

.gallery-section h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 4px;
  background: #5ba1f8;
  border-radius: 2px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); } /* star invisible, start 20px down*/
  to { opacity: 1; transform: translateY(0); } /*Finish invisible, return normal position*/
}
/* form for buy tours */
.booking-box {
  margin-top: 25px;
  background: #dee7f3;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.modal-content h2{
  color: #5ba1f8;
  }

.booking-box h3 {
  color: #5ba1f8;
  font-weight: 400;
  margin-bottom: 15px;
}

.booking-box .price {
  font-size: 1.5rem;
  color: #5ba1f8;
  font-weight: 400;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-form label {
  font-weight: bold;
  color: #333;
}

.booking-form input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.total-box {
  margin-top: 10px;
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.total-box .total {
  color: #5ba1f8;
  font-weight: bold;
}

.book-btn {
  display: block;
  text-align: center;
  background-color: #5ba1f8;
  color: white;
  padding: 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.book-btn:hover {
  background-color: #192197;
}
/* End services */

/* model scroll for mobiles */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.15rem; }
}


@media (max-width: 600px) {
  .modal-content {
    max-height: 90vh;       /* limit heigth to 90% of the screen */
    overflow-y: auto;       /* allows for vertical scrolling */
    padding: 20px;          /* maintains internal space */
  }

  .booking-box {
    padding: 15px;
  }

  .book-btn {
    font-size: 1rem;
    padding: 10px;
  }
}

/* ============================
   600px — Medium mobiles
   ============================ */
@media (max-width: 600px) {

  /* Form */
 .responsive-form label,
  .responsive-form input[type=text],
  input[type=submit],
  select,
  textarea {
    flex: 100%;
    min-width: 100%;
  }

  .tour-grid {
    grid-template-columns: 1fr;
  }
  .navbar a {
    font-size: 0.8rem!important;
  }
}

/* ============================
   768px — Tablets
   ============================ */
@media (max-width: 768px) {

  .services-video h1 {
    font-size: 1.6rem;
  }

  /* Divider Māori */
  .maori-divider {
    width: 100%;
    height: auto;
    max-height: 120px;
    opacity: 0.9; /*A little soften*/
    }

  .values-section .card img {
    width: 60%;
    margin: 0 auto;   /* center inside the card */
    display: block;
  }
  .banner-overlay h1 {
  font-size: 1.6rem;
  font-family: 'Petit Formal Script', cursive;
}

.banner-overlay p {
  font-size: 1.2rem;
  font-style: italic;
}
}
/* Mobile: show ham menu, hidden menu for default */
@media (max-width: 768px) {
  .menu-toggle-label {
    display: flex;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: #e0e9f5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .navbar ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .navbar ul li {
    width: 100%;
    text-align: center;
  }

  .navbar a {
    display: block;
    padding: 0.6rem 1rem;
  }

  .menu-toggle-checkbox:checked ~ .navbar {
    max-height: 300px;
  }

  .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }
}

  @media (max-width: 768px) {
  .maori-table {
    min-width: 480px; 
  }

  .maori-table th,
  .maori-table td {
    font-size: 0.95rem;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .maori-table {
    min-width: 420px;
  }

  .maori-table th,
  .maori-table td {
    font-size: 0.85rem;
    padding: 8px;
  }
}

/* mobile: 1 column */
@media (max-width: 480px) {
  .tour-grid {
    grid-template-columns: 1fr;
  }
}

header .logo img {
  width: clamp(150px, 30vw, 500px);
  height: auto;
  margin-top: 1%;
}