/* Cool Pools — Homepage — v5 */

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
  background: var(--color-navy);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.4) 0%,
    rgba(10, 22, 40, 0.2) 40%,
    rgba(10, 22, 40, 0.6) 80%,
    rgba(10, 22, 40, 0.95) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 0 var(--space-md);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--color-cyan-light);
}
.hero__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}
.hero__title span { color: var(--color-cyan); }
.hero__subtitle {
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}
.hero__wave svg {
  width: 100%;
  height: 120px;
  display: block;
}

/* ═══ STATS ═══ */
.stats {
  background: var(--color-navy);
  padding: var(--space-xl) 0 var(--space-2xl);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}
.stats__item { padding: var(--space-sm); }
.stats__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-cyan);
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.stats__label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ═══ ABOUT ═══ */
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.about-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.about-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.about-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 auto;
}

/* ═══ SERVICES ═══ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.service-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.service-card:hover .service-card__img { transform: scale(1.05); }
.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(10, 22, 40, 0.85) 100%
  );
  z-index: 1;
}
.service-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  z-index: 2;
  color: var(--color-white);
}
.service-card__price {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-cyan);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.service-card__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}
.service-card__desc {
  font-size: var(--text-sm);
  opacity: 0.85;
  line-height: 1.6;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-cyan);
  transition: gap var(--transition-fast);
}
.service-card:hover .service-card__link { gap: var(--space-sm); }

/* ═══ PROCESS ═══ */
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
}
.process__grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 32px);
  right: calc(16.66% + 32px);
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-step__num {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: var(--color-surface);
  border: 3px solid var(--color-cyan);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-cyan);
  transition: background var(--transition-normal), color var(--transition-normal);
}
.process-step:hover .process-step__num {
  background: var(--color-cyan);
  color: var(--color-white);
}
.process-step__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.process-step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* ═══ TESTIMONIALS ═══ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.testimonial__quote {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--color-cyan-pale);
  pointer-events: none;
}
.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-sm);
}
.testimonial__stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-gold);
}
.testimonial__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: var(--space-md);
}
.testimonial__footer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  flex-shrink: 0;
}
.testimonial__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.testimonial__location {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

/* ═══ PROJECTS ═══ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 320px 280px;
  gap: var(--space-md);
}
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.project-card--featured {
  grid-column: span 2;
}
.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card:hover .project-card__img {
  transform: scale(1.08);
}
.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  background: linear-gradient(
    to top,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(10, 22, 40, 0.4) 50%,
    rgba(10, 22, 40, 0.05) 100%
  );
  transition: background var(--transition-normal);
}
.project-card:hover .project-card__overlay {
  background: linear-gradient(
    to top,
    rgba(10, 22, 40, 0.95) 0%,
    rgba(10, 22, 40, 0.6) 60%,
    rgba(10, 22, 40, 0.2) 100%
  );
}
.project-card__tag {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  background: var(--color-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xs);
}
.project-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.project-card__location {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xs);
}
.project-card__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.project-card:hover .project-card__desc {
  max-height: 80px;
  opacity: 1;
}

/* ═══ CTA ═══ */
.cta {
  position: relative;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  overflow: hidden;
}
.cta__content { position: relative; z-index: 2; }
.cta__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}
.cta__subtitle {
  font-size: var(--text-lg);
  opacity: 0.85;
  margin: 0 auto var(--space-lg);
  max-width: 520px;
  font-weight: 400;
}
.cta__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}
.cta__wave {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  z-index: 1;
  line-height: 0;
  transform: scaleY(-1);
}
.cta__wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* ═══ RESPONSIVE — HOME ═══ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid .service-card:last-child { grid-column: span 2; }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-rows: 280px 240px; }
}

@media (max-width: 768px) {
  .hero { min-height: 85vh; min-height: 85dvh; }
  .hero__bg { background-position: 65% center; }
  .hero__title { font-size: var(--text-3xl); }
  .hero__subtitle { font-size: var(--text-base); }
  .hero__wave svg { height: 60px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .stats__number { font-size: var(--text-3xl); }
  .about__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .services__grid .service-card:last-child { grid-column: span 1; }
  .service-card { min-height: 320px; }
  .process__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .process__grid::before { display: none; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 220px);
  }
  .project-card--featured { grid-column: span 2; }
  .cta__title { font-size: var(--text-2xl); }
}

@media (max-width: 480px) {
  .hero { min-height: 80vh; min-height: 80dvh; }
  .hero__bg { background-position: 70% 30%; }
  .hero__title { font-size: var(--text-2xl); }
  .hero__actions { flex-direction: column; align-items: center; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .project-card--featured { grid-column: span 1; }
  .project-card { min-height: 240px; }
  .cta__actions { flex-direction: column; align-items: center; }
}
