:root {
  --primary: #8f1313;
  --primary-dark: #6e0f0f;
  --primary-light: #b81a1a;
  --primary-soft: #fff5f5;
  --accent: #d4af37;
  --ink: #0c0c10;
  --ink-soft: #1c1c24;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #ececec;
  --border-strong: #d4d4d4;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-bg: rgba(255, 255, 255, 0.92);
  --section-bg: #ffffff;
}

[data-theme="dark"] {
  --primary: #d4554d;
  --primary-dark: #b03b35;
  --primary-light: #e87c75;
  --primary-soft: #2a1414;
  --accent: #e0c266;
  --ink: #f1f1f5;
  --ink-soft: #d8d8de;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --bg: #0d0d12;
  --surface: #16161d;
  --border: #25252e;
  --border-strong: #34343f;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(13, 13, 18, 0.92);
  --section-bg: #11111a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Top bar ===== */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar a { color: #fff; opacity: 0.85; transition: opacity var(--transition); }
.topbar a:hover { opacity: 1; }
.topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-contact span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-contact a {
  color: inherit;
  text-decoration: none;
}
.topbar-contact a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background var(--transition), border-color var(--transition);
}
header.nav-open {
  z-index: 120;
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; gap: 24px; }
.brand-block { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(143, 19, 19, 0.14), inset 0 0 0 1px rgba(143, 19, 19, 0.08);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
[data-theme="dark"] .brand-mark {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(143, 19, 19, 0.35), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.brand-text strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.brand-text span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; align-items: center; }
nav a.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}
nav a.nav-link:hover { background: var(--primary-soft); color: var(--primary); }
nav a.nav-link.active { background: var(--primary-soft); color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.nav-toggle:hover {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary);
}
.nav-toggle-close {
  display: none;
}
header.nav-open .nav-toggle-bars {
  display: none;
}
header.nav-open .nav-toggle-close {
  display: block;
}
.nav-backdrop {
  display: none;
}
body.nav-backdrop-on .nav-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(15, 12, 11, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(143, 19, 19, 0.28);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(143, 19, 19, 0.36);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-arrow svg { width: 16px; height: 16px; transition: transform var(--transition); }
.btn:hover .btn-arrow svg { transform: translateX(3px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(143, 19, 19, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-soft);
  border: 1px solid #f5d6d6;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(143, 19, 19, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.04;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
  font-weight: 800;
  color: var(--ink);
}
.hero h1 .highlight {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 17px;
  max-width: 560px;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-trust-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted-2);
  font-weight: 700;
}
.hero-trust-items { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.hero-trust-item svg { width: 16px; height: 16px; color: var(--primary); }

.hero-visual { position: relative; }
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.5;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(143, 19, 19, 0.18) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: #fff;
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.hero-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.hero-badge-icon svg { width: 22px; height: 22px; }
.hero-badge-text strong { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.hero-badge-text span { display: block; font-size: 12px; color: var(--muted); }

.hero-floating {
  position: absolute;
  top: 24px;
  right: -20px;
  background: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-floating-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
.hero-floating span { font-size: 12.5px; font-weight: 700; color: var(--ink); }

/* ===== Stats strip ===== */
.stats-strip {
  background: var(--ink);
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item { text-align: center; }
.stat-item strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
}
.stat-item span {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}
.stat-item .accent { background: linear-gradient(135deg, var(--primary-light), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ===== Section ===== */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--ink);
}
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* ===== Services grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.service-item:not(:has(.service-item-body)) {
  padding: 28px 24px;
}
a.service-item:hover { text-decoration: none; }
.service-item-thumb {
  position: relative;
  height: 156px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--surface-muted, #f3f4f6);
}
.service-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}
.service-item:hover .service-item-thumb img {
  transform: scale(1.06);
}
.service-item-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 17, 21, 0.72) 0%,
    rgba(15, 17, 21, 0.08) 42%,
    transparent 72%
  );
  pointer-events: none;
}
[data-theme="dark"] .service-item-thumb::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.2) 45%,
    transparent 72%
  );
}
.service-item-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a1212 0%, var(--primary-dark, #6f0d0d) 42%, var(--primary) 100%);
}
.service-item-thumb--placeholder::after {
  opacity: 0.55;
}
.service-thumb-deco {
  position: absolute;
  width: min(220px, 88%);
  height: auto;
  opacity: 0.95;
}
.service-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 26px;
}
.service-item-cta {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.1px;
  transition: gap var(--transition);
}
.service-item-cta svg { width: 14px; height: 14px; transition: transform var(--transition); }
.service-item:hover .service-item-cta { gap: 10px; }
.service-item:hover .service-item-cta svg { transform: translateX(3px); }
.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  z-index: 2;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.service-item:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--primary-soft), #fff);
  border: 1px solid #f5d6d6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
}
.service-item-thumb .service-icon {
  position: absolute;
  left: 14px;
  bottom: 14px;
  margin-bottom: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
[data-theme="dark"] .service-item-thumb .service-icon {
  background: rgba(28, 28, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.service-icon svg { width: 26px; height: 26px; }
.service-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .service-item-thumb img {
    transition: none !important;
  }
  .service-item:hover .service-item-thumb img {
    transform: none !important;
  }
}

/* ===== About / Why us ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(143, 19, 19, 0.25) 100%);
}

.values-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.values-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.values-list .check {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.values-list .check svg { width: 16px; height: 16px; }
.values-list strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.values-list p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ===== Sectors ===== */
.sectors {
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}
.sector-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.sector-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 14px;
  text-align: center;
  transition: all var(--transition);
}
.sector-item:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.sector-item svg { width: 32px; height: 32px; color: var(--primary); margin-bottom: 10px; }
.sector-item span { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-step {
  text-align: center;
  position: relative;
}
.process-step::before {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: linear-gradient(90deg, var(--border) 0%, var(--border) 50%, transparent 100%);
}
.process-step:last-child::before { display: none; }
.process-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}
.process-step h4 { font-size: 17px; margin: 0 0 8px; color: var(--ink); font-weight: 800; }
.process-step p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}
.testimonial:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.testimonial-quote { font-size: 32px; color: var(--primary); line-height: 1; margin-bottom: 8px; font-family: Georgia, serif; }
.testimonial p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 22px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.testimonial-info strong { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
.testimonial-info span { display: block; font-size: 12.5px; color: var(--muted); }

/* ===== Contact section ===== */
.contact-section { background: var(--ink); color: #fff; padding: 100px 0; position: relative; overflow: hidden; }
.contact-section::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(143, 19, 19, 0.3) 0%, transparent 70%);
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.contact-section h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 16px; letter-spacing: -1px; line-height: 1.1; font-weight: 800; }
.contact-section .lead { color: rgba(255,255,255,0.75); font-size: 17px; margin: 0 0 30px; line-height: 1.6; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
}
.contact-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(4px); }
.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon svg { width: 20px; height: 20px; color: #fff; }
.contact-card-text strong { display: block; font-size: 12px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.contact-card-text span { display: block; font-size: 16px; color: #fff; font-weight: 700; margin-top: 2px; }
.contact-cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ===== Forms ===== */
.contact-form-card {
  background: #fff;
  color: var(--ink);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.contact-form-card h3 { font-size: 22px; margin: 0 0 8px; font-weight: 800; }
.contact-form-card .lead-form { color: var(--muted); margin: 0 0 24px; font-size: 14.5px; }
label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 6px; color: var(--ink); }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  margin-bottom: 14px;
  transition: all var(--transition);
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(143, 19, 19, 0.12);
}
textarea { min-height: 120px; resize: vertical; }
.form-msg { font-size: 14px; margin-top: 12px; padding: 10px 14px; border-radius: 8px; display: none; }
.form-msg:not(:empty) { display: block; }
.form-msg.ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.form-msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===== CTA ===== */
.cta-final {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-final-inner { position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px; letter-spacing: -1px; font-weight: 800; line-height: 1.1; }
.cta-final p { font-size: 17px; margin: 0 0 28px; opacity: 0.9; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-final .btn-secondary { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: #fff; backdrop-filter: blur(10px); }
.cta-final .btn-secondary:hover { background: rgba(255,255,255,0.25); border-color: #fff; }
.cta-final .btn-dark { background: #fff; color: var(--primary); }
.cta-final .btn-dark:hover { background: #f3f3f3; color: var(--primary-dark); }

/* ===== Footer ===== */
footer { background: #0a0a0e; color: rgba(255,255,255,0.7); padding: 60px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand strong { display: block; color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.55); margin: 0 0 16px; max-width: 320px; }
.footer-logo {
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(143, 19, 19, 0.30), inset 0 0 0 1px rgba(143, 19, 19, 0.08);
}
.footer-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px; font-weight: 800; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-bottom a:hover {
  color: #fff;
}

/* ===== FAQ (contact) ===== */
.faq-section {
  padding: 56px 0;
  background: var(--bg-soft, #f9f6f5);
  border-top: 1px solid var(--border);
}
.faq-section .faq-inner {
  max-width: 720px;
  margin: 0 auto;
}
.faq-section h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.faq-section .faq-intro {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover {
  border-color: rgba(143, 19, 19, 0.2);
}
.faq-item[open] {
  box-shadow: 0 4px 20px rgba(143, 19, 19, 0.08);
}
.faq-item summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item[open] summary {
  color: var(--primary);
}
.faq-item .faq-answer {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.faq-answer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.faq-answer a:hover {
  text-decoration: underline;
}

/* ===== Mentions legales (prose) ===== */
.legal-prose {
  max-width: 720px;
  margin: 0 auto;
}
.legal-prose h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal-prose h2:first-child {
  margin-top: 0;
}
.legal-prose p,
.legal-prose li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 12px;
}
.legal-prose ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.legal-prose p a,
.legal-prose ul a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.legal-prose p a:hover,
.legal-prose ul a:hover {
  text-decoration: underline;
}

/* ===== Floating WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: all var(--transition);
  animation: bobble 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== Generic page ===== */
.page-hero { padding: 80px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 5vw, 50px); letter-spacing: -1px; margin: 0 0 14px; font-weight: 800; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 680px; margin: 0 auto; }

/* ===== Theme toggle ===== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 16, 0.8) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.gallery-overlay span {
  font-size: 12px;
  opacity: 0.85;
}
.gallery-overlay-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--primary);
  padding: 4px 8px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 8px;
  font-weight: 700;
}

/* ===== Map ===== */
.map-section {
  padding: 0;
  background: var(--surface);
}
.map-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
}
.map-info {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.map-info span.section-label { color: var(--primary); }
.map-info h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 8px 0 16px;
  letter-spacing: -0.8px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}
.map-info p {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
}
.map-info-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.map-info-list-item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.map-info-list-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.map-info-list-item strong { font-weight: 700; }
.map-info-list-item strong a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.map-info-list-item strong a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.map-frame {
  position: relative;
  min-height: 460px;
  background: var(--bg);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0%);
  display: block;
  position: absolute;
  inset: 0;
}
[data-theme="dark"] .map-frame iframe { filter: grayscale(20%) invert(0.92) hue-rotate(180deg); }

/* ===== Body theme transition ===== */
body, .service-item, .testimonial, .contact-card, .stat-item, .sector-item, .nav a.nav-link {
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
[data-theme="dark"] .stats-strip { background: #0a0a10; }
[data-theme="dark"] .contact-section { background: #0a0a10; }
[data-theme="dark"] .stats-strip::before, [data-theme="dark"] .contact-section::before { opacity: 0.4; }
[data-theme="dark"] footer { background: #050508; }
[data-theme="dark"] .sectors { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }
[data-theme="dark"] .contact-form-card { background: var(--surface); color: var(--ink); }
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--border-strong);
}
[data-theme="dark"] .topbar { background: #050508; }
[data-theme="dark"] .form-msg.ok { background: rgba(34, 197, 94, 0.12); color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }
[data-theme="dark"] .form-msg.err { background: rgba(239, 68, 68, 0.12); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-step::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .map-grid { grid-template-columns: 1fr; }
  .map-info { padding: 40px 24px; }
  .map-frame { min-height: 360px; position: relative; }
}
@media (max-width: 880px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-floating, .hero-badge { position: static; margin: 12px 0; display: inline-flex; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .container { padding: 0 20px; }
  .nav {
    gap: 12px;
    padding: 12px 0;
  }
  .brand-block {
    min-width: 0;
    flex: 1 1 auto;
  }
  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }
  .brand-text strong { font-size: 15px; }
  .brand-text span { font-size: 10px; }
  .nav-actions .btn { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }
  #main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    height: 100vh;
    height: 100dvh;
    padding: 88px 20px 32px;
    margin: 0;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    z-index: 130;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
  }
  [data-theme="dark"] #main-nav {
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  }
  header.nav-open #main-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  #main-nav .nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    width: 100%;
    min-height: 48px;
  }
  .topbar-inner {
    justify-content: center;
    text-align: center;
  }
  .topbar-contact {
    justify-content: center;
    font-size: 12px;
    gap: 10px 14px;
  }
  .hero {
    text-align: center;
  }
  .hero h1 br { display: none; }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta,
  .hero-trust,
  .hero-trust-items {
    justify-content: center;
  }
  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
  }
  .contact-card-text {
    min-width: 0;
  }
  .contact-card-text span,
  .footer-col a,
  .topbar-contact a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 880px) and (prefers-reduced-motion: reduce) {
  #main-nav {
    transition: none;
  }
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 42px 0 54px; }
  .page-hero { padding: 48px 0 28px; }
  .page-hero h1,
  .hero h1 {
    letter-spacing: -0.8px;
  }
  .page-hero p,
  .section-head p,
  .hero-lead,
  .contact-section .lead {
    font-size: 15px;
  }
  .section-head {
    margin-bottom: 34px;
  }
  .eyebrow {
    max-width: 100%;
    justify-content: center;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
  }
  .btn,
  .hero-cta .btn,
  .contact-cta-buttons .btn,
  .cta-final .btn,
  .map-info .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .hero-cta,
  .contact-cta-buttons {
    width: 100%;
  }
  .hero-image-wrap {
    aspect-ratio: 1 / 0.9;
    border-radius: 18px;
  }
  .hero-floating,
  .hero-badge {
    width: 100%;
    justify-content: center;
  }
  .stats-strip { padding: 24px 0; }
  .stat-item strong { font-size: 30px; }
  .stat-item span { font-size: 11px; }
  .services-grid { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-row { grid-template-columns: 1fr; }
  .contact-section {
    padding: 64px 0;
  }
  .contact-form-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .contact-card {
    align-items: flex-start;
    padding: 16px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
  .breadcrumb {
    padding: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .breadcrumb ol {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .map-info {
    padding: 32px 18px;
  }
  .map-frame {
    min-height: 300px;
  }
  .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 20px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .gallery-grid { grid-auto-rows: 160px; }
  .gallery-item.wide { grid-column: span 1; }
}

@media (max-width: 420px) {
  .topbar-inner > div:last-child {
    display: none;
  }
  .topbar-contact {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .nav-actions {
    gap: 8px;
  }
  .theme-toggle,
  .nav-toggle {
    width: 40px;
    height: 40px;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
  }
  .brand-text strong { font-size: 14px; }
  .brand-text span { display: none; }
  .hero-trust-items {
    gap: 10px;
  }
  .hero-trust-item {
    width: 100%;
    justify-content: center;
  }
  .stats-grid,
  .sector-grid {
    grid-template-columns: 1fr;
  }
  .service-item:not(:has(.service-item-body)) {
    padding: 22px 18px;
  }
  .service-item-body {
    padding: 20px 18px 22px;
  }
  .service-item-thumb {
    height: 190px;
  }
}

/* ===== Page detail service ===== */
.breadcrumb {
  background: var(--bg-soft, #f9f6f5);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  font-size: 13px;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--muted);
  margin-left: 8px;
  opacity: 0.5;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li[aria-current] {
  color: var(--ink);
  font-weight: 600;
}

.service-detail-hero {
  padding: 60px 0 50px;
  background: linear-gradient(180deg, var(--bg-soft, #faf6f5) 0%, var(--surface) 100%);
}
.service-detail-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.service-detail-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin: 14px 0 18px;
  color: var(--ink);
}
.service-detail-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 580px;
}
.service-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--muted);
}
.meta-item svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.meta-item strong { color: var(--ink); }
.service-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.service-detail-card {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark, #6f0d0d) 100%);
  color: #fff;
  padding: 36px 32px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(143, 19, 19, 0.28);
}
.service-detail-card::before {
  content: "";
  position: absolute;
  inset: -50% -30% auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.service-detail-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #fff;
}
.service-detail-icon svg { width: 32px; height: 32px; }
.service-detail-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 22px;
  letter-spacing: -0.4px;
}
.service-detail-targets h4 {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin: 0 0 14px;
}
.service-detail-targets ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.service-detail-targets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.service-detail-targets .dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* Points */
.service-detail-points h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  margin: 0 0 12px;
  color: var(--ink);
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 50px;
}
.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.point-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.point-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
  border-color: var(--primary);
}
.point-num {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft, rgba(143, 19, 19, 0.06));
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.point-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.point-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Devis section */
.service-detail-devis {
  background: var(--bg-soft, #faf6f5);
}
.devis-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.devis-info h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 14px 0 20px;
  color: var(--ink);
  line-height: 1.15;
}
.devis-service-name {
  background: linear-gradient(120deg, var(--primary), var(--primary-light, #b81b1b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.devis-info p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 32px;
}
.devis-contact-block {
  display: grid;
  gap: 12px;
}
.contact-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.contact-mini svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.contact-mini div { display: flex; flex-direction: column; }
.contact-mini strong { font-size: 15px; color: var(--ink); }
.contact-mini span { font-size: 12px; color: var(--muted); }

.devis-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  display: grid;
  gap: 16px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.06);
}
.devis-form-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.devis-form-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.devis-form-card label > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.1px;
}
.devis-form-card input,
.devis-form-card select,
.devis-form-card textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.devis-form-card input:focus,
.devis-form-card select:focus,
.devis-form-card textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(143, 19, 19, 0.08);
}
.devis-form-card textarea { resize: vertical; min-height: 110px; }
.btn-block { width: 100%; justify-content: center; }
.form-note {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: -4px;
}
.form-feedback {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.form-feedback-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.form-feedback-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Other services */
.other-services {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.other-services h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 0 0 32px;
  color: var(--ink);
  text-align: center;
}
.other-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.other-service-card {
  background: var(--bg-soft, #faf6f5);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.other-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  text-decoration: none;
}
.other-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft, rgba(143, 19, 19, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
}
.other-service-icon svg { width: 22px; height: 22px; }
.other-service-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.other-service-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 14px;
}
.other-service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  transition: gap var(--transition);
}
.other-service-card:hover .other-service-link { gap: 10px; }

@media (max-width: 960px) {
  .service-detail-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .devis-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .service-detail-hero { padding: 40px 0 30px; }
  .devis-form-card { padding: 24px; }
  .devis-form-card .form-row { grid-template-columns: 1fr; }
  .service-detail-card { padding: 28px 24px; }
}

/* ===== Retour en haut ===== */
.back-to-top {
  position: fixed;
  z-index: 45;
  right: 20px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .back-to-top {
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
  }
}

a.service-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
