/* ==========================================================================
   QuotesPedia site footer
   Markup lives in footer.php. Edit this file to restyle the footer.
   ========================================================================== */

.qh-footer *,
.qh-footer *::before,
.qh-footer *::after{box-sizing:border-box;margin:0;padding:0}
.qh-footer{background:linear-gradient(160deg,#1A252F 0%,#2C3E50 50%,#34495E 100%);color:#fff;font-family:'Lato',sans-serif;position:relative;overflow:hidden}
.qh-footer::before{content:'';display:block;height:3px;background:linear-gradient(90deg,transparent 0%,#E74C3C 30%,#E74C3C 70%,transparent 100%)}
.qh-footer::after{content:'\201C';position:absolute;top:-30px;right:40px;font-size:300px;font-family:'Poppins',sans-serif;font-weight:700;color:rgba(231,76,60,0.05);line-height:1;pointer-events:none;user-select:none}
.qh-footer-main{max-width:1200px;margin:0 auto;padding:60px 20px 40px;display:grid;grid-template-columns:1.6fr 1fr 1fr 1.5fr;gap:48px}
.qh-brand-logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff;font-family:'Poppins',sans-serif;font-size:22px;font-weight:700;margin-bottom:18px;width:fit-content;transition:color .3s ease}
.qh-brand-logo:hover{color:#E74C3C}
.qh-brand-logo img{width:36px;height:36px;object-fit:contain;flex-shrink:0}
.qh-brand-tagline{font-size:14px;line-height:1.8;color:rgba(255,255,255,.65);margin-bottom:24px;max-width:270px}
.qh-daily-quote{background:rgba(231,76,60,.1);border-left:3px solid #E74C3C;border-radius:0 6px 6px 0;padding:14px 16px;margin-bottom:24px}
.qh-daily-quote blockquote{font-size:13px;font-style:italic;color:rgba(255,255,255,.8);line-height:1.7;margin-bottom:6px}
.qh-daily-quote cite{font-size:12px;color:#E74C3C;font-style:normal;font-weight:600}
.qh-social-links{display:flex;gap:10px;flex-wrap:wrap}
.qh-social-link{width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.7);text-decoration:none;transition:all .3s ease;flex-shrink:0}
.qh-social-link:hover{background:#E74C3C;border-color:#E74C3C;color:#fff;transform:translateY(-3px);box-shadow:0 6px 16px rgba(231,76,60,.35)}
.qh-social-link svg{width:16px;height:16px}

/* Column headings — left-aligned always */
.qh-footer-col{text-align:left}
.qh-footer-col h5{font-family:'Poppins',sans-serif;font-size:15px;font-weight:600;color:#fff;margin-bottom:20px;position:relative;padding-bottom:12px;text-align:left}
.qh-footer-col h5::after{content:'';position:absolute;bottom:0;left:0;width:28px;height:2px;background:#E74C3C;border-radius:2px}

/* Lists — flush left, no drift */
.qh-footer-col ul{list-style:none;display:flex;flex-direction:column;gap:10px;padding:0;margin:0}
.qh-footer-col ul li{text-align:left}
.qh-footer-col ul li a{color:rgba(255,255,255,.62);text-decoration:none;font-size:14px;transition:color .25s ease,padding-left .25s ease;display:inline-flex;align-items:center;gap:6px}
.qh-footer-col ul li a::before{content:'';width:4px;height:4px;border-radius:50%;background:#E74C3C;opacity:0;flex-shrink:0;transition:opacity .25s ease}
.qh-footer-col ul li a:hover{color:#fff;padding-left:8px}
.qh-footer-col ul li a:hover::before{opacity:1}

.qh-newsletter p{font-size:14px;color:rgba(255,255,255,.62);line-height:1.7;margin-bottom:18px;text-align:left}
.qh-newsletter-form{display:flex;flex-direction:column;gap:10px}
.qh-newsletter-form input[type="email"]{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:6px;padding:11px 14px;color:#fff;font-family:'Lato',sans-serif;font-size:14px;outline:none;transition:border-color .3s,background .3s,box-shadow .3s;width:100%}
.qh-newsletter-form input[type="email"]::placeholder{color:rgba(255,255,255,.45)}
.qh-newsletter-form input[type="email"]:focus{border-color:#E74C3C;background:rgba(255,255,255,.15);box-shadow:0 0 0 3px rgba(231,76,60,.18)}
.qh-newsletter-form button{background:#E74C3C;color:#fff;border:none;border-radius:6px;padding:11px 20px;font-family:'Poppins',sans-serif;font-size:14px;font-weight:600;cursor:pointer;transition:background .3s,transform .2s,box-shadow .3s;letter-spacing:.3px}
.qh-newsletter-form button:hover{background:#C0392B;transform:translateY(-1px);box-shadow:0 6px 18px rgba(231,76,60,.4)}
.qh-newsletter-note{font-size:12px;color:rgba(255,255,255,.38);line-height:1.5;margin-top:4px}
.qh-stats-strip{border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
.qh-stats-inner{max-width:1200px;margin:0 auto;padding:24px 20px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.qh-stat{display:flex;align-items:center;gap:10px}
.qh-stat-icon{width:36px;height:36px;background:rgba(231,76,60,.12);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#E74C3C;flex-shrink:0}
.qh-stat-icon svg{width:18px;height:18px}
.qh-stat-text strong{display:block;font-family:'Poppins',sans-serif;font-size:18px;font-weight:700;color:#fff;line-height:1;margin-bottom:2px}
.qh-stat-text span{font-size:12px;color:rgba(255,255,255,.5);text-transform:uppercase;letter-spacing:.5px}
.qh-stat-divider{width:1px;height:36px;background:rgba(255,255,255,.1)}
.qh-footer-bottom{max-width:1200px;margin:0 auto;padding:22px 20px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.qh-copyright{font-size:13px;color:rgba(255,255,255,.45)}
.qh-copyright a{color:#E74C3C;text-decoration:none}
.qh-copyright a:hover{text-decoration:underline}
.qh-legal-links{display:flex;gap:20px;list-style:none;flex-wrap:wrap}
.qh-legal-links a{font-size:13px;color:rgba(255,255,255,.45);text-decoration:none;transition:color .25s}
.qh-legal-links a:hover{color:#fff}
.qh-back-to-top{background:rgba(231,76,60,.15);border:1px solid rgba(231,76,60,.3);border-radius:6px;color:#E74C3C;font-family:'Lato',sans-serif;font-size:13px;font-weight:600;padding:8px 14px;cursor:pointer;display:flex;align-items:center;gap:6px;transition:all .3s;text-decoration:none}
.qh-back-to-top:hover{background:#E74C3C;color:#fff;border-color:#E74C3C;transform:translateY(-2px)}
.qh-back-to-top svg{width:14px;height:14px;transition:transform .3s}
.qh-back-to-top:hover svg{transform:translateY(-2px)}

/* Tablet */
@media(max-width:1024px){
  .qh-footer-main{grid-template-columns:1fr 1fr;gap:40px}
  .qh-brand-tagline{max-width:100%}
}

/* Mobile */
@media(max-width:768px){
  .qh-footer-main{grid-template-columns:1fr;gap:32px;padding:40px 20px 30px}

  /* Every column centred on mobile */
  .qh-footer-col{text-align:center;display:flex;flex-direction:column;align-items:center}

  /* Logo centred */
  .qh-brand-logo{width:auto;margin-left:auto;margin-right:auto}

  /* Tagline centred */
  .qh-brand-tagline{max-width:100%;text-align:center}

  /* Daily quote — keep accent but centre the block */
  .qh-daily-quote{text-align:center;border-left:none;border-top:3px solid #E74C3C;border-radius:6px}

  /* Social icons centred */
  .qh-social-links{justify-content:center}

  /* Headings centred with underline also centred.
     Note: the markup uses h5. h4 is kept for backwards compatibility. */
  .qh-footer-col h4,
  .qh-footer-col h5{text-align:center}
  .qh-footer-col h4::after,
  .qh-footer-col h5::after{left:50%;transform:translateX(-50%)}

  /* List items centred */
  .qh-footer-col ul{align-items:center}
  .qh-footer-col ul li{text-align:center}
  .qh-footer-col ul li a::before{display:none}
  .qh-footer-col ul li a:hover{padding-left:0}

  /* Newsletter text centred */
  .qh-newsletter p{text-align:center}
  .qh-newsletter-form{width:100%}

  /* Stats centred */
  .qh-stats-inner{justify-content:center}
  .qh-stat-divider{display:none}

  /* Bottom bar stacked centred */
  .qh-footer-bottom{flex-direction:column;align-items:center;text-align:center;gap:14px}
  .qh-legal-links{justify-content:center}
  .qh-back-to-top{align-self:center}
}

@media(prefers-reduced-motion:reduce){.qh-footer *,.qh-footer *::before,.qh-footer *::after{transition:none!important;animation:none!important}}
@media print{.qh-footer{display:none}}
