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

@font-face {
  font-family: "Work Sans";
  src: url("fonts/WorkSans-Regular.woff") format("woff");
}

@font-face {
  font-family: "Merriweather";
  src: url("fonts/Merriweather-Regular.woff2") format("woff2");
}

/* Header Styles */
.header {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  height: auto;
  transition: box-shadow 0.3s ease;
}

/* Logo Container */
.logo-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-image {
  padding-top: 15px;
  padding-bottom: 15px;
  height: auto;
  width: 120px;
  display: block;
  transition: all 0.3s ease;
}

/* Navigation */
.nav {
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  padding: 0; /* base state has no extra padding */
}

/* Content Section */
/* Content Section */
.content-section {
  margin-top: 10vh;
  background-color: #fff;
  width: 100vw;
  height: auto;
  /* padding-top: 75vh; */
}

.content-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.preview-image {
  width: 30vw;
  margin: 0 auto;
}
.preview-image img {
  width: 100%;
  height: auto;
}

.preview-text p {
  font-size: 1.2vw;
  width: 60vw;
  line-height: 1.3;
  color: #636363;
  font-family: "Work Sans";
  font-weight: 400;
  text-align: left;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* office Section */
.info-section {
  width: 100vw;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vw;
  background-color: #fff;
}

.info-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 3vw;
  align-items: center;
}

.info-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.info-image img {
  width: 100%;
  height: auto;
  /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); */
  /* border-radius: 4px; */
}

.info-content {
  flex: 1;
  /* padding: 2vw; */
}

.info-content h2 {
  font-family: "Merriweather", serif;
  font-size: 3vw !important;
  font-weight: 400 !important;
  margin-bottom: 2vw;
  color: black;
}

.info-content h1 {
  font-family: "Merriweather";
  font-size: 1.2vw !important;
  font-weight: 400 !important;
  color: #1d1d1d;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0.48px;
}

.info-content .section-text {
  font-family: "Work Sans" !important;
  font-style: normal;
  font-weight: 400 !important;
  line-height: 1.3;
  font-size: 1.2vw !important;
  color: #636363 !important;
  text-align: left;
}

/* Background Image Section */
.background-image-section {
  height: 100vh;
  width: 100vw;
  margin-top: 10vh;
  background-color: #fff !important;

  background-image: url("images/image copy 15.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* grid layout */
.grid-feature {
  width: 100vw;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  background: #e6e6e6;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.grid-feature > * {
  background: #fff;
  padding: 0vw;
  min-height: 18vw;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
}

/* Remove only bottom borders for middle column */

/* Make bottom border white for middle column (2nd column) */
/* Explicitly target middle column cells */
/* Remove bottom border of middle column cells */
/* .grid-feature > *:nth-child(2),
.grid-feature > *:nth-child(5),
.grid-feature > *:nth-child(8) {
  border-bottom: none;
} */

/* Remove top border of the cell below the middle column cells */
/* .grid-feature > *:nth-child(5),
.grid-feature > *:nth-child(8) {
  border-top: none;
} */
/* Center image slices */
.image-slice img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Text cards with hover effect */
.feature-card {
  perspective: 1000px;
  background: white;
  overflow: hidden;
  position: relative;
}

.card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  position: relative;
}

.feature-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  padding: 2vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-front {
  background: #fff;
}

.card-back {
  background: #111;
  color: #fff;
  transform: rotateY(180deg);
}

.card-back p {
  color: #fff;
  font-family: "Work Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px; /* 175% */
}

/* Optional visual consistency */
h3 {
  font-size: 1.6vw;
  font-family: "Work Sans";
  margin: 0.3vw 0 0;
}

small {
  font-size: 0.8vw;
  color: #ba6b57;
  font-family: "WorkSans", sans-serif;
  margin-bottom: 0.5vw;
}

.empty-cell {
  background: #fff;
}

.grid-feature {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(4, 25vw); /* 4 equal rows */
  width: 100vw;
  margin: 0;
  padding: 0;
  background: #e6e6e6; /* optional grid-line effect */
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin-bottom: 6vw !important;
}

.grid-feature > * {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  overflow: hidden;
}

/* Card flip logic */
.feature-card {
  perspective: 1000px;
}

.card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  position: relative;
}

.feature-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  padding: 2vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-front {
  background: #fff;
}

.card-back {
  background: #111;
  color: #fff;
  transform: rotateY(180deg);
}

/* Static image cells */
.image-slice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Empty filler cells */
.empty-cell {
  background: #fff;
}

/* Tech Section */
.tech-section {
  width: 100vw;
  background-color: #fff;
  padding: 6vw !important;
  padding-top: 0vw !important;
  display: flex;
}

.tech-container {
  width: 100vw;
  text-align: left;
}

.tech-heading {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400;
  letter-spacing: 1.12px;
  line-height: 1.3;
  font-size: 3vw;
  color: #111;
  margin-bottom: 2vw;
}

.tech-paragraph {
  font-weight: 400;
  width: auto;
  font-family: "Work Sans";
  font-size: 1.2vw;
  line-height: 1.3;
  color: #636363;
  margin-bottom: 2vw;
}

.tech-btn {
  font-family: "Work Sans";
  margin-top: 2vw;
  padding: 1vw 2vw;
  background: #000;
  color: #fff;
  font-family: "WorkSans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tech-btn:hover {
  background: #333;
}

/* image grid */
.image-grid {
  padding: 6vw;
  display: flex;
  flex-direction: column;
  gap: 0vw;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 0vw;
}

.row img {
  width: 48.8%; /* slight margin to fit two images perfectly with gap */
  height: 40vw;
  display: block;
}

.row {
  display: flex;
  gap: 0vw;
}

/* First row with custom split */

/* First row: 60% + 40% */
/* First row: 60% + 40% */
/* First row: 60% + 40% */
.row-60-40 img:first-child {
  width: 60%;
}
.row-60-40 img:last-child {
  width: 40%;
}

/* Second row: 40% + 60% */
.row-40-60 img:first-child {
  width: 40%;
}
.row-40-60 img:last-child {
  width: 60%;
}

/* contact modal */
/* Modal shell */
.modal {
  position: fixed;
  inset: 0;
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55); /* backdrop */
  z-index: 1000;
}
.modal.show {
  display: flex;
}

.modal__dialog {
  position: relative;
  width: min(720px, 92vw);
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Close (X) */
.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #111;
}

/* Title */
.modal__title {
  font-family: Georgia, serif;
  font-family: "Work Sans";
  font-size: clamp(22px, 2.6vw, 32px);
  margin: 0 0 18px;
  color: #111;
}

/* Form */
.form {
  display: grid;
  gap: 16px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}
.field span {
  font-size: 13px;
  font-family: "Work Sans";
  color: #666;
}
.field input {
  width: 100%;
  /* font: 400 16px/1.2 "WorkSans", system-ui, sans-serif; */
  font-family: "Work Sans";
  padding: 14px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* Submit */
.cta {
  margin-top: 6px;
  padding: 14px 22px;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 8px;
  /* font: 500 16px/1 "WorkSans", system-ui, sans-serif; */
  font-family: "Work Sans";
  cursor: pointer;
  transition: transform 0.08s ease, background 0.2s ease;
}
.cta:hover {
  background: #222;
}
.cta:active {
  transform: translateY(1px);
}

.note {
  margin-top: 8px;
  font-size: 14px;
  color: #4a7f52; /* success green; will be updated by JS */
}
