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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
  padding-bottom: 40px;
}

/* Responsive container */
.container {
  padding: 0 16px;
}

.card {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

@media screen and (min-width: 768px) {
  .container {
    padding: 0 100px;
  }
  
}

/* Typography */
h1 {
  font-size: 36px;
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 58px;
}

.top-text h1 {
  font-size: 36px;
  margin-bottom: 24px;
  text-align: left;
}

h2 {
  font-size: 20px;
  margin-bottom: 16px;
  margin-top: 24px;
}

h3{
  font-size: 20px;
  font: bold;
}
p {
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 300;
}

b{
  font-weight: 700;
}

ul {
  margin-left: 20px;
  margin-bottom: 16px;
}
li {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 300;
}

.impact-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.split-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0;
}

.split-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-tag {
  font-size: 16px;
  color: #555;
  text-align: center;
  margin-top: 8px;
}

@media screen and (min-width: 768px) {
  h1 {
    font-size: 48px;
  }
  h2 {
  font-size: 32px;
  margin: 32px 0 16px;
  margin-top: 40px;
}
  
  h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 400;
  }
  
  h4 {
    font-size: 20px;
    font-weight: 600
    
  }
  
  p, li {
    font-size: 18px;
    font-weight: 300;
  }
 
  
}

/* Back Link */
.back-link {
  margin-top: 32px;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none; /* removes underline */
  color: black;          /* makes text black */
}

.back-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Hero images */
.top-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
.image-placeholder {

  width: 100%;
  height: auto;
}
.image-placeholder.tall {
  width: 100%; /* let it be responsive */
  max-width: 375px;
  height: auto;
  padding-top: 16px;

  
}
.image-placeholder.wide {
  height: auto;
  width: 100%;
  margin: 32px 0;
}

.image-placeholder.narrow {
  height: auto;
  width: 100%;
  margin: 32px 0;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-split {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0;
}

.image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Text sections */
.text-block {
  max-width: 1000px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Related Projects */
.related-projects {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0;
}

.project-card {
  
   background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.project-card .btn {
  margin-top: 16px;
}

.related-products-image img{
  height: 450px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  padding: 10px 16px;
  text-decoration: none;
  display: inline-block;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn.black {
  background-color: #000;
  color: #fff;
}
.btn.black:hover {
  background-color: #888;
}
.btn.outline {
  background: #fff;
  border: 2px solid #000;
  color: #000;
}
.btn.outline:hover {
  background: #888;
  color: #fff;
}

.btnblock {
  padding: 10px 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 0.3s ease;
}

.btnblock.black {
  background-color: #000;
  color: #fff;
}

.btnblock.black:hover {
  background-color: #888;
}

/* Divider */
.divider {
  width: 180px;
  height: 3px;
  background-color: #ccc;
  margin: 40px auto;
}

/* CTA buttons */
.contact {
  text-align: center;
  margin-bottom: 40px;
}
.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
@media screen and (min-width: 768px) {
  .buttons {
    flex-direction: row;
    justify-content: center;
  }
  
   .top-row {
     margin-top: 40px;
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }

 .image-placeholder.tall {
    width: 375px; /* or 315px or 215px if that's your final spec */
    height: auto;
  }
  
  .image-placeholder.narrow {
  height: auto;
  width: 900px;
  margin: 32px 0;
}

  .top-text {
    flex: 1;
  }

  .top-text h1 {
    max-width: 100%;
    font-size: 48px;
    margin-bottom: 24px;
    text-align: left;
  }

  .top-text .text-block {
    max-width: 100%;
    margin: 0;
    align-content: right;
  }
  
   .impact-section {
    flex-direction: row;
    gap: 32px;
  }

  .impact-block {
    flex: 1;
  }
  
  .divider {
  width: 180px;
  height: 3px;
  background-color: #ccc;
  margin: 80px auto;
}
}

@media screen and (min-width: 768px) {
  .split-block {
    flex-direction: row;
    gap: 32px;
    
  }

  .split-text,
  .split-image {
    flex: 1 1 0; /* equal width */
  }

  .split-text {
    max-width: none;
  }
  
}

/* Desktop: side-by-side layout */
@media screen and (min-width: 768px) {
  .image-split {
    width: 100%;
    flex-direction: row;
    gap: auto;
  }

  .image-placeholder {
    flex: 1 1 0;
  }

  .image-placeholder img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Desktop layout */
@media screen and (min-width: 768px) {
  .related-projects {
    flex-direction: row;
    gap: 32px;
  }

  .project-card {
    flex: 1 1 0;
  }
  
  .contact {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 100px;
  }
}

.top-cta {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 999;

  height: 40px;
  padding: 0 20px;

  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;

  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 500;

  text-decoration: none;  /* ensures no underline */
  display: flex;          /* centers text */
  align-items: center;    /* centers vertically */
  justify-content: center;

  cursor: pointer;
  transition: opacity 0.15s ease;
}

.top-cta:hover {
  opacity: 0.85;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .top-cta {
    top: 32px;
    right: 16px;
    font-size: 16px;
    height: 40px;
    padding: 0 18px;
  }
}