/*
Theme Name: Prosper Management
Theme URI: https://prosper-management.lovable.app
Author: Robin Lenormand
Author URI: https://prosper-management.lovable.app
Description: Theme custom pour Prosper Management — Conseil industriel freelance base a Toulon (Var). Performance industrielle, interventions en France et a l'international.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prosper-management
*/

/* ============================================================
   CSS Custom Properties (from Tailwind design tokens)
   ============================================================ */
:root {
  --background: 0 0% 96%;
  --foreground: 0 0% 9%;
  --card: 0 0% 98%;
  --card-foreground: 0 0% 9%;
  --popover: 0 0% 89%;
  --popover-foreground: 0 0% 9%;
  --primary: 243 75% 58%;
  --primary-foreground: 225 100% 96%;
  --secondary: 0 0% 32%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 63%;
  --muted-foreground: 0 0% 9%;
  --accent: 250 100% 97%;
  --accent-foreground: 258 89% 66%;
  --destructive: 0 72% 50%;
  --destructive-foreground: 0 85% 97%;
  --border: 0 0% 83%;
  --input: 0 0% 83%;
  --ring: 243 75% 58%;
  --radius: 1.25rem;
}

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

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

body {
  font-family: 'Lato', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   Container
   ============================================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ============================================================
   Header — Fixed navbar
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  background-color: hsl(var(--background) / 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.header-logo img {
  height: 2rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: hsl(var(--primary));
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  background-color: hsl(var(--primary));
  padding: 0.5rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.2);
}

.btn-primary-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground));
  padding: 0.25rem;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  border-top: 1px solid hsl(var(--border) / 0.5);
  background-color: hsl(var(--background));
  padding: 1rem 1rem 1.5rem;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-links .nav-link {
  font-size: 1rem;
}

.mobile-nav-links .btn-primary {
  margin-top: 0.5rem;
  padding: 0.625rem 1.25rem;
  text-align: center;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
}

.hero-bg-pattern-inner {
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(30deg, hsl(var(--primary)) 12%, transparent 12.5%, transparent 87%, hsl(var(--primary)) 87.5%, hsl(var(--primary))),
    linear-gradient(150deg, hsl(var(--primary)) 12%, transparent 12.5%, transparent 87%, hsl(var(--primary)) 87.5%, hsl(var(--primary))),
    linear-gradient(30deg, hsl(var(--primary)) 12%, transparent 12.5%, transparent 87%, hsl(var(--primary)) 87.5%, hsl(var(--primary))),
    linear-gradient(150deg, hsl(var(--primary)) 12%, transparent 12.5%, transparent 87%, hsl(var(--primary)) 87.5%, hsl(var(--primary)));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsl(var(--secondary) / 0.3), transparent, hsl(var(--background)));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
}

.hero-eyebrow {
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--primary));
}

.hero-title {
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.hero-title .accent {
  color: hsl(var(--primary));
}

.hero-subtitle {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: hsl(var(--muted-foreground));
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   Section Common Styles
   ============================================================ */
.section {
  padding: 5rem 0;
}

.section-alt {
  border-top: 1px solid hsl(var(--border) / 0.5);
  background-color: hsl(var(--card));
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(var(--primary));
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

/* ============================================================
   About Section
   ============================================================ */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-photo-wrapper {
  display: flex;
  justify-content: center;
}

.about-photo-container {
  position: relative;
}

.about-photo-glow {
  position: absolute;
  inset: -4px;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.4), hsl(var(--accent) / 0.4));
  filter: blur(4px);
}

.about-photo {
  position: relative;
  width: 18rem;
  height: 18rem;
  border-radius: 1rem;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 1px 3px hsl(0 0% 0% / 0.25);
}

.about-eyebrow {
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(var(--primary));
}

.about-name {
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.about-text {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.about-text:last-of-type {
  margin-bottom: 1.5rem;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.5);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.badge svg {
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.375rem;
  background-color: hsl(var(--primary) / 0.1);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

.cert-badge svg {
  flex-shrink: 0;
}

/* ============================================================
   Expertise Section (6-card grid)
   ============================================================ */
.expertise-grid {
  display: grid;
  gap: 1.5rem;
}

.expertise-card {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border) / 0.5);
  background-color: hsl(var(--background));
  padding: 1.5rem;
  transition: all 0.3s;
}

.expertise-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.05);
  transform: translateY(-6px);
}

.expertise-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  margin-bottom: 1rem;
  color: hsl(var(--primary));
}

.expertise-icon svg {
  width: 24px;
  height: 24px;
}

.expertise-card h4 {
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.expertise-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   Key Stats Section (animated counters)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border) / 0.5);
  background-color: hsl(var(--card));
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-value {
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   Clients Section (category cards)
   ============================================================ */
.clients-grid {
  display: grid;
  gap: 2rem;
}

.client-card {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border) / 0.5);
  background-color: hsl(var(--background));
  padding: 1.5rem;
}

.client-card h4 {
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--primary));
}

.client-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.client-badge {
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border) / 0.5);
  background-color: hsl(var(--muted) / 0.3);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* ============================================================
   Sectors Section (icon grid)
   ============================================================ */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.sector-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border) / 0.3);
  background-color: hsl(var(--card) / 0.5);
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}

.sector-item:hover {
  border-color: hsl(var(--primary) / 0.3);
  transform: scale(1.08) translateY(-4px);
}

.sector-item svg {
  color: hsl(var(--primary));
  width: 28px;
  height: 28px;
}

.sector-item span {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

/* Tooltip on hover */
.sector-item[data-projects]::after {
  content: attr(data-projects);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
}

.sector-item[data-projects]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact-grid {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.contact-info .subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border) / 0.5);
  background-color: hsl(var(--background));
  padding: 1rem;
  transition: border-color 0.2s;
}

.contact-card:hover {
  border-color: hsl(var(--primary) / 0.3);
}

.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 18px;
  height: 18px;
}

.contact-card-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.contact-card-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: hsl(var(--foreground));
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary));
}

.contact-form textarea {
  resize: none;
  min-height: 8rem;
}

/* CF7 integration */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: hsl(var(--foreground));
  transition: border-color 0.2s;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary));
}

.wpcf7 textarea {
  resize: none;
  min-height: 8rem;
}

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary));
  padding: 0.75rem 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.wpcf7 input[type="submit"]:hover {
  background-color: hsl(var(--primary) / 0.9);
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.2);
}

.wpcf7-response-output {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Success state */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--primary) / 0.3);
  background-color: hsl(var(--background));
  padding: 2.5rem;
  text-align: center;
}

.contact-success svg {
  color: hsl(var(--primary));
  width: 48px;
  height: 48px;
}

.contact-success h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.contact-success p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid hsl(var(--border) / 0.5);
  background-color: hsl(var(--background));
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo img {
  height: 4rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--foreground));
}

.footer-link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link:hover {
  color: hsl(var(--primary));
}

.footer-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   Realisations Page
   ============================================================ */
.page-header {
  padding-top: 6rem;
  padding-bottom: 0;
  text-align: center;
}

.page-header-desc {
  max-width: 42rem;
  margin: 0 auto;
  color: hsl(var(--muted-foreground));
}

.missions-list {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Mission Card */
.mission-card {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border) / 0.5);
  background-color: hsl(var(--card));
  transition: border-color 0.2s;
}

.mission-card:hover {
  border-color: hsl(var(--primary) / 0.2);
}

.mission-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
}

.mission-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  flex-shrink: 0;
  color: hsl(var(--primary));
}

.mission-icon svg {
  width: 22px;
  height: 22px;
}

.mission-body {
  flex: 1;
}

.mission-title {
  margin-bottom: 0.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.mission-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.mission-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.mission-meta svg {
  width: 12px;
  height: 12px;
}

.mission-key-results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.key-result-badge {
  border-radius: 0.375rem;
  background-color: hsl(var(--primary) / 0.1);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

.mission-chevron {
  flex-shrink: 0;
  color: hsl(var(--muted-foreground));
  transition: transform 0.3s;
}

.mission-chevron svg {
  width: 20px;
  height: 20px;
}

.mission-card.open .mission-chevron {
  transform: rotate(180deg);
}

/* Mission details (accordion body) */
.mission-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mission-card.open .mission-details {
  max-height: 2000px;
}

.mission-details-inner {
  border-top: 1px solid hsl(var(--border) / 0.5);
  background-color: hsl(var(--background) / 0.5);
  padding: 1.5rem;
}

.details-grid {
  display: grid;
  gap: 1rem;
}

.detail-block-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}

.detail-block-header svg {
  width: 14px;
  height: 14px;
  color: hsl(var(--primary));
}

.detail-block-header h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--primary));
}

.detail-block p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   404 Page
   ============================================================ */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 6rem 1rem 2rem;
}

.page-404 h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.page-404 p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

/* ============================================================
   Scroll Animations
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0.0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .animate-on-scroll:nth-child(7) { transition-delay: 0.6s; }
.stagger-children .animate-on-scroll:nth-child(8) { transition-delay: 0.7s; }
.stagger-children .animate-on-scroll:nth-child(9) { transition-delay: 0.8s; }
.stagger-children .animate-on-scroll:nth-child(10) { transition-delay: 0.9s; }
.stagger-children .animate-on-scroll:nth-child(11) { transition-delay: 1.0s; }

/* ============================================================
   Responsive
   ============================================================ */

/* sm: 640px */
@media (min-width: 640px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sectors-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* md: 768px */
@media (min-width: 768px) {
  .header-inner {
    height: 5rem;
  }

  .header-logo img {
    height: 2.5rem;
  }

  .desktop-nav {
    display: flex;
  }

  .mobile-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .section {
    padding: 7rem 0;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .about-grid {
    grid-template-columns: 2fr 3fr;
  }

  .about-photo {
    width: 20rem;
    height: 20rem;
  }

  .about-name {
    font-size: 2.25rem;
  }

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

  .stat-value {
    font-size: 2.25rem;
  }

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

  .sectors-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .contact-grid {
    grid-template-columns: 2fr 3fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .page-header {
    padding-top: 7rem;
  }
}

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

  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* xl: 1280px */
@media (min-width: 1280px) {
  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ============================================================
   WordPress Admin Bar Offset
   ============================================================ */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
