/* Final local review fixes — intentionally loaded after the main stylesheet. */

/* Header navigation: one more useful destination, with a subtle brand detail. */
.desktop-nav a {
  position: relative;
  padding: 22px 12px 14px;
  text-decoration: none;
}

.desktop-nav a::before {
  content: "★";
  position: absolute;
  top: 3px;
  left: 50%;
  color: rgba(255,255,255,.92);
  font-size: 10px;
  line-height: 1;
  transform: translateX(-50%);
  text-shadow: 0 0 0 rgba(204,159,65,0);
  animation: navStarGlow 4.8s ease-in-out infinite;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 1px;
  height: 7px;
  background: rgba(13,58,76,.5);
}

.desktop-nav a:nth-child(2)::before { animation-delay: .45s; }
.desktop-nav a:nth-child(3)::before { animation-delay: .9s; }
.desktop-nav a:nth-child(4)::before { animation-delay: 1.35s; }
.desktop-nav a:nth-child(5)::before { animation-delay: 1.8s; }

@keyframes navStarGlow {
  0%, 72%, 100% { color: rgba(255,255,255,.88); text-shadow: 0 0 0 transparent; }
  82% { color: #d8b25a; text-shadow: 0 0 8px rgba(216,178,90,.8); }
}

/* Homepage hero: shorten the copy and give the real photograph more room. */
.hero {
  grid-template-columns: minmax(0, 41.6%) minmax(0, 30.2%) minmax(250px, 28.2%);
}

.hero-copy {
  clip-path: polygon(0 0, 87.5% 0, 100% 100%, 0 100%);
  padding-right: clamp(54px, 6vw, 92px);
}

.hero-copy .hero-short-copy {
  margin-top: 18px;
  max-width: 430px;
}

.hero-copy .hero-short-copy strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: clamp(20px, 1.65vw, 27px);
  line-height: 1.1;
}

.hero-copy .hero-short-copy p {
  margin: 0 0 8px;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.35;
}

.hero-copy .hero-short-copy .repair-first {
  font-family: Georgia, serif;
  font-weight: 700;
}

.hero-copy .hero-short-copy small {
  display: block;
  margin-top: 10px;
  letter-spacing: .015em;
  opacity: .92;
}

/* About page: prevent the callback card from creating a huge empty canvas. */
.about-repair-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 350px) !important;
  align-items: start !important;
  gap: clamp(28px, 4vw, 60px) !important;
  min-height: 0 !important;
  height: auto !important;
}

.about-repair-layout > :first-child {
  min-width: 0;
}

.about-repair-layout .side-lead-form,
.about-repair-layout .side-cta {
  position: static !important;
  width: auto !important;
  max-width: none !important;
  align-self: start !important;
}

/* Project gallery for real customer work. */
.real-work-gallery {
  padding-top: 44px;
  padding-bottom: 60px;
}

.real-work-intro {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.55;
}

.real-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.real-work-card {
  background: #f8f1e5;
  border: 1px solid #cdbfa9;
  border-top: 5px solid #0d3a4c;
  box-shadow: 0 9px 20px rgba(43,34,24,.08);
  overflow: hidden;
}

.real-work-card:nth-child(even) { border-top-color: #b52e28; }

.real-work-card img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.real-work-card-copy { padding: 18px 19px 20px; }
.real-work-card h3 { margin: 0 0 7px; font-size: 23px; }
.real-work-card p { margin: 0; line-height: 1.45; }

/* Before/after belongs on the New Doors page. */
.new-door-before-after {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid #cdbfa9;
}

.new-door-before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.new-door-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.new-door-pair figure { position: relative; margin: 0; }
.new-door-pair img { width: 100%; height: 210px; object-fit: cover; display: block; }
.new-door-pair span {
  position: absolute; top: 8px; left: 8px; padding: 5px 10px;
  background: #0d3a4c; color: #fff8e9; font: 700 italic 17px Georgia, serif;
}
.new-door-pair figure:last-child span { background: #b52e28; }

/* Review stars: fill upward only, flash at five, then reset together. */
.star-sequence span,
.review-stars span {
  color: #aaa6a0;
  transition: color .2s ease, text-shadow .2s ease, transform .2s ease;
}
.star-sequence span.is-lit,
.review-stars span.is-lit { color: #b52e28; }
.star-sequence.is-complete span,
.review-stars.is-complete span {
  color: #b52e28;
  animation: fiveStarFlash .75s ease-in-out 2;
}
@keyframes fiveStarFlash {
  0%,100% { transform: scale(1); text-shadow: 0 0 0 transparent; }
  50% { transform: scale(1.08); color: #d8b25a; text-shadow: 0 0 10px rgba(216,178,90,.9); }
}

/* Guarantee panel: light, readable and visually related to the map cards. */
.guarantee-panel {
  background: linear-gradient(135deg, #fffaf0 0%, #f4ead9 100%) !important;
  color: #102f3d !important;
  border: 1px solid #cdbfa9 !important;
  border-top: 5px solid #b52e28 !important;
  border-left: 8px solid #0d3a4c !important;
  box-shadow: 7px 8px 0 rgba(205,191,169,.38) !important;
}
.guarantee-panel h2,
.guarantee-panel p { color: #102f3d !important; }
.guarantee-panel strong { color: #b52e28 !important; }
.guarantee-seal { filter: none !important; }

@media (max-width: 900px) {
  .desktop-nav a::before, .desktop-nav a::after { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { clip-path: none; padding-right: 24px; }
  .about-repair-layout { grid-template-columns: 1fr !important; }
  .real-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .new-door-before-after-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .real-work-grid { grid-template-columns: 1fr; }
  .real-work-card img { height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-nav a::before,
  .star-sequence.is-complete span,
  .review-stars.is-complete span { animation: none !important; }
}
