/* ============================================
   FEVLY — Annuaire Événementiel Nantes
   Direction: Moderne & Vibrant
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* === VARIABLES === */
:root {
  --primary:        #FF5C5C;
  --primary-dark:   #E04848;
  --secondary:      #6C63FF;
  --secondary-dark: #574FD6;
  --accent:         #FFE14D;
  --dark:           #1A1A2E;
  --text:           #2D2D3F;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;
  --bg:             #FAFAFA;
  --bg-alt:         #F3F4F6;
  --white:          #FFFFFF;
  --border:         #E5E7EB;
  --border-light:   #F3F4F6;

  --gradient:          linear-gradient(135deg, #FF5C5C 0%, #6C63FF 100%);
  --gradient-subtle:   linear-gradient(135deg, rgba(255,92,92,0.06) 0%, rgba(108,99,255,0.06) 100%);
  --gradient-hero-bg:  linear-gradient(135deg, #1A1A2E 0%, #2D1B69 50%, #1A2E1A 100%);

  --shadow-xs:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-sm:  0 2px 10px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 30px rgba(0,0,0,0.1);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.12);
  --shadow-col: 0 8px 30px rgba(108,99,255,0.25);
  --shadow-red: 0 8px 30px rgba(255,92,92,0.3);

  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  --font-h: 'Space Grotesk', -apple-system, sans-serif;
  --font-b: 'Inter', -apple-system, sans-serif;

  --nav-h: 72px;
  --container: 1200px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
input, button, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

/* === LAYOUT === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { line-height: 1.75; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-header {
  max-width: 600px;
  margin-bottom: 52px;
}
.section-header.centered {
  margin: 0 auto 52px;
  text-align: center;
}
.section-header p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,92,92,0.35);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--primary); background: rgba(255,92,92,0.06); }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* === BADGES / TAGS === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-h);
}
.badge-primary { background: rgba(255,92,92,0.12); color: var(--primary); }
.badge-secondary { background: rgba(108,99,255,0.12); color: var(--secondary); }
.badge-dark { background: var(--dark); color: var(--white); }
.badge-accent { background: var(--accent); color: var(--dark); }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.nav.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark);
}
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}
.nav-logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--dark);
  background: var(--bg-alt);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  color: var(--dark);
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s;
  border-radius: 2px;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  padding: 20px 24px 32px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 999;
  flex-direction: column;
  gap: 8px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}
.nav-mobile a:hover { background: var(--gradient-subtle); color: var(--primary); }
.nav-mobile .btn { width: 100%; margin-top: 8px; }

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero-bg);
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 500px at 20% 50%, rgba(255,92,92,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 80% 30%, rgba(108,99,255,0.22) 0%, transparent 70%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}
.hero-blob-1 {
  width: 400px; height: 400px;
  background: var(--primary);
  top: 10%; right: 5%;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 300px; height: 300px;
  background: var(--secondary);
  bottom: 10%; left: 5%;
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.9);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: brightness(1.8) saturate(1.2);
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  max-width: 520px;
}

/* Search Bar */
.search-bar {
  display: flex;
  background: var(--white);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 24px;
  box-shadow: var(--shadow-lg);
  max-width: 580px;
  gap: 8px;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text);
}
.search-bar input::placeholder { color: var(--text-light); }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.hero-chip:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
  transform: translateY(-1px);
}

.hero-image-side {
  position: relative;
  z-index: 1;
}

/* === STATS BAR === */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {
  padding: 8px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === CARDS === */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* Company Card */
.company-card {
  display: flex;
  flex-direction: column;
}
.company-card-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.company-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  font-family: var(--font-h);
  font-weight: 700;
  color: var(--white);
}
.company-card-body { padding: 16px 24px 24px; flex: 1; }
.company-card-body h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--dark); }
.company-card-body p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.company-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.company-meta span { display: flex; align-items: center; gap: 4px; }
.company-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stars { color: var(--accent); font-size: 0.85rem; }
.star-filled { color: #F59E0B; }

/* Category Card */
.cat-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.cat-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card h3 { font-size: 1rem; color: var(--dark); }
.cat-count { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.cat-arrow { margin-top: auto; color: var(--text-light); font-size: 0.85rem; font-weight: 500; transition: gap 0.2s; display: flex; align-items: center; gap: 4px; }
.cat-card:hover .cat-arrow { color: var(--primary); gap: 8px; }

/* Blog Card */
.blog-card { display: flex; flex-direction: column; }
.blog-card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.8rem; color: var(--text-muted); }
.blog-meta .category { color: var(--primary); font-weight: 600; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.blog-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border-light); }
.blog-author { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.author-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: white; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }

/* === HOW IT WORKS === */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0.2;
}
.step {
  text-align: center;
  padding: 32px 24px;
}
.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-red);
}
.step h3 { margin-bottom: 10px; font-size: 1.1rem; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* === CTA BANNER === */
.cta-banner {
  background: var(--gradient);
  border-radius: var(--r-xl);
  padding: 60px 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner h2 { color: var(--white); position: relative; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 32px; position: relative; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-white { position: relative; }
.cta-banner .cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* === GRID SYSTEMS === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* === FILTERS (Annuaire) === */
.filters-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.filter-chip {
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(255,92,92,0.06); }
.filter-chip.active { background: var(--gradient); color: var(--white); border-color: transparent; }
.filters-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border-radius: var(--r-full);
  padding: 8px 16px;
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
}
.filters-search:focus-within { border-color: var(--secondary); background: var(--white); }
.filters-search input { border: none; outline: none; background: transparent; font-size: 0.875rem; width: 180px; color: var(--text); }
.filters-search input::placeholder { color: var(--text-light); }

/* === PAGE HERO (subpages) === */
.page-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 48px) 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 80% 50%, rgba(108,99,255,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 20% 80%, rgba(255,92,92,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 520px; font-size: 1.05rem; }

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span.sep { opacity: 0.4; }

/* === PRESTATAIRE DETAIL === */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.detail-main {}
.detail-sidebar {}

.contact-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.contact-card-header {
  background: var(--gradient);
  padding: 28px 24px;
  color: var(--white);
  text-align: center;
}
.contact-card-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 12px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}
.contact-card-header h2 { color: var(--white); font-size: 1.2rem; margin-bottom: 4px; }
.contact-card-header .cat-badge { background: rgba(255,255,255,0.2); color: white; font-size: 0.78rem; padding: 3px 12px; border-radius: var(--r-full); display: inline-block; margin-top: 4px; }
.contact-card-body { padding: 24px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-info-icon.phone { background: rgba(16,185,129,0.1); }
.contact-info-icon.email { background: rgba(108,99,255,0.1); }
.contact-info-icon.location { background: rgba(255,92,92,0.1); }
.contact-info-text small { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-info-text a { font-weight: 500; color: var(--dark); }
.contact-info-text a:hover { color: var(--primary); }
.contact-card-actions { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 8px; }

.services-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.service-tag {
  padding: 6px 14px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--secondary);
}

/* Detail sections */
.detail-section { margin-bottom: 40px; }
.detail-section h2 { font-size: 1.3rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }

/* === BLOG ARTICLE === */
.article-header { padding: calc(var(--nav-h) + 48px) 0 60px; background: var(--dark); position: relative; overflow: hidden; }
.article-header::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 600px 400px at 70% 50%, rgba(108,99,255,0.25) 0%, transparent 70%); pointer-events: none; }
.article-header .container { position: relative; z-index: 1; }
.article-header h1 { color: var(--white); max-width: 760px; }
.article-meta { display: flex; align-items: center; gap: 20px; margin: 20px 0 0; flex-wrap: wrap; }
.article-meta span { color: rgba(255,255,255,0.55); font-size: 0.85rem; }
.article-meta .cat-tag { background: var(--primary); color: white; padding: 4px 14px; border-radius: var(--r-full); font-size: 0.8rem; font-weight: 600; }
.article-body { max-width: 760px; margin: 0 auto; padding: 60px 0; }
.article-body h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.article-body h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.article-body p { margin-bottom: 20px; color: var(--text); line-height: 1.8; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; line-height: 1.7; color: var(--text); }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: rgba(255,92,92,0.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-tip {
  background: var(--gradient-subtle);
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.article-tip strong { color: var(--secondary); display: block; margin-bottom: 6px; }

/* === FOOTER === */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 16px; display: inline-flex; }
.footer-brand .nav-logo span { -webkit-text-fill-color: unset; background: none; color: var(--white); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  color: rgba(255,255,255,0.6);
}
.footer-social:hover { background: var(--gradient); color: var(--white); }
.footer-col h4 { font-family: var(--font-h); font-weight: 600; color: var(--white); margin-bottom: 20px; font-size: 0.95rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); }
.footer-bottom-links a:hover { color: var(--white); }

/* === NEWSLETTER BAR === */
.newsletter-section { background: var(--gradient-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.newsletter-text h3 { font-size: 1.2rem; margin-bottom: 6px; }
.newsletter-text p { font-size: 0.9rem; color: var(--text-muted); }
.newsletter-form {
  display: flex;
  gap: 8px;
  background: var(--white);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  transition: border-color 0.2s;
  min-width: 340px;
}
.newsletter-form:focus-within { border-color: var(--secondary); }
.newsletter-form input { flex: 1; border: none; outline: none; background: transparent; font-size: 0.9rem; color: var(--text); }
.newsletter-form input::placeholder { color: var(--text-light); }

/* === UTILITY === */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 56px 0; }
  .section-lg { padding: 80px 0; }

  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding: calc(var(--nav-h) + 40px) 0 60px; }
  .hero-blob { display: none; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .steps-grid::before { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .filters-bar { flex-direction: column; align-items: stretch; }
  .filters-search { margin-left: 0; width: 100%; }
  .filters-search input { width: 100%; }

  .cta-banner { padding: 40px 24px; border-radius: var(--r-lg); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .newsletter-inner { flex-direction: column; gap: 20px; }
  .newsletter-form { min-width: 0; width: 100%; }

  .search-bar { flex-direction: column; border-radius: var(--r-lg); padding: 12px; gap: 8px; }
  .search-bar .btn { width: 100%; border-radius: var(--r-md); }

  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-chips { gap: 6px; }
  .hero-chip { font-size: 0.78rem; padding: 6px 12px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { border-right: 1px solid var(--border); padding: 16px 8px; }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.5s ease forwards; }

/* Loading / empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state .emoji { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; color: var(--text); }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-col);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
  z-index: 999;
  font-size: 1rem;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); }
