/*
Theme Name: Aristotle Technologies
Theme URI: https://aristotletechnologies.com
Author: Aristotle Technologies B.V.
Author URI: https://aristotletechnologies.com
Description: Custom lightweight theme for Aristotle Technologies — cognitive training platform combining brain and body training.
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: aristotle
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --bg-primary: #fdfafc;
  --bg-secondary: #f6eef3;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFF5F5;
  --accent: #C91A89;
  --accent-soft: #e388c2;
  --accent-dim: #b51279;
  --accent-glow: rgba(219, 24, 147, 0.08);
  --accent-glow-strong: rgba(219, 24, 147, 0.14);
  --text-primary: #1A1525;
  --text-secondary: #6B6478;
  --text-muted: #9E96AB;
  --border: rgba(0,0,0,0.06);
  --border-accent: rgba(219, 24, 147, 0.18);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* Subtle noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.018'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  background: rgba(253, 250, 252, 0.85);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(219, 24, 147, 0.25);
}

.nav-logo-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  padding: 0.6rem 1.5rem !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(219, 24, 147, 0.25);
}

.nav-cta:hover {
  background: var(--accent-dim) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(219, 24, 147, 0.35);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(219, 24, 147, 0.25);
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(219, 24, 147, 0.35);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-bg-orb--1 {
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(219,24,147,0.1), transparent 70%);
  top: -15%; right: -8%;
  animation: float1 20s ease-in-out infinite;
}

.hero-bg-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,180,120,0.08), transparent 70%);
  bottom: 5%; left: -10%;
  animation: float2 25s ease-in-out infinite;
}

.hero-bg-orb--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(180,120,255,0.06), transparent 70%);
  top: 40%; right: 20%;
  animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.05); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.08); }
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, black, transparent);
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   SECTIONS SHARED
   ============================================ */
.section-padding {
  padding: 7rem 3rem;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 3.5rem;
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.brain-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brain-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(219, 24, 147, 0.12);
  animation: brainPulse 4s ease-in-out infinite;
}

.brain-circle:nth-child(1) { width: 120px; height: 120px; animation-delay: 0s; }
.brain-circle:nth-child(2) { width: 200px; height: 200px; animation-delay: 0.5s; }
.brain-circle:nth-child(3) { width: 280px; height: 280px; animation-delay: 1s; }
.brain-circle:nth-child(4) { width: 360px; height: 360px; animation-delay: 1.5s; }

@keyframes brainPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.brain-center {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), rgba(219,24,147,0.1));
  opacity: 0.7;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 30px rgba(219,24,147,0.15); }
  50% { box-shadow: 0 0 60px rgba(219,24,147,0.3); }
}

.brain-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  opacity: 0.5;
  letter-spacing: 0.05em;
}

.brain-label--left { left: 15%; top: 30%; }
.brain-label--right { right: 15%; top: 30%; }
.brain-label--bottom { bottom: 20%; left: 50%; transform: translateX(-50%); }

.about-text h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.about-text h2 em { color: var(--accent); font-style: italic; }

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================
   BENEFITS
   ============================================ */
.benefits {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefit-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: all 0.3s ease;
}

.benefit-item:last-child { border-bottom: none; }
.benefit-item:hover { padding-left: 1rem; }

.benefit-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.benefit-item:hover .benefit-num { opacity: 0.55; }

.benefit-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.benefit-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 600px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
  border-color: rgba(0,0,0,0.08);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2rem;
  font-style: italic;
  opacity: 0.85;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.25;
  line-height: 0;
  display: block;
  margin-bottom: 0.75rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   SECTORS
   ============================================ */
.sectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.sector-card {
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: var(--shadow-sm);
}

.sector-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.sector-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow-strong), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sector-card:hover::after { opacity: 1; }

.sector-emoji {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.sector-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.sector-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.sector-link {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  transition: gap 0.2s ease;
}

.sector-link:hover { gap: 0.75rem; }

/* ============================================
   PARTNERS
   ============================================ */
.partners {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 3.5rem;
  margin-top: 1rem;
}

.partner-logo {
  opacity: 0.45;
  transition: all 0.3s ease;
  height: 50px;
  display: flex;
  align-items: center;
}

.partner-logo:hover { opacity: 0.85; }

.partner-logo img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.partner-logo:hover img { filter: grayscale(0%); }

.partner-text {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-muted);
}

.partner-text:hover { color: var(--accent); }

/* ============================================
   FAQ
   ============================================ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
  background: var(--bg-card);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

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

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.75rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  font-size: 0.95rem;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(219,24,147,0.06), transparent);
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem;
  background: var(--bg-card);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.cta-inner h2 em { color: var(--accent); font-style: italic; }

.cta-inner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.cta-inner .btn-primary {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 4rem 3rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-socials a:hover { color: var(--accent); }

/* ============================================
   BLOG / ARCHIVE
   ============================================ */
.blog-header {
  padding-top: 8rem;
  padding-bottom: 2rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: var(--shadow-sm);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.post-card-thumb {
  height: 200px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-thumb img { transform: scale(1.05); }

.post-card-body {
  padding: 1.75rem;
}

.post-card-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.post-card-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.post-card-body h2 a { transition: color 0.2s; }
.post-card-body h2 a:hover { color: var(--accent); }

.post-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 300;
}

/* Single post */
.single-post-header {
  padding-top: 8rem;
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.single-post-header .post-card-meta {
  margin-bottom: 1rem;
}

.single-post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.single-post-content {
  max-width: 740px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.single-post-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.single-post-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

.single-post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.single-post-content img {
  border-radius: 16px;
  margin: 2rem 0;
}

.single-post-content a {
  color: var(--accent);
  text-decoration: underline;
}

.single-post-content ul,
.single-post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.single-post-content li {
  list-style: disc;
  margin-bottom: 0.5rem;
  font-weight: 300;
  line-height: 1.7;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a, .pagination span {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   PAGE 404
   ============================================ */
.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem;
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
}

.page-404 h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 1rem 0;
}

.page-404 p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .site-nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
  }

  .section-padding { padding: 4rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { height: 300px; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .benefit-item { grid-template-columns: 50px 1fr; gap: 1.5rem; }
  .benefit-num { font-size: 2rem; }
  .cta-inner { padding: 2.5rem 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .posts-grid { grid-template-columns: 1fr; }
}

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

/* WordPress-specific: hide admin bar gap */
body.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-nav { top: 46px; }
}

/* ============================================
   ELEMENTOR COMPATIBILITY
   ============================================ */

/* Full-width Elementor pages: remove any container constraints */
.page-template-template-fullwidth .elementor {
  width: 100%;
  max-width: 100%;
}

.page-template-template-fullwidth .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1200px;
}

.page-template-template-fullwidth .elementor-section.elementor-section-full_width > .elementor-container {
  max-width: 100%;
}

/* Ensure Elementor widgets inherit theme fonts */
.elementor-widget-text-editor,
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-body);
  color: var(--text-primary);
}

/* Elementor buttons can inherit theme style */
.elementor-button {
  font-family: var(--font-body);
}

/* Fix Elementor editor canvas padding */
body.elementor-editor-active main {
  padding-top: 0;
}
