@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Outfit:wght@300;400;600;800&display=swap');

/* --- Design Tokens --- */
:root {
  --color-primary: #127000;
  --color-secondary: #00a7e2;
  --color-secondary-hover: #004c93;
  --color-accent: #EBBB10;
  --color-dark: #0A0203;
  --color-light-bg: #f9f9f9;
  --color-green-bg: #DEFFD9;
  --color-text: #333333;
  --color-text-light: #ffffff;
  --color-border: #DDDDDD;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.25);
  --font-heading: 'Fjalla One', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --max-width: 1024px;
}

/* --- Base Reset & Setup --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: #ffffff;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary-hover);
}

ul {
  list-style-type: none;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  padding: 3rem 0;
}

.section {
  margin-bottom: 3rem;
}

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

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

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

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Top Navigation Bar --- */
#top_nav_bar {
  width: 100%;
  background: var(--color-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

#nav_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 5px 0;
  flex-shrink: 0;
}

.nav-logo {
  display: block;
  height: 50px;
  width: 175px;
  /* Exact width matching the 3.5 aspect ratio of the 750x214 SVG logo */
}

.nav-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  fill: currentColor;
  vertical-align: middle;
}

.menu {
  display: flex;
  gap: 1.5rem;
}

.menu li {
  position: relative;
}

.menu a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.2rem;
  color: #ffffff;
  text-shadow: 1px 1px 1px var(--color-dark);
  padding: 10px 5px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.menu a:hover {
  color: var(--color-accent);
}

.menu li.active>a {
  color: var(--color-accent);
}



.menu-toggle {
  display: none;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: #fff;
  font-size: 1.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 10px 10px 40px;
  background-image: url('img/menu-icon.png');
  background-position: left center;
  background-size: 30px auto;
  background-repeat: no-repeat;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    padding: 15px 25px;
    font-size: 1.3rem;
    border-bottom: 1px solid #1a1a1a;
  }

  .menu li.active>a::after {
    display: none;
  }
}



/* --- Slideshow Hero Section --- */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 400px;
  background-color: #f2f2f2;
  background-image: url("img/bg.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.slideshow {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

/* Background image gradient overlay */
.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

/* Overlay foreground transparent cutout images */
.slide-foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right center;
  z-index: 2;
}

#slide_01 .slide-foreground {
  background-image: url("slides/slide_01.png");
}

#slide_02 .slide-foreground {
  background-image: url("slides/slide_02.png");
}

#slide_03 .slide-foreground {
  background-image: url("slides/slide_03.png");
}

.slide-content-wrapper {
  width: 100%;
  max-width: var(--max-width);
  height: 100%;
  padding: 0 20px;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
}

.slide-textbox {
  max-width: 500px;
  margin-right: auto;
  text-align: left;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.8s ease 0.5s, opacity 0.8s ease 0.5s;
}

.slide.active .slide-textbox {
  transform: translateY(0);
  opacity: 1;
}

.slide-title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background-color: var(--color-dark);
  padding: 8px 20px;
  display: inline-block;
  margin-bottom: 8px;
}

.slide-sub-head {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background-color: var(--color-accent);
  padding: 6px 18px;
  display: inline-block;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .slide-content-wrapper {
    justify-content: center;
  }

  .slide-foreground {
    display: none;
    /* Hide float foreground cutout on small screens */
  }

  .slide-textbox {
    margin: 0 auto;
    text-align: center;
  }

  .slide-title {
    font-size: 1.8rem;
    padding: 8px 12px;
  }

  .slide-sub-head {
    font-size: 1.2rem;
    padding: 6px 10px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 35px;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-heading);
  box-shadow: var(--shadow-sm);
}

.theme_button {
  color: var(--color-accent);
  background-color: var(--color-dark);
  border: 2px solid var(--color-accent);
  text-shadow: none;
}

.theme_button:hover {
  background-color: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

/* --- Cards & Content Blocks --- */
.green-box {
  padding: 2rem;
  border: 3px solid var(--color-primary);
  background: var(--color-green-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.green-box:hover {
  box-shadow: var(--shadow-lg);
}

.green-box img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.green-box h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.green-box p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.green-box ul {
  text-align: left;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.green-box ul li {
  margin-bottom: 0.5rem;
  padding-left: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='%23127000'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-position: left center;
  background-repeat: no-repeat;
}

.color_bar {
  padding: 4rem 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.color_bar_bg-01 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("img/parallax_bg01.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.benefit-list {
  font-size: 1.1rem;
  margin: 1.5rem 0;
}

.benefit-list li {
  margin-bottom: 0.8rem;
  padding-left: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20' fill='%23127000'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-position: left center;
  background-repeat: no-repeat;
}

.bold-green {
  color: var(--color-primary);
  font-weight: 800;
}

/* --- Gallery Page Styles --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background-color: #f2f2f2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 112, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.2rem;
  border: 2px solid #fff;
  padding: 8px 16px;
  border-radius: 4px;
}

/* --- Lightbox Modal --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 4px solid #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  display: block;
}

.lightbox-image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.lightbox-caption {
  position: absolute;
  bottom: 4px; /* Align with the 4px border of the image */
  left: 4px;
  right: 4px;
  background-color: rgba(18, 112, 0, 0.85); /* Dark green with opacity */
  color: #ffffff;
  padding: 12px 16px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 1px;
  border-radius: 0 0 2px 2px;
  box-sizing: border-box;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--color-accent);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.3s;
  padding: 20px;
  user-select: none;
}

.lightbox-arrow:hover {
  color: var(--color-accent);
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-arrow {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
  }
}

/* --- Testimonials Page --- */
.testimonial-card {
  background-color: var(--color-light-bg);
  border-left: 6px solid var(--color-primary);
  padding: 2rem;
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-primary);
  text-align: right;
}

.testimonial-author em {
  font-weight: 400;
  font-size: 0.95rem;
  color: #666;
  display: block;
}

/* --- Contact Us Form --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-info {
  background: var(--color-light-bg);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.contact-info-item {
  margin-bottom: 1.5rem;
}

.contact-info-item h4 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}

.contact-info-item p {
  font-size: 1.1rem;
}

.contact-form-wrapper {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(0, 167, 226, 0.2);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --- Footer Bar --- */
#footer_bar {
  background-color: var(--color-dark);
  color: #fff;
  padding: 4rem 0 2rem 0;
  margin-top: 2rem;
  border-top: 4px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-right {
  align-items: center;
  text-align: center;
}

.footer-logo-canadian {
  max-width: 160px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-about {
  font-size: 0.95rem;
  color: #bbbbbb;
  line-height: 1.6;
  margin: 0;
}

.footer-heading {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.footer-links a {
  color: #cccccc;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.vivid-link {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.vivid-logo {
  width: 125px;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.vivid-logo:hover {
  opacity: 0.8;
}

.logo-slug {
  font-size: 0.9rem;
  color: #aaaaaa;
  margin-top: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
}

.footer-copyright {
  font-size: 0.9rem;
  color: #888888;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    padding-bottom: 2rem;
  }

  .footer-col-right {
    align-items: center;
    text-align: center;
  }

  .footer-logo-canadian {
    margin: 0 auto 1rem auto;
  }

  .footer-links {
    justify-content: center;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* --- Why Choose Section --- */
.why-choose-container {
  margin-top: 4rem;
  padding: 0;
  text-align: center;
}

.why-choose-header {
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
}

.why-choose-header h3 {
  font-size: 2.6rem;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  font-family: var(--font-heading);
}

.why-choose-header p {
  font-size: 1.2rem;
  color: #555555;
  line-height: 1.6;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-choose-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--color-primary);
  /* Deep Green Top Border */
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.why-choose-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-top-color: var(--color-accent);
  /* Transition to Golden Yellow */
}

.why-choose-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background-color: #e9ecef;
}

.why-choose-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.why-choose-card:hover .why-choose-card-image img {
  transform: scale(1.08);
}

.why-choose-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.why-choose-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  width: 100%;
}

.why-choose-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.why-choose-card:hover .why-choose-icon {
  color: var(--color-accent);
  transform: scale(1.1);
}

.why-choose-card h4 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin: 0;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.why-choose-card p {
  font-size: 0.95rem;
  color: #555555;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}