/* =============================================
   TESTIMONIALS.CSS — Pearlhaus Dental
   Vibrant mint background, card masonry grid
   Human, warm, trust-heavy visual energy
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #2a9d8f;
  --teal-light: #52b5a9;
  --teal-pale: #e8f7f5;
  --teal-ultra: #f0fbfa;
  --dark: #1a2e2b;
  --white: #ffffff;
  --off: #f8fffe;
  --text: #1d3430;
  --muted: #6b8f8a;
  --border: #d4ecea;
  --gold: #e9c46a;
  --makeover-color: #8b5cf6; --makeover-bg: #ede9fe;
  --whitening-color: #f59e0b; --whitening-bg: #fef3c7;
  --implants-color: #3b82f6; --implants-bg: #dbeafe;
  --aligners-color: #10b981; --aligners-bg: #d1fae5;
  --general-color: #6b7280; --general-bg: #f3f4f6;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--teal-ultra); color: var(--text); font-family: var(--font-body); overflow-x: hidden; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 52px; transition: all 0.3s;
}
.nav.scrolled {
  background: rgba(240,251,250,0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); padding: 12px 52px;
  box-shadow: 0 2px 20px rgba(42,157,143,0.08);
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--dark); text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.nav-logo em { font-style: italic; color: var(--teal); font-weight: 400; }
.logo-icon { color: var(--teal); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta {
  background: var(--teal); color: white; padding: 10px 24px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(42,157,143,0.3);
}
.nav-cta:hover { background: var(--dark); }
.hamburger { display: none; background: none; border: none; color: var(--dark); font-size: 1.3rem; cursor: pointer; }
.mobile-menu {
  position: fixed; inset: 0; background: var(--dark); z-index: 2000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: translateX(100%); transition: transform 0.4s;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li { margin: 16px 0; }
.mobile-menu ul li a { font-family: var(--font-display); font-size: 1.8rem; color: white; text-decoration: none; }
.mobile-menu ul li a.mob-cta { color: var(--teal); }
.close-menu { position: absolute; top: 24px; right: 32px; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* HERO */
.testi-hero {
  background: var(--dark);
  padding: 160px 80px 100px;
  position: relative; overflow: hidden;
}
.testi-hero::before {
  content: '"'; position: absolute;
  font-family: var(--font-display); font-size: 50vw; line-height: 0.8;
  color: rgba(42,157,143,0.04); right: -5%; top: 20%;
  pointer-events: none;
}
.th-inner { position: relative; z-index: 1; }
.eyebrow {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-light); font-weight: 600; margin-bottom: 20px; display: block;
}
.testi-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 7rem);
  font-weight: 700; line-height: 1.05; color: white; margin-bottom: 52px;
}
.testi-hero h1 em { font-style: italic; color: var(--teal-light); font-weight: 400; }
.th-rating-row {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.th-rating-big { display: flex; align-items: center; gap: 16px; }
.rating-num {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.rating-stars { display: flex; gap: 4px; margin-bottom: 4px; }
.rating-stars i { color: var(--gold); font-size: 1rem; }
.rating-label { font-size: 0.72rem; color: rgba(255,255,255,0.4); letter-spacing: 0.08em; }
.th-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.1); }
.th-stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--teal-light); }
.th-stat span { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* FEATURED REVIEW */
.featured-review {
  background: var(--white); padding: 72px 80px;
  border-bottom: 1px solid var(--border);
}
.fr-inner { max-width: 900px; margin: 0 auto; }
.fr-quote-mark { font-size: 2.5rem; color: var(--teal); opacity: 0.2; margin-bottom: 16px; }
.fr-text {
  font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic; line-height: 1.7; color: var(--text); margin-bottom: 32px;
}
.fr-author {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.fr-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: white; flex-shrink: 0;
}
.fr-author-info strong { display: block; font-size: 0.95rem; color: var(--dark); }
.fr-author-info span { font-size: 0.75rem; color: var(--muted); }
.fr-stars { display: flex; gap: 3px; margin-top: 5px; }
.fr-stars i { color: var(--gold); font-size: 0.75rem; }
.fr-treatment-tag {
  margin-left: auto;
  background: var(--makeover-bg); color: var(--makeover-color);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px;
}

/* REVIEWS SECTION */
.reviews-section { padding: 64px 80px; background: var(--teal-ultra); }
.reviews-filter {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px;
}
.rf-btn {
  background: var(--white); border: 1.5px solid var(--border); color: var(--muted);
  padding: 9px 20px; border-radius: 50px; font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.25s;
}
.rf-btn:hover { border-color: var(--teal); color: var(--teal); }
.rf-btn.active { background: var(--teal); border-color: var(--teal); color: white; }

.reviews-grid {
  columns: 3; column-gap: 24px;
}
.review-card {
  break-inside: avoid; margin-bottom: 24px;
  background: var(--white); border-radius: 20px;
  border: 1.5px solid var(--border); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all 0.35s;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(42,157,143,0.12);
  border-color: var(--teal);
}
.rc-top { display: flex; align-items: center; justify-content: space-between; }
.rc-stars { display: flex; gap: 3px; }
.rc-stars i { color: var(--gold); font-size: 0.78rem; }
.rc-treatment {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
}
.rc-treatment.makeover { background: var(--makeover-bg); color: var(--makeover-color); }
.rc-treatment.whitening { background: var(--whitening-bg); color: var(--whitening-color); }
.rc-treatment.implants { background: var(--implants-bg); color: var(--implants-color); }
.rc-treatment.aligners { background: var(--aligners-bg); color: var(--aligners-color); }
.rc-treatment.general { background: var(--general-bg); color: var(--general-color); }
.rc-text {
  font-family: var(--font-display); font-style: italic;
  font-size: 0.97rem; line-height: 1.7; color: var(--text); flex: 1;
}
.rc-footer {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.rc-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: white;
}
.rc-footer strong { display: block; font-size: 0.85rem; color: var(--dark); }
.rc-footer span { font-size: 0.72rem; color: var(--muted); }
.rc-source {
  margin-left: auto; font-size: 0.72rem; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.rc-source i { color: #4285f4; }

/* RATINGS BREAKDOWN */
.ratings-breakdown {
  padding: 100px 80px; background: var(--white);
  border-top: 1px solid var(--border);
}
.rb-inner {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 80px; align-items: center;
  max-width: 1000px; margin: 0 auto;
}
.rb-left h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; color: var(--dark); margin: 12px 0 16px; line-height: 1.2;
}
.rb-left p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.rb-overall { display: flex; align-items: center; gap: 16px; }
.rb-big-num {
  font-family: var(--font-display); font-size: 5rem; font-weight: 700;
  color: var(--teal); line-height: 1;
}
.rb-big-stars { display: flex; gap: 5px; margin-bottom: 4px; }
.rb-big-stars i { color: var(--gold); font-size: 1.1rem; }
.rb-big-stars + span { font-size: 0.75rem; color: var(--muted); }
.rb-right { display: flex; flex-direction: column; gap: 18px; }
.rb-bar-row { display: flex; align-items: center; gap: 16px; }
.rb-label { width: 170px; font-size: 0.82rem; color: var(--text); flex-shrink: 0; }
.rb-track {
  flex: 1; height: 8px; background: var(--teal-pale); border-radius: 4px; overflow: hidden;
}
.rb-fill {
  height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 4px; width: 0;
  transition: width 1.2s ease;
}
.rb-val { font-size: 0.85rem; font-weight: 700; color: var(--teal); width: 30px; }

/* CTA */
.testi-cta {
  padding: 100px 80px; text-align: center;
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a36 100%);
}
.tcta-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(42,157,143,0.2); color: var(--teal-light);
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.tcta-inner h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700; color: white; line-height: 1.2; margin-bottom: 16px;
}
.tcta-inner h2 em { font-style: italic; color: var(--teal-light); font-weight: 400; }
.tcta-inner p {
  font-size: 0.97rem; color: rgba(255,255,255,0.55);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.7;
}
.tcta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.tcta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: white; padding: 16px 34px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 700; text-decoration: none; transition: all 0.3s;
  box-shadow: 0 6px 24px rgba(42,157,143,0.3);
}
.tcta-primary:hover { background: white; color: var(--dark); }
.tcta-ghost {
  display: inline-flex; align-items: center;
  border: 1.5px solid rgba(255,255,255,0.25); color: white;
  padding: 16px 34px; border-radius: 50px; font-size: 0.9rem;
  font-weight: 500; text-decoration: none; transition: all 0.3s;
}
.tcta-ghost:hover { border-color: var(--teal-light); color: var(--teal-light); }

/* FOOTER */
.footer { background: #0f1e1c; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; padding: 64px 80px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: white;
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.footer-logo i { color: var(--teal-light); }
.footer-logo em { font-style: italic; color: var(--teal-light); font-weight: 400; }
.footer-brand p { font-size: 0.83rem; color: rgba(255,255,255,0.4); line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-size: 0.8rem; text-decoration: none; transition: all 0.3s;
}
.footer-socials a:hover { border-color: var(--teal-light); color: var(--teal-light); }
.footer-col h5 {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 0.83rem; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.3s; }
.footer-col ul li a:hover { color: white; }
.footer-contact-items p {
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  margin-bottom: 9px; display: flex; gap: 9px; line-height: 1.5;
}
.footer-contact-items i { color: var(--teal-light); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { padding: 18px 80px; text-align: center; }
.footer-bottom p { font-size: 0.7rem; color: rgba(255,255,255,0.2); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nav { padding: 16px 32px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .testi-hero { padding: 130px 40px 72px; }
  .featured-review { padding: 56px 40px; }
  .reviews-section { padding: 52px 40px; }
  .reviews-grid { columns: 2; }
  .ratings-breakdown { padding: 72px 40px; }
  .rb-inner { grid-template-columns: 1fr; gap: 48px; }
  .testi-cta { padding: 72px 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 48px 40px 36px; }
  .footer-bottom { padding: 16px 40px; }
}
@media (max-width: 640px) {
  .testi-hero { padding: 120px 24px 56px; }
  .th-rating-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .th-divider { display: none; }
  .featured-review { padding: 40px 24px; }
  .fr-treatment-tag { display: none; }
  .reviews-section { padding: 40px 24px; }
  .reviews-grid { columns: 1; }
  .rb-label { width: 130px; font-size: 0.75rem; }
  .ratings-breakdown { padding: 60px 24px; }
  .testi-cta { padding: 60px 24px; }
  .footer-top { grid-template-columns: 1fr; padding: 40px 24px 28px; }
  .footer-bottom { padding: 14px 24px; }
}
