/* Final local review fixes — intentionally loaded last. */
:root {
  --uw-navy: #103b4b;
  --uw-red: #b92f28;
  --uw-cream: #f7f0e3;
  --uw-gold: #d8b56a;
}

/* Header navigation: a restrained hanging-star detail. */
.desktop-nav a {
  position: relative;
  padding-top: 18px;
}
.desktop-nav a::before {
  content: "★";
  position: absolute;
  left: 50%;
  top: -5px;
  color: #fff;
  font-size: 9px;
  line-height: 1;
  transform: translateX(-50%);
  text-shadow: 0 0 2px rgba(16, 59, 75, .45);
  animation: navStarGlow 3.2s ease-in-out infinite;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 1px;
  height: 8px;
  background: rgba(16, 59, 75, .55);
}
.desktop-nav a:nth-child(2)::before { animation-delay: .35s; }
.desktop-nav a:nth-child(3)::before { animation-delay: .7s; }
.desktop-nav a:nth-child(4)::before { animation-delay: 1.05s; }
.desktop-nav a:nth-child(5)::before { animation-delay: 1.4s; }
@keyframes navStarGlow {
  0%, 55%, 100% { color: #fff; text-shadow: 0 0 2px rgba(16,59,75,.35); }
  72% { color: #e7c982; text-shadow: 0 0 7px rgba(216,181,106,.9); }
}

/* Give the central hero photograph a little more room. */
@media (min-width: 901px) {
  .hero {
    grid-template-columns: minmax(0, 41.5%) minmax(0, 30%) minmax(270px, 28.5%) !important;
  }
  .hero-copy {
    clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 100%, 0 100%) !important;
    padding-right: 60px !important;
  }
}
.hero-intro-compact { margin: 18px 0 0; max-width: 430px; }
.hero-intro-compact strong { display: block; margin-bottom: 6px; font: 700 1.12rem/1.2 Georgia, serif; }
.hero-intro-compact p { margin: 0 0 5px; line-height: 1.42; }
.hero-intro-compact .hero-promise { font-family: Georgia, serif; font-weight: 700; }
.hero-intro-compact .hero-small-note { margin-top: 8px; font-size: .84rem; opacity: .9; }

/* About page: remove the accidental full-page empty grid track. */
.about-repair-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
  gap: 40px !important;
  align-items: start !important;
  min-height: 0 !important;
  height: auto !important;
}
.about-repair-layout > * { min-width: 0; }
.about-repair-layout .side-lead-form,
.about-repair-layout aside { width: 100% !important; max-width: 360px !important; justify-self: end; }

/* Real-work gallery replacing the misplaced before/after set. */
.real-work-gallery { padding-top: 8px; }
.real-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.real-work-card {
  margin: 0;
  background: #fbf6ec;
  border: 1px solid #cdbfa9;
  border-top: 4px solid var(--uw-navy);
  box-shadow: 0 7px 18px rgba(27, 44, 48, .08);
  overflow: hidden;
}
.real-work-card img { width: 100%; height: 260px; display: block; object-fit: cover; }
.real-work-card figcaption { padding: 13px 15px 15px; }
.real-work-card strong { display: block; color: var(--uw-navy); font: 700 1.08rem/1.2 Georgia, serif; }
.real-work-card span { display: block; margin-top: 5px; color: #46433d; font-size: .92rem; line-height: 1.4; }

.new-doors-before-after { margin-top: 44px; }
.new-doors-before-after .photo-pair { align-items: stretch; }

/* Star animation: fill forward only; reset to gray in a single frame. */
.star-sequence span { color: #aaa !important; transition: color .18s ease, text-shadow .18s ease, transform .18s ease; }
.star-sequence span.is-lit { color: var(--uw-red) !important; }
.star-sequence.is-flashing span {
  color: var(--uw-red) !important;
  animation: fiveStarFlash .65s ease-in-out 2;
}
@keyframes fiveStarFlash {
  0%, 100% { text-shadow: none; transform: scale(1); }
  50% { color: #d5a53f; text-shadow: 0 0 9px rgba(213,165,63,.85); transform: scale(1.08); }
}

/* Keep the guarantee readable and in the same visual language as the map. */
.guarantee-panel {
  background: linear-gradient(135deg, #fffaf0 0%, #f3ead9 100%) !important;
  color: #172f39 !important;
  border: 1px solid #c9b99e !important;
  border-top: 5px solid var(--uw-red) !important;
  border-left: 7px solid var(--uw-navy) !important;
  box-shadow: 8px 8px 0 rgba(201,185,158,.28) !important;
}
.guarantee-panel h2,
.guarantee-panel h3,
.guarantee-panel p { color: #172f39 !important; }
.guarantee-panel .guarantee-seal {
  background: #fffaf0 !important;
  border-radius: 50% !important;
  filter: none !important;
}

@media (max-width: 900px) {
  .desktop-nav a { padding-top: initial; }
  .desktop-nav a::before, .desktop-nav a::after { display: none; }
  .about-repair-layout { grid-template-columns: 1fr !important; gap: 24px !important; }
  .about-repair-layout .side-lead-form, .about-repair-layout aside { max-width: none !important; justify-self: stretch; }
  .real-work-grid { grid-template-columns: 1fr 1fr; }
  .real-work-card img { height: 220px; }
}
@media (max-width: 620px) {
  .real-work-grid { grid-template-columns: 1fr; }
  .real-work-card img { height: 235px; }
}

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