/* ==========================================================================
   PagePeak Promotions - Testimonials Page Styling (css/testimonials.css)
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --bg-primary: #0B1120;
  --bg-secondary: #0F172A;
  --bg-card: #1E293B;
  --bg-card-hover: #243248;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  
  --accent-gold: #D97706;
  --accent-gold-hover: #B45309;
  --border-color: #334155;
  --star-color: #F59E0B;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   Logo & Navbar Styles (Controlled Logo Dimensions)
   ========================================================================== */
.navbar {
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

/* Strict Image Sizing for Header Logo */
.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.brand-logo span {
  font-weight: 400;
  color: var(--accent-gold);
  font-size: 0.95rem;
  text-transform: capitalize;
}

/* Footer specific logo scaling */
.footer-logo {
  margin-bottom: 8px;
}

.footer-logo .brand-logo-img {
  height: 34px;
  width: auto;
  max-width: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-gold);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gold);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* --- Hero Section --- */
.testimonials-hero {
  padding: 85px 0 65px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(11, 17, 32, 1) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-container {
  max-width: 800px;
}

.sub-heading {
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.testimonials-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.2;
}

.testimonials-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
}


/* ==========================================================================
   Campaign Evidence / Proof Section
   ========================================================================== */
.proof-section {
  padding: 60px 0 20px;
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-title-wrap h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: #FFFFFF;
  margin: 8px 0 10px;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 1rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.proof-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.proof-img-frame {
  width: 100%;
  height: 220px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.proof-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.proof-card:hover .proof-img-frame img {
  transform: scale(1.03);
}

.proof-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.proof-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(217, 119, 6, 0.15);
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.proof-body h3 {
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.proof-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Reviews Grid --- */
.testimonials-section {
  padding: 75px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  background: var(--bg-card-hover);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.genre-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 20px;
}

/* Genre Tag Badges */
.tag-fantasy { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.tag-nonfiction { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.tag-mystery { background: rgba(20, 184, 166, 0.15); color: #2DD4BF; }
.tag-ya { background: rgba(239, 68, 68, 0.15); color: #F87171; }
.tag-womens { background: rgba(236, 72, 153, 0.15); color: #F472B6; }
.tag-childrens { background: rgba(234, 179, 8, 0.15); color: #FACC15; }
.tag-christian { background: rgba(168, 85, 247, 0.15); color: #C084FC; }
.tag-romance { background: rgba(244, 63, 94, 0.15); color: #FB7185; }
.tag-dystopian { background: rgba(148, 163, 184, 0.15); color: #CBD5E1; }
.tag-horror { background: rgba(15, 23, 42, 0.6); color: #E2E8F0; border: 1px solid #475569; }

.stars {
  color: var(--star-color);
  font-size: 0.85rem;
  display: flex;
  gap: 2px;
}

.author-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.review-text {
  color: #CBD5E1;
  font-size: 0.98rem;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 22px;
  font-style: italic;
}

.card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-footer i {
  color: #22C55E;
}

.card-footer strong {
  color: #F1F5F9;
}

/* --- Call to Action Banner --- */
.testimonials-cta {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 70px 0;
  text-align: center;
}

.testimonials-cta h2 {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.testimonials-cta p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-primary);
  padding: 65px 0 25px;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 45px;
}

.brand-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.portfolio-box {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.portfolio-box h3 {
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.btn-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
}

.btn-portfolio:hover {
  background: rgba(34, 197, 94, 0.25);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.social-icons a:hover {
  background: var(--accent-gold);
  color: #FFFFFF;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Theme Toggle Floating Button --- */
.theme-toggle-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}