/* ===== Products page overrides ===== */
.page-products {
  background: #fff;
}

/* Light header (design: white nav on products page) */
.header--light {
  background: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(190, 201, 193, 0.35);
}

.header--light.is-scrolled {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.header--light .header__link {
  color: rgba(51, 51, 51, 0.8);
}

.header--light .header__link:hover,
.header--light .header__link.is-active,
.header--light .header__link.is-open {
  color: var(--green);
}

.header--light .hamburger span {
  background: #333;
}

.mobile-nav--light {
  background: rgba(255, 255, 255, 0.98);
}

.mobile-nav--light .mobile-nav__link {
  color: #333;
}

/* ===== Hero ===== */
.p-hero {
  position: relative;
  height: min(615px, calc(100vh - 80px));
  margin-top: 80px;
  overflow: hidden;
  color: #fff;
}

.p-hero__bg {
  position: absolute;
  inset: 0;
}

.p-hero__bg img {
  position: absolute;
  width: 100%;
  height: 148.96%;
  top: -24.48%;
  left: 0;
  max-width: none;
  object-fit: cover;
  animation: heroZoom 14s ease-out forwards;
}

.p-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

.p-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1300px;
  padding-top: 20px;
  padding-bottom: 40px;
}

.p-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hanken);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 16.8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.7);
}

.p-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.p-breadcrumb a:hover {
  color: #fff;
}

.p-breadcrumb .is-current {
  color: #fff;
}

.p-hero__title {
  font-family: var(--font-noto);
  font-size: 50px;
  font-weight: 700;
  line-height: 57.6px;
  letter-spacing: -0.96px;
  max-width: 672px;
  margin-bottom: 24px;
}

.p-hero__desc {
  font-family: var(--font-inter);
  font-size: 18px;
  line-height: 28.8px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 576px;
}

/* ===== Intro ===== */
.p-intro {
  padding: 88px 0 100px;
}

.p-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.p-eyebrow {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--green);
  line-height: 16.8px;
  margin-bottom: 10px;
}

.p-intro__title {
  font-family: var(--font-inter);
  font-size: 40px;
  font-weight: 700;
  line-height: 57.6px;
  letter-spacing: -0.96px;
  color: #1a1c1e;
  margin-bottom: 24px;
}

.p-intro__text {
  font-family: var(--font-inter);
  font-size: 18px;
  line-height: 28.8px;
  color: #3f4943;
  margin-bottom: 28px;
}

.p-intro__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-intro__list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-hanken);
  font-size: 16px;
  line-height: 20px;
  color: #3f4943;
}

.p-intro__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

.p-intro__list strong {
  color: #1a1c1e;
  font-weight: 700;
}

.p-intro__media {
  border-radius: 4px;
  overflow: hidden;
  height: 412px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.p-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.p-intro__media:hover img {
  transform: scale(1.04);
}

/* ===== Explore ===== */
.p-explore {
  padding: 40px 0 100px;
}

.p-explore__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.p-sidenav h2 {
  font-family: var(--font-hanken);
  font-size: 24px;
  font-weight: 700;
  line-height: 33.6px;
  color: #1a1c1e;
  margin-bottom: 32px;
}

.p-sidenav__nav {
  border-left: 1px solid #bec9c1;
  display: flex;
  flex-direction: column;
}

.p-sidenav__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 16px 16px 20px;
  border-left: 4px solid transparent;
  margin-left: -1px;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 25.6px;
  color: #1a1c1e;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.p-sidenav__item:hover {
  background: rgba(230, 244, 239, 0.5);
}

.p-sidenav__item.is-active {
  background: #e6f4ef;
  border-left-color: var(--green);
}

.p-explore__head {
  margin-bottom: 32px;
}

.p-explore__head .p-eyebrow {
  font-family: var(--font-hanken);
  margin-bottom: 10px;
}

.p-explore__head h3 {
  font-family: var(--font-hanken);
  font-size: 32px;
  font-weight: 600;
  line-height: 41.6px;
  color: #1a1c1e;
}

.p-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.p-card {
  background: #fff;
  border: 1px solid #bec9c1;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
  transform: translateY(16px);
  animation: cardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}

.p-card.is-ready {
  opacity: 1;
  transform: none;
  animation: none;
}

.p-card.is-ready:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px -10px rgba(0, 0, 0, 0.15);
}

.p-card__media {
  height: 482px;
  overflow: hidden;
  background: #f5f5f5;
}

.p-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.p-card.is-ready:hover .p-card__media img {
  transform: scale(1.04);
}

.p-card__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.p-card__tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--green);
  color: #fff;
  font-family: var(--font-hanken);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 15px;
  padding: 10px 8px 7px;
  margin-bottom: 16px;
}

.p-card__body h4 {
  font-family: var(--font-hanken);
  font-size: 24px;
  font-weight: 700;
  line-height: 33.6px;
  text-transform: uppercase;
  color: #1a1c1e;
  margin-bottom: 16px;
}

.p-card__body p {
  font-family: var(--font-hanken);
  font-size: 16px;
  line-height: 26px;
  color: #3f4943;
  margin-bottom: 24px;
  flex: 1;
}

.p-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid rgba(190, 201, 193, 0.3);
  padding-top: 17px;
  font-family: var(--font-hanken);
  font-size: 16px;
  line-height: 24px;
  color: var(--green);
  transition: gap 0.25s ease;
}

.p-card:hover .p-card__link {
  gap: 8px;
}

.p-card__link img {
  width: 9.333px;
  height: 9.333px;
  flex-shrink: 0;
}

/* ===== Solutions ===== */
.p-solutions {
  background: #f9f9fc;
  padding: 90px 0 100px;
}

.p-solutions__title {
  font-family: var(--font-inter);
  font-size: 40px;
  font-weight: 700;
  line-height: 57.6px;
  letter-spacing: -0.96px;
  color: #1a1c1e;
  margin-bottom: 48px;
  max-width: 672px;
}

.p-solutions__swiper {
  overflow: hidden;
  padding-bottom: 0;
}

.p-solutions__swiper .swiper-wrapper {
  align-items: stretch;
}

.p-sol-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  height: auto;
  box-shadow: 0 11px 7.6px rgba(0, 0, 0, 0.09);
  transition: box-shadow 0.35s ease;
}

.p-sol-card:hover {
  box-shadow: 0 18px 22px rgba(0, 0, 0, 0.14);
}

.p-sol-card__media {
  background: #001c39;
  height: 484px;
  overflow: hidden;
}

.p-sol-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.p-sol-card:hover .p-sol-card__media img {
  transform: scale(1.05);
}

.p-sol-card__body {
  padding: 32px;
}

.p-sol-card__body h3 {
  font-family: var(--font-inter);
  font-size: 24px;
  font-weight: 700;
  line-height: 33.6px;
  color: #1a1c1e;
  margin-bottom: 16px;
  transition: color 0.25s ease;
}

.p-sol-card:hover .p-sol-card__body h3 {
  color: var(--green);
}

.p-sol-card__body p {
  font-family: var(--font-hanken);
  font-size: 16px;
  line-height: 26px;
  color: #3f4943;
}

/* Figma Group 5: 639 track + ~236 green progress */
.p-solutions__bar {
  position: relative;
  width: min(639px, 100%);
  height: 2px;
  margin: 48px auto 0;
  background: #bec9c1;
  overflow: hidden;
}

.p-solutions__bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 37%;
  background: var(--green);
  box-shadow: 6px 0 10px rgba(17, 168, 78, 0.35);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

/* ===== Projects ===== */
.p-projects {
  position: relative;
  min-height: 855px;
  padding: 80px 0;
  overflow: hidden;
  color: #fff;
}

.p-projects__bg {
  position: absolute;
  inset: 0;
}

.p-projects__bg img {
  width: 119.45%;
  height: 100%;
  left: -9.73%;
  position: absolute;
  max-width: none;
  object-fit: cover;
}

.p-projects__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.53);
}

.p-projects__inner {
  position: relative;
  z-index: 2;
}

.p-projects__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.p-projects__head h2 {
  font-family: var(--font-inter);
  font-size: 48px;
  font-weight: 700;
  line-height: 57.6px;
  letter-spacing: -0.96px;
  margin-bottom: 15px;
}

.p-projects__head p {
  font-family: var(--font-hanken);
  font-size: 18px;
  line-height: 28.8px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 672px;
}

.p-projects__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hanken);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 16.8px;
  color: #fff;
  white-space: nowrap;
  transition: gap 0.25s ease;
}

.p-projects__more:hover {
  gap: 12px;
}

.p-projects__more img {
  width: 9.333px;
  height: 9.333px;
}

.p-projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.p-projects__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-ref-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.35s ease, background 0.35s ease;
}

.p-ref-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.p-ref-card--large .p-ref-card__img {
  height: 316px;
}

.p-ref-card--large .p-ref-card__body {
  padding: 35px 32px 32px;
}

.p-ref-card--row {
  display: flex;
  height: 267px;
}

.p-ref-card--row:last-child {
  height: 224px;
}

.p-ref-card--row .p-ref-card__img,
.p-ref-card--row .p-ref-card__body {
  flex: 1;
  min-width: 0;
}

.p-ref-card--row .p-ref-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-ref-card__img {
  overflow: hidden;
}

.p-ref-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.p-ref-card:hover .p-ref-card__img img {
  transform: scale(1.05);
}

.p-ref-card__body span {
  font-family: var(--font-hanken);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--green);
  line-height: 16.8px;
}

.p-ref-card__body h3 {
  font-family: var(--font-hanken);
  font-size: 24px;
  font-weight: 600;
  line-height: 33.6px;
  color: #fff;
  margin: 8px 0;
}

.p-ref-card__body p {
  font-family: var(--font-hanken);
  font-size: 16px;
  line-height: 25.6px;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Contact ===== */
.p-contact {
  padding: 80px 0;
  background: #fff;
}

.p-contact h2 {
  font-family: var(--font-inter);
  font-size: 40px;
  font-weight: 600;
  line-height: 41.6px;
  color: #1a1c1e;
  margin-bottom: 40px;
}

.p-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1300px;
}

.p-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.p-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.p-field > span,
.p-field__top {
  font-family: var(--font-hanken);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  color: #3f4943;
  line-height: 16.8px;
}

.p-field__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-field__top em {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
  color: #6f7a72;
  line-height: 18px;
}

.p-field i {
  color: var(--green);
  font-style: normal;
}

.p-field input,
.p-field textarea,
.p-select select {
  width: 100%;
  height: 50px;
  border: 1px solid #bec9c1;
  border-radius: 2px;
  background: #fff;
  padding: 0 16px;
  font-family: var(--font-hanken);
  font-size: 16px;
  color: #1a1c1e;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.p-field textarea {
  height: 170px;
  padding: 14px 16px;
  resize: vertical;
}

.p-field input:focus,
.p-field textarea:focus,
.p-select select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(17, 168, 78, 0.12);
}

.p-select {
  position: relative;
}

.p-select select {
  appearance: none;
  padding-right: 48px;
  cursor: pointer;
}

.p-select img {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.p-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-top: 16px;
  font-family: var(--font-hanken);
  font-size: 16px;
  line-height: 25.6px;
  color: #3f4943;
  cursor: pointer;
}

.p-check input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--green);
  border: 1px solid #bec9c1;
}

.p-check a {
  color: #006042;
  text-decoration: underline;
}

.p-form__submit {
  align-self: flex-start;
  padding: 18px 40px;
  font-size: 14px;
  letter-spacing: 1.4px;
  margin-top: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .p-intro__grid,
  .p-explore__layout,
  .p-projects__grid,
  .p-product-grid {
    grid-template-columns: 1fr;
  }

  .p-card__media,
  .p-sol-card__media,
  .p-intro__media {
    height: 320px;
  }

  .p-ref-card--row {
    flex-direction: column;
    height: auto !important;
  }

  .p-ref-card--row .p-ref-card__img {
    height: 200px;
  }

  .p-hero__title {
    font-size: 36px;
    line-height: 44px;
  }

  .p-intro__title,
  .p-solutions__title,
  .p-contact h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .p-projects__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .p-projects__head h2 {
    font-size: 36px;
    line-height: 44px;
  }
}

@media (max-width: 768px) {
  .p-hero {
    height: auto;
    min-height: 420px;
  }

  .p-hero__title {
    font-size: 28px;
    line-height: 36px;
  }

  .p-hero__desc {
    font-size: 16px;
    line-height: 24px;
  }

  .p-form__row {
    grid-template-columns: 1fr;
  }

  .p-intro,
  .p-explore,
  .p-solutions,
  .p-contact {
    padding-left: 0;
    padding-right: 0;
  }

  .p-sidenav__nav {
    display: grid;
    grid-template-columns: 1fr;
  }
}
