:root {
  --bg: #f1f9ec;
  --panel: #11172f;
  --text: #1a3b04;
  --muted: #ffffff;
  --accent: #ffffff;
  --hero-top: #f1f9ec;
  --hero-bottom: #c4d59e;
}
/*comment this */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.hero {
  padding: 8rem 1.5rem;
  text-align: center;

  background:
    linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)
    ),
    url("images/final_CAD.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #ffffff;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  transform: translateY(3rem);
}

.hero {
  position: relative; /* anchor for absolute logo */
}

.hero-logo {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;

  height: 150px;        /* adjust as needed */
  width: auto;

  z-index: 10;
}

@media (max-width: 700px) {
  .hero-logo {
    height: 80px;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.tagline {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  transition: 0.2s;
}

button.button {
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.button.dark {
  background: #e6f0dc;
  color: var(--text);
}

.button:hover {
  transform: translateY(-2px);
}

.section {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.section-band {
  background: #e6f0dc;   /* full-width background */
  padding: 1.5rem 0 1.5rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

.video-container {
  position: relative;
  padding-top: 56.25%;
  margin-top: 2rem;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* ===== Gallery grid ===== */
.gallery {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;

  grid-template-columns: repeat(2, minmax(0, 1fr)); /* default */
}
@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===== Individual gallery item (tile) ===== */
.gallery-item {
  position: relative;          /* anchor for figcaption */
  overflow: hidden;            /* clip to rounded corners */
  border-radius: 12px;         /* rounded edges */
  height: 200px;               /* same tile height for all */
  background: #fff;            /* letterbox area */
  padding: 10px;
}

/* Center the image inside the fixed tile */
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;         /* FULL image, no crop */
  object-position: center;
  background: #fff;
}

/* ===== Hover caption ===== */
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 0.75rem 1rem;
  text-align: center;

  background: rgba(230, 240, 220, 0.92);
  color: #1a3b04;

  font-size: 0.9rem;
  font-weight: 600;

  z-index: 2;                  /* ensure it's above the image */
  pointer-events: none;        /* caption won’t block hover */

  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Reveal on hover (desktop) */
.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Touch devices: no hover -> always show caption */
@media (hover: none) and (pointer: coarse) {
  .gallery-item figcaption {
    opacity: 1;
    transform: translateY(0);
  }
}



.links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.links a {
  color: var(--accent);
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* reuse your existing responsive video setup */
.video-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

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

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


.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  padding: 16px;
  z-index: 9999;
}

.modal.open { display: flex; }

.modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 20px;
  position: relative;
}

.modal-content label {
  display: block;
  margin: 10px 0;
  font-weight: 600;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-weight: 400;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

/* --- Contact modal: make sure the bottom (Send) is reachable --- */
.modal-content {
  max-height: calc(100vh - 32px); /* fit inside the screen */
  overflow-y: auto;               /* scroll if content is taller */
}

/* Make buttons that are <button class="button"> look like your links */
button.button {
  background: transparent;
  cursor: pointer;
  font: inherit;
}

