/* =========================================
   UAPRO CONSTRUCTION
   HOME RENOVATIONS PAGE
========================================= */

.renovations-page {
  background: #071c28;
  color: #f3f0e9;
  font-family: Arial, sans-serif;
}

.renovations-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.renovations-label {
  display: block;
  color: #c6ad83;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.6;
}

/* ===== HERO SECTION ===== */

.renovations-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;

  padding: 160px 5% 100px;

  background-image:
    linear-gradient(
      90deg,
      rgba(6, 23, 34, 0.98) 0%,
      rgba(6, 23, 34, 0.92) 25%,
      rgba(6, 23, 34, 0.65) 50%,
      rgba(6, 23, 34, 0.1) 100%
    ),
    url("../assets/fullren.jpg");

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.renovations-hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.renovations-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(50px, 6vw, 90px);
  font-weight: 600;
  line-height: 1.05;

  color: #f3f0e9;
  margin: 22px 0;
}

.renovations-hero h1 span {
  color: #c6ad83;
}

.renovations-hero h2 {
  color: #f3f0e9;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 22px;
}

.renovations-hero-content > p {
  color: #d5dee2;
  font-size: 15px;
  line-height: 1.9;
  max-width: 535px;
  margin-bottom: 35px;
}

/* ===== BUTTON ===== */

.renovations-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;

  padding: 19px 30px;
  background: #c6ad83;
  color: #071c28;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.renovations-button span {
  font-size: 19px;
  line-height: 1;
}

.renovations-button:hover {
  background: #e2c99f;
  transform: translateY(-2px);
}

.renovations-button:focus-visible {
  outline: 2px solid #f3f0e9;
  outline-offset: 4px;
}

/* ===== RENOVATION SERVICES ===== */

.renovations-services {
  background: #071c28;
  padding: 100px 0 110px;
}

.renovations-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 60px;

  margin: 16px 0 45px;
}

.renovations-section-heading h2 {
  color: #f3f0e9;
  font-family: Georgia, serif;
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 400;
  line-height: 1.15;

  max-width: 620px;
}

.renovations-section-heading p {
  color: #b8c1c7;
  font-size: 14px;
  line-height: 1.8;
  max-width: 440px;
}

/* ===== SERVICES GRID ===== */

.renovations-services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.renovation-service-card {
  grid-column: span 2;
  min-width: 0;

  display: flex;
  flex-direction: column;

  background: #102733;
  border: 1px solid rgba(198, 173, 131, 0.2);
  overflow: hidden;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

/* Bottom two cards */

.renovation-service-card:nth-child(4),
.renovation-service-card:nth-child(5) {
  grid-column: span 3;
}

.renovation-service-card:hover {
  transform: translateY(-5px);
  border-color: #c6ad83;
}

.renovation-service-card img {
  display: block;
  width: 100%;
  height: 255px;
  object-fit: cover;

  transition: transform 0.4s ease;
}

.renovation-service-card:hover img {
  transform: scale(1.035);
}

.renovation-service-content {
  flex: 1;
  padding: 25px 25px 30px;
}

.renovation-number {
  display: block;
  color: #c6ad83;

  font-family: Georgia, serif;
  font-size: 24px;

  margin-bottom: 15px;
}

.renovation-service-content h3 {
  color: #f3f0e9;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.8px;
  line-height: 1.5;

  margin-bottom: 12px;
}

.renovation-service-content p {
  color: #b8c1c7;
  font-size: 13px;
  line-height: 1.8;
}

/* ===== COMPLETE RENOVATION ===== */

.renovations-scope {
  background: #102733;
  padding: 105px 0 115px;
}

.renovations-scope h2 {
  color: #f3f0e9;
  font-family: Georgia, serif;
  font-size: clamp(37px, 4vw, 62px);
  font-weight: 400;
  line-height: 1.15;

  margin: 20px 0 25px;
}

.renovations-scope h2 span {
  color: #c6ad83;
}

.renovations-scope-intro {
  color: #c5ced2;
  font-size: 15px;
  line-height: 1.9;
  max-width: 710px;
  margin-bottom: 50px;
}

.renovations-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 0 45px;
  list-style: none;
}

.renovations-scope-grid li {
  display: flex;
  align-items: center;
  gap: 15px;

  padding: 22px 0;
  border-bottom: 1px solid rgba(198, 173, 131, 0.22);

  color: #f3f0e9;
  font-size: 14px;
  line-height: 1.5;
}

.renovations-scope-grid li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;
  flex-shrink: 0;

  border: 1px solid #c6ad83;
  border-radius: 50%;

  color: #c6ad83;
  font-size: 13px;
}

/* ===== FINAL CTA ===== */

.renovations-cta {
  background: #071c28;
  padding: 110px 5%;
  text-align: center;
}

.renovations-cta h2 {
  color: #f3f0e9;
  font-family: Georgia, serif;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 400;
  line-height: 1.2;

  margin: 20px 0;
}

.renovations-cta .renovations-container > p:not(.renovations-cta-contact) {
  max-width: 650px;
  margin: 0 auto 35px;

  color: #c5ced2;
  font-size: 15px;
  line-height: 1.8;
}

.renovations-cta-contact {
  color: #b8c1c7;
  font-size: 12px;
  letter-spacing: 0.4px;
  margin-top: 35px;
}

.renovations-cta-contact span {
  color: #c6ad83;
  padding: 0 10px;
}

/* ===== TABLET ===== */

@media (max-width: 1000px) {
  .renovations-hero {
    min-height: 590px;
  }

  .renovations-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .renovations-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .renovation-service-card,
  .renovation-service-card:nth-child(4),
  .renovation-service-card:nth-child(5) {
    grid-column: auto;
  }

  .renovation-service-card img {
    height: 230px;
  }
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {
  .renovations-container {
    width: 90%;
  }

  .renovations-hero {
    min-height: 650px;
    padding: 135px 5% 70px;

    background-image:
      linear-gradient(90deg, rgba(6, 23, 34, 0.95), rgba(6, 23, 34, 0.67)),
      url("../assets/fullren.jpg");

    background-position: center;
  }

  .renovations-hero h1 {
    font-size: clamp(39px, 10vw, 58px);
    overflow-wrap: anywhere;
  }

  .renovations-hero h2 {
    font-size: 19px;
  }

  .renovations-hero-content > p {
    font-size: 14px;
  }

  .renovations-services {
    padding: 70px 0 80px;
  }

  .renovations-services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .renovation-service-card,
  .renovation-service-card:nth-child(4),
  .renovation-service-card:nth-child(5) {
    grid-column: auto;
  }

  .renovation-service-card img {
    height: 220px;
  }

  .renovation-service-content {
    padding: 22px;
  }

  .renovations-scope {
    padding: 75px 0;
  }

  .renovations-scope-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .renovations-scope-grid li {
    padding: 18px 0;
  }

  .renovations-cta {
    padding: 80px 5%;
  }

  .renovations-button {
    padding: 17px 22px;
    gap: 16px;
  }
}

/* ===== UAPRO HEADING SIZE OPTIMIZATION ===== */

/* DESKTOP */

.renovations-hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.1;
}

.renovations-section-heading h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.2;
}

.renovations-scope h2 {
  font-size: clamp(32px, 3.3vw, 48px);
  line-height: 1.2;
}

.renovations-cta h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.2;
}

/* TABLET */

@media (max-width: 1000px) {
  .renovations-hero h1 {
    font-size: clamp(38px, 5.5vw, 58px);
  }

  .renovations-section-heading h2,
  .renovations-scope h2,
  .renovations-cta h2 {
    font-size: clamp(29px, 4vw, 38px);
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .renovations-hero h1 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.12;
    overflow-wrap: normal;
  }

  .renovations-section-heading h2,
  .renovations-scope h2,
  .renovations-cta h2 {
    font-size: clamp(27px, 7vw, 34px);
    line-height: 1.2;
  }

  .renovations-hero h2 {
    font-size: 17px;
    line-height: 1.45;
  }

  .renovation-service-content h3 {
    font-size: 14px;
    line-height: 1.4;
  }

  .renovations-label {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
}

/* =========================================
   UAPRO CONSTRUCTION
   PREMIUM SCROLL ANIMATIONS
========================================= */

/* ===== HERO ENTRANCE ===== */

@keyframes uaproHeroFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.renovations-hero-content > * {
  animation: uaproHeroFade 0.85s ease-out both;
}

.renovations-hero-content > *:nth-child(1) {
  animation-delay: 0.1s;
}

.renovations-hero-content > *:nth-child(2) {
  animation-delay: 0.25s;
}

.renovations-hero-content > *:nth-child(3) {
  animation-delay: 0.4s;
}

.renovations-hero-content > *:nth-child(4) {
  animation-delay: 0.55s;
}

.renovations-hero-content > *:nth-child(5) {
  animation-delay: 0.7s;
}

/* ===== SCROLL REVEAL ===== */

.uapro-reveal {
  opacity: 0;
  transform: translateY(25px);

  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);

  transition-delay: var(--reveal-delay, 0ms);
}

.uapro-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SERVICE CARDS HOVER ===== */

.renovations-page .renovation-service-card.uapro-reveal.is-visible:hover {
  transform: translateY(-5px);
  transition-delay: 0ms;
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
  .renovations-hero-content > * {
    animation: none !important;
  }

  .uapro-reveal,
  .uapro-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================
   UAPRO CONSTRUCTION
   ARCHITECTURAL HERO REVEAL
========================================= */

/* Disable previous Hero entrance animation */

.renovations-page .renovations-hero-content > * {
  animation: none;
}

/* ===== TITLE LINES ===== */

.renovations-hero .architectural-title {
  position: relative;
  display: block;
  margin-bottom: 30px;
  padding-bottom: 17px;
}

/* Each line acts as a reveal mask */

.architectural-title .hero-line {
  display: block;
  overflow: hidden;
  width: 100%;
}

/* Text appears from left to right */

.architectural-title .hero-line-text {
  display: block;
  width: fit-content;

  clip-path: inset(0 100% 0 0);

  transform: translateX(-18px);

  animation: uaproArchitecturalReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* HOME */

.renovations-page .architectural-title .hero-line--home .hero-line-text {
  color: #f3f0e9;
  animation-delay: 0.2s;
}

/* RENOVATIONS */

.renovations-page .architectural-title .hero-line--renovations .hero-line-text {
  color: #c6ad83;
  animation-delay: 0.43s;
}

/* ===== GOLD ARCHITECTURAL LINE ===== */

.architectural-title::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 78px;
  height: 2px;

  background: #c6ad83;

  transform: scaleX(0);
  transform-origin: left center;

  animation: uaproGoldLine 0.6s ease-out 0.9s both;
}

/* ===== TITLE REVEAL KEYFRAMES ===== */

@keyframes uaproArchitecturalReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    transform: translateX(-18px);
  }

  100% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

/* ===== GOLD LINE KEYFRAMES ===== */

@keyframes uaproGoldLine {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ===== OTHER HERO ELEMENTS ===== */

@keyframes uaproHeroContentReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Location label */

.renovations-page .renovations-hero-content > .renovations-label {
  animation: uaproHeroContentReveal 0.6s ease-out 0.1s both;
}

/* Subtitle */

.renovations-page .renovations-hero-content > h2 {
  animation: uaproHeroContentReveal 0.65s ease-out 0.95s both;
}

/* Description */

.renovations-page .renovations-hero-content > p {
  animation: uaproHeroContentReveal 0.65s ease-out 1.1s both;
}

/* Estimate button */

.renovations-page .renovations-hero-content > .renovations-button {
  animation: uaproHeroContentReveal 0.65s ease-out 1.25s both;
}

/* ===== MOBILE OPTIMIZATION ===== */

@media (max-width: 600px) {
  .renovations-hero .architectural-title {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.12;
    padding-bottom: 14px;
    margin-bottom: 25px;
  }

  .architectural-title::after {
    width: 55px;
  }
}

/* ===== REDUCED MOTION ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
  .renovations-page .renovations-hero-content > *,
  .architectural-title .hero-line-text,
  .architectural-title::after {
    animation: none !important;
  }

  .architectural-title .hero-line-text {
    clip-path: inset(0);
    transform: none;
    opacity: 1;
  }

  .architectural-title::after {
    transform: scaleX(1);
  }
}
