/* ============================================================
   Cabinet Morel & Associés — Styles
   Clean, professional accounting firm
   ============================================================ */

/* ======================== VARIABLES ======================== */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --accent-dark: #1d4ed8;
  --gold: #b8860b;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #059669;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --nav-height: 88px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: pageIn 0.25s ease;
}

body.page-leaving {
  opacity: 0;
  transition: opacity 0.12s ease;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

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

/* ======================== TYPOGRAPHY ======================== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.btn--outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--bg);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn--white {
  background: #fff;
  color: var(--primary);
}

.btn--white:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.btn--ghost {
  color: var(--accent);
  padding: 0.5rem 0;
  font-weight: 600;
}

.btn--ghost:hover { opacity: 0.7; }

.btn--ghost svg { transition: transform var(--transition); }
.btn--ghost:hover svg { transform: translateX(4px); }

/* ======================== BACK LINK ======================== */
.back-link {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ======================== NAVIGATION ======================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__logo span { color: var(--accent); font-weight: 800; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  position: relative;
  transition: all var(--transition);
}

.nav__links a::after { display: none; }

.nav__links a:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.nav__links a.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

.nav__cta {
  padding: 0.75rem 1.8rem !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
  margin-left: 0.5rem;
}

.nav__cta::after { display: none !important; }

.nav__cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37,99,235,0.35) !important;
  color: #fff !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ======================== HERO ======================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #f0f5ff 40%, #e0ecff 100%);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(129,140,248,0.1) 100%);
  color: var(--accent);
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(37,99,235,0.15);
}

.hero__badge svg { width: 16px; height: 16px; }

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
}

.hero__card {
  background: var(--bg);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(37,99,235,0.1), 0 4px 20px rgba(0,0,0,0.04);
  padding: 2.5rem;
  position: relative;
}

.hero__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.hero__card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__card-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: #ecfdf5;
  color: var(--success);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero__card-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

.hero__card-amount {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.hero__card-sub {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero__chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}

.hero__chart-bar {
  flex: 1;
  background: var(--accent-light);
  border-radius: 4px 4px 0 0;
  transition: background var(--transition);
  min-width: 0;
}

.hero__chart-bar:nth-child(even) { background: var(--accent); opacity: 0.7; }
.hero__chart-bar:last-child { background: var(--accent); opacity: 1; }


/* ======================== TRUST BAR ======================== */
.trust {
  padding: 3.5rem 0;
  background: var(--bg-dark);
  border: none;
}

.trust__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

/* ======================== SERVICES ======================== */
.services {
  padding: 7rem 0;
}

.services__header {
  text-align: center;
  margin-bottom: 4rem;
}

.services__header .section-subtitle {
  margin: 1rem auto 0;
}

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

.service-card {
  padding: 2.5rem 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: rgba(37,99,235,0.15);
  box-shadow: 0 12px 40px rgba(37,99,235,0.1);
  transform: translateY(-6px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #4f86f7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}

.service-card:nth-child(2) .service-card__icon { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 4px 12px rgba(5,150,105,0.2); }
.service-card:nth-child(3) .service-card__icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 4px 12px rgba(124,58,237,0.2); }
.service-card:nth-child(4) .service-card__icon { background: linear-gradient(135deg, #dc2626, #f87171); box-shadow: 0 4px 12px rgba(220,38,38,0.2); }
.service-card:nth-child(5) .service-card__icon { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 4px 12px rgba(217,119,6,0.2); }
.service-card:nth-child(6) .service-card__icon { background: linear-gradient(135deg, #0891b2, #22d3ee); box-shadow: 0 4px 12px rgba(8,145,178,0.2); }

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card__feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.service-card__feature svg { color: var(--success); flex-shrink: 0; }

/* ======================== ABOUT / CHIFFRES ======================== */
.about {
  padding: 7rem 0;
  background: var(--bg-alt);
}

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

.about__content .section-label { margin-bottom: 1rem; }

.about__title { margin-bottom: 1.5rem; }

.about__text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

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

.about__stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.about__stat:hover {
  box-shadow: 0 8px 24px rgba(37,99,235,0.1);
  transform: translateY(-2px);
}

.about__stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.about__stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.about__visual {
  position: relative;
}

.about__image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about__image-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
}

.about__image-card:first-child {
  grid-row: span 2;
  min-height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.about__image-card h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.about__image-card p {
  font-size: 0.8125rem;
  opacity: 0.8;
}

.about__image-card--light {
  background: var(--bg) !important;
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.about__image-card--light h4 { color: var(--primary) !important; }
.about__image-card--light p { color: var(--text-secondary); opacity: 1; }

/* ======================== EXPERTISE ======================== */
.expertise {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, #f0f5ff 100%);
}

.expertise__header {
  text-align: center;
  margin-bottom: 4rem;
}

.expertise__header .section-subtitle {
  margin: 1rem auto 0;
}

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

.expertise-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.expertise-card:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: var(--shadow);
}

.expertise-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #4f86f7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}

.expertise-card:nth-child(2) .expertise-card__icon { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 4px 12px rgba(5,150,105,0.2); }
.expertise-card:nth-child(3) .expertise-card__icon { background: linear-gradient(135deg, #dc2626, #f87171); box-shadow: 0 4px 12px rgba(220,38,38,0.2); }
.expertise-card:nth-child(4) .expertise-card__icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 4px 12px rgba(124,58,237,0.2); }
.expertise-card:nth-child(5) .expertise-card__icon { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 4px 12px rgba(217,119,6,0.2); }
.expertise-card:nth-child(6) .expertise-card__icon { background: linear-gradient(135deg, #0891b2, #22d3ee); box-shadow: 0 4px 12px rgba(8,145,178,0.2); }

.expertise-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.expertise-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ======================== PROCESS ======================== */
.process {
  padding: 7rem 0;
  background: var(--bg-dark);
  color: #fff;
}

.process__header {
  text-align: center;
  margin-bottom: 4rem;
}

.process__header .section-label { color: rgba(255,255,255,0.5); }
.process__header .section-label::before { background: rgba(255,255,255,0.3); }
.process__header h2 { color: #fff; }
.process__header .section-subtitle { color: rgba(255,255,255,0.6); margin: 1rem auto 0; }

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.process__step {
  text-align: center;
  position: relative;
}

.process__step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

.process__step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.process__step-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ======================== TEAM ======================== */
.team {
  padding: 7rem 0;
}

.team__header {
  text-align: center;
  margin-bottom: 4rem;
}

.team__header .section-subtitle {
  margin: 1rem auto 0;
}

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

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  background: var(--bg);
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.team-card__avatar--1 { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.team-card__avatar--2 { background: linear-gradient(135deg, #0f172a, #334155); }
.team-card__avatar--3 { background: linear-gradient(135deg, #059669, #047857); }
.team-card__avatar--4 { background: linear-gradient(135deg, #7c3aed, #6d28d9); }

.team-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ======================== TESTIMONIALS ======================== */
.testimonials {
  padding: 7rem 0;
  background: var(--bg-alt);
}

.testimonials__header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials__header .section-subtitle {
  margin: 1rem auto 0;
}

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

.testimonial-card {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: #fbbf24;
}

.testimonial-card__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.testimonial-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-card__company {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ======================== CTA ======================== */
.cta {
  padding: 7rem 0;
}

.cta__inner {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a5f 100%);
  border-radius: var(--radius-lg);
  padding: 5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.cta__inner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129,140,248,0.12) 0%, transparent 70%);
}

.cta h2 {
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta__desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ======================== CONTACT ======================== */
.contact {
  padding: 7rem 0;
  background: var(--bg-alt);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact__info .section-label { margin-bottom: 1rem; }

.contact__title { margin-bottom: 1rem; }

.contact__desc {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #4f86f7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}

.contact__detail-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact__detail-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: 0.15rem;
}

.contact__form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.contact__form-card .btn--primary {
  background: linear-gradient(135deg, var(--accent), #4f86f7);
  box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}

.contact__form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact__form-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: var(--bg);
}

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

/* ======================== FOOTER ======================== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.footer__brand-name span { color: var(--accent); }

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer__links li { margin-bottom: 0.5rem; }

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer__links a:hover { color: #fff; }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer__bottom a {
  color: rgba(255,255,255,0.4);
}

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

.footer__credit {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ======================== PAGE HERO (inner pages) ======================== */
.page-hero {
  padding: 11rem 0 5rem;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129,140,248,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .section-label {
  position: relative;
  z-index: 1;
  color: #60a5fa;
}

.page-hero .section-label::before {
  background: #60a5fa;
}

.page-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-hero__title em {
  font-style: normal;
  color: #60a5fa;
}

.page-hero__desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.page-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}

/* ======================== DETAIL SECTION (for service/expertise pages) ======================== */
.detail-section {
  padding: 7rem 0;
}

.detail-section--alt {
  background: var(--bg-alt);
}

.detail-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.detail-intro .section-subtitle {
  margin: 1rem auto 0;
}

/* Bigger service cards for dedicated page */
.service-card--large {
  padding: 3rem 2.5rem;
}

.service-card--large .service-card__title {
  font-size: 1.25rem;
}

.service-card--large .service-card__desc {
  font-size: 0.95rem;
}

/* Team card large */
.team-card--large {
  padding: 2.5rem 2rem;
}

.team-card--large .team-card__avatar {
  width: 100px;
  height: 100px;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.team-card--large .team-card__name {
  font-size: 1.125rem;
}

.team-card--large .team-card__role {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.team-card--large .team-card__desc {
  font-size: 0.875rem;
}

.team-card__bio {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* Testimonial card large */
.testimonial-card--large {
  padding: 2.5rem;
}

.testimonial-card--large .testimonial-card__text {
  font-size: 1.0625rem;
  line-height: 1.8;
}

/* Stats bar */
.stats-bar {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats-bar__item-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-bar__item-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

/* ======================== REVEAL ANIMATIONS ======================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { max-width: 480px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 3rem; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .process__steps::before { display: none; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 72px; }
  .container { padding: 0 1.25rem; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
  }

  .nav__links.open a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav__links.open .nav__cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 2rem); padding-bottom: 3rem; }
  .hero__inner { padding: 2rem 0; }
  .hero__desc { font-size: 1rem; }
  .page-hero { padding: 8rem 0 3.5rem; }
  .page-hero__actions { flex-direction: column; align-items: center; }

  .services__grid { grid-template-columns: 1fr; }
  .expertise__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr 1fr; }

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

  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .cta__inner { padding: 3rem 2rem; }
  .cta__actions { flex-direction: column; align-items: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

  .back-link { top: auto; bottom: 1.25rem; left: 1.25rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .about__stats { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .stats-bar__inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
