/* ==========================================================================
   GEO-STYLES.CSS - Generative Engine Optimization Custom Stylesheet
   Local SEO Agency Ireland - Master SEO + AEO + GEO Compliant
   ========================================================================== */

/* -----------------------------
   Hero Word-Flip Carousel
   ----------------------------- */
.hero-carousel {
  display: inline-flex;
  flex-direction: column;
  height: 1.1em;
  overflow: hidden;
  vertical-align: top;
  position: relative;
  color: var(--flame, #ff6b1a);
}

.hero-carousel__inner {
  display: flex;
  flex-direction: column;
  animation: scroll-words 6s cubic-bezier(0.8, 0, 0.2, 1) infinite;
}

.hero-carousel__word {
  height: 1.1em;
  display: flex;
  align-items: center;
}

@keyframes scroll-words {
  0%, 22% { transform: translateY(0); }
  33%, 55% { transform: translateY(-1.1em); }
  66%, 88% { transform: translateY(-2.2em); }
  100% { transform: translateY(-3.3em); }
}

/* -----------------------------
   Bento Cards Animations
   ----------------------------- */
.bento-card {
  opacity: 0;
  animation: card-enter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.bento-card:nth-child(1) { animation-delay: 0.1s; }
.bento-card:nth-child(2) { animation-delay: 0.3s; }
.bento-card:nth-child(3) { animation-delay: 0.5s; }
.bento-card:nth-child(4) { animation-delay: 0.7s; }
.bento-card:nth-child(5) { animation-delay: 0.9s; }

@keyframes card-enter {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* -----------------------------
   Multi-AI Engine Stream Flow
   ----------------------------- */
.ai-flow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  position: relative;
}

.ai-platform {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.ai-platform svg {
  width: 20px;
  height: 20px;
}

.ai-brand-node {
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.08));
  border: 1px solid #10b981;
  border-radius: 24px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  z-index: 2;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
  white-space: nowrap;
}

.ai-stream-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.ai-stream-particle {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 2px;
  background: #10b981;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 5px #10b981);
  animation: stream-flow 2.5s infinite ease-in-out;
}
.ai-stream-particle:nth-child(2) { animation-delay: 0.8s; }
.ai-stream-particle:nth-child(3) { animation-delay: 1.6s; }

@keyframes stream-flow {
  0% { left: 5%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 95%; opacity: 0; }
}

/* -----------------------------
   Trust Metrics Animation
   ----------------------------- */
.trust-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}
.trust-metric { display: flex; flex-direction: column; gap: 6px; }
.trust-metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.trust-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}
.trust-bar-fill {
  height: 100%;
  background: #10b981;
  border-radius: 3px;
  width: 0%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.trust-metric:nth-child(1) .trust-bar-fill { animation: fill-bar-1 1.5s forwards ease-out 0.5s; }
.trust-metric:nth-child(2) .trust-bar-fill { animation: fill-bar-2 1.5s forwards ease-out 0.7s; }
.trust-metric:nth-child(3) .trust-bar-fill { animation: fill-bar-3 1.5s forwards ease-out 0.9s; }

@keyframes fill-bar-1 { to { width: 98%; } }
@keyframes fill-bar-2 { to { width: 95%; } }
@keyframes fill-bar-3 { to { width: 92%; } }

/* -----------------------------
   Processing Ring
   ----------------------------- */
.ai-process-ring {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-process-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: spin-slow 4s linear infinite;
}
.ai-process-svg circle {
  fill: none;
  stroke: rgba(16, 185, 129, 0.2);
  stroke-width: 4;
}
.ai-process-svg circle.progress {
  stroke: #10b981;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: stroke-fill 2s forwards ease-in-out 1.2s;
}
@keyframes stroke-fill { to { stroke-dashoffset: 0; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.ai-process-center {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-process-text {
  text-align: center;
  font-size: 12px;
  margin-top: 15px;
  color: #10b981;
  font-weight: 600;
  opacity: 0;
  animation: text-sequence 5s forwards 1.2s;
}
@keyframes text-sequence {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 1; }
}
.ai-process-text::after {
  content: "Analyzing Prompt...";
  animation: text-content-sequence 5s forwards 1.2s;
}
@keyframes text-content-sequence {
  0%, 30% { content: "Analyzing Prompt..."; }
  35%, 65% { content: "Extracting Entities..."; }
  70%, 100% { content: "✓ Cited as Top Source"; }
}

/* -----------------------------
   Chat Prompt & Generative Answer
   ----------------------------- */
.chat-interface {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.chat-prompt {
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 12px;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
  font-size: 13px;
  color: #334155;
  max-width: 90%;
}
.chat-answer {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 10px 12px;
  border-radius: 12px;
  border-bottom-left-radius: 2px;
  align-self: flex-start;
  font-size: 13px;
  color: #1a1a1a;
  max-width: 95%;
  opacity: 0;
  transform: translateY(10px);
  animation: chat-appear 0.5s forwards 3.2s;
}
@keyframes chat-appear {
  to { opacity: 1; transform: translateY(0); }
}
.chat-prompt span {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #334155;
  width: 0;
  vertical-align: bottom;
  animation: type-prompt 1.8s 0.8s steps(30, end) forwards, blink-caret 0.75s step-end infinite;
}
@keyframes type-prompt { to { width: 220px; } }
@keyframes blink-caret { from, to { border-color: transparent; } 50% { border-color: #334155; } }

.brand-highlight {
  background: #10b981;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}

/* -----------------------------
   LLM Knowledge Graph
   ----------------------------- */
.llm-graph {
  position: relative;
  width: 100%;
  height: 110px;
  margin-top: 10px;
}
.llm-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #eab308;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  animation: node-pulse 2s infinite alternate;
}
.node-brand { width: 44px; height: 44px; top: 33px; left: 5%; border-color: #10b981; z-index: 2; }
.node-content { width: 36px; height: 36px; top: 5px; left: 45%; z-index: 2; }
.node-schema { width: 36px; height: 36px; top: 69px; left: 45%; z-index: 2; }
.node-llm { width: 50px; height: 50px; top: 30px; right: 5%; background: #1a1a1a; color: #fff; border: none; z-index: 2; }

.llm-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.llm-edge path.active-edge {
  stroke: #10b981;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-edge 2s forwards ease-in-out 1.5s;
}
@keyframes draw-edge { to { stroke-dashoffset: 0; } }
@keyframes node-pulse { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }

/* -----------------------------
   Strict Zero-Underline SEO Links
   ----------------------------- */
.seo-inline-link {
  color: inherit;
  text-decoration: none !important;
  font-weight: 600;
  display: inline;
  transition: color 0.2s ease;
}
.seo-inline-link:hover {
  color: var(--flame, #ff6b1a) !important;
  text-decoration: none !important;
}

/* -----------------------------
   Section 1: Pillar Cards & High-Contrast Typography
   ----------------------------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.pillar-grid .card.pillar,
.pillar-grid .pillar,
.card.pillar {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  border-radius: 20px !important;
  padding: 36px 28px !important;
  color: #0a0a0a !important;
  position: relative;
}

.pillar-grid .card.pillar h3,
.card.pillar h3 {
  color: #0a0a0a !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  margin-bottom: 16px !important;
}

.pillar-grid .card.pillar p,
.card.pillar p {
  color: rgba(10, 10, 10, 0.75) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.pillar-grid .card.pillar ul,
.card.pillar ul {
  margin-top: 16px !important;
  padding: 0 !important;
  list-style: none !important;
}

.pillar-grid .card.pillar ul li,
.card.pillar ul li {
  color: #334155 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

.pillar-grid .card.pillar ul li strong,
.card.pillar ul li strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.pillar-grid .card.pillar .pnum,
.card.pillar .pnum {
  color: rgba(10, 10, 10, 0.35) !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  position: absolute;
  top: 24px;
  right: 24px;
}

/* -----------------------------
   Regional Cards (Ireland, UK, Europe)
   ----------------------------- */
.geo-region-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 20px !important;
  padding: 36px 30px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.geo-region-card:hover {
  transform: translateY(-6px) !important;
  border-color: var(--flame, #ff6b1a) !important;
  box-shadow: 0 20px 40px rgba(255, 107, 26, 0.08) !important;
}

.geo-flag-badge {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
}

.geo-region-card h3 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
  color: #0a0a0a !important;
}

.geo-region-card p {
  color: rgba(10, 10, 10, 0.75) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  margin-bottom: 20px !important;
}

.geo-region-card ul li {
  color: #1e293b !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* -----------------------------
   Traditional SEO vs. GEO Matrix Table
   ----------------------------- */
.geo-matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.geo-matrix-table th {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 700;
  background: #faf8f4;
  color: #0a0a0a !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.geo-matrix-table td {
  padding: 18px 24px;
  font-size: 14px;
  line-height: 1.65;
  color: #334155 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
}

.geo-matrix-table td strong {
  color: #0f172a !important;
}

.geo-matrix-table tr:last-child td {
  border-bottom: none;
}

/* -----------------------------
   Comprehensive Services Tabs & Panels
   ----------------------------- */
.services-tab-container {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 20px !important;
  padding: 36px !important;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.05) !important;
}

.services-tabs {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding-right: 24px;
  max-height: 600px;
  overflow-y: auto;
}

.service-tab {
  padding: 14px 18px;
  text-align: left;
  background: none;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569 !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-tab:hover {
  color: #0a0a0a !important;
  background: #f1f5f9 !important;
}

.service-tab.active {
  color: #ffffff !important;
  background: var(--flame, #ff6b1a) !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 107, 26, 0.25);
}

.services-content-panels {
  flex: 1;
  position: relative;
  min-height: 380px;
}

.service-panel {
  display: none;
  animation: fadeInPanel 0.4s ease forwards;
}

.service-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-panel h3 {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
  color: #0a0a0a !important;
}

.service-panel p {
  font-size: 1.05rem !important;
  color: rgba(10, 10, 10, 0.75) !important;
  margin-bottom: 28px !important;
  line-height: 1.65 !important;
}

.service-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-check-list li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  padding: 16px !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: #334155 !important;
}

.service-check-list li strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.service-check-list svg {
  flex-shrink: 0;
  color: var(--flame, #ff6b1a);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .services-tab-container {
    flex-direction: column;
    padding: 24px !important;
  }
  .services-tabs {
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-right: 0;
    padding-bottom: 20px;
    max-height: 300px;
  }
}

/* -----------------------------
   Timeline (4-Stage Blueprint)
   ----------------------------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: rgba(0, 0, 0, 0.08);
}

.timeline-item {
  display: flex;
  gap: 24px;
  position: relative;
}

.timeline-dot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--flame, #ff6b1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--flame, #ff6b1a);
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(255, 107, 26, 0.15);
}

.timeline-content {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding: 28px !important;
  border-radius: 16px !important;
  flex: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02) !important;
}

.timeline-content h4 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  color: #0a0a0a !important;
}

.timeline-content p {
  color: rgba(10, 10, 10, 0.75) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* -----------------------------
   KPIs Grid (Measurable ROI)
   ----------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}

@media (max-width: 991px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

.kpi-card {
  padding: 24px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  justify-content: flex-start !important;
  min-height: 140px !important;
}

.kpi-card svg {
  color: var(--flame, #ff6b1a) !important;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
}

.kpi-card h4 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  color: #0a0a0a !important;
  width: 100%;
}

/* -----------------------------
   Case Studies Grid
   ----------------------------- */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
}

.case-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 20px !important;
  padding: 36px 30px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-6px) !important;
  border-color: var(--flame, #ff6b1a) !important;
  box-shadow: 0 20px 40px rgba(255, 107, 26, 0.08) !important;
}

.case-metric {
  font-size: 3rem;
  font-weight: 800;
  color: var(--flame, #ff6b1a);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.case-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
  color: #0a0a0a !important;
}

.case-desc {
  color: rgba(10, 10, 10, 0.75) !important;
  line-height: 1.65 !important;
  font-size: 15px !important;
  margin-bottom: 24px !important;
  flex-grow: 1;
}

/* -----------------------------
   FAQ Accordion (Index Style)
   ----------------------------- */
.faq-section-index {
  background: #ffffff;
}

.faq-list {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.faq-row .q {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0a0a0a;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq-row:hover .q {
  color: var(--flame, #ff6b1a);
}

.faq-row.open .q {
  color: var(--flame, #ff6b1a);
  font-weight: 700;
}

.faq-row .plus {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  transition: all 0.3s ease;
}

.faq-row.open .plus {
  background: var(--flame, #ff6b1a);
  border-color: var(--flame, #ff6b1a);
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-answer {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0;
}

.faq-row.open + .faq-answer {
  padding-top: 16px;
  padding-bottom: 24px;
}
