/*
Theme Name: IdeaFlicker Agency
Theme URI: http://ideaflicker.local
Author: Antigravity AI
Author URI: https://ideaflicker.local
Description: Ported React Theme to WordPress. Ultra-premium digital marketing agency theme.
Version: 2.0.0
Tags: dark-mode, custom-colors, two-columns, responsive-layout, portfolio
Text Domain: ideaflicker-agency
*/

/* Theme Core Variables: Light Mode (Default) */
:root {
  --background: hsl(0, 0%, 98%);
  --foreground: hsl(240, 10%, 8%);
  --border: hsl(240, 6%, 88%);
  --primary: hsl(15, 100%, 50%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(195, 100%, 38%);
  --accent: hsl(240, 5%, 92%);
  --card: hsl(0, 0%, 100%);
  --muted: hsl(240, 5%, 94%);
  --muted-foreground: hsl(240, 5%, 42%);
  
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  
  --radius: 0.5rem;
}

/* Theme Core Variables: Dark Mode */
html.dark {
  --background: hsl(240, 10%, 4%);
  --foreground: hsl(0, 0%, 98%);
  --border: hsl(240, 10%, 12%);
  --primary: hsl(15, 100%, 55%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(195, 100%, 50%);
  --accent: hsl(240, 10%, 12%);
  --card: hsl(240, 10%, 6%);
  --muted: hsl(240, 10%, 12%);
  --muted-foreground: hsl(240, 5%, 65%);
}

/* Base Rest */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-transparent { color: transparent; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.bg-gradient-primary { background-image: linear-gradient(to right, var(--primary), var(--secondary)); }
.text-muted { color: var(--muted-foreground); }
.font-heading { font-family: var(--font-heading); }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

/* Header Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
}
.nav-menu li a {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  color: var(--primary);
}

/* Footer Navigation Lists */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav-list li a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-nav-list li a:hover {
  color: var(--primary);
}

/* Footer Legal Links */
.footer-legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}
.footer-legal-list li a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-legal-list li a:hover {
  color: var(--foreground);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  font-size: 1.125rem;
  height: 3.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: hsla(15, 100%, 55%, 0.9);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--accent);
}

/* Layouts */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, hsla(15, 100%, 55%, 0.2), var(--background), var(--background));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: hsla(15, 100%, 55%, 0.1);
  color: var(--primary);
  border: 1px solid hsla(15, 100%, 55%, 0.2);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title { font-size: 4rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  max-width: 32rem;
  line-height: 1.625;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}

/* Image wrappers */
.hero-image-wrapper {
  position: relative;
  width: 100%;
}

.hero-image-container {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid hsla(15, 100%, 55%, 0.2);
  box-shadow: 0 0 60px rgba(255, 87, 34, 0.15);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(240, 10%, 4%, 0.6), transparent);
}

.live-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsla(240, 10%, 4%, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
}

.ping-wrapper { position: relative; display: flex; height: 0.625rem; width: 0.625rem; }
.ping-circle { position: absolute; height: 100%; width: 100%; border-radius: 9999px; background-color: var(--primary); animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; opacity: 0.75; }
.ping-dot { position: relative; display: inline-flex; border-radius: 9999px; height: 0.625rem; width: 0.625rem; background-color: var(--primary); }

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background-color: var(--card);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  z-index: 20;
}

.fb-1 { top: 2.5rem; left: -1rem; border: 1px solid hsla(15, 100%, 55%, 0.3); }
.fb-2 { bottom: 2.5rem; right: -1rem; border: 1px solid hsla(195, 100%, 50%, 0.3); }
.fb-3 { bottom: -1.25rem; left: 50%; transform: translateX(-50%); border: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; }

.fb-title { font-size: 0.75rem; color: var(--muted-foreground); display: flex; align-items: center; gap: 0.5rem; }
.fb-val { font-size: 1.5rem; font-weight: 700; font-family: var(--font-heading); }
.fb-val.primary { color: var(--primary); }
.fb-val.secondary { color: var(--secondary); }
.circle-icon { width: 2rem; height: 2rem; border-radius: 9999px; background-color: hsla(15, 100%, 55%, 0.15); display: flex; align-items: center; justify-content: center; color: var(--primary); }

/* Services Section */
.services-section {
  padding-top: 7rem;
  padding-bottom: 7rem;
  background-color: var(--card);
}

.services-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-header { flex-direction: row; align-items: flex-end; }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
}

.service-card:hover {
  border-color: hsla(15, 100%, 55%, 0.5);
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.08);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: hsla(15, 100%, 55%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  background-color: hsla(15, 100%, 55%, 0.2);
}

.service-title { font-size: 1.125rem; font-weight: 700; font-family: var(--font-heading); margin-bottom: 0.5rem; }
.service-desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.625; }

/* CTA Section */
.cta-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-color: hsla(15, 100%, 55%, 0.05);
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-title { font-size: 3rem; line-height: 1.1; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .cta-title { font-size: 3.75rem; } }

.cta-desc { font-size: 1.25rem; color: var(--muted-foreground); margin-bottom: 2.5rem; }

/* Header Site Navigation Overrides */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background: hsla(240, 10%, 4%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-logo { font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); letter-spacing: -0.5px; }

/* Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ----------------------------------
   Forms & Inputs (Shadcn Clone)
-------------------------------------*/
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.form-input, .form-textarea, .form-select {
  display: flex; height: 3rem; width: 100%; border-radius: 0.75rem;
  border: 1px solid var(--border); background-color: var(--background);
  padding: 0.5rem 1rem; font-size: 0.875rem; color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px hsla(15, 100%, 55%, 0.2);
}
.form-textarea { height: auto; min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* Cards & Layout Box */
.card-box {
  padding: 2rem; border-radius: 1.5rem; background-color: var(--card); border: 1px solid var(--border);
}
.icon-box {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background-color: hsla(15, 100%, 55%, 0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary);
}
.info-row { display: flex; gap: 1rem; padding: 1rem; border-radius: 0.75rem; background-color: var(--card); border: 1px solid var(--border); margin-bottom: 1.25rem; }

/* ----------------------------------
   Blog Post Grid
-------------------------------------*/
.blog-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  display: flex; flex-direction: column; border-radius: 1rem; background-color: var(--card);
  border: 1px solid var(--border); overflow: hidden; transition: border-color 0.3s;
}
.blog-card:hover { border-color: hsla(15, 100%, 55%, 0.4); }
.blog-card-img { width: 100%; height: 11rem; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card-img { transform: scale(1.05); }
.blog-card-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-title { font-size: 1.125rem; font-weight: 700; font-family: var(--font-heading); margin-bottom: 0.5rem; transition: color 0.2s; }
.blog-card:hover .blog-card-title { color: var(--primary); }
.blog-tag { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 500; color: var(--primary); background-color: hsla(15, 100%, 55%, 0.1); padding: 0.125rem 0.5rem; border-radius: 999px; }
.blog-meta-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT UTILITY CLASSES
   Use these in pages, shortcodes, or custom templates to create
   multi-column layouts quickly.
   ═══════════════════════════════════════════════════════════════ */

/* Two-column grid (equal) */
.if-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Two-column grid — content-heavy left, sidebar right */
.if-grid-2-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Three-column grid */
.if-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Four-column grid */
.if-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

/* Column cards — styled boxes for grid children */
.if-col-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: border-color 0.3s, transform 0.3s;
}
.if-col-card:hover {
  border-color: hsla(15, 100%, 55%, 0.4);
  transform: translateY(-2px);
}

/* Content columns — simple text side-by-side with vertical alignment */
.if-cols-center { align-items: center; }
.if-cols-top    { align-items: start; }
.if-cols-stretch { align-items: stretch; }
