/* Loading overlay */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#page-loader.loader-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(46, 204, 113, 0.25);
  border-top-color: #2ecc71;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* CSS reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

/* Design tokens */
:root {
  --color-accent: #2ecc71;
  --color-text: #000000;
  --font-primary: "Inter", sans-serif;
  --header-height: 96px;
  --header-height-mobile: 84px;
  --logo-frame-width: 126px;
  --logo-frame-width-mobile: 104px;
  --header-float-offset: 1rem;
}

/* Base body style */
body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: #ffffff;
  background-image: url("images/home_background.svg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  padding-top: calc(var(--header-height) + (var(--header-float-offset) * 2));
}

/* Header and navigation layout */
.site-header {
  display: grid;
  grid-template-columns: var(--logo-frame-width) 1fr;
  height: var(--header-height);
  width: min(1200px, calc(100% - 2rem));
  position: fixed;
  top: var(--header-float-offset);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

/* Logo box */
.logo-container {
  width: 100%;
  height: 100%;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
  backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-link {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-container picture {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-image {
  width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

/* Green menu bar */
.site-nav {
  height: 100%;
  background-color: var(--color-accent);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
}

/* Hamburger button (desktop: hidden) */
.nav-toggle {
  display: none;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

main {
  width: 100%;
}

.page-section {
  min-height: 100vh;
  scroll-margin-top: calc(
    var(--header-height) + (var(--header-float-offset) * 2)
  );
  display: flex;
  align-items: center;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.section-content {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  max-width: 640px;
}

.section-content h1,
.section-content h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.section-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.section-title {
  display: inline-block;
  position: relative;
  --title-border-width: 2px;
  --title-notch-top: 0.35em;
  --title-notch-height: 0.72em;
  --title-right-shift: 0px;
  width: max-content;
  font-family: "Inter", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #2ecc71;
  letter-spacing: 1px;
  padding: 0 22px 8px 12px;
  border: var(--title-border-width) solid #000000;
  border-right: none;
  box-sizing: border-box;
}

.section-title::before {
  content: "";
  position: absolute;
  right: var(--title-right-shift);
  top: 0;
  width: var(--title-border-width);
  height: var(--title-notch-top);
  background-color: #000000;
}

.section-title::after {
  content: "";
  position: absolute;
  right: var(--title-right-shift);
  bottom: 0;
  width: var(--title-border-width);
  height: calc(100% - var(--title-notch-top) - var(--title-notch-height));
  background-color: #000000;
}

#home {
  background-image: url("images/home_background.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  align-items: flex-end;
  padding: 0 0 2rem;
}

#home .section-content {
  width: min(1200px, calc(100% - 2rem));
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.4fr) minmax(
      120px,
      0.6fr
    );
  align-items: center;
  column-gap: clamp(3.5rem, 8vw, 7rem);
  row-gap: 1rem;
}

#home .section-content h1 {
  grid-column: 1;
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
  color: #f0ede5;
  margin-bottom: 0;
  min-height: 128px;
  padding-right: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#home-title .home-title-line-one,
#home-title .home-title-line-two {
  display: block;
}

#home-title .home-title-line-two {
  display: inline-block;
  font-size: 0.92em;
  margin-left: 6.4ch;
}

.home-tagline {
  font-family: "Segoe UI", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  color: #f0ede5;
  grid-column: 2;
  width: 100%;
  max-width: 620px;
  justify-self: start;
  text-align: left;
  margin-left: clamp(0.75rem, 2vw, 1.75rem);
  padding-left: clamp(2.5rem, 5vw, 4.5rem);
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#about {
  background: linear-gradient(
    90.05deg,
    rgba(0, 0, 0, 0.075) 1%,
    rgba(189, 189, 189, 0) 7.73%,
    rgba(255, 255, 255, 0) 92.75%,
    rgba(0, 0, 0, 0.075) 99.96%
  );
  align-items: stretch;
  padding-block: 2.5rem;
}

.about-section-content {
  max-width: none;
}

.about-layout {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: calc(
    100vh - var(--header-height) - (var(--header-float-offset) * 3)
  );
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 2px minmax(360px, 1fr);
  column-gap: clamp(1.25rem, 2vw, 2.25rem);
  align-items: stretch;
}

.about-main {
  grid-column: 1;
  align-self: stretch;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 0 clamp(1rem, 3vw, 2rem);
  margin-top: 0;
}

#about-title.section-title {
  --title-border-width: 2px;
  --title-notch-top: 3px;
  --title-notch-height: 32px;
  --title-right-shift: 0px;
  align-self: start;
  justify-self: start;
  margin: clamp(4rem, 9vw, 6.8rem) 0 0;
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
  padding: 0 2px 5px 10px;
  top: 0;
}

.about-description {
  margin-block: auto;
  max-width: min(560px, 92%);
  text-align: left;
  color: #000000;
  font-family: "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}

.about-read-more {
  justify-self: end;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid #2ecc71;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  background-color: #2ecc71;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.about-read-more span {
  font-size: 1.05em;
  color: inherit;
}

.about-divider {
  grid-column: 2;
  align-self: stretch;
  width: 3px;
  background-color: #000000;
}

.about-icons {
  grid-column: 3;
  align-self: stretch;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(1rem, 3vw, 2rem);
  margin-top: 0;
}

.about-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.about-icons img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(46, 204, 113, 0.45));
}

.about-item span {
  color: #000000;
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
}

#services {
  background: linear-gradient(
    90.05deg,
    rgba(0, 0, 0, 0.075) 1%,
    rgba(189, 189, 189, 0) 7.73%,
    rgba(255, 255, 255, 0) 92.75%,
    rgba(0, 0, 0, 0.075) 99.96%
  );
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

#services .services-content {
  width: min(1200px, calc(100% - 2rem));
  max-width: 1200px;
  margin-inline: auto;
}

#services .section-title {
  display: block;
  width: max-content;
  margin: 0 auto 0.9rem;
  font-family: "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 2.45rem);
  line-height: 1;
  padding: 0 8px 8px 10px;
  --title-notch-top: 3px;
  --title-notch-height: 30px;
}

.services-subtitle {
  max-width: 720px;
  margin: 0 auto clamp(1.75rem, 4vw, 2.6rem);
  text-align: center;
  color: #000000;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.45;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: start;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card {
  position: relative;
  width: 100%;
  min-height: 470px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.34);
  isolation: isolate;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.34) 0%,
    rgba(0, 0, 0, 0.5) 44%,
    rgba(0, 0, 0, 0.78) 100%
  );
  z-index: 1;
}

.service-card-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.15rem 1.25rem;
  color: #ffffff;
}

.service-card-title {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 1.35vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  max-width: 14ch;
}

.service-card-list {
  margin: auto 0 0;
  padding-left: 1.15rem;
  color: #ffffff;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.35;
}

.service-card-list li + li {
  margin-top: 0.45rem;
}

.service-read-more {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.service-read-more:hover,
.service-read-more:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
  outline: none;
}

.service-card--planning {
  background-image: url("images/services_planning.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card--technical {
  background-image: url("images/services_technical.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card--design {
  background-image: url("images/service_design.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card--construction {
  background-image: url("images/service_construction.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#contact {
  background: linear-gradient(
    90.05deg,
    rgba(0, 0, 0, 0) 1%,
    rgba(189, 189, 189, 0) 7.73%,
    rgba(255, 255, 255, 0) 92.75%,
    rgba(0, 0, 0, 0) 99.96%
  );
  align-items: center;
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

#contact .contact-content {
  width: min(1200px, calc(100% - 2rem));
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.8vw, 2.25rem);
}

.contact-top-row {
  display: block;
}

.why-choose-block {
  max-width: 760px;
  position: relative;
}

#contact .contact-title {
  color: #000000;
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
  margin: 0 0 0.85rem;
}

.why-choose-description-wrap {
  position: relative;
}

.why-choose-description {
  color: #000000;
  background: #ffffff;
  border: 2px solid #000000;
  padding: 0.9rem 1rem;
  font-family: "Segoe UI", sans-serif;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.4;
}

.contact-logo-frame {
  width: auto;
  height: auto;
  border: none;
  background-color: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset-inline-end: -56px;
  inset-block-end: -56px;
  transform: none;
  z-index: 2;
}

.contact-logo-frame picture {
  width: auto;
  display: block;
}

.contact-logo-image {
  width: 112px;
  height: auto;
  object-fit: contain;
  display: block;
  background-color: #ffffff;
}

.contact-bottom-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.5vw, 2rem);
  align-items: stretch;
  margin-top: clamp(1rem, 2.5vw, 1.8rem);
  padding-top: clamp(1rem, 2.2vw, 1.5rem);
  border-top: 1px solid #000000;
}

.connect-column {
  color: #111111;
  background: #f3f0e8;
  padding: 1rem;
}

.connect-column h3 {
  font-size: clamp(1.7rem, 2.7vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 1.35rem;
}

.connect-list {
  list-style: none;
}

.connect-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  column-gap: 0.85rem;
  padding: 0.85rem 0 0.8rem;
  border-bottom: 1px solid #000000;
}

.connect-item img {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  object-fit: contain;
}

.connect-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.connect-label {
  font-weight: 700;
  font-size: 1rem;
}

.connect-text a,
.connect-text span {
  color: #111111;
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.3;
}

.connect-text a:hover,
.connect-text a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.contact-form-column {
  background: #e8e5dd;
  padding: clamp(1rem, 2vw, 1.45rem);
}

.contact-form-column h3 {
  color: #141414;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  color: #141414;
  font-weight: 500;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  border: none;
  background: #d7d7d7;
  color: #1a1a1a;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  font-family: "Segoe UI", sans-serif;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #505050;
  opacity: 1;
}

.contact-submit {
  margin-top: 0.2rem;
  width: 100%;
  border: none;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.78rem 1rem;
  cursor: pointer;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  filter: brightness(1.03);
  outline: none;
}

@media (max-width: 900px) {
  #contact .contact-title {
    font-size: 30px;
  }

  .contact-logo-frame {
    width: auto;
    height: auto;
    inset-inline-end: -48px;
    inset-block-end: -48px;
    transform: none;
  }

  .contact-logo-image {
    width: 96px;
  }

  .contact-bottom-row {
    grid-template-columns: 1fr;
  }
}

/* Mission & Vision page */
.mission-vision-page {
  padding-top: 0;
  min-height: 100vh;
  background: linear-gradient(
    90.05deg,
    rgba(0, 0, 0, 0.05) 1%,
    rgba(189, 189, 189, 0) 7.73%,
    rgba(255, 255, 255, 0) 92.75%,
    rgba(0, 0, 0, 0.05) 99.96%
  );
}

.mission-vision-main {
  width: 100%;
  min-height: 100vh;
  padding: clamp(1.4rem, 3vw, 2.2rem) 1rem clamp(5.5rem, 10vw, 8rem);
}

.mission-vision-container {
  width: min(1200px, 100%);
  margin-inline: auto;
  min-height: calc(
    100vh - (clamp(1.4rem, 3vw, 2.2rem) + clamp(5.5rem, 10vw, 8rem))
  );
  display: flex;
  flex-direction: column;
}

.mission-vision-header {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 50px;
  margin-top: clamp(1rem, 2.25vw, 1.7rem);
  margin-bottom: clamp(1.4rem, 2.6vw, 2rem);
}

.mission-back-link {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  text-decoration: none;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 700;
}

.mission-back-link:hover,
.mission-back-link:focus-visible {
  background: rgba(46, 204, 113, 0.08);
  outline: none;
}

.mission-vision-title.section-title {
  display: block;
  margin: 0;
  width: max-content;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
}

.mission-vision-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-top: auto;
  margin-bottom: auto;
}

.mission-vision-card {
  padding: clamp(0.9rem, 2vw, 1.35rem);
}

.mission-vision-card p {
  margin: 0;
  color: #1b1b1b;
  font-family: "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.45;
  text-align: left;
}

.mission-vision-mosaic {
  width: calc(100vw - 1rem);
  margin-left: calc(50% - 50vw + 0.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.mission-vision-mosaic-item {
  margin: 0;
  height: clamp(190px, 21vw, 280px);
  overflow: hidden;
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}

.mission-vision-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Coming soon page */
.coming-soon-page {
  min-height: 100vh;
  padding-top: 0;
  background: linear-gradient(
    90.05deg,
    rgba(0, 0, 0, 0.05) 1%,
    rgba(189, 189, 189, 0) 7.73%,
    rgba(255, 255, 255, 0) 92.75%,
    rgba(0, 0, 0, 0.05) 99.96%
  );
}

.coming-soon-main {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.coming-soon-back-link {
  position: fixed;
  top: 40px;
  left: 40px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  text-decoration: none;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 700;
}

.coming-soon-back-link:hover,
.coming-soon-back-link:focus-visible {
  background: rgba(46, 204, 113, 0.08);
  outline: none;
}

.coming-soon-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-title.section-title {
  margin: 0;
  border: 2px solid #000000;
  border-right: none;
  padding: 0.18rem 20px 0.36rem 10px;
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: var(--color-accent);
  text-transform: uppercase;
}

.coming-soon-title.section-title::before,
.coming-soon-title.section-title::after {
  display: none;
}

.coming-soon-title .top-line,
.coming-soon-title .bottom-line,
.coming-soon-title .gap {
  position: absolute;
  right: 0;
  width: 2px;
}

.coming-soon-title .top-line {
  top: 0;
  height: 8px;
  background: #000000;
}

.coming-soon-title .gap {
  top: 8px;
  height: calc(100% - 16px);
  background: transparent;
}

.coming-soon-title .bottom-line {
  bottom: 0;
  height: 8px;
  background: #000000;
}

/* Navigation links */
.nav-list {
  list-style: none;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 1rem;
  padding-inline: 1rem;
}

.nav-list a {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0.15rem;
  border-bottom: 4px solid transparent;
}

/* Active state */
.nav-list a.active {
  border-bottom: 5px solid var(--color-text);
}

/* Optional hover/focus clarity */
.nav-list a:hover,
.nav-list a:focus-visible {
  border-bottom-color: var(--color-text);
  outline: none;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 440px;
  }
}

/* Responsive behavior */
@media (max-width: 640px) {
  .mission-vision-page {
    padding-top: 0;
  }

  .mission-vision-main {
    padding-inline: 0.8rem;
  }

  .mission-vision-header {
    margin-top: 0.75rem;
  }

  .mission-vision-container {
    min-height: auto;
  }

  .mission-vision-columns {
    grid-template-columns: 1fr;
  }

  .mission-vision-card p {
    font-size: 18px;
  }

  .mission-vision-mosaic {
    grid-template-columns: 1fr;
    width: calc(100vw - 0.6rem);
    margin-left: calc(50% - 50vw + 0.3rem);
    gap: 0.4rem;
  }

  .mission-vision-mosaic-item {
    height: 200px;
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  }

  body {
    padding-top: 0;
  }

  .site-header {
    /* Mobile: logo on left, hamburger on right */
    grid-template-columns: auto auto;
    height: auto;
    width: auto;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    transform: none;
    justify-content: space-between;
    gap: 1rem;
  }

  .logo-container {
    display: flex;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .site-nav {
    height: auto;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
  }

  /* Show hamburger button on mobile */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  /* Animate bars to X when open */
  .site-header.nav-open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Nav list: hidden by default, drops below button when open */
  .nav-list {
    display: none;
    position: fixed;
    top: calc(0.75rem + 48px + 6px);
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    height: auto;
    flex-direction: column;
    padding: 0;
    gap: 0;
    background-color: var(--color-accent);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-top: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
    z-index: 19;
  }

  .site-header.nav-open .nav-list {
    display: flex;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    border-bottom: none;
  }

  .nav-list a.active,
  .nav-list a:hover,
  .nav-list a:focus-visible {
    border-bottom: none;
    background-color: rgba(0, 0, 0, 0.07);
  }

  .page-section {
    min-height: 90vh;
    scroll-margin-top: calc(var(--header-height-mobile) + 1rem);
    padding: 1.25rem;
  }

  #home {
    padding: 0 0 1.25rem;
    align-items: stretch;
  }

  #home .section-content {
    width: calc(100% - 1rem);
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  #home .section-content h1 {
    grid-column: auto;
    align-self: center;
    text-align: center;
    align-items: center;
    padding-right: 0;
    min-height: auto;
    font-size: clamp(2.5rem, 12vw, 4rem);
    margin-top: auto;
    margin-bottom: auto;
  }

  #home-title .home-title-line-two {
    margin-left: 4ch;
  }

  .home-tagline {
    margin-top: 0;
    margin-left: 0;
    padding-left: 0;
    text-align: center;
    justify-content: center;
    min-height: auto;
    font-size: 18px;
    padding-bottom: 0.5rem;
  }

  .about-layout {
    width: calc(100% - 1rem);
    min-height: calc(90vh - var(--header-height-mobile));
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
  }

  .about-main {
    grid-column: auto;
    grid-row: 1;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 58vh;
    padding: 0;
  }

  .about-divider {
    display: none;
  }

  .about-icons {
    grid-column: auto;
    grid-row: 2;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.7rem 2.2rem;
    min-height: auto;
    padding: 0;
  }

  .about-item {
    min-width: min(100%, 280px);
  }

  .about-description,
  .about-item span,
  .about-read-more {
    font-size: 18px;
    line-height: 1.15;
  }

  #about-title.section-title {
    font-size: 1.55rem;
    margin-top: 3rem;
    padding: 0 2px 8px 14px;
    --title-notch-top: 2px;
    --title-notch-height: 22px;
    --title-right-shift: 0px;
  }

  .section-content {
    width: calc(100% - 1rem);
  }

  #services .services-content {
    width: calc(100% - 1rem);
  }

  #contact .contact-content {
    width: calc(100% - 1rem);
  }

  .connect-column h3 {
    margin-bottom: 0.9rem;
  }

  .contact-form-column {
    padding: 0.95rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 410px;
  }
}
