/* Homepage polish: alternating sections, stronger CTAs, project cards, and logo sizing */

.hero {
  min-height: 100vh;
  align-items: center;
  padding: 130px clamp(20px, 7vw, 92px) 70px;
}

.hero img {
  object-position: center 22%;
  animation: heroImageIn 900ms ease-out both;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.10)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05) 48%);
}

.hero-content h1,
.hero-copy,
.hero-actions {
  animation: heroContentIn 680ms ease-out both;
}

.hero-content h1 {
  animation-delay: 120ms;
}

.hero-copy {
  animation-delay: 240ms;
}

.hero-actions {
  animation-delay: 360ms;
}

.site-header {
  animation: headerDropIn 420ms ease-out both;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--red-dark);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cert-strip article.reveal-on-scroll,
.service-grid article.reveal-on-scroll,
.project-grid article.reveal-on-scroll,
.reason-list li.reveal-on-scroll,
.review-card.reveal-on-scroll {
  transition: opacity 520ms ease, transform 520ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cert-strip article:nth-child(2),
.service-grid article:nth-child(2),
.project-grid article:nth-child(2),
.reason-list li:nth-child(2),
.review-card:nth-child(2) {
  transition-delay: 70ms;
}

.cert-strip article:nth-child(3),
.service-grid article:nth-child(3),
.project-grid article:nth-child(3),
.reason-list li:nth-child(3),
.review-card:nth-child(3) {
  transition-delay: 140ms;
}

.cert-strip article:nth-child(4),
.service-grid article:nth-child(4),
.reason-list li:nth-child(4) {
  transition-delay: 210ms;
}

.cert-strip article:nth-child(5),
.service-grid article:nth-child(5) {
  transition-delay: 280ms;
}

.service-grid article:nth-child(6) {
  transition-delay: 350ms;
}

.project-photo img {
  transition: transform 420ms ease;
}

.project-grid article:hover .project-photo img {
  transform: scale(1.04);
}

.button {
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-18deg);
  transition: left 420ms ease;
}

.button:hover::before {
  left: 115%;
}

.button,
.review-card,
.service-grid article,
.project-grid article,
.cert-strip article,
.owner-video {
  will-change: transform;
}

.owner-video {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.owner-video:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.16);
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: scale(1.035);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerDropIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions-featured {
  margin-bottom: 0;
}

.call-now-large {
  min-height: 58px;
  padding-inline: 34px;
  font-size: 1.05rem;
}

.cert-strip {
  background: var(--white);
  align-items: stretch;
}

.cert-strip article {
  min-height: 150px;
  height: 100%;
}

.cert-strip span {
  margin-top: 4px;
}

.intro {
  background: var(--soft);
  align-items: start;
}

.intro .section-heading {
  margin-bottom: 0;
}

.owner-video {
  overflow: hidden;
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 16 / 9;
  margin-top: clamp(34px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--black);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.owner-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.services {
  background: var(--white);
}

.projects {
  background: var(--soft);
}

.why {
  background: var(--white);
  color: var(--ink);
}

.why .eyebrow {
  color: var(--red-dark);
}

.why .reason-list {
  border-color: var(--line);
  background: var(--line);
}

.why .reason-list li {
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

.why .reason-list strong {
  color: var(--ink);
}

.why .reason-list span {
  color: var(--muted);
}

.reviews {
  background: var(--soft);
  color: var(--ink);
}

.reviews .eyebrow {
  color: var(--red-dark);
}

.reviews-heading p:not(.eyebrow) {
  color: var(--muted);
}

.reviews-grid {
  align-items: stretch;
}

.review-card {
  height: 100%;
  min-height: 390px;
  border-top: 6px solid var(--red);
}

.featured-review {
  transform: none;
}

.reviews-cta {
  border-color: var(--line);
  background: var(--black);
  color: var(--white);
}

.contact {
  background: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.project-grid article {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.12);
}

.project-photo {
  height: 260px;
  overflow: hidden;
  display: block;
  background:
    linear-gradient(135deg, rgba(155, 20, 27, 0.82), rgba(11, 11, 11, 0.9)),
    var(--black);
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.project-copy span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-copy h3 {
  font-size: 1.25rem;
}

.project-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .hero img,
  .hero-content h1,
  .hero-copy,
  .hero-actions,
  .site-header,
  .reveal-on-scroll,
  .reveal-on-scroll.is-visible,
  .project-photo img,
  .site-nav a::after,
  .button::before,
  .owner-video {
    opacity: 1;
    animation: none;
    transform: none;
    transition: none;
  }
}

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

@media (max-width: 620px) {
  .hero {
    min-height: 92vh;
    padding: 112px 18px 44px;
  }

  .hero img {
    object-position: center 28%;
  }

  .site-nav a {
    padding-block: 13px;
  }

  .site-nav a::after {
    right: auto;
    width: 48px;
  }

  .call-now-large {
    width: 100%;
    padding-inline: 22px;
  }

  .hero-actions-featured .button.secondary {
    width: 100%;
  }

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

  .cert-strip article {
    min-height: 150px;
  }

  .owner-video {
    margin-top: 30px;
    border-radius: 14px;
  }

  .review-card {
    min-height: auto;
  }
}