/*
Theme Name: FlowMind AI
Theme URI: https://flowmindai.com
Author: FlowMind AI
Author URI: https://flowmindai.com
Description: Professional WordPress theme for FlowMind AI - AI-Powered Marketing & Automation agency. Includes dedicated service pages for n8n automation, AI Google Ads, AI Meta Ads, Make.com workflows, AI Chatbots, and custom AI agents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flowmind-ai
Tags: business, agency, ai, automation, marketing, one-page, custom-logo, custom-menu
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a1628;
  --deep-blue: #0f2042;
  --blue: #1a5cba;
  --blue-mid: #2e7de8;
  --blue-light: #4a9af5;
  --blue-pale: #e8f1fd;
  --accent-gold: #e8a838;
  --accent-orange: #f0862a;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gradient-blue: linear-gradient(135deg, #1a5cba 0%, #2e7de8 50%, #4a9af5 100%);
  --gradient-hero: linear-gradient(160deg, #0a1628 0%, #0f2042 40%, #1a3a6e 100%);
  --gradient-gold: linear-gradient(135deg, #e8a838 0%, #f0862a 100%);
  --shadow-sm: 0 1px 3px rgba(10,22,40,0.08);
  --shadow-md: 0 4px 20px rgba(10,22,40,0.1);
  --shadow-lg: 0 8px 40px rgba(10,22,40,0.12);
  --shadow-xl: 0 20px 60px rgba(10,22,40,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient-gold);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(232,168,56,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232,168,56,0.45);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo img {
  height: 42px;
  width: auto;
}
.site-logo .logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  transition: var(--transition);
}
.site-logo .logo-text span { color: var(--blue-light); }
.site-header.scrolled .site-logo .logo-text { color: var(--navy); }
.site-header.scrolled .site-logo .logo-text span { color: var(--blue); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 8px;
  transition: var(--transition);
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.site-header.scrolled .main-nav a { color: var(--gray-600); }
.site-header.scrolled .main-nav a:hover { color: var(--blue); background: var(--blue-pale); }

.nav-cta {
  background: var(--gradient-gold) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(232,168,56,0.4); }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.site-header.scrolled .menu-toggle span { background: var(--navy); }

/* ===== HERO ===== */
.hero {
  background: var(--gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,125,232,0.15) 0%, transparent 70%);
  top: -200px; right: -100px;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,168,56,0.1) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(46,125,232,0.15);
  border: 1px solid rgba(46,125,232,0.25);
  border-radius: 50px;
  color: var(--blue-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero h1 .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.8;
  animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeInUp 0.6s ease 0.4s both;
}
.hero-stat h3 {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 4px;
}
.hero-stat p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* ===== SECTION STYLING ===== */
.section {
  padding: 100px 0;
}
.section-light { background: var(--white); }
.section-gray { background: var(--gray-50); }
.section-dark {
  background: var(--gradient-hero);
  color: var(--white);
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-dark .section-label {
  background: rgba(46,125,232,0.2);
  color: var(--blue-light);
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}
.section-dark .section-header h2 { color: var(--white); }
.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
}
.section-dark .section-header p { color: rgba(255,255,255,0.6); }

/* ===== SERVICES GRID (Home) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-blue);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 64px; height: 64px;
  background: var(--blue-pale);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.8rem;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--gray-500);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.7;
}
.service-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link:hover { gap: 10px; }
.service-link svg { transition: var(--transition); }

/* ===== SERVICE PAGE TEMPLATE ===== */
.service-hero {
  background: var(--gradient-hero);
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.service-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46,125,232,0.12) 0%, transparent 70%);
  top: -150px; right: -100px;
  border-radius: 50%;
}
.service-hero .section-label { margin-bottom: 20px; }
.service-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.service-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative; z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.feature-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}
.feature-card .icon {
  width: 48px; height: 48px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue-pale);
  display: block;
  margin-bottom: 16px;
}
.process-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Pricing / CTA Banner */
.cta-banner {
  background: var(--gradient-blue);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  top: -100px; right: -50px;
  border-radius: 50%;
}
.cta-banner h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  font-size: 1.05rem;
  position: relative; z-index: 1;
}

/* ===== WHY CHOOSE US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}
.why-card .icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.why-card h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.why-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}
.testimonial-stars {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: 16px;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.7;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-info h5 {
  font-size: 0.92rem;
  color: var(--navy);
}
.testimonial-info span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--gray-500);
  margin-bottom: 36px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-detail .icon {
  width: 48px; height: 48px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-detail h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.contact-detail p, .contact-detail a {
  color: var(--gray-500);
  font-size: 0.9rem;
}
.contact-detail a:hover { color: var(--blue); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--gray-700);
  transition: var(--transition);
  background: var(--gray-50);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 4px rgba(46,125,232,0.1);
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-about .logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-about .logo-text span { color: var(--blue-light); }
.footer-about p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--blue);
  color: var(--white);
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  padding: 6px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--blue-light); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .main-nav.active { display: flex; }
  .main-nav a { color: var(--gray-700); padding: 12px 16px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  .section { padding: 60px 0; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 40px 24px; }
}
