/* ===================================================================
   RH SUCCESS — High-Performance, SEO & Security-Hardened Stylesheet
   =================================================================== */

/* ---------- Self-Hosted Fonts (Zero Third-Party Blocking) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(../fonts/playfair-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(../fonts/playfair-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Cross-Document Page Transitions ---------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vtFadeOut .22s cubic-bezier(.4, 0, .2, 1) both;
}

::view-transition-new(root) {
  animation: vtFadeIn .28s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes vtFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}

@keyframes vtFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageEnterFallback {
  from { opacity: .94; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

main {
  animation: pageEnterFallback .28s cubic-bezier(.4, 0, .2, 1);
  transition: opacity .18s cubic-bezier(.4, 0, .2, 1), transform .18s cubic-bezier(.4, 0, .2, 1);
}

html.is-leaving main {
  opacity: 0;
  transform: translateY(-6px);
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, #ff5a5a 100%);
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: width .24s cubic-bezier(.4, 0, .2, 1), opacity .18s ease;
}

.page-progress.active {
  opacity: 1;
  width: 72%;
}

.page-progress.done {
  opacity: 1;
  width: 100%;
}

/* ---------- CSS Variables ---------- */
:root {
  --red: #D42B2B;
  --red-dark: #B01F1F;
  --red-light: #FEF2F2;
  --charcoal: #1E1E2F;
  --slate: #3A3A50;
  --gray-700: #4A4A5A;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

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

/* ---------- Inline SVG Icon Sizing ---------- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-spin {
  animation: iconSpin 1s linear infinite;
}

@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.is-hidden { display: none !important; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--charcoal); line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(212,43,43,.1);
  border: 1px solid rgba(212,43,43,.22);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-label .icon {
  width: 15px;
  height: 15px;
  color: var(--red);
}
.section-dark .section-label {
  background: rgba(212,43,43,.16);
  border-color: rgba(212,43,43,.35);
  color: var(--white);
}
.section-dark .section-label .icon,
.section-dark .section-label .icon * {
  color: #ff6b6b;
}

.section-title { margin-bottom: 20px; }
.section-subtitle { color: var(--gray-500); font-size: 1.1rem; max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600; font-size: .95rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.15);
  transform: translateX(-100%);
  transition: transform .4s ease;
}
.btn:hover::after { transform: translateX(0); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,43,43,.35); }
.btn-primary.is-sent { background: #16a34a; }

.btn-outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: var(--white); transform: translateY(-2px); }

.btn-dark-inverted {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--white);
}
.btn-dark-inverted::after { display: none; }
.btn-dark-inverted:hover {
  background: transparent;
  border-color: var(--slate);
  color: var(--slate);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-light { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); transform: translateY(-2px); }

.btn-white { background: var(--white); color: var(--red); font-weight: 700; }
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--red-dark); }

.btn-sm { padding: 10px 22px; font-size: .85rem; }

/* ---------- Header / Navbar ---------- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition);
  background: transparent;
}
.header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 60px; width: auto; transition: all var(--transition); }
.header.scrolled .logo img { height: 48px; }

/* Two logo versions: white for dark bg, colored for light bg */
.logo-white { display: block; }
.logo-color { display: none; }
.header.scrolled .logo-white { display: none; }
.header.scrolled .logo-color { display: block; }

/* Footer always uses white logo */
.footer .logo-white { display: block; }
.footer .logo-color { display: none; }
.footer .logo img { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-weight: 500; font-size: .9rem;
  color: var(--white);
  position: relative;
  letter-spacing: .3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
}
.header.scrolled .nav-links a { color: var(--slate); }
.nav-links a.nav-home { padding: 0 2px; }
.nav-links a.nav-home svg {
  display: block;
  width: 19px;
  height: 19px;
  transition: transform var(--transition), color var(--transition);
}
.nav-links a.nav-home:hover { color: var(--red); }
.nav-links a.nav-home:hover svg { transform: translateY(-1px); }
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 12px; }
.header:not(.scrolled) .nav-cta.btn-primary { background: var(--white); color: var(--red); }
.header:not(.scrolled) .nav-cta.btn-primary:hover { background: var(--gray-100); }

.menu-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}
.header.scrolled .menu-toggle span { background: var(--charcoal); }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 112px 0 64px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--charcoal) 0%, #2D1B3D 50%, var(--charcoal) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(212,43,43,.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute; bottom: -30%; left: -15%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,43,43,.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--white);
  background: rgba(212,43,43,.16);
  border: 1px solid rgba(212,43,43,.35);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-label .icon,
.hero-label .icon * { color: #ff6b6b; width: 15px; height: 15px; }
.hero, .hero * { color: var(--white); }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--red); }
.hero p {
  color: rgba(255,255,255,.78);
  font-size: 1.15rem;
  margin-bottom: 28px;
  max-width: 580px;
  text-align: center;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-stats {
  display: flex;
  gap: 52px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
}
.stat-ring {
  position: relative;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  margin-bottom: 14px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.045) 0 2px,
    transparent 2px 7px
  );
  box-shadow: inset 0 0 24px rgba(0,0,0,.18);
}
.stat-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  display: block;
}
.stat-ring-track {
  fill: none;
  stroke: rgba(255,255,255,.12);
  stroke-width: 5.5;
}
.stat-ring-fill {
  fill: none;
  stroke: var(--red);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  animation: statRingReveal 1.1s cubic-bezier(.4, 0, .2, 1) both;
}
.stat-ring-fill--clients {
  stroke-dashoffset: 124.16;
  --ring-target: 124.16;
}
.stat-ring-fill--projects {
  stroke-dashoffset: 71.88;
  --ring-target: 71.88;
}
.stat-ring-fill--domains {
  stroke-dashoffset: 39.21;
  --ring-target: 39.21;
}
@keyframes statRingReveal {
  from { stroke-dashoffset: 326.73; }
  to { stroke-dashoffset: var(--ring-target); }
}
.stat-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  padding: 0 14px;
}
.hero-stat-label { color: rgba(255,255,255,.78); font-size: .88rem; font-weight: 500; text-align: center; }

/* ---------- Editorial Paragraph Highlights ---------- */
.hl-pill,
.hl-slate {
  display: inline;
  color: var(--white);
  padding: 2px 9px;
  border-radius: 5px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hl-pill,
.hero .hl-pill,
.section-dark .hl-pill,
.page-banner .hl-pill {
  background: var(--red);
  color: var(--white);
}
.hl-slate,
.hero .hl-slate,
.section-dark .hl-slate,
.page-banner .hl-slate {
  background: var(--slate);
  color: var(--white);
}
.hl-mark {
  display: inline;
  background: linear-gradient(to top, rgba(212,43,43,.24) 38%, transparent 38%);
  color: var(--charcoal);
  font-weight: 600;
  padding: 0 3px;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero .hl-mark,
.section-dark .hl-mark,
.page-banner .hl-mark {
  background: linear-gradient(to top, rgba(212,43,43,.72) 38%, transparent 38%);
  color: var(--white);
}

/* ---------- Section spacing ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6,
.section-dark p, .section-dark li, .section-dark span, .section-dark div, .section-dark a { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,.72); }
.section-dark .value-card p { color: rgba(255,255,255,.72); }
.section-dark .value-card h3 { color: var(--white); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-subtitle { margin: 0 auto; }

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #FDFDFD 58%, #FEF5F5 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212,43,43,.09);
  box-shadow: var(--shadow-sm);
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  z-index: 2;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF9F9 52%, #FEECEC 100%);
  border-color: rgba(212,43,43,.18);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card > *:not(.service-card-bg-icon) {
  position: relative;
  z-index: 1;
}

.service-card-bg-icon {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 112px;
  height: 112px;
  color: var(--red);
  opacity: .07;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), opacity var(--transition);
}
.service-card-bg-icon svg {
  width: 100%;
  height: 100%;
}
.service-card:hover .service-card-bg-icon {
  opacity: .12;
  transform: scale(1.08) rotate(-4deg);
}
.benefit-card .service-card-bg-icon {
  width: 86px;
  height: 86px;
  right: -8px;
  bottom: -8px;
}

.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-light);
  color: var(--red);
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.service-icon-centered { margin: 0 auto 24px; }

.service-card h3 { margin-bottom: 14px; font-size: 1.25rem; }
.service-card p { color: var(--gray-500); font-size: .92rem; line-height: 1.65; }
.service-card ul { margin-top: 14px; }
.service-card ul li {
  position: relative;
  padding-left: 20px;
  color: var(--gray-500);
  font-size: .88rem;
  margin-bottom: 8px;
}
.service-card ul li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}

.card-centered { text-align: center; }

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-logo-frame {
  width: 100%;
  height: 100%;
  min-height: 360px;
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 48px 72px;
}

.about-logo-img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-text .section-label { align-self: flex-start; }

.about-badge {
  position: absolute; bottom: -14px; right: -14px;
  background: var(--red);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-badge-number { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.about-badge-text { font-size: .75rem; font-weight: 500; opacity: .95; }

.about-text .section-label { margin-bottom: 8px; }
.about-text h2 { margin-bottom: 24px; }
.about-text > p { color: var(--gray-500); margin-bottom: 16px; }
.about-cta-wrap { margin-top: 32px; }

.about-features { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-feature {
  display: flex; align-items: flex-start; gap: 14px;
}
.about-feature-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 1rem;
}
.about-feature h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.about-feature p { font-size: .82rem; color: var(--gray-500); }

/* ---------- Vision & Values ---------- */
.vision-intro {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}
.vision-intro p {
  color: rgba(255,255,255,.78);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.vision-intro p:last-child { margin-bottom: 0; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: all var(--transition);
}
.value-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}
.value-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: rgba(212,43,43,.15);
  color: var(--white);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.value-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.value-card p { color: rgba(255,255,255,.72); font-size: .88rem; line-height: 1.6; }

/* ---------- Engagements ---------- */
.engagements-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--red);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.cta-banner, .cta-banner * { color: var(--white); }
.cta-banner h2 { color: var(--white); font-size: 2rem; max-width: 500px; }
.cta-banner p { color: rgba(255,255,255,.9); margin-top: 12px; max-width: 480px; }

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-white,
.cta-banner .btn-white * { color: var(--red); background: var(--white); }
.cta-banner .btn-white:hover { background: var(--gray-100); color: var(--red-dark); }

/* ---------- Expertise detail ---------- */
.expertise-section { margin-bottom: 48px; scroll-margin-top: 100px; }
.expertise-section:last-child { margin-bottom: 0; }

.expertise-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-100);
}
.expertise-number {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.expertise-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.expertise-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .93rem; color: var(--gray-700);
}
.expertise-item::before {
  content: '→';
  color: var(--red);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- Page Banner ---------- */
.page-banner {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #2D1B3D 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,43,43,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.page-banner, .page-banner * { color: var(--white); }
.page-banner h1 { color: var(--white); margin-bottom: 16px; position: relative; z-index: 1; }
.page-banner p { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.page-banner .breadcrumb {
  margin-bottom: 20px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  position: relative; z-index: 1;
}
.page-banner .breadcrumb a { color: rgba(255,255,255,.75); }
.page-banner .breadcrumb a:hover { color: var(--red); }
.page-banner .breadcrumb-current {
  color: var(--white);
  font-weight: 600;
  border-bottom: 2px solid #4b4b4b;
  padding-bottom: 3px;
  display: inline-block;
}

/* ---------- Contact & Devis ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info { padding: 48px; background: var(--charcoal); border-radius: var(--radius-lg); color: var(--white); }
.contact-info, .contact-info * { color: var(--white); }
.contact-info h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 8px; }
.contact-info > p { color: rgba(255,255,255,.72); font-size: .93rem; margin-bottom: 36px; }

.contact-detail {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 28px;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  background: rgba(212,43,43,.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail-icon svg { color: var(--red); }
.contact-detail-text h3 { color: var(--white); font-family: var(--font-body); font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.contact-detail-text p { color: rgba(255,255,255,.72); font-size: .88rem; line-height: 1.6; }
.contact-detail-text a { color: rgba(255,255,255,.85); }
.contact-detail-text a:hover { color: var(--red); }

.contact-social { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.contact-social h3 { color: var(--white); font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; font-size: .9rem; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  transition: all var(--transition);
}
.social-link:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}
.contact-form-card h2 { font-size: 1.6rem; margin-bottom: 8px; }
.contact-form-card > p { color: var(--gray-500); font-size: .93rem; margin-bottom: 32px; }

.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
  font-size: .93rem;
}
.form-alert--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.form-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  font-size: .82rem; font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: .3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--charcoal);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212,43,43,.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-group input[type="file"] {
  padding: 12px 14px;
  border-style: dashed;
  cursor: pointer;
}
.form-group input[type="file"]:hover { border-color: var(--red); }

.file-hint { font-size: .78rem; color: var(--gray-500); margin-top: 4px; }

.form-submit {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}
.form-submit .btn { min-width: 180px; justify-content: center; }

.devis-container { max-width: 800px; }
.devis-card { box-shadow: var(--shadow-xl); }
.devis-header { text-align: center; margin-bottom: 36px; }
.devis-icon { margin: 0 auto 16px; width: 64px; height: 64px; font-size: 1.6rem; }
.devis-subtitle { color: var(--gray-500); font-size: .93rem; margin-top: 8px; }
.devis-submit { justify-content: center; margin-top: 32px; }
.devis-submit .btn { min-width: 240px; }

.devis-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.benefit-card { text-align: center; padding: 28px 20px; }
.benefit-icon { margin: 0 auto 16px; }
.benefit-card h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.benefit-card p { font-size: .85rem; }

/* ---------- Map ---------- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
  box-shadow: var(--shadow-md);
  height: 350px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.65);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}
.footer .container {
  position: relative;
  z-index: 1;
}
.footer-bg-graphic {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 390px;
  height: 390px;
  pointer-events: none;
  z-index: 0;
  opacity: .18;
  animation: footerPulse 10s ease-in-out infinite;
}
.footer-bg-orbit {
  transform-origin: 200px 200px;
  animation: footerSpin 36s linear infinite;
}
.footer-bg-orbit-reverse {
  transform-origin: 200px 200px;
  animation: footerSpin 24s linear infinite reverse;
}
@keyframes footerSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes footerPulse {
  0%, 100% { transform: scale(1); opacity: .16; }
  50% { transform: scale(1.04); opacity: .24; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand-desc {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}
.footer-brand-desc span {
  color: var(--red);
  font-size: 1rem;
  display: inline-flex;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-brand-desc span svg { color: var(--red); }
.footer-brand-desc p { color: rgba(255,255,255,.65); font-size: .88rem; margin-top: 0; line-height: 1.65; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .88rem; line-height: 1.65; }
.footer-brand-logo { height: 52px; width: auto; margin-bottom: 8px; }
.footer-social { margin-top: 20px; }

.footer h3, .footer h4 { color: var(--white); font-family: var(--font-heading); font-size: .95rem; margin-bottom: 20px; letter-spacing: .5px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
}
.footer-links a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-links a:hover::before { transform: scale(1.3); background: var(--white); }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px;
  color: rgba(255,255,255,.72);
  font-size: .88rem;
}
.footer-contact-item span { color: var(--red); font-size: 1rem; display: inline-flex; margin-top: 3px; }
.footer-contact-item span svg { color: var(--red); }
.footer-contact-link { color: rgba(255,255,255,.72); }
.footer-contact-link:hover { color: var(--white); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: .82rem;
}

/* ---------- Scroll-to-top ---------- */
.scroll-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  background: var(--red);
  color: var(--white);
  border: none; border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .38s cubic-bezier(.4,0,.2,1), transform .38s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .engagements-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-items { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta.desktop-only { display: none; }
  .menu-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--charcoal);
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 998;
  }
  .nav-links.open a { color: var(--white); font-size: 1.3rem; }
  .nav-links.open a.nav-home svg { width: 26px; height: 26px; }

  .hero { min-height: auto; padding: 140px 0 80px; }
  .hero-stats { gap: 28px; }

  .services-grid, .engagements-grid, .devis-benefits { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .cta-banner { flex-direction: column; text-align: center; padding: 40px 24px; }
  .cta-actions { justify-content: center; }
  .section { padding: 64px 0; }
  .page-banner { padding: 130px 0 60px; }
  .contact-info, .contact-form-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .about-features { grid-template-columns: 1fr; }
}
