/* Colour notes
#62652b
#eec166 (orange)
#95b860 (green)
#a68239
#ac9c84
*/

/* ---------- Base / Layout ---------- */

/* Prevent anything from overflowing the viewport */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img, iframe, video {
  max-width: 100%;
  height: auto;
  display: block;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}


body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f7f7f7;
  color: #222;
}

html, body {
  overflow-x: hidden;
}


main {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

p {
  margin: 0.6rem 0;
  line-height: 1.6;
  color: #646363;
}

h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
  margin: 0.3rem 0;
  text-align: center;
  padding-bottom: 20px;
}

h2 {
  margin-bottom: 0.6rem;
  color: #402e0a;
}

/* Focus (accessibility) */
a:focus, button:focus {
  outline: 3px solid #ff9800;
  outline-offset: 2px;
}

/* ---------- Header / Footer ---------- */
header, footer {
  background: #dbeac3;
  color: #301466;
  padding: 1rem;
  text-align: center;
  font-size: larger;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  position: relative; /* needed for absolute hamburger positioning */
}

.logo {
  height: 140px;
  width: auto;
}

/* ---------- Nav ---------- */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;

  /* mobile slide-down behaviour */
  overflow: hidden;
  max-height: 2000px;
  transition: max-height 0.6s ease;
}

.nav-links a {
  color: #402e0a;
  text-decoration: none;
  font-weight: bolder;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
}

.nav-links a:hover {
  background: #eec166;
  color: #333;
}

header nav a.active,
footer nav a.active {
  background-color: #e0c152;
  border-radius: 5px;
}

/* Hamburger button */
.menu-toggle {
  display: none; /* shown on mobile */
  background: none;
  border: none;
  color: #301466;
  font-size: 1.6rem;
  cursor: pointer;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* nav helper classes used by JS */
.nav-links.closed { max-height: 0; }
.nav-links.active { max-height: 1000px; }

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  row-gap: 2rem;
}
iframe {
  width: 100% !important;
  max-width: 100%;
  display: block;
}



.grid img,
.grid iframe,
.grid .text,
.grid .img-card {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
}


.grid img {
  width: 100%;
  height: 360px;        /* pick a nice consistent height */
  object-fit: cover;    /* crops neatly, no stretching */
  display: block;
}

.grid iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 10px;
  display: block;
}

.grid .img-card {
  width: 100%;
  height: 360px;          /* matches your other grid items */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
}


.grid .img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* fills the box, crops nicely */
  display: block;
}

/* Text cards */
.text {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  min-height: 340px;

  border-left: 6px solid #eec166;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.text:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.text h2 {
  margin-top: 0;
  margin-bottom: 0.4rem; /* reduce gap to answer */
}

.text p {
  margin-top: 0;
}

/* ---------- Badges (homepage) ---------- */
.badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  background: #95b860;
  color: #222;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* ---------- Footer socials ---------- */
footer .socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

footer .socials a {
  color: #301466;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s;
}

footer .socials a:hover {
  color: #80ed99;
}

/* ---------- CTA Button ---------- */
.cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #301466;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s, color 0.3s;
}

.cta-btn:hover {
  background: #80ed99;
  color: #222;
}

.cta-btn:active {
  transform: scale(0.97);
}

.cta-btn i {
  font-size: 16px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f7f7f7;   /* soft frame so empty space looks intentional */
  padding: 10px;
  display: block;
}

.gallery-card h2 {
  margin: 0;
  padding: 0.7rem 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #402e0a;
  background: linear-gradient(to top, #ffffff, #f7f7f7);
  border-top: 1px solid #e0d6b8;
  letter-spacing: 0.4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
.grid {
  grid-template-columns: 1fr;
}

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 1rem;
    max-height: 0; /* collapsed */
  }

.nav-links a {
  text-align: left;
  padding: 0.8rem 1rem;
}


.grid img,
.grid iframe,
.grid .text {
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  background: white;
  padding: 0.5rem;
  border-radius: 6px;
}

  main { padding: 1rem; }

  .logo {
    height: 90px;
    width: auto;
  }
}

@media (max-width: 600px) {
  .cta-btn {
    width: 90%;
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  footer .socials a { font-size: 1.2rem; }
}
