/* ==========================================================================
   SEIB CONSTRUCTION — REVIEWS PAGE
   Styles unique to reviews.html only.
   Shared tokens → global.css | Shared components → components.css
   RULE: Never hardcode brand colors — always use CSS custom properties.
   ========================================================================== */


/* --------------------------------------------------------------------------
   SCROLL REVEAL
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }

.section-eyebrow--light { color: var(--copper-light); }


/* --------------------------------------------------------------------------
   HERO ENTRANCE ANIMATION
   -------------------------------------------------------------------------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero-animate        { animation: heroFadeUp 0.7s ease forwards; }
.hero-animate--delay { animation-delay: 0.2s; opacity: 0; }


/* --------------------------------------------------------------------------
   §01 HERO
   -------------------------------------------------------------------------- */
.rev-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  /* No padding-top: the header is opaque and in normal flow at the top of the
     page (only becomes fixed on scroll), so the hero needs no nav clearance.
     The symmetric padding-block on .rev-hero-content balances top & bottom. */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rev-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, var(--copper-dim), transparent 65%);
  pointer-events: none;
}

.rev-hero-content {
  position: relative;
  z-index: 1;
  /* Trimmed from clamp(72px,10vw,112px) — the aggregate-rating block is hidden,
     so the taller padding left large empty navy bands above/below the content. */
  padding-block: clamp(40px, 5vw, 64px);
}

.rev-hero .section-eyebrow {
  color: var(--copper-light);
}

.rev-hero-headline {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: var(--space-3);
  margin-bottom: var(--space-7);
}

/* Big aggregate rating */
.rev-aggregate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.rev-aggregate-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 96px);
  color: var(--white);
  line-height: 1;
  letter-spacing: -3px;
}

.rev-stars {
  display: flex;
  gap: 5px;
}

.rev-stars i {
  color: var(--copper);
  font-size: 22px;
}

.rev-stars--sm i {
  font-size: 13px;
  gap: 3px;
}

.rev-aggregate-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Platform links */
.rev-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.rev-platform-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.60);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 18px;
  text-decoration: none;
  transition: color var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

.rev-platform-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.rev-platform-link i {
  font-size: 15px;
}

/* Hero sub-note */
.rev-hero-sub {
  color: rgba(255, 255, 255, 0.50);
  font-size: 13px;
  line-height: 1.7;
  margin-top: var(--space-5);
}


/* --------------------------------------------------------------------------
   §02 FEATURED TESTIMONIALS
   -------------------------------------------------------------------------- */

/* Signature review — full width, most prominent */
.rev-signature {
  background-color: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px) clamp(32px, 5vw, 64px);
  position: relative;
  /*margin-bottom: var(--space-7);*/
  overflow: hidden;
}

.rev-signature::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 200px;
  color: rgba(184, 115, 51, 0.10);
  position: absolute;
  top: -24px;
  left: 32px;
  line-height: 1;
  pointer-events: none;
}

.rev-signature-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.rev-signature-quote {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  font-style: italic;
  border: 0 !important;
  margin: 0 !important;
}

.rev-signature-meta {
  text-align: right;
  flex-shrink: 0;
  min-width: 220px;
}

.rev-signature-stars {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: var(--space-3);
}

.rev-signature-stars i {
  color: var(--copper);
  font-size: 14px;
}

.rev-signature-name {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.rev-signature-title {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.rev-signature-service {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--copper);
  background-color: var(--copper-dim);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

@media (max-width: 720px) {
  .rev-signature-body {
    grid-template-columns: 1fr;
  }
  .rev-signature-meta {
    text-align: left;
    min-width: unset;
  }
  .rev-signature-stars {
    justify-content: flex-start;
  }
}

/* 3-column featured grid */
.rev-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.rev-featured-card {
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.rev-featured-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rev-featured-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.rev-featured-card-stars {
  display: flex;
  gap: 3px;
}

.rev-featured-card-stars i {
  color: var(--copper);
  font-size: 13px;
}

.rev-featured-source i {
  font-size: 16px;
  color: var(--text-light);
}

.rev-featured-quote {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  font-style: italic;
  flex: 1;
  margin-bottom: var(--space-5);
  border-left: 3px solid var(--copper-dim);
  padding-left: var(--space-4);
}

.rev-featured-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.rev-featured-location {
  font-size: 12px;
  color: var(--text-light);
  display: block;
  margin-bottom: var(--space-3);
}

.rev-featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.rev-featured-service {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--copper);
  background-color: var(--copper-dim);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.rev-featured-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-light);
}

@media (max-width: 900px) {
  .rev-featured-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .rev-featured-grid { grid-template-columns: 1fr; }
}

/* Section CTA wrapper — used below Featured Reviews + Yelp review blocks */
.rev-section-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}


/* --------------------------------------------------------------------------
   §03 REVIEW GRID
   -------------------------------------------------------------------------- */

/* Eyebrow label with trailing divider line — marks each review grid
   (Google / Yelp). Mirrors the "Door Styles" label on the cabinetry page. */
.rev-grid-label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: var(--space-8);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.rev-grid-label::after {
  content: "";
  flex: 1;
  /* copper-tinted line — cream was nearly invisible on the linen background */
  height: 1px;
  background-color: var(--copper-dim-md);
}

/* Google Reviews widget grid ([grw id=163]) — plugin renders its own layout;
   this wrapper just spaces it from the label and the CTA below. */
.rev-google-grid {
  margin-bottom: var(--space-6);
}

/* Filter bar */
.rev-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.rev-filter-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.rev-filter-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.rev-filter-btn.active {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* Grid */
.rev-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.rev-card {
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.rev-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rev-card.hidden {
  display: none;
}

.rev-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.rev-card-stars {
  display: flex;
  gap: 3px;
}

.rev-card-stars i {
  color: var(--copper);
  font-size: 11px;
}

.rev-card-source i {
  font-size: 14px;
  color: var(--text-light);
}

.rev-card-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rev-card-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.rev-card-location {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: var(--space-3);
}

.rev-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: auto;
}

.rev-card-service {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--copper);
  background-color: var(--copper-dim);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.rev-card-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-light);
}

.rev-grid-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-10);
  display: none;
}

.rev-grid-no-results.visible {
  display: block;
}

.rev-grid-no-results p {
  color: var(--text-light);
  font-size: 15px;
}

@media (max-width: 1100px) {
  .rev-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .rev-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .rev-grid { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   §04 CTA
   -------------------------------------------------------------------------- */
.rev-cta-inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  /* No padding-block: the parent .section already provides --section-pad-y
     top & bottom. The extra padding here doubled it, leaving large empty
     navy bands above and below the CTA content. */
}

.rev-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--copper-light);
  display: block;
  margin-bottom: var(--space-4);
  opacity: 0.85;
}

.rev-cta-headline {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--space-5);
}

.rev-cta-sub {
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-body);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.rev-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
