/* =========================================================
1. RESET & GLOBAL RULES
These make layout predictable across ALL browsers
========================================================= */

/* Makes width include padding + border (VERY IMPORTANT) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base page styling  Boat Track  background colour iss #CDE5F1; */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #CDE5F1;
  margin: 0;
  line-height: 1.6;

  /* Stops mobile text resizing oddly */
  -webkit-text-size-adjust: 100%;

  /* Prevents fixed footer overlapping content */
  padding-bottom: 60px;
}

/* Makes images responsive automatically */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Keeps link colour consistent */
a {
  color: inherit;
  text-decoration: none;
}

/* Smooth scrolling when using anchor links */
html {
  scroll-behavior: smooth;
}


/* --- Desktop Sizes & Spacing --- */
h1 { font-size: 2.5rem;   line-height: 1.2; margin-bottom: 1rem; } 
h2 { font-size: 2rem;     line-height: 1.2; margin-bottom: 1rem; } 
h3 { font-size: 1.75rem;  line-height: 1.3; margin-bottom: 0.75rem; } 
h4 { font-size: 1.5rem;   line-height: 1.3; margin-bottom: 0.75rem; } 
h5 { font-size: 1.25rem;  line-height: 1.4; margin-bottom: 0.5rem; } 
h6 { font-size: 1rem;     line-height: 1.4; margin-bottom: 0.5rem; } 

/* --- Mobile Sizes (For screens 600px wide or less) --- */
@media screen and (max-width: 600px) {
  h1 { font-size: 1.8rem;   margin-bottom: 0.75rem; } 
  h2 { font-size: 1.5rem;   margin-bottom: 0.75rem; } 
  h3 { font-size: 1.3rem;   margin-bottom: 0.5rem; } 
  h4 { font-size: 1.2rem;   margin-bottom: 0.5rem; } 
  h5 { font-size: 1.1rem;   margin-bottom: 0.5rem; } 
  h6 { font-size: 1rem;     margin-bottom: 0.5rem; } 
}

/* 1. The default look of the link */
a:link {
  color: #0055ff;          /* A clear, bright blue */
  text-decoration: underline; /* Keeps it recognisable as a link */
  font-weight: 500;        /* Makes it slightly thicker than normal text */
}

/* 2. How the link looks after it has been clicked */
a:visited {
  color: #6600cc;          /* A deeper purple to show it's "used" */
}

/* 3. When the user's mouse is over the link */
/* 4. When a keyboard user "tabs" to the link */
a:hover, a:focus {
  color: #ff3300;          /* Changes to a bold red/orange */
  text-decoration: none;   /* Optional: removes underline on hover for a "snap" effect */
  outline: 2px solid #0055ff;   /* Vital for keyboard users to see where they are */
}

/* 5. The exact moment the link is being clicked */
a:active {
  color: #cc0000;
}


/* =========================================================
2. LAYOUT HELPERS
Reusable structure classes
========================================================= */

/* Main content wrapper */
.container {
  max-width: 1400px;   /* controls content width */
  margin: 0 auto;      /* centers it */
  padding: 20px;       /* space inside */
}

/* Generic section spacing */
.section {
  padding: 40px 5%;
  text-align: center;
}

/* Simple centre helper */
.center {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
3. CORRECT USE OF IMAAGE IN CENTRE
========================================================= */

/* The 'wrapper' that handles centering for any image inside it */

.img-center {
  display: flex;
  flex-direction: column; /* CRITICAL: Stacks image and caption vertically */
  align-items: center;    /* CRITICAL: Centers them both horizontally */
  width: 100%;
  margin-left: 0;       /* FIX: Removes browser default space on the left */
  margin-right: 0;      /* FIX: Removes browser default space on the right */	
  margin-bottom: 1.5rem;  /* Adds space above and below the whole figure */
}

/* Base style for ALL images in these containers */
.img-center img {
  height: auto;
  max-width: 100%; 
}

/* Specific width options */
.w-50 { width: 50%; }
.w-80 { width: 80%; }
.w-90 { width: 90%; }
.w-100 { width: 100%; }

/* Style the caption to make it look professional */
figcaption {
  margin-top: 0.5rem;     /* Space between image and text */
  font-size: 0.9rem;      /* Slightly smaller than body text */
  color: #555;            /* A softer grey so it doesn't distract */
  font-style: italic;     /* Standard look for captions */
  text-align: center;     /* Ensures the text itself is centered */
  max-width: 80%;         /* Keeps the text from being wider than the image */
}


/* =========================================================
3. HEADER & NAVIGATION
========================================================= */

header {
  background: #fff;
}



/* Navigation container~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.navbar {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 30px;
background: #223BFC;
color: white;
position: relative;
z-index: 10000;
}

/* Navigation links */

.nav-links {
list-style: none;
display: flex;
gap: 25px;
}

/* Navigation links */

.nav-links a,
.footer-nav a {
color: #FFFFFF;
text-decoration: none;
font-size: 15px;
font-weight: 500;
letter-spacing: 0.5px;
transition: opacity 0.3s ease, border-bottom 0.3s ease;
}

/* Hover state */

.nav-links a:hover,
.footer-nav a:hover {
opacity: 0.8;
border-bottom: 1px solid #d4af37;
}

/* Active page */

.nav-links a.active,
.footer-nav a.active {
border-bottom: 2px solid #FFFFFF;
}

/* Mobile hamburger icon */

.menu-toggle {
display: none;
font-size: 28px;
cursor: pointer;
}

/* ===================== Mobile Navigation ===================== */

@media (max-width: 768px) {
    
.container {
  width: 100%;
  padding: 15px;
}

.trust-band {
  padding: 1px 1px;
}

/*  Adjust the image size in hero on phone */
  .hero {
    aspect-ratio: auto;
    min-height: 60px; /* ðŸ‘ˆ tweak this */
    max-height: 220px;

    background-position: 30% center; 
  }

.nav-links {
position: absolute;
top: 70px;
left: 0;
right: 0;
background: #111;

display: flex;
flex-direction: column;
gap: 0;

overflow: hidden;
max-height: 0;
opacity: 0;

transition:
max-height 0.4s ease,
opacity 0.3s ease;
}

.nav-links.active {
max-height: 400px;
opacity: 1;
}

.nav-links a {
display: block;
padding: 9px 25px;
}

.menu-toggle {
display: block;
}

/* Reduce padding slightly on smaller screens */

.section {
padding: 25px 20px;
}

}


/* =========================================================
5. HERO SECTION (Top banner)
========================================================= */

.hero {
  width: 100%;
  aspect-ratio: 15 / 1; /* keeps banner shape */
  max-height: 250px;

  background:
    linear-gradient(rgba(15,42,31,0.1), rgba(15,42,31,0.1)),
    url('../images/filmstrip.avif') center / cover no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 40px;
}

/* ===================== Sections ===================== */
.section {
    padding: 0px 5%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h3 {
    font-size: 34px;
    margin-bottom: 25px;
    color: #0f2a1f;
}
/* =========================================================
7. FEATURES AND CARD COMPONENT (Reusable)
========================================================= */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 20px;
}

/* Jump straight to 1 column on smaller screens */
@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.card {
    background: #CDE5F1;
    padding: 10px;
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    line-height: 1.7;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* ===== FOR LINKS ON A CARD ===== */
  .card a {
    display: block;
    margin: 10px 0;
    color: #031FF8;
    text-decoration: none;
    font-weight: 600;
  }

  .card a:hover {
    text-decoration: underline;
  }



/* =========================================================
6. IMAGE GRID (VERY IMPORTANT SECTION)
This controls your 4 ? 2 ? 1 layout
========================================================= */

/* =========================================================
IMAGE GRID SYSTEM
========================================================= */

/* ===== 4 COLUMN GRID ===== */

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;

  max-width: 100%;   /* keeps aligned with text */
  margin: 0 auto;
  padding: 2px;
}

/* ===== GRID ITEM ===== */

.image-grid {
  display: flex;
  flex-direction: column;   /* text above image */
  align-items: stretch;     /* allows image to fill width */
}

/* ===== BASE IMAGE RULE ===== */

.image-grid img {
  width: 100%;
  height: auto;
}

/* ===== FOR LINKS ON A CARD ===== */

  .link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
  }

/* ===== SIZE CONTROL PER LAYOUT ===== */

/* 4-column grid = smaller images */
.grid-container .image-grid img {
  max-width: 100%;
  margin: 0 auto;   /* keeps them centred nicely */
}

/* ===== RESPONSIVE (4 → 2 → 1) ===== */

@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
2 COLUMN GRID
========================================================= */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;

  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* 2-column images = FULL WIDTH */
.grid-2 .image-grid img {
  max-width: none;   /* removes size limit */
}

/* Mobile: stack */
@media (max-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== CAPTIONS ===== */

.image-grid h4 {
  text-align: center;
  margin: 10px 0;
}


/* =========================================================
7. Slide Show css code
========================================================= */

/* SWIPER */
.swiper {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
7. FAQ section
========================================================= */
.faq-section summary {
  line-height: 1.1;   /* tighten text height */
  padding: 0px 0;     /* small breathing room */
}

.faq-section details {
  margin-bottom: 0px; /* tighter spacing between items */
  padding: 4px 6px;
}
.faq-section details {
  border: none;
  background: transparent;
}

.faq-section p {
  margin: 5px 0 0 0;
}

/* Global styling (appearance only, no spacing) */
details {
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #CDE5F1;
}

summary {
  cursor: pointer;
  font-size: 16px;
  color: #0811FD;
}

summary:hover {
  text-decoration: underline;
}

details p {
  margin-top: 8px;
}
/* =========================================================
7. VIDEO - make the video responsive and centred
========================================================= */

  .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;      /* Limits the video size on desktop */
    margin: 0 auto;        /* Centres the container */
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

/* =========================================================
8. FOOTER
========================================================= */

footer {
  background: #1c1c1c;
  color: #ccc;
  text-align: center;
  padding: 30px 10%;
}

/* Sticky bottom nav */
.footer-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #223BFC;

  display: flex;
  flex-wrap: wrap; 	
  justify-content: center;
  gap: 10px;

 gap: 6px 22px; /* vertical | horizontal */	
  padding: 8px;
  z-index: 10001; /* ADD THIS */	
}