/*
|--------------------------------------------------------------------------
| Hero + Footer shared styles (hf- prefix)
| File: assets/css/hero-footer.css
| Fishyhue Studio®
|--------------------------------------------------------------------------
| Isolated styles for include/hero.php and include/footer.php
|--------------------------------------------------------------------------
*/

/* =====================================================================
   HERO (masthead logo + tagline)
   ===================================================================== */

.hf-masthead {
  text-align: center;
  margin: 0 0 6px;
}

.hf-tagline {
  margin: 6px 0 0;
  color: #ffb45a;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.hf-tagline span + span {
  margin-left: 5px;
}

.hf-masthead .hf-tagline {
  color: #ff9d2e;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.hf-masthead .hf-tagline strong {
  color: #ffc107;
  font-weight: 700;
}

@media (max-width: 640px) {
  .hf-logo {
    width: min(540px, 92vw) !important;
  }
}

/* =====================================================================
   FOOTER SECTIONS — shared card / button primitives
   ===================================================================== */

.hf-card {
  background: #ffffff;
  border: 1px solid #ff7a18;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  padding: 26px;
  animation: hf-rise 0.28s ease;
  margin-top:26px;
}

@keyframes hf-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hf-card {
    animation: none;
  }
}

.hf-seo-card h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.hf-seo-card p,
.hf-seo-card li {
  color: #14181f;
  line-height: 1.6;
}

.hf-seo-card a {
  color: #ff7a18;
  font-weight: 600;
  text-decoration: none;
}

.hf-seo-card a:hover {
  text-decoration: underline;
}

.hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s, color 0.15s;
  text-decoration: none;
  color: inherit;
}

.hf-btn.hf-primary {
  background: linear-gradient(135deg, #ff5f0f 0%, #ff9d2e 100%);
  color: #ffffff;
}

.hf-btn.hf-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff7a18 0%, #ffd23f 100%);
}

.hf-btn.hf-ghost {
  background: transparent;
  border-color: #ff7a18;
  color: #ff7a18;
}

.hf-btn.hf-ghost:hover:not(:disabled) {
  border-color: #ffc107;
  color: #b26a00;
}

.hf-welcome-cta {
  min-width: min(100%, 260px);
  font-size: 1rem;
  padding: 14px 26px;
}

.hf-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Continue Building — tool cards */
.hf-tool-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.hf-tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px;
  border: 1px solid #e4e7ee;
  border-radius: 14px;
  background: #f6f7f9;
}

.hf-tool-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #14181f;
}

.hf-tool-card > p {
  margin: 0 0 12px;
  color: #14181f;
  line-height: 1.6;
}

.hf-tool-link-wrap {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 12px;
}

.hf-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 600;
  color: #ff7a18;
  text-decoration: none;
}

.hf-tool-link:hover {
  text-decoration: underline;
  color: #b26a00;
}

/* Build Better Brands CTA */
.hf-home-cta {
  text-align: center;
}

.hf-home-cta p {
  max-width: 38em;
  margin-left: auto;
  margin-right: auto;
}

.hf-home-cta .hf-home-actions {
  justify-content: center;
}

/* FooterBlock */
.hf-site-footer {
  margin-top: 18px;
  padding: 26px;
  border-radius: 22px;
  background: rgba(18, 18, 21, 0.88);
  border: 1px solid #ffb45a;
  color: #ffb45a;
}

.hf-site-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hf-site-footer-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #ffc107;
}

.hf-site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.hf-site-footer a {
  color: #ffe2a8;
  text-decoration: none;
  font-size: 0.88rem;
}

.hf-site-footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.hf-site-footer-legal,
.hf-site-footer-social {
  margin: 18px 0 0;
  font-size: 0.8rem;
  color: #c9a36a;
}

.hf-home-footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hf-home-footer-blurb {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #ffe2a8;
}

.hf-site-footer hr {
  display: none;
}

/* Responsive */
@media (min-width: 768px) {
  .hf-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hf-home-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hf-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hf-home-footer-grid {
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hf-card {
    padding: 18px;
    border-radius: 14px;
  }

  .hf-welcome-cta {
    width: 100%;
  }

  .hf-home-actions .hf-btn {
    width: 100%;
  }

  .hf-site-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .hf-masthead,
  .hf-site-footer {
    display: none !important;
  }

  .hf-card {
    box-shadow: none;
    border: 0;
    padding: 0;
    max-height: none;
  }
}

/* ==========================================================
   Tool Header
   ========================================================== */

.tool-header {
    position: relative;
    max-width: 820px;
    width: 100%;
    margin: 18px auto 0;
    padding: 26px;
    border-radius: 22px;
    background: rgba(18, 18, 21, 0.88);
    border: 1px solid #ffb45a;
    color: #ffb45a;
    overflow: hidden;
}

/* Very subtle container shine */
.tool-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 42%,
        rgba(255, 180, 90, 0.04) 48%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 180, 90, 0.04) 52%,
        transparent 58%
    );
    transform: translateX(-160%);
    animation: toolHeaderShine 8s ease-in-out infinite;
    pointer-events: none;
}

.tool-header h1 {
    margin: 0;
    color: #ffc107;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

/* Subtle shine animation */
@keyframes toolHeaderShine {
    0%,
    75% {
        transform: translateX(-160%);
    }

    100% {
        transform: translateX(160%);
    }
}
