/* ELEMENTS ///////////////////////////////////////////*/
/* FONTS */
/* Body text uses DM Sans */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  font-weight: 200;
  line-height: 1.6;
  color: #222;
  margin: 0;
  box-sizing: border-box;
}
.page-wrapper {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  position: center;
}

p.intro {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 400;
}
p.body-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 50;
  width: 90%;
}
@media (max-width: 750px) {
  p.body-text {
    width: 100%;
  }
}
.section {
  padding: 0px 0;
}
/* Headings use Darker Grotesque */
h1 {
  font-family: "Darker Grotesque", sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  letter-spacing: 1px;
  text-transform: regular;
  line-height: 3.5rem;
}
h2 {
  font-family: "Darker Grotesque", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: 1px;
  text-transform: regular;
  line-height: 3rem;
}
h3 {
  font-family: "Darker Grotesque", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 2rem;
  letter-spacing: 1px;
  text-transform: regular;
}
p {
  font-family: "DM Sans", sans-serif;
  font-weight: 200;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
}
li {
  font-family: "DM Sans", sans-serif;
  font-weight: 200;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
}
@media only screen and (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
    line-height: 2.5rem;
  }
}
/* BUTTONS */
.primary-btn {
  background-color: #111; /* solid background */
  color: #fff; /* readable text */
  border: none; /* lose the ugly default border */
  padding: 10px 15px; /* comfy hit area */
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 20px;
  border-radius: 0px; /* rounded corners */
  cursor: pointer; /* make it feel clickable */
  transition: background 0.4s ease, transform 0.2s ease;
  transition: all 0.3s ease;
}
.primary-btn:hover {
  background-color: #4e7592; /* darker on hover */
  padding: 10px 40px; /* slight grow */
}

.primary-btn:active {
  background-color: #000; /* darkest when clicked */
  padding: 10px 30px; /* subtle press effect */
}
.scroll-btn {
  background-color: #111; /* solid background */
  color: #fff; /* readable text */
  border: none; /* lose the ugly default border */
  padding: 10px 15px; /* comfy hit area */
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 20px;
  border-radius: 0px; /* rounded corners */
  cursor: pointer; /* make it feel clickable */
  transition: background 0.4s ease, transform 0.2s ease;
  transition: all 0.3s ease;
}
.scroll-btn:hover {
  background-color: #4e7592; /* darker on hover */
  padding: 10px 40px; /* slight grow */
}

.scroll-btn:active {
  background-color: #000; /* darkest when clicked */
  padding: 10px 30px; /* subtle press effect */
}
.secondary-btn {
  background-color: #fff; /* white background */
  color: #000; /* black text */
  padding: 10px 15px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 20px;
  border-radius: 0px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  transition: all 0.3s ease;
  border: 0px;
}
.secondary-btn:hover {
  background-color: #4e7592; /* darker on hover */
  padding: 10px 40px; /* slight grow */
}

.secondary-btn:active {
  background-color: #ffffff; /* darkest when clicked */
  padding: 10px 30px; /* subtle press effect */
}

.arrow-btn {
  position: relative;
  display: inline-block;
  background: #111;
  color: #fff;
  border: none;
  padding: 10px 40px 10px 25px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.arrow-btn:hover {
  background-color: #4e7592;
  padding: 10px 40px 10px 35px;
}
.arrow-btn.active {
  background-color: #ffffff;
  padding: 10px 45px 10px 35px;
  transition: none;
  color: #000;
  font-weight: 700;
}
/* Draw arrow with CSS */
.arrow-btn::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 48%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
  transition: none;
}

/* Rotates on active state */
.arrow-btn.active::after {
  transform: translateY(-50%) rotate(225deg);
  top: 55%;
  right: 18px;
  border-right: 2.5px solid #000000;
  border-bottom: 2.5px solid #000000;
}

/* HEADER SECTION ///////////////////////////////////////////*/
header {
  display: flex;
  background-color: #ffffff00;
  padding: 10px 20px;
  color: rgb(0, 0, 0);
  justify-content: space-between; /* horizontal centering */
  align-items: center;
  margin: 0px 0px 0px 100px;
}
@media (max-width: 800px) {
  header {
    margin: 0px 0px 0px 15px;
  }
}

.navbar {
  display: flex;
  justify-content: left;
  align-items: left;
}
nav a.active {
  font-weight: 600; /* make it bold */
  color: #000000; /* optional highlight color */
}

.logo img {
  height: 50px;
  width: auto;
  margin: 0px;
  margin-right: 60px;
}
nav ul {
  list-style: none;
  margin: 0px;
  padding: 10px;
  display: flex;
  gap: 30px;
}

/* hide mobile header on desktop */
.mobile-header {
  display: none;
}

/* hide desktop navbar on mobile */
@media (max-width: 600px) {
  .navbar {
    display: none;
  }
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    gap: 30px;
  }
}

/* mobile logo */
.mobile-logo {
  height: 50px;
}

/* burger */
.burger {
  width: 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 200;
}
.burger span {
  height: 3px;
  width: 100%;
  background: #000;
  transition: 0.3s ease;
}
/* animation when menu is open */
.burger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
/* mobile nav sliding */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 50%;
  height: 100vh;
  background: #000;
  padding: 60px 25px;
  transition: right 0.35s ease;
  z-index: 100;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  align-items: flex-start;
}

.nav-mobile a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  text-align: left;
}
.active-mobile {
  font-weight: 600; /* make it bold */
  color: #ffffff; /* optional highlight color */
}
.nav-mobile.open {
  right: 0;
}
/* responsive rules */
@media (max-width: 600px) {
  .navbar {
    display: none;
  }
  .burger {
    display: flex;
  }
}

/* Links */
nav li {
  width: 80px;
}
nav a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  text-align: center;
  font-weight: 300;
  font-size: 1.1rem;
  transition: color 0.3s;
}
/* Hover effect */
nav a:hover {
  color: #ffffff;
  font-weight: 600;
  transition: 0.3s;
}

/* MAIN ///////////////////////////////////////////*/
.hero-section {
  display: flex;
  height: 700px;
}
.hero-container1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  width: 50%;
  background-image: url("images/Home_P_grid_01.svg");
  background-size: cover;
  background-position: center;
  padding: 150px;
}
@media (max-width: 800px) {
  .hero-container1 {
    padding: 50px;
  }
}
.hero-container2 {
  width: 50%;
  background-image: url("images/Home_P_mainpic_02.png");
  background-size: cover;
  background-position: center;
}
@media (max-width: 800px) {
  .hero-container2 {
    display: none;
  }
  .hero-container1 {
    width: 100%;
  }
}
.hero-text {
  position: absolute;
  top: 40%;
  left: 10%;
  transform: translate(-10%, -30%);
  color: #000;
  text-align: left;
  max-width: 600px;
}
.image-container {
  display: block;
  width: 100%; /* optional, controls image size */
}
.three-columns {
  display: flex;
  justify-content: space-between;
  gap: 60px; /* space between columns */
  padding: 0px;
  width: 100%;
}
@media (max-width: 900px) {
  .three-columns {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .three-columns {
    flex-direction: column;
  }
}
.column {
  flex: 1; /* equal width */
}
.content-section {
  max-width: 1200px;
  margin: 50px;
  align-items: center;
}
@media (max-width: 600px) {
  .content-section {
    width: 90%;
    margin: 15px;
  }
}
.image-collage {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  grid-auto-rows: 300px; /* height of each row */
  gap: 10px; /* space between images */
  padding: 0px;
  width: 100%; /* full viewport width */
  height: auto;
}
@media (max-width: 700px) {
  .image-collage {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .image-collage {
    display: flex;
    flex-direction: column;
  }
}
.image-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops nicely without distortion */
  border-radius: 0px;
  filter: grayscale(100%); /* make it black & white */
  transition: filter 0.5s ease, transform 0.3s ease;
}

.image-collage img:hover {
  filter: grayscale(0%); /* color on hover */
  transform: scale(1.02); /* slight zoom on hover */
  cursor: pointer;
} /* make it feel clickable */

.image-collage img:nth-child(1) {
  grid-column: span 3;
}
@media (max-width: 700px) {
  .image-collage img:nth-child(1) {
    grid-column: span 2;
  }
}
.image-collage img:nth-child(3) {
  grid-row: span 2;
}
.card-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 300px) {
  .card-section {
    grid-template-columns: 1fr;
  }
}
.card {
  background-color: #ffffff;
  border-radius: 0px;
  border: 1px solid #c4c4c4;
  padding: 15px;
  text-align: left;
  height: min 290px;
  width: 250px;
  gap: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  transition: background 0.3s ease, transform 0.2s ease;
}
@media (max-width: 600px) {
  .card {
    background-color: #000000;
    color: white;
  }
}
.card h3 {
  margin-bottom: 30px;
  margin-top: 1px;
  text-align: left top;
  width: 100%;
  height: 100px;
}

.card p {
  text-align: left;
  margin-top: 20px;
  flex-grow: 1;
  width: 100%;
}

.card:hover {
  background-color: #000000;
  color: white;
  transition: 0.4s;
}

.team {
  display: flex;
  justify-content: left;
  align-items: flex-start;
  gap: 20px; /* space between the two */
  padding: 20px 0;
  background-color: #ffffff; /* optional: black background */
}
@media (max-width: 700px) {
  .team {
    flex-direction: column;
  }
}
.team-member {
  height: 500px;
  overflow: visible; /* allow hover content to show */
  position: relative;
}
@media (max-width: 700px) {
  .team-member {
    width: 100%;
  }
}
.team-photo {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.45s ease; /* smooth zoom */
  filter: grayscale(90%);
  position: relative;
  z-index: 1;
}
.team-member:hover .team-photo {
  transform: scale(1.06); /* slight zoom */
}
.team-member-image-wrap {
  height: 500px;
  overflow: hidden;
}
.team-member-image-wrap > img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(90%);
  position: relative;
  z-index: 1;
}
.team-member-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0); /* transparent by default */
  transition: background 0.35s ease;
  z-index: 2; /* above the image */
}

.team-member:hover .team-member-image-wrap::after {
  background: rgba(0, 0, 0, 0.45); /* black overlay on hover */
}

@media (max-width: 700px) {
  .team-member img {
    width: 100%;
  }
}
/* container for all hover text */
.team-hover-info {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.36s ease;
  text-align: center;
  width: 100%;
  height: 100%;
  justify-content: center;
}
@media (max-width: 700px) {
  .team-hover-info {
    top: 160px;
  }
}
.team-member:hover .team-hover-info {
  opacity: 1;
  transform: translateY(0);
}

.team-hover-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  opacity: 0.8;
}
@media (max-width: 700px) {
  .team-hover-logo {
    width: 50px;
    height: 50px;
  }
}
.team-hover-name {
  margin: 0;
  font-size: 1.5rem; /* increase to be readable */
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.team-hover-role {
  margin: 0;
  font-size: 0.9rem; /* slight increase */
  font-weight: 300;
  color: #fff;
  opacity: 0.95;
}

/* FOOTER ///////////////////////////////////////////*/
.footer {
  background-color: #000; /* pure black */
  color: #fff; /* white text */
  padding: 30px 30px;
  font-family: "DM Sans";
}
.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: right;
}
.footer-column h3 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.footer-column p,
.footer-column a {
  color: #fff; /* full white */
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.5;
  text-decoration: none;
}
.footer-column a:hover {
  text-decoration: underline;
  color: #fff;
}
.footer-logo {
  width: 130px;
  height: auto;
  margin-top: 30px;
  filter: brightness(0) invert(1); /* makes dark logo visible on black */
}
.logo-column {
  display: flex;
  align-items: flex-start; /* keep it top-aligned */
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}
/* ABOUT ///////////////////////////////////////////*/
.hero-section-about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 450px;
  background-image: url("images/About_Picture_1.png");
  background-size: cover;
  background-position: center;
  padding: 50px;
  object-fit: cover;
  position: relative;
}
.about-content-section {
  max-width: 1200px;
  margin: 50px auto;
  align-items: center;
  text-align: left;
}

@media (max-width: 500px) {
  .about-content-section {
    width: 90%;
  }
}
/* SERVICES ///////////////////////////////////////////*/
.service {
  border: 1px solid #505050;
  box-sizing: border-box;
  margin: 30px auto;
  transition: all 0.5s ease;
}
.service.active {
  background-color: #111;
  color: #fff;
}
.service .service-hidden-content {
  height: 0;
  opacity: 0;
  margin: 0;
}
.service.active .service-hidden-content {
  height: fit-content;
  opacity: 1;
  margin-top: 30px;
}
.service-hidden-content {
  transition: all 0.5s ease;
}
.services-card-content {
  display: flex;

  width: 100%;
  justify-content: space-between;
}
.services-card-content img {
  width: 19%;
  object-fit: cover;
}
.service-hidden-content p {
  padding: 20px;
  width: 100%;
}
.service-hidden-content button {
  margin: 20px;
  margin-top: 0;
}
.service-card {
  display: flex;
}
.service-content {
  width: 50%;
  padding: 20px;
  padding-right: 30px;
  box-sizing: border-box;
}
.service-content h2 {
  margin: 0;
}
.service-content h3 {
  font-weight: normal;
}
.service-content ul {
  padding-left: 20px;
  margin-top: 50px;
  margin-bottom: 30px;
}
.service-image-container {
  width: 50%;
  overflow: hidden;
}
.service-image {
  width: 100%;
  height: 100%;
  background-position: center;

  background-size: auto 100%;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
  overflow: hidden;
}
.service-image:hover {
  transform: scale(1.1); /* slight zoom on hover */
}
@media (max-width: 800px) {
  .service-card {
    flex-direction: column;
  }
  .service-content {
    width: 100%;
  }
  .service-image-container {
    width: 100%;
    height: 400px;
    background-size: auto 100%;
  }
  .service-image {
    height: 100%;
  }
}
