/* ============================================================
   COMPONENTS.CSS — Old Town Renovations, LLC
   Reusable widgets shared by two or more pages: the about-us
   snippet (home + about), stats strip (home + contact),
   lightbox (home + gallery), and testimonial content
   (home + testimonials).
   ============================================================ */

/* --- ABOUT SNIPPET (home + about) ----------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #3D2210 0%, #6B4020 40%, #9B6A35 80%, #C8973A 100%);
  background-image: url('../images/about-main.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}

.about-img-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 48%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1A0A02 0%, #4A2C0A 50%, #6B3F2A 100%);
  background-image: url('../images/about-accent.jpg');
  background-size: cover;
  background-position: center;
  border: 5px solid var(--clr-cream);
  box-shadow: var(--shadow-md);
}

.about-badge {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 90px;
  height: 90px;
  background: var(--clr-amber);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.about-badge-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1;
}

.about-badge-txt {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  line-height: 1.2;
  margin-top: 2px;
}

.about-text .section-label { display: block; }

.about-list {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--clr-text-md);
}

.about-list li svg {
  color: var(--clr-amber);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- STATS STRIP (home + contact) ----------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  min-width: 0;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--clr-amber);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ─── LIGHTBOX (home + gallery) ----------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 5, 2, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 70vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background-size: cover;
  background-position: center;
}

.lightbox-caption {
  margin-top: 1.25rem;
  text-align: center;
}

.lightbox-title {
  color: var(--clr-white);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.lightbox-caption p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.lightbox-counter {
  position: absolute;
  top: -2rem;
  right: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 700;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  transition: background var(--transition), transform var(--transition);
}

.lightbox-close {
  top: -3.5rem; right: 0;
  width: 42px; height: 42px;
}

.lightbox-prev, .lightbox-next {
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
}
.lightbox-prev { left: -4rem; }
.lightbox-next { right: -4rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--clr-amber);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-close:hover { transform: scale(1.1); }

/* ─── TESTIMONIAL CONTENT (home + testimonials) ----------------------------------------- */
.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
  color: var(--clr-amber);
}

.testimonial-quote {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--clr-amber);
  opacity: 0.35;
  line-height: 0;
  position: absolute;
  top: 1.2rem;
  left: -0.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-oak), var(--clr-amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clr-white);
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-white);
  display: block;
  line-height: 1.2;
}

.author-location {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ─── FAQ (home + service pages) ----------------------------------------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-walnut);
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--clr-text-md);
}

/* --- RESPONSIVE ----------------------------------------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img-wrap { max-width: 520px; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  .lightbox-prev { left: -0.5rem; }
  .lightbox-next { right: -0.5rem; }
}
