
:root {
  --max-width: 1240px;
  --green: #2f6b3f;
  --text-main: #1a1a1a;
  --text-soft: #444;
  --pad: clamp(1.25rem, 3vw, 2rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* ---------------- HERO ---------------- */

.hero {
  height: 700px;
  margin: 0 auto;
  max-width: 1600px;
  background: url("images/main-img.jpg") center / cover no-repeat;
  position: relative;
}

.logo {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
    height: 120px;
}

/* ---------------- GENERAL ---------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--pad);
}

.section-title {
  text-align: center;
    font-family: 'Elsie';
  font-size: clamp(28px, 2.5vw, 32px);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
}

.center-text {
  text-align: center;
  max-width: 830px;
  margin: 0 auto;
  color: var(--text-soft);
}

p {
  margin: 0 0 1.25rem;
}

/* ---------------- THREE COLUMN GRID ---------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.grid-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.grid-item p {
  font-size: 13px;
  margin-top: 0.75rem;
  text-align: center;
  color: var(--text-soft);
}

/* ---------------- TWO COLUMN SECTIONS ---------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 4.5rem;
}

.two-col img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.two-col p {
  max-width: 100%;
}

/* ---------------- SINGLE COLUMN TEXT ---------------- */

.single-col {
  margin-top: 4.5rem;
  max-width: 100%;
  color: var(--text-soft);
}

.single-col strong {
  color: var(--text-main);
}

/* ---------------- FOOTER ---------------- */

footer {
  background: var(--green);
  color: #fff;
  padding: 2.5rem 30px;
  margin-top: 5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-left {
  font-size: 14px;
  opacity: 0.9;
}

.footer-right img {
    width: 185px;
}



/* ---------------- INTERACTIONS ---------------- */

@media (hover: hover) {
  .grid-item:hover img,
  .two-col img:hover {
    
  }
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
    .footer-right img {
  width: 120px;
}
    
        .image-wrapper {
  width: 100%;
  max-width: 100%!important;   /* cap to prevent stretching */
}

  .two-col {
    grid-template-columns: 1fr;
  }

    .section-title {
        font-size: 31px;
        line-height: 35px;
    }

  body {
    font-size: 15px;
  }
}

@media (max-width: 900px) {
     .hero {
        height: 427px;
    }
}

.elsie-regular {
  font-family: "Elsie", serif;
  font-weight: 400;
  font-style: normal;
}

.elsie-black {
  font-family: "Elsie", serif;
  font-weight: 900;
  font-style: normal;
}

a {
  color: #88ac56;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

.footer-inner a {
  color: #ffffff;
}

/* Overlay box */
.image-overlay {
  position: absolute;
  bottom: 8px; /* distance from bottom edge of image */
  left: 8px;   /* distance from left edge */
  right: 8px;  /* distance from right edge */
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.overlay-logo {
  width: 40px;       /* small logo size */
  height: 40px;
  flex-shrink: 0;    /* prevents shrinking */
  margin-right: 8px; /* space between logo and text */
  border-radius: 4px; /* optional small rounding for logo */
}

.overlay-text {
  font-size: 13px;
  color: #1a1a1a;
  margin: 0;
}

/* Image fills its grid column, max width prevents blur */
.image-wrapper {
  width: 100%;
  max-width: 700px;   /* cap to prevent stretching */
}

.main-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Grey box below image */
.grey-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 8px 16px;
  margin-top: 8px;
  width: 100%;       /* match parent column / image width */
  box-sizing: border-box;
}

/* Logo stays left, text fills remaining space */
.grey-box img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 4px;
  mix-blend-mode: multiply; /* optional blending */
}

.box-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
    padding: 12px;
  color: #1a1a1a;
  word-wrap: break-word;
}

/* Mobile stacking at 600px only */
@media (max-width: 600px) {



  .box-logo {
    margin-bottom: 4px; /* spacing above text */
  }
}

/* Make grid-item position relative so text can overlay */
.grid-3 .grid-item {
  position: relative;
  overflow: hidden; /* ensures text background doesn’t spill */
}

/* Move the text inside the image */
.grid-3 .grid-item p {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;                 /* remove default p margin */
  padding: 12px 16px;        /* space inside the overlay */
  background: rgba(0,0,0,0.4); /* semi-transparent dark background */
  color: #ffffff;            /* white text */
  font-size: 13px;           /* or keep existing size */
  line-height: 1.4;
  box-sizing: border-box;
}

/* Optional: fade effect from bottom (if you want a gradient behind text) */
.grid-3 .grid-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;               /* height of fade */
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0));
  pointer-events: none;       /* so it doesn’t block clicks */
}

.grid-3 .grid-item .overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(to top, 
              rgba(0,0,0,0.6) 0%,    /* dark at bottom */
              rgba(0,0,0,0.6) 60%,   /* stay dark up to 60% of height */
              rgba(0,0,0,0) 100%);   /* fade to transparent at top */
  color: #ffffff;              /* guaranteed white */
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  box-sizing: border-box;
  z-index: 10;                 /* above image */
}