/*
Theme Name:   Arshinnef Child
Theme URI:    https://arshinnef.com
Description:  Crafto child theme for Arshin Nefasati's portfolio. Light, minimal, AI-focused. ForAI design system applied.
Author:       Arshin Nefasati
Author URI:   https://arshinnef.com
Template:     crafto
Version:      2.1.0
Text Domain:  arshinnef-child
*/

/* =========================================================
   GOOGLE FONTS — Funnel Display + Geist
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300;400;500&family=Geist:wght@400;500;700&display=swap');

/* =========================================================
   DESIGN TOKENS — ForAI light palette
   ========================================================= */

:root {
  --bg:           #ffffff;
  --bg-soft:      #f5f5f5;
  --bg-card:      #fafafa;
  --border:       #e5e5e5;
  --text:         #111111;
  --muted:        #666666;
  --accent:       #5b3ff8;
  --accent-soft:  #7c5cff;
  --accent-glow:  rgba(91, 63, 248, 0.15);
  --font:         'Geist', system-ui, -apple-system, sans-serif;
  --font-display: 'Funnel Display', system-ui, sans-serif;
  --radius-sm:    8px;
  --radius-card:  12px;
  --radius-lg:    40px;
  --radius-pill:  48px;
  --container:    1200px;
  --nav-height:   72px;

  /* Legacy aliases — keep existing components working */
  --card:         var(--bg-card);
  --radius:       var(--radius-card);
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card:  0 1px 3px rgba(0,0,0,0.08), 0 0 0 1px var(--border);
  --shadow-lift:  0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(91,63,248,0.1);
  --shadow-glow:  0 0 40px var(--accent-glow);
}

/* =========================================================
   GLOBAL RESET + BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.24em;
  letter-spacing: -0.032em;
  color: var(--text);
  background: var(--bg);
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
  margin: 0;
  padding: 0;
}

/* Strip Crafto's default backgrounds — inherit white from body */
.body-wrapper,
#wrapper,
.main-wrapper,
.page-wrapper,
section,
.section-padding {
  background-color: transparent !important;
}

/* =========================================================
   TYPOGRAPHY — ForAI scale
   ========================================================= */

h1 {
  font-family: var(--font-display) !important;
  font-weight: 300;
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -0.024em;
  line-height: 1.0em;
  color: var(--text) !important;
}

h2 {
  font-family: var(--font-display) !important;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.024em;
  line-height: 1.05em;
  color: var(--text) !important;
}

h3 {
  font-family: var(--font-display) !important;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.024em;
  line-height: 1.1em;
  color: var(--text) !important;
}

h4, h5, h6 {
  font-family: var(--font) !important;
  color: var(--text) !important;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}

h4 { font-size: 1.1rem; }
h5 { font-size: 0.9375rem; }
h6 { font-size: 0.875rem; }

p {
  color: var(--muted) !important;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent); }

strong { color: var(--text); font-weight: 600; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

/* =========================================================
   NAVIGATION — ForAI style
   ========================================================= */

.an-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.an-nav-wrap.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.an-nav {
  height: var(--nav-height);
  padding: 0 1rem;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.an-nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 0.84em;
  color: var(--muted);
  transition: color 0.2s;
  text-decoration: none;
}

.an-nav-link:hover,
.an-nav-link.active {
  color: var(--text);
}

/* Crafto header overrides — light */
#header,
#an-header,
.site-header,
.header-nav,
.navbar,
nav.navbar {
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition) !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0 !important;
}

.header-scrolled #header,
.header-scrolled #an-header,
.header-scrolled .site-header,
body.scrolled #header,
body.scrolled #an-header,
body.scrolled .site-header,
#header.sticky,
#an-header.sticky,
.site-header.sticky,
.sticky-header {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--border) !important;
  border-bottom-color: var(--border) !important;
  padding: 0.875rem 0 !important;
}

.navbar-nav .nav-link,
.navigation-menu a,
nav ul li a {
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  transition: color var(--transition) !important;
  padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover,
.navigation-menu a:hover,
nav ul li a:hover,
.navbar-nav .nav-link.active,
nav ul li.current-menu-item a {
  color: var(--text) !important;
}

.navbar-brand,
.logo img,
.site-logo {
  filter: none;
}

/* =========================================================
   SITE HEADER / LOGO (custom)
   ========================================================= */

.an-site-logo {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text) !important;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.an-site-logo span {
  color: var(--accent);
}

/* =========================================================
   BUTTONS — ForAI pill style
   ========================================================= */

.an-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: var(--font);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.an-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease !important;
  text-decoration: none;
  font-family: var(--font);
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}

.an-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px var(--accent-glow) !important;
  color: #fff !important;
}

.an-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  font-family: var(--font);
}

.an-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft) !important;
  transform: translateY(-2px);
}

/* Crafto button overrides */
.btn,
button[type="submit"] {
  font-family: var(--font) !important;
}

/* =========================================================
   CONTAINER & LAYOUT
   ========================================================= */

.an-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.an-container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.an-section {
  padding: 96px 0;
  background: transparent;
}

.an-section-alt {
  padding: 96px 0;
  background: var(--bg-soft);
}

.an-section-header {
  margin-bottom: 3.5rem;
}

.an-section-header h2 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.an-section-header p {
  max-width: 55ch;
}

.an-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 180px 0 96px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.an-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(91,63,248,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.an-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.an-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.an-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.an-hero h1 {
  font-size: clamp(48px, 8vw, 96px) !important;
  font-family: var(--font-display) !important;
  font-weight: 300;
  line-height: 1.0em;
  letter-spacing: -0.024em;
  color: var(--text) !important;
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.an-hero h1 .accent {
  color: var(--accent-soft);
  display: block;
}

.an-hero-sub {
  font-size: clamp(14px, 2vw, 18px) !important;
  color: var(--muted) !important;
  max-width: 56ch;
  margin-bottom: 3rem !important;
  line-height: 1.65;
}

.an-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* =========================================================
   CARDS — ForAI large radius
   ========================================================= */

.an-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.an-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px -20px var(--accent-glow);
}

.an-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.an-card-featured {
  border-radius: var(--radius-lg);
}

.an-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(91,63,248,0.08);
  border: 1px solid rgba(91,63,248,0.15);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
}

.an-card h3 {
  font-size: clamp(18px, 2vw, 24px) !important;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.an-card p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.an-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.an-card-metric {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(91,63,248,0.08);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.625rem;
}

/* =========================================================
   METRICS STRIP — ForAI style
   ========================================================= */

.an-metrics {
  background: #f5f5f5;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
}

.an-metric {
  flex: 1;
  min-width: 120px;
  padding: 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.an-metric:last-child {
  border-right: none;
}

.an-metric-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 300;
  letter-spacing: -0.024em;
  color: var(--text);
}

.an-metric-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* Legacy metric classes (preserve existing markup) */
.an-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
}

.an-metric-item {
  padding: 1.75rem 2rem;
  text-align: left;
  border-right: 1px solid var(--border);
  position: relative;
}

.an-metric-item:last-child {
  border-right: none;
}

.an-metric-number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.375rem;
  display: block;
}

.an-metric-number.accent {
  color: var(--accent-soft);
}

/* =========================================================
   CHIP / TAG PILLS
   ========================================================= */

.an-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(91, 63, 248, 0.08);
  color: var(--accent);
  border: 1px solid rgba(91, 63, 248, 0.15);
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.an-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.an-reveal.in {
  opacity: 1;
  transform: none;
}

/* Legacy fade-in from old scroll observer */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   GRID HELPERS
   ========================================================= */

.an-grid {
  display: grid;
  gap: 1.5rem;
}

.an-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.an-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.an-grid-4 { grid-template-columns: repeat(4, 1fr); }

.an-grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

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

@media (max-width: 900px) {
  .an-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .an-grid-auto { grid-template-columns: 1fr; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .an-grid-3,
  .an-grid-auto {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   FEATURED PROJECT (hero card)
   ========================================================= */

.an-featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.an-featured-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(91,63,248,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.an-featured-card:hover {
  border-color: rgba(91,63,248,0.2);
  box-shadow: var(--shadow-lift);
}

.an-featured-card .an-card-tag {
  margin-bottom: 1rem;
}

.an-featured-card h2 {
  font-size: clamp(24px, 3vw, 40px) !important;
  margin-bottom: 1rem;
  margin-top: 0;
}

.an-featured-card p {
  font-size: 14px;
  margin-bottom: 1.5rem;
}

.an-featured-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.an-featured-metric {
  background: rgba(91,63,248,0.05);
  border: 1px solid rgba(91,63,248,0.1);
  border-radius: var(--radius-card);
  padding: 1.25rem;
}

.an-featured-metric .number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-soft);
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.an-featured-metric .label {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .an-featured-card {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }
}

/* =========================================================
   MODULE TAGS
   ========================================================= */

.an-module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.an-module-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.625rem;
  transition: all var(--transition);
}

.an-module-tag:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* =========================================================
   CASE STUDY PAGE HEADER
   ========================================================= */

.an-page-hero {
  padding: 9rem 0 5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.an-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(91,63,248,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.an-page-hero h1 {
  font-size: clamp(36px, 5vw, 60px) !important;
  max-width: 18ch;
}

.an-page-hero p {
  font-size: 1.125rem !important;
  max-width: 58ch;
  margin-top: 1rem;
}

/* =========================================================
   CAREER TIMELINE
   ========================================================= */

.an-timeline {
  position: relative;
  padding-left: 2rem;
}

.an-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.an-timeline-item {
  position: relative;
  padding: 0 0 3rem 2rem;
}

.an-timeline-item::before {
  content: '';
  position: absolute;
  left: -0.3125rem;
  top: 0.4375rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.an-timeline-period {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.375rem;
  display: block;
}

.an-timeline-title {
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.an-timeline-company {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0.875rem;
  display: block;
}

.an-timeline-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* =========================================================
   SKILLS SECTION
   ========================================================= */

.an-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.an-skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.an-skill-group h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.875rem;
}

.an-skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.an-skill-list li {
  font-size: 14px;
  color: var(--muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color var(--transition);
}

.an-skill-list li:last-child { border-bottom: none; }
.an-skill-list li:hover { color: var(--text); }

/* =========================================================
   AWARDS / BADGES
   ========================================================= */

.an-award-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(91,63,248,0.07);
  border: 1px solid rgba(91,63,248,0.15);
  border-radius: var(--radius-card);
  padding: 0.75rem 1.25rem;
  margin: 0.375rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: all var(--transition);
}

.an-award-badge:hover {
  background: rgba(91,63,248,0.12);
  border-color: var(--accent);
}

.an-award-badge .icon {
  font-size: 1.125rem;
}

/* =========================================================
   STATS ROW
   ========================================================= */

.an-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.an-stat {
  flex: 1;
  min-width: 140px;
}

.an-stat .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

.an-stat .label {
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */

.an-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .an-contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.an-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.an-contact-info-item:last-child { border-bottom: none; }

.an-contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(91,63,248,0.08);
  border: 1px solid rgba(91,63,248,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.an-contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

.an-contact-value {
  font-size: 14px;
  color: var(--text);
  display: block;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */

.an-form-group {
  margin-bottom: 1.5rem;
}

.an-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.an-form-group input,
.an-form-group textarea,
.an-form-group select {
  width: 100%;
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text) !important;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.an-form-group input:focus,
.an-form-group textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.an-form-group input::placeholder,
.an-form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.an-form-group textarea {
  min-height: 160px;
  resize: vertical;
}

/* WP default form compatibility */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

/* =========================================================
   FOOTER — ForAI style
   ========================================================= */

.an-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  font-size: 12px;
  color: var(--muted);
}

.an-footer-link {
  color: var(--muted);
  transition: color 0.2s;
  text-decoration: none;
}

.an-footer-link:hover {
  color: var(--accent-soft);
}

/* Crafto footer overrides */
#footer,
footer,
.site-footer {
  background: var(--bg-soft) !important;
  border-top: 1px solid var(--border) !important;
  padding: 2.5rem 0 !important;
  color: var(--muted) !important;
}

.an-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.an-footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.an-footer-logo span { color: var(--accent); }

.an-footer-copy {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.an-footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.an-footer-links a {
  font-size: 12px;
  color: var(--muted);
  transition: color var(--transition);
}

.an-footer-links a:hover { color: var(--accent-soft); }

/* =========================================================
   CRAFTO OVERRIDES — kill default light styling
   ========================================================= */

.crafto-section,
.crafto-row,
[class*="section-"] {
  background-color: transparent !important;
}

.crafto-heading,
.heading-style,
.title-style {
  color: var(--text) !important;
  font-family: var(--font-display) !important;
}

.text-gradient,
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.box-shadow,
.crafto-box {
  box-shadow: var(--shadow-card) !important;
  background: #ffffff !important;
  border-color: var(--border) !important;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #cccccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =========================================================
   SELECTION
   ========================================================= */

::selection {
  background: rgba(91,63,248,0.12);
  color: var(--text);
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */

.text-accent   { color: var(--accent) !important; }
.text-muted    { color: var(--muted) !important; }
.text-soft     { color: var(--accent-soft) !important; }

.bg-card       { background: var(--bg-card) !important; }
.bg-soft       { background: var(--bg-soft) !important; }

.border-subtle { border: 1px solid var(--border) !important; }

.rounded       { border-radius: var(--radius-card) !important; }
.rounded-sm    { border-radius: var(--radius-sm) !important; }
.rounded-lg    { border-radius: var(--radius-lg) !important; }
.rounded-pill  { border-radius: var(--radius-pill) !important; }

.mt-0  { margin-top: 0 !important; }
.mb-0  { margin-bottom: 0 !important; }

.d-flex        { display: flex !important; }
.align-center  { align-items: center !important; }
.gap-1         { gap: 0.5rem !important; }
.gap-2         { gap: 1rem !important; }
.gap-3         { gap: 1.5rem !important; }

/* =========================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================= */

@media (max-width: 768px) {
  .an-hero       { padding: 120px 0 64px; }
  .an-section,
  .an-section-alt { padding: 64px 0; }
  .an-container,
  .an-container-wide { padding: 0 1rem; }
  .an-metrics    { flex-direction: column; }
  .an-metric     { border-right: none; border-bottom: 1px solid var(--border); }
  .an-metric:last-child { border-bottom: none; }
  .an-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .an-metric-item { border-right: none; border-bottom: 1px solid var(--border); }
  .an-metric-item:nth-child(odd) { border-right: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .an-metrics-grid { grid-template-columns: 1fr; }
  .an-metric-item  { border-right: none; }
  .an-hero h1      { font-size: 3rem !important; }
  .an-hero-cta     { flex-direction: column; align-items: flex-start; }
}

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

/* Let Elementor sections use full width */
.elementor-section-boxed > .elementor-container {
  max-width: var(--container);
}

/* Elementor text inherits theme typography */
.elementor-widget-text-editor p {
  color: var(--muted);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
}

.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.024em;
}

/* Elementor buttons inherit pill style */
.elementor-button {
  border-radius: var(--radius-pill) !important;
  font-family: var(--font) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

/* Elementor sections background default */
.elementor-section {
  background-color: transparent;
}

/* Elementor inner sections */
.elementor-inner-section {
  background-color: transparent;
}

/* Make Elementor page content area push below fixed header */
.elementor-page .an-main-content,
body.elementor-page main {
  padding-top: var(--nav-height);
}

/* Elementor column gap reset */
.elementor-column-gap-default > .elementor-column > .elementor-column-wrap > .elementor-widget-wrap {
  padding: 10px;
}
