:root {
  --green-site-bg-dark: #001b13;
  --green-site-bg-light: #123f27;
  --green-site-panel: #295229;
  --green-site-accent: #2bbd09;
  --green-site-accent-dark: #148900;
  --green-site-white: #ffffff;
  --green-site-border: #24b800;
  --green-site-muted: #858585;
  --green-site-divider: rgba(255, 255, 255, 0.55);
}

.green-site-section {
  position: relative;
  overflow: hidden;
  background: none;
  padding: 60px 20px 84px;
}

.green-site-heading {
  margin: 0;
  color: var(--green-site-white);
  font-family: var(--Bebas-Neue);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
}

.green-site-tabs {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 90px auto 49px;
}

.green-site-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 165px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  background: transparent;
  color: #f3f3f3;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.green-site-tab:hover {
  border-color: #0c3f71;
  background: rgb(137 137 137 / 12%);
  color: var(--green-site-white);
}

.green-site-tab.green-site-active,
.green-site-tab[aria-selected="true"] {
  border-color: transparent;
  background: linear-gradient(
    159.15deg,
    #10528c -267.9%,
    #2a78a9 -174.22%,
    #399fb7 -86.78%,
    #2ea8b0 31.88%,
    #2a78a9 113.08%,
    #399fb7 175.53%,
    #2a78a9 275.46%,
    #10528c 356.65%
  );

  color: var(--green-site-white);
}

.green-site-tab:focus-visible,
.green-site-download:focus-visible,
.green-site-icon-download:focus-visible {
  outline: 2px solid var(--green-site-white);
  outline-offset: 4px;
}

/* Main floor plan panel */
.green-site-panel {
  display: grid;
  grid-template-columns: 236px 1px minmax(0, 1fr);
  column-gap: 0;
  position: relative;
  width: min(100%, 1017px);
  height: 466px;
  margin: 0 auto;
  padding: 16px 69px 14px 71px;
  border: 2px solid;
  border: 2px solid;

  border-image-source: linear-gradient(
    159.15deg,
    #10528c -267.9%,
    #2a78a9 -174.22%,
    #399fb7 -86.78%,
    #2ea8b0 31.88%,
    #2a78a9 113.08%,
    #399fb7 175.53%,
    #2a78a9 275.46%,
    #10528c 356.65%
  );

  border-image-slice: 1;
  background: #012747;
}

/* Left-side information */
.green-site-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding-right: 0;
}

.green-site-subtitle {
  margin: 0 0 11px;
  color: var(--green-site-white);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
}

.green-site-rule {
  width: 156px;
  height: 1px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.85);
}

.green-site-plan-title {
  margin: 15px 0 15px;
  color: var(--green-site-white);
  font-family: "Poppins", sans-serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.22;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.green-site-footer-label {
  margin: 12px 0 0;
  color: var(--green-site-white);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
}

/* Vertical divider */
.green-site-divider {
  width: 1px;
  height: 381px;
  align-self: center;
  background: var(--green-site-divider);
}

/* Plan preview */
.green-site-preview-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin-left: 54px;
}

.green-site-preview {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
}

/* Top-right download icon */
.green-site-icon-download {
  position: absolute;
  z-index: 2;
  top: 0px;
  right: -60px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #30a6b1;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.green-site-icon-download:hover {
  transform: translateY(2px);
}

.green-site-icon-download svg {
  display: block;
  width: 25px;
  height: 25px;
}

/* Bottom download button */
.green-site-download-row {
  display: flex;
  justify-content: center;
  margin: 49px auto 0;
}

.green-site-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 269px;
  height: 43px;
  padding: 0 28px;
  border: 0;
  border-radius: 30px;
  background: linear-gradient(
    159.15deg,
    #10528c -267.9%,
    #2a78a9 -174.22%,
    #399fb7 -86.78%,
    #2ea8b0 31.88%,
    #2a78a9 113.08%,
    #399fb7 175.53%,
    #2a78a9 275.46%,
    #10528c 356.65%
  );

  color: var(--green-site-white);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.green-site-download:hover {
  filter: brightness(1.1);
  color: var(--green-site-white);
  transform: translateY(-1px);
}

/* Tablet */
@media (max-width: 991.98px) {
  .green-site-section {
    padding: 1px 24px 55px;
    overflow: auto;
  }

  .green-site-heading {
    position: relative;
    top: auto;
    left: auto;
    margin: 28px 0 0;
    font-size: 32px;
  }

  .green-site-tabs {
    margin: 55px auto 32px;
    gap: 12px;
  }

  .green-site-tab {
    min-width: 145px;
    height: 42px;
    padding: 0 15px;
    font-size: 12px;
  }

  .green-site-panel {
    grid-template-columns: minmax(155px, 0.75fr) 1px minmax(0, 1.5fr);
    height: 400px;
    padding: 16px 28px;
  }

  .green-site-divider {
    height: 85%;
  }

  .green-site-preview-wrap {
    margin-left: 28px;
  }

  .green-site-plan-title {
    font-size: 30px;
  }

  .green-site-subtitle,
  .green-site-footer-label {
    font-size: 16px;
  }

  .green-site-rule {
    width: 100%;
    max-width: 156px;
  }

  .green-site-download-row {
    margin-top: 35px;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .green-site-section {
    padding: 1px 16px 40px;
  }

  .green-site-heading {
    margin-top: 24px;
    font-size: 29px;
  }

  .green-site-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 250px);
    margin-top: 35px;
    margin-bottom: 25px;
    gap: 10px;
  }

  .green-site-tab {
    width: 100%;
    min-width: 0;
    height: 42px;
    font-size: 12px;
  }

  .green-site-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1px 220px;
    width: 100%;
    height: auto;
    padding: 25px 20px 20px;
    row-gap: 20px;
  }

  .green-site-info {
    align-items: center;
    text-align: center;
  }

  .green-site-subtitle {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .green-site-rule {
    width: 150px;
  }

  .green-site-plan-title {
    margin: 4px 0;
    font-size: 18px;
    line-height: 1.2;
  }

  .green-site-footer-label {
    margin-top: 8px;
    font-size: 15px;
  }

  .green-site-divider {
    width: 100%;
    height: 1px;
  }

  .green-site-preview-wrap {
    height: 220px;
    margin-left: 0;
  }

  .green-site-icon-download {
    top: 10px;
    right: 10px;
  }

  .green-site-download-row {
    margin-top: 28px;
  }

  .green-site-download {
    width: 100%;
    max-width: 269px;
    min-width: 0;
    height: 43px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .green-site-tab,
  .green-site-download,
  .green-site-icon-download {
    transition: none;
  }
}
