/*
Theme Name: SEOelinks Fire
Theme URI: https://seoelinks.com
Author: SEOelinks Team
Description: High-performance fire-themed WordPress landing page
Version: 1.3.0
License: GPL v2 or later
Text Domain: seoelinks-fire
*/

:root {
  --fire-1: #facc15;
  --fire-2: #f97316;
  --fire-3: #ef4444;
  --dark-bg: #09090b;
  /* Lighten the card background slightly to create a more premium contrast against the dark site background */
  --card-bg: rgba(33, 33, 39, 0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--dark-bg);
  color: #f9fafb;
  overflow-x: hidden;
}

html.js body {
  text-rendering: optimizeLegibility;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.text-fire {
  background: linear-gradient(135deg, var(--fire-1) 0%, var(--fire-2) 50%, var(--fire-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-fire {
  background: linear-gradient(135deg, var(--fire-2) 0%, var(--fire-3) 100%);
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.glass-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 10px 40px rgba(249, 115, 22, 0.15);
  transform: translateY(-4px);
}

.service-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.service-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 120%, rgba(249, 115, 22, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-box:hover {
  border-color: var(--fire-2);
  background: rgba(24, 24, 27, 0.9);
}

.service-box:hover::after {
  opacity: 1;
}

.marquee-wrapper {
  display: flex;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  gap: 20px;
  animation: scrollMarquee 50s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

input, textarea {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
  font-family: inherit;
}

input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--fire-2);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.testimonial-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  flex-shrink: 0;
  width: 280px;
}

.fade-up {
  opacity: 1;
  transform: none;
}

html.js .fade-up {
  opacity: 0;
  transform: translateY(24px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.js .fade-up.visible {
  animation: fadeIn 0.55s ease-out forwards;
}

.accordion-button {
  cursor: pointer;
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-answer.open {
  max-height: 500px;
  padding: 0 24px 24px 24px;
}

.accordion-icon {
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 20px;
  line-height: 1;
}

.accordion-icon.open {
  transform: rotate(180deg);
}


body { text-rendering: optimizeLegibility; }

img {
  max-width: 100%;
  height: auto;
}

svg { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-content {
    animation: none;
  }

  .fade-up,
  .fade-up.visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Custom floating and spin animations for hero illustrations */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: slowSpin 20s linear infinite;
}


.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: #111827;
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #fff;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 1rem;
  line-height: normal;
  padding: 0.75rem 1rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
  border-radius: 0.75rem;
}

svg { display: block; }

.lazy-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: #111827;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-content { animation: none; }
  html.js .fade-up,
  html.js .fade-up.visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .glass-card, .service-box, .accordion-answer, .accordion-icon {
    transition: none;
  }
}


html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeSpeed; }
.text-zinc-400{color:#d4d4d8!important;}
.text-zinc-500{color:#a1a1aa!important;}
.ambient-glow{filter: blur(72px); opacity:.28;}
.glass-card{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(24,24,27,.88);}
.marquee-wrapper{width:100%;margin-left:0;overflow-x:auto;scrollbar-width:none;mask-image:none;-webkit-mask-image:none;scroll-snap-type:x proximity;}
.marquee-wrapper::-webkit-scrollbar{display:none;}
.marquee-content{animation:none;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,1fr);}
.testimonial-box{width:auto;scroll-snap-align:start;}
.lazy-section{content-visibility:auto;contain-intrinsic-size:900px 700px;}
.service-box,.glass-card,.testimonial-box{contain:content;}
@media (max-width: 767px){.ambient-glow,.bg-grid{display:none;} .glass-card:hover,.service-box:hover{transform:none;box-shadow:none;} .marquee-content{grid-auto-columns:85vw;} .sticky{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}}


/* v1.4.0 tightening */
body { line-height: 1.5; }
.text-zinc-300{color:#e4e4e7!important;}
.text-zinc-400{color:#e4e4e7!important;}
.text-zinc-500{color:#c4c4cc!important;}
nav.sticky, .glass-card, .service-box { box-shadow: none !important; }
nav.sticky { backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
.ambient-glow { filter: blur(56px); opacity:.18; }
.bg-grid { background-size: 56px 56px; opacity:.5; }
.glass-card, .service-box, .testimonial-box { background-image:none !important; }
button, a { text-underline-offset: 0.2em; }
@media (max-width: 767px){
  .sticky{position:static!important;}
  header.pt-32{padding-top:5rem!important;}
}

/*
 * Additional animation utilities
 *
 * To enhance the visual appeal of our long‑form landing pages we’ve added
 * a few subtle CSS animations inspired by modern design sites. These
 * classes can be applied to images, icons or call‑to‑action elements
 * to create a sense of motion without overwhelming the user. They are
 * intentionally gentle and respect the user’s motion preferences.
 */

/* Hue rotation animation cycles through the colour spectrum to give
   illustrative assets a gentle colour‑changing effect. Apply with
   `animate-hue-rotate` on an image or SVG. */
@keyframes hueRotate {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(180deg); }
  100% { filter: hue-rotate(360deg); }
}
.animate-hue-rotate {
  animation: hueRotate 20s linear infinite;
}

/* Glow pulse animation adds a soft outer glow on hover. Apply with
   `button-glow` to buttons or links. The box shadow intensifies and
   fades back to normal creating a “breathing” effect. */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0px rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.6); }
}
.button-glow {
  transition: box-shadow 0.3s ease;
}
.button-glow:hover {
  animation: glowPulse 2s ease-in-out infinite;
}

/* Tilt and float animation for decorative shapes. Use on images or
   cards for a modern 21st‑century touch. */
@keyframes tiltFloat {
  0% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(1deg) translateY(-6px); }
  50% { transform: rotate(0deg) translateY(0); }
  75% { transform: rotate(-1deg) translateY(6px); }
  100% { transform: rotate(0deg) translateY(0); }
}
.animate-tilt-float {
  animation: tiltFloat 12s ease-in-out infinite;
}

/* Pulse underline effect for links in the footer. Creates a subtle
   pulse on hover to indicate interactivity. */
@keyframes underlinePulse {
  0%, 100% { text-decoration-color: rgba(249, 115, 22, 0); }
  50% { text-decoration-color: rgba(249, 115, 22, 1); }
}
.underline-pulse {
  position: relative;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  transition: color 0.3s ease;
}
.underline-pulse:hover {
  animation: underlinePulse 1.5s ease-in-out infinite;
}

/* ==========================================================================
 * Search demonstration section
 * This section provides a stylised search bar animation with results,
 * illustrating the site rising to the top of search results. Used across
 * all landing pages to reinforce trust and expertise.
 * ========================================================================== */
.search-demo {
  background: rgba(24,24,27,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 2rem;
  overflow: hidden;
}
.search-demo .search-bar {
  display: flex;
  align-items: center;
  background: rgba(12,12,14,0.8);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9999px;
  padding: 0.75rem 1rem;
}
.search-demo .search-term {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  color: #e5e5e5;
  font-weight: 600;
  font-size: 1rem;
}
.search-demo .search-term.typing::after {
  content: attr(data-text);
  animation: typing 5s steps(40) infinite;
}
@keyframes typing {
  0%,10% { width: 0; }
  40%,60% { width: 100%; }
  90%,100% { width: 0; }
}
.search-demo .search-results li {
  background: rgba(12,12,14,0.7);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: #e5e5e5;
}
.search-demo .search-results li.result-highlight {
  border-color: var(--fire-2);
  color: var(--fire-1);
  animation: rise 6s ease-in-out infinite;
}
@keyframes rise {
  0%,20% { transform: translateY(40px); opacity: 0; }
  30%,80% { transform: translateY(0); opacity: 1; }
  90%,100% { transform: translateY(-40px); opacity: 0; }
}

/* Custom colours for the homepage FAQ section
 * Adjust the background and text colours of the FAQ area to provide
 * improved contrast and highlight the questions and answers. */
#faq .glass-card {
  background: rgba(30,30,35,0.9) !important;
}
#faq .accordion-button {
  color: var(--fire-1);
}
#faq .accordion-icon {
  color: var(--fire-3);
}
#faq .accordion-answer {
  background: rgba(24,24,27,0.8);
  color: #d4d4d8;
}

/* ===========================================================================
 * Unique animations for specific landing pages
 * These classes introduce new imaginative animations to ensure each page feels
 * distinct and engaging. Each animation can be applied to hero images or
 * supplemental elements on the corresponding page. Feel free to combine
 * these with existing classes like `animate-float` or `animate-hue-rotate` for
 * even more dynamic effects.
 * ========================================================================== */

/* About page: rotate hero image slowly around the Y axis */
.animate-rotate-slow {
  animation: rotateY 12s linear infinite;
  transform-style: preserve-3d;
}
@keyframes rotateY {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* Services page: subtle pulse scaling effect */
.animate-pulse-scale {
  animation: pulseScale 8s ease-in-out infinite;
}
@keyframes pulseScale {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Pricing page: bar chart animation */
.bar-chart {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
  height: 140px;
  margin-bottom: 2rem;
}
.bar-chart .bar {
  width: 20px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--fire-3), var(--fire-1));
  animation: growBar 4s ease-out forwards;
  height: 0;
}
@keyframes growBar {
  from { height: 0; }
  to { height: var(--bar-height); }
}

/* Case studies page: horizontal progress bar */
.progress-bar {
  height: 12px;
  width: 100%;
  background: rgba(24,24,27,0.6);
  border-radius: 9999px;
  overflow: hidden;
  margin: 2rem 0;
}
.progress-bar .progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--fire-2), var(--fire-1));
  animation: fillProgress 6s ease-out forwards;
}
@keyframes fillProgress {
  from { width: 0; }
  to { width: 90%; }
}

/* Blog page: flip hero image on hover to reveal backside (interactive effect) */
.animate-flip {
  transition: transform 0.8s;
  transform-style: preserve-3d;
}
.animate-flip:hover {
  transform: rotateY(180deg);
}

/* FAQ page: bouncing question marks */
.faq-questions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.faq-questions .question-icon {
  font-size: 3rem;
  color: var(--fire-2);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

/* Contact page: sliding envelope icon */
.animate-slide-envelope {
  position: relative;
  animation: slideEnvelope 6s ease-in-out infinite;
}
@keyframes slideEnvelope {
  0% { transform: translateX(-120%); opacity: 0; }
  20%,80% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
