/* =========================================================
   ATPM — INDEX PAGE CSS
   Homepage only.
   Loaded AFTER css/global.css.
========================================================= */

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-atpm.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(9, 29, 38, 0.92) 0%,
    rgba(9, 29, 38, 0.72) 45%,
    rgba(9, 29, 38, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-text {
  max-width: 850px;
}

.hero-eyebrow {
  display: block;
  margin-bottom: 24px;
  color: #D08A68;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero h1 {
  max-width: 850px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -3px;
}

.hero-description {
  max-width: 680px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 38px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.hero-link span {
  font-size: 18px;
}

.hero-bottom {
  position: absolute;
  left: 0;
  bottom: 35px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-bottom span {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 2px;
}

/* =========================================================
   HOW WE WORK
========================================================= */

.process {
  padding: 32px 0 38px;
  background: #f8f7f4;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.process-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 0 42px;
}

.process-item:not(:last-child) {
  border-right: 1px solid rgba(22, 58, 74, 0.12);
}

.process-item:first-child {
  padding-left: 0;
}

.process-item:last-child {
  padding-right: 0;
}

.process-icon {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f2f1ed;
  border: 1px solid rgba(22, 58, 74, 0.06);
  color: var(--navy);
}

.process-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.7;
}

.process-content {
  padding-top: 1px;
}

.process-number {
  display: block;
  margin-bottom: 4px;
  color: var(--terracotta);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.process-item h2 {
  margin-bottom: 7px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.process-item p {
  max-width: 210px;
  color: var(--text-light);
  font-size: 11px;
  line-height: 1.6;
}

/* =========================================================
   PROJECT TYPES
========================================================= */

.project-types {
  padding: 75px 0 100px;
  background: var(--white);
}

.section-heading.centered {
  text-align: center;
  margin-bottom: 45px;
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.section-heading h2 {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
}

.heading-line {
  display: block;
  width: 45px;
  height: 2px;
  margin: 15px auto 0;
  background: var(--terracotta);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.project-card {
  display: block;
  min-height: 420px;
  background: var(--white);
  border: 1px solid rgba(22, 58, 74, 0.10);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(22, 58, 74, 0.12);
}

.project-image {
  height: 145px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-infrastructure {
  background-image: url("../images/placeholders/infrastructure.jpg");
}

.project-agriculture {
  background-image: url("../images/placeholders/agriculture.jpg");
}

.project-villa {
  background-image: url("../images/placeholders/villa.jpg");
}

.project-pool {
  background-image: url("../images/placeholders/piscine.jpg");
}

.project-water {
  background-image: url("../images/placeholders/solaire.jpg");
}

.project-card-content {
  position: relative;
  padding: 38px 20px 25px;
}

.project-card-icon {
  position: absolute;
  top: -24px;
  left: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 22px;
}

.project-card-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}

.project-card h3 {
  min-height: 58px;
  margin-bottom: 14px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
}

.project-card p {
  min-height: 75px;
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.7;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* =========================================================
   PRIVATE PROJECTS
========================================================= */

.private-projects {
  padding: 20px 0 70px;
  background: var(--white);
}

.private-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.private-feature {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 330px;
  background: #faf9f7;
  border: 1px solid rgba(22, 58, 74, 0.10);
  overflow: hidden;
}

.pool-feature {
  grid-template-columns: 55% 45%;
}

.private-feature-image {
  min-height: 330px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #e9e6e0;
}

.villa-image {
  background-image: url("../images/placeholders/villa-feature.jpg");
  background-position: 50% 75%;
}

.pool-image {
  background-image: url("../images/placeholders/piscine-feature.jpg");
  background-position: center center;
}

.private-feature-content {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.private-feature-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.private-feature h2 {
  margin-bottom: 24px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}

.feature-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 26px;
}

.feature-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  color: var(--text-light);
  font-size: 9px;
  line-height: 1.4;
}

.feature-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 18px;
}

.feature-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  align-self: flex-start;
  min-width: 190px;
  padding: 12px 16px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background 0.25s ease, color 0.25s ease;
}

.feature-button:hover {
  background: var(--navy);
  color: var(--white);
}

/* =========================================================
   WHY ATPM
========================================================= */

.why-atpm {
  padding: 35px 0 55px;
  background: #faf9f7;
}

.why-heading {
  text-align: center;
  margin-bottom: 35px;
}

.why-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
}

.why-heading .heading-line {
  width: 38px;
  height: 2px;
  margin: 12px auto 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 5px 20px;
  border-right: 1px solid rgba(22, 58, 74, 0.10);
}

.why-item:first-child {
  padding-left: 0;
}

.why-item:last-child {
  border-right: none;
  padding-right: 0;
}

.why-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 58, 74, 0.12);
  border-radius: 50%;
  color: var(--navy);
  font-size: 20px;
}

.why-content h3 {
  margin: 3px 0 7px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.why-content p {
  margin: 0;
  color: var(--text-light);
  font-size: 10px;
  line-height: 1.6;
}

/* =========================================================
   PROJECT CTA
========================================================= */

.project-cta {
  padding: 35px 0;
  background: var(--navy);
}

.cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 38px);
}

.cta-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cta-primary,
.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 210px;
  padding: 17px 22px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: 0.25s ease;
}

.cta-primary {
  background: var(--terracotta);
  color: var(--white);
}

.cta-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.cta-whatsapp {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.cta-whatsapp:hover {
  background: var(--white);
  color: var(--navy);
}

.whatsapp-icon {
  font-size: 18px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero,
  .hero-content {
    min-height: calc(100vh - 76px);
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .hero-actions {
    gap: 24px;
  }

  .process {
    padding: 25px 0;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-item,
  .process-item:first-child,
  .process-item:last-child {
    padding: 24px 0;
  }

  .process-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(22, 58, 74, 0.12);
  }

  .process-icon {
    width: 55px;
    height: 55px;
  }

  .private-projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .cta-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-primary,
  .cta-whatsapp {
    width: 100%;
  }
}

@media (max-width: 750px) {
  .project-types {
    padding: 65px 0 75px;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .private-projects {
    padding: 10px 0 60px;
  }

  .private-feature,
  .pool-feature {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .private-feature-image {
    min-height: 360px;
  }

  .private-feature-content {
    padding: 38px 24px 32px;
  }

  .feature-points {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 10px;
  }

  .feature-button {
    width: 100%;
    max-width: none;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
  }

  .why-item {
    border-right: none;
    padding: 5px 18px;
  }

  .why-item:nth-child(odd) {
    padding-left: 0;
  }

  .why-item:nth-child(even) {
    border-left: 1px solid rgba(22, 58, 74, 0.10);
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding-top: 60px;
    padding-bottom: 100px;
  }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .hero h1 {
    font-size: clamp(46px, 13vw, 62px);
    letter-spacing: -2px;
  }

  .hero-description {
    margin-top: 24px;
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-bottom {
    bottom: 25px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .project-card p {
    min-height: auto;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-item,
  .why-item:nth-child(odd),
  .why-item:nth-child(even) {
    padding: 5px 0;
    border-left: none;
  }

  .why-item:not(:last-child) {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(22, 58, 74, 0.10);
  }
}

@media (max-width: 450px) {
  .private-feature-image {
    min-height: 310px;
  }

  .private-feature h2 {
    font-size: 28px;
  }
}