/* Font Imports */
@font-face {
  font-family: 'SeasonSerif';
  src: url('../fonts/SeasonSerif-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'CerebriSans';
  src: url('../fonts/CerebriSansPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'CerebriSansPro-Light';
  src: url('../fonts/CerebriSansPro-Light.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'PPNeueMontrealBook';
  src: url('../fonts/PPNeueMontreal-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'CerebriSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #FFFEF2;
  color: #181818;
  overflow-x: hidden;
  overscroll-behavior: none;
}

html {
  overflow-x: hidden;
  overscroll-behavior: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}



/* Hero Section */
.hero {
  margin-top: 100px;
  padding: 80px 0; /* Reduced from 100px to move text up */
  background: #FFFEF2;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 60px;
}

.hero-text {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  flex: 1;
}

.hero-image {
  flex: 1;
  max-width: 600px;
  display: flex;
  align-items: flex-start;
  padding-top: 5px; /* Reduced from 20px to move image up */
  padding-bottom: 55px; /* Reduced from 20px to move image up */
}

.hero-image img {
  width: 100%;
  height: 300px; /* Reduced from 400px */
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
}

.subtitle {
  font-size: 14px; /* Reduced from 18px to make it smaller */
  color: #003310;
  margin-bottom: -5px; /* Reduced margin for less distance to main heading */
  font-weight: 600;
  letter-spacing: 0.5px;
}





.hero h1 {
  font-family: 'SeasonSerif', serif;
  font-size: 58px;
  line-height: 1.15;
  font-weight: 300;
  margin-bottom: 0;
  letter-spacing: -1px;
}

.cta-button {
  display: inline-block;
  padding: 8px 30px; /* Reduced horizontal padding from 42px to 30px to make it less wide */
  background: #F04325;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.featured {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  font-size: 14px;
  color: #666;
  overflow: hidden;
  height: 20px;
}

.featured-icon {
  flex-shrink: 0;
  color: #000;
}

.featured-ticker {
  position: relative;
  height: 20px;
  overflow: hidden;
  min-width: 300px;
}

.ticker-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-in-out;
  white-space: nowrap;
}

.ticker-item.active {
  opacity: 1;
  transform: translateY(0);
}

.ticker-item.exit {
  opacity: 0;
  transform: translateY(-20px);
}

/* Hero image styles removed - now using centered text-only layout */



/* What We Do Section */
.services {
  padding: 100px 0;
  background: #FFFEF2;
}

.services h2 {
  font-family: 'SeasonSerif', serif;
  font-size: 58px;
  font-weight: 300;
  margin-bottom: 80px;
  letter-spacing: -0.5px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 60px;
}

.service-card {
  background: #FFFEF2;
}

.service-image {
  height: 300px;
  background: #e8e8e8;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 30px;
}

.service-content {
  padding: 0;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 30px;
}

.service-title {
  font-family: 'SeasonSerif', serif;
  font-size: 32px;
  font-weight: 300;
}

.service-pills {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pill {
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
}

.pill-outline {
  border: 1px solid #d0d0d0;
  color: #666;
  background: #FFFEF2;
}

.pill-filled {
  background: #F04325;
  color: #fff;
  font-weight: 500;
  transition: background 0.3s;
}

.pill-filled:hover {
  background: #d63520;
}

.service-description {
  font-family: 'PPNeueMontrealBook', serif; /* GET MARIAM TO CHECK THIS */
  color: #666;
  line-height: 1.7;
  font-size: 17px;
  max-width: 90%;
}

/* Add this new rule to your CSS file */
.service-image img {
    width: 100%;          /* Make the image fill the container's width */
    height: 100%;         /* Make the image fill the container's height */
    object-fit: cover;    /* Fills container completely, may crop to maintain aspect ratio */
    display: block;       /* Removes any potential extra space below the image */
}




/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: #FFFEF2;
}

.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}

.testimonials h2 {
  font-family: 'SeasonSerif', serif;
  font-size: 58px;
  font-weight: 300;
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

.testimonials .featured {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
  overflow: hidden;
  height: 20px;
}

.testimonials .featured-icon {
  flex-shrink: 0;
  color: #000;
}

.testimonials .featured-ticker {
  position: relative;
  height: 20px;
  overflow: hidden;
  min-width: 250px;
}

.testimonials .ticker-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-in-out;
  white-space: nowrap;
}

.testimonials .ticker-item.active {
  opacity: 1;
  transform: translateY(0);
}

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

.testimonial-card {
  background-color: #A8B7DE;
  padding: 40px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 30px;
}

.testimonial-text {
  font-family: 'PPNeueMontrealBook', serif;
  font-size: 18px;
  line-height: 1.6;
  color: #181818;
  margin-bottom: 30px;
  flex-grow: 1; /* Pushes author to the bottom */
}

.testimonial-author .name {
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 4px;
}

.testimonial-author .company {
  font-size: 17px;
  color: #003310;
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: #FFFEF2;
}

.about-grid {
  display: grid;
  /* THIS IS THE KEY CHANGE: Give the left column minimum width and the right column maximum width */
  grid-template-columns: max-content 1fr; 
  gap: 300px; /* Reduced from 500px to move content more towards center */
  align-items: flex-start;
}

.about h2 {
  font-family: 'SeasonSerif', serif;
  font-size: 58px;
  font-weight: 300;
  letter-spacing: -0.5px;
}

.about-content p {
  font-family: 'SeasonSerif', serif;
  font-size: 34px;
  line-height: 1.5;
  color: #333;
  font-weight: 300;
  letter-spacing: -0.5px;
}

.about-content p .fade {
  color: #A8B7DE;
}

.hero .client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  margin-top: 0;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  margin-top: 80px;
}

.client-logos img {
  height: 25px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
}

/* Individual logo size adjustments */
.client-logos img[src*="Jurlique"] {
  height: 90px; /* Make Jurlique bigger */
  margin-left: -20px; /* Move Jurlique logo to the left */
}

.client-logos img[src*="Nutrien"] {
  height: 30px; /* Make Nutrien smaller */
  margin-left: -20px; /* Move Nutrien logo to the left */
}

.client-logos img[src*="salaam"] {
  height: 50px; /* Make Salaam bigger */
}

.client-logos img[src*="HL-logo"] {
  height: 45px; /* Adjust Hamilton Locke */
  padding-bottom: 10px;
}

.client-logos img[src*="connor"] {
  height: 12px; /* Adjust Connor */
}

.client-logos img[src*="matw"] {
  height: 40px; /* Adjust MATW */
}

/* Our Work / Projects Section */
.projects {
  padding: 100px 0;
  background-color: #FFFEF2;
}

h2.section-title-line {
  font-family: 'SeasonSerif', serif;
  font-size: 58px;
  font-weight: 300;
  letter-spacing: -0.5px;
  padding-bottom: 30px;
  margin-bottom: 80px;
  border-bottom: 1px solid #e0e0e0;
}

.project-list {
  display: grid;
  gap: 50px; /* Vertical space between projects. This value changes distance between projects in case studies */
}

.project-card {
  display: grid;
  /* Creates two columns inside the container. The first is empty space, the second holds the content. */
  grid-template-columns: 4fr 8fr; /* Adjust ratio as needed, e.g., 3fr 9fr */
  /* gap: 0px;  */
}

.project-image-placeholder {
  /* This and the details below now occupy the second grid column */
  grid-column: 2 / 3;
  width: 100%; /* Fill the column it's in */
  height: 450px;
  background-color: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* Zoom in the UMS gif slightly */
.project-image[src="images/ums.gif"] {
  transform: scale(1.1);
}

.project-details {
  grid-column: 2 / 3;
  padding-top: 15px; /* This value changes distance between image and text under it for each case study */
}

.project-title {
  font-family: 'SeasonSerif', serif;
  font-size: 28px;
  font-weight: 300;
  color: #000;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.project-tags {
  display: flex;
  gap: 10px;
}


/* This style targets the link INSIDE the project title */
.project-title a {
    color: inherit; /* This makes the link text black, not blue */
    text-decoration: none; /* This removes the underline */
}

/* This adds a nice hover effect so users know it's clickable */
.project-title a:hover {
    opacity: 0.7;
}

/* Style for linked images in project cards */
.project-image-placeholder a {
    display: block;
    width: 100%;
    height: 100%;
}

.project-image-placeholder a:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Pull Quote Section */
.pull-quote {
  padding: 100px 0;
  background-color: #FFFEF2;
}

.quote-card {
  background-color: #C9DCA3;
  border-radius: 4px;
  padding: 120px 60px;
  text-align: center;
}

.quote-text {
  font-family: 'CerebriSansPro-Light', serif;
  font-size: 22px;
  line-height: 1.4;
  color: #181818;
  max-width: 750px;
  margin: 0 auto 40px auto; /* Centers the block and adds space below */
  letter-spacing: -0.1px;
}

.quote-author .name {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.quote-author .company {
  font-size: 17px;
  color: #999;
}

/* Contact Section */
.contact {
  padding: 120px 0;
  background-color: #FFFEF2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 100px;
}

.contact-text h2 {
  font-family: 'SeasonSerif', serif;
  font-size: 58px;
  font-weight: 300;
  letter-spacing: -0.5px;
  margin-bottom: 30px;
}

.contact-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #666;
  max-width: 380px;
}

.contact-text a {
  color: #1C49A6;
  font-weight: 500;
  text-decoration: none;
}
.contact-text a:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 50px;
}

.form-group label {
  display: block;
  font-size: 15px;
  color: #888;
  margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  background: transparent;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  font-size: 18px;
  font-family: 'CerebriSans', inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: #000;
}

/* Specific styling for the last text area to look right */
.form-group textarea {
  resize: none; 
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 20px;
  background-color: #323232;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #d63520;
}

/* Footer */
.site-footer {
  background-color: #1C49A6;
  color: #fff;
  padding: 80px 0 40px 0;
  font-size: 15px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  padding-bottom: 60px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.footer-contact {
  text-align: right;
}

.footer-email {
  color: #fff;
  text-decoration: none;
}

.footer-logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin: 40px 0;
}

.footer-socials {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.footer-socials span {
  color: #aaa;
}

.footer-socials a {
  color: #000;
  background-color: #FFFEF2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid #666;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  color: #AEAEAE;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 30px;
}

.footer-legal a {
  color: #AEAEAE;
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .testimonial-grid {
      grid-template-columns: 1fr;
  }
   .about-grid {
      grid-template-columns: 1fr;
      gap: 40px;
  }
}

@media (max-width: 768px) {
  .container {
      padding: 0 30px;
  }

  .hero-content {
      flex-direction: column;
      gap: 40px;
  }

  .hero-image {
      max-width: 100%;
      padding-top: 0;
  }

  .hero-image img {
      height: 300px;
  }

  .service-grid {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
  }

  /* ADD/REPLACE WITH THIS */
  .project-card {
      grid-template-columns: 1fr; /* Stack everything into a single column on mobile */
      gap: 50;
  }
  .project-image-placeholder,
  .project-details {
      grid-column: 1 / -1; /* Make items span the full width of the card */
  }
  /* .project-details {
       padding-top: 1px;
  } */

  .hero h1, .services h2, .testimonials h2, .about h2, .projects h2.section-title-line {
      font-size: 36px;
  }

  .testimonials-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 20px;
  }

  .testimonials .featured-ticker {
      min-width: 200px;
  }

   .about-content p {
      font-size: 24px;
  }

  .nav-links {
      display: none;
  }

  /* ADD THIS BLOCK FOR THE QUOTE */
  .pull-quote {
      padding: 60px 0;
  }
  .quote-card {
      padding: 50px 30px;
  }
  .quote-text {
      font-size: 16px;
  }


  /* ADD THIS BLOCK FOR THE CONTACT FORM */
  .contact-grid {
      grid-template-columns: 1fr;
      gap: 60px;
  }



  
}
