/* Reset + layout */
* { margin: 0; padding: 0; box-sizing: border-box; }
body, html {
  height: 100%;
  font-family: Helvetica, Arial, sans-serif;
  color: #fff;
}
html {
  scroll-behavior: smooth;
}
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  z-index: 1000;
}
.logo-link {
    position: fixed;
    top: 20px;
}
nav a { color: white; text-decoration: none; font-weight: bold; }
nav a.active { text-decoration: underline; }
.page-header {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  padding: 0 10px;
}
nav.mobile {
  left: auto !important;
  right: 20px !important;
  transform: unset !important;
}

.page-header .logo-link img {
  height: 40px;  /* adjust as needed */
  width: auto;
  cursor: pointer;
}

.page-header .page-nav {
  display: flex;
  gap: 30px;
}

.page-header .page-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.page-header .page-nav a.active {
  text-decoration: underline;
}

/* Home */
.video-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  overflow: hidden;
  z-index: -1;
  background-color: black; /* fallback if video doesn’t load */
}
#bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1;
  object-fit: cover;
}
.video-fallback {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: black;
  display: none;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.logo-center {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.logo-center img {
  width: min(40vw, 40vh); /* 40% of viewport, capped by whichever is smaller */
  max-width: 500px;
}

/* Services */
.services-container {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #000;
}
.service {
  flex: 1;
  transition: flex-basis 0.4s ease, transform 0.4s ease;
  flex-basis: 25%; /* if you have 4 rows */
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.service h2 {
  position: relative;
  z-index: 2;
  max-width: 80%; /* keeps text off edges */
  white-space: nowrap;
}
.service ul {
  display: none;
  position: relative;
  z-index: 2;
  max-width: 80%; /* keeps text off edges */
  margin-top: 10px;
  padding-left: 1.25rem;
  white-space: nowrap;
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  transition: background 0.3s;
}
@media (hover: hover) and (pointer: fine) {
  .service:hover {
      flex-basis: 40%;
  }
  .service:hover::before {
    background: rgba(0,0,0,0.3);
  }
  .service:hover ul {
    display: block;
  }
}
/* Row 1 */
.service.row1 {
  height: 31dvh; /* fills top cleanly */
  clip-path: polygon(0 0, 100% 0, 100% 75%, 0% 100%);
  display: flex;
  align-items: center;
  text-align: left;
  justify-content: flex-start;
  padding-left: 10%;
}
/* Row 2 */
.service.row2 {
  height: 33dvh; /* visible portion */
  margin-top: -8vh; /* overlap */
  clip-path: polygon(0 25%, 100% 0, 100% 100%, 0% 75%);
  display: flex;
  align-items: center;
  text-align: left;
  justify-content: flex-end;
  padding-right: 10%;
}
/* Row 3 */
.service.row3 {
  height: 33dvh;
  margin-top: -8vh;
  clip-path: polygon(0 0, 100% 25%, 100% 75%, 0% 100%);
  display: flex;
  align-items: center;
  text-align: left;
  justify-content: flex-start;
  padding-left: 10%;
}
/* Row 4 */
.service.row4 {
  height: 27dvh; /* fills bottom cleanly */
  margin-top: -8vh;
  clip-path: polygon(0 25%, 100% 0, 100% 100%, 0% 100%);
  display: flex;
  align-items: center;
  text-align: left;
  justify-content: flex-end;
  padding-right: 10%;
}
/* Mobile fallback */
.service.mobile ul {
  display: block !important;
}

/* Contact */
.contact-bg {
  position: fixed; inset: 0;
  background: url('assets/map.webp') no-repeat center/cover;
  z-index: -1;
}
.contact::before {
  content: "";
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 0;
}
.contact-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column; /* stack info + form */
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
  min-height: 100vh;
  overflow-y: visible;
}
.contact-info, .contact-form {
  background: rgba(0,0,0,0.6);
  padding: 20px 30px;
  border-radius: 10px;
  width: 364px;
  text-align: center;
}
.contact-info h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form input, .contact-form textarea {
  padding: 10px; border: none; border-radius: 5px;
}
.contact-form button {
  padding: 10px; border: none; border-radius: 5px;
  background: #444; color: white; cursor: pointer;
}
.contact-wrapper.mobile {
  padding-top: 180px; /* don't overlap with header */
}
