:root {
  /* Concrete / cimento queimado palette */
  --bg: #d7d5cf;
  --bg-2: #c7c4bd;
  --ink: #221f1b;
  --text: #221f1b;
  --muted: #5c574f;
  --muted-soft: #79746a;

  --surface: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.7);
  --line: rgba(34, 31, 27, 0.1);
  --line-strong: rgba(34, 31, 27, 0.16);

  --steel: #131110;
  --steel-2: #1d2226;

  --primary: #F15A29;
  --primary-2: #D6491E;
  --accent: #F15A29;
  --success: #4c8f68;
  --warning: #b9843c;
  --danger: #c15a52;

  --shadow: 0 18px 40px rgba(30, 28, 24, 0.14);
  --shadow-soft: 0 10px 24px rgba(30, 28, 24, 0.08);
  --container: 1180px;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background-color: #a0a0a0;
  background-image: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
}

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

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

button, input, textarea, select { font: inherit; }

.page-shell {
  position: relative;
  min-height: 100vh;
}

/* Decorative legacy layers kept in markup but switched off for a calmer, cleaner surface */
.noise,
.bg-grid,
.bg-orb {
  display: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- Header: dark steel bar over the concrete ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, var(--steel-2), var(--steel));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(10, 12, 14, 0.22);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.06rem;
}

.brand-logo {
  display: block;
  width: clamp(150px, 15vw, 190px);
  height: auto;
}

.topbar .brand-text {
  color: #f3f1ec;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #f3f1ec;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(214, 73, 30, 0.35);
}

.brand-text { letter-spacing: -0.05em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}

.language-picker { position: relative; }

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #f3f1ec;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.language-trigger:hover,
.language-trigger:focus-visible { background: rgba(255, 255, 255, 0.1); }

.language-chevron { color: rgba(243, 241, 236, 0.7); font-size: 1rem; line-height: 1; }

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  min-width: 170px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(20, 24, 27, 0.98);
  box-shadow: var(--shadow);
}

.language-picker.is-open .language-menu { display: grid; gap: 4px; }

.language-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(243, 241, 236, 0.78);
  cursor: pointer;
  text-align: left;
  font-size: 0.84rem;
  font-weight: 600;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button.is-selected { background: rgba(241, 90, 41, 0.18); color: #f3f1ec; }

.main-nav a,
.footer-links a {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.main-nav a {
  color: rgba(243, 241, 236, 0.66);
  border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #f3f1ec;
  background: rgba(255, 255, 255, 0.08);
}

.main-nav a.is-active {
  color: #f3f1ec;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-links a { color: rgba(34, 31, 27, 0.72); }

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  background: rgba(34, 31, 27, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover, .btn:focus-visible { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #f3f1ec;
  box-shadow: 0 16px 30px rgba(214, 73, 30, 0.3);
}

.btn-secondary {
  background: rgba(34, 31, 27, 0.05);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover { background: rgba(34, 31, 27, 0.09); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 60px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(241, 90, 41, 0.35);
  background: rgba(241, 90, 41, 0.1);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.hero-copy h1,
.section-head h2,
.page-head h1,
.feature-copy h2,
.cta-box h2 {
  letter-spacing: -0.055em;
  color: var(--ink);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.7rem, 4.6vw, 4.6rem);
  line-height: 1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead,
.feature-copy p,
.page-intro p,
.card p,
.mini-card p,
.timeline-item p,
.page-list li,
.contact-copy p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 600px;
  margin: 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  max-width: 520px;
}

.stat-card {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 2vw, 2rem);
  letter-spacing: -0.05em;
  color: var(--ink);
}

.stat-card span {
  color: #000;
  font-size: 0.72rem;
  line-height: 1.5;
}

/* ---------- Trust bar (builds confidence before the visitor scrolls further) ---------- */
.trust-bar {
  margin-top: 30px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.trust-item .trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(76, 143, 104, 0.14);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Hero visual: two device cards, stacked so nothing collides ---------- */
.hero-visual {
  position: relative;
  min-height: 620px;
}

.visual-card,
.floating-note,
.card,
.mini-card,
.timeline-item,
.feature-panel,
.contact-panel,
.contact-copy,
.page-quote,
.page-grid-item,
.page-intro,
.faq-item {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.visual-card {
  position: absolute;
  border-radius: 20px;
  padding: 18px;
}

.panel-a {
  top: 0;
  right: 0;
  z-index: 2;
  width: 320px;
  transform: rotate(2.5deg);
}

.panel-b {
  left: 0;
  bottom: 132px;
  z-index: 3;
  width: 320px;
  transform: rotate(-2.5deg);
}

.window-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.green { background: var(--success); }
.dot.yellow { background: var(--warning); }
.dot.red { background: var(--danger); }

.panel-body {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 12px;
  background: rgba(34, 31, 27, 0.02);
}

.mini-label-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-label-row strong {
  color: var(--ink);
  font-size: 1.9rem;
  letter-spacing: -0.06em;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 96px;
}

.bars span {
  flex: 1;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 20px rgba(241, 90, 41, 0.22);
}

/* status-row inside the hero's small "order tracking" card (panel-b) */
.panel-b .status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.76rem;
  color: var(--muted);
}

.panel-b .status-row em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: rgba(76, 143, 104, 0.1);
  border: 1px solid rgba(76, 143, 104, 0.24);
  border-radius: 999px;
  color: var(--success);
  font-style: normal;
  font-weight: 700;
}

.progress-track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(34, 31, 27, 0.08);
  margin-bottom: 14px;
}

.progress-track span {
  display: block;
  width: 76%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.flow-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.flow-list li {
  position: relative;
  padding-left: 18px;
}

.flow-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(34, 31, 27, 0.16);
}

.flow-list li.done::before { background: var(--success); }
.flow-list li.current::before { background: var(--warning); }

.floating-note {
  position: absolute;
  left: 36px;
  bottom: 0;
  z-index: 4;
  width: 236px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--steel-2), var(--steel));
  border-color: rgba(255, 255, 255, 0.08);
}

.pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(241, 90, 41, 0.16);
  color: #F7A484;
  border: 1px solid rgba(241, 90, 41, 0.3);
}

.floating-note strong {
  display: block;
  margin-top: 12px;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  line-height: 1.42;
  color: #f3f1ec;
}

/* ---------- Ticker ---------- */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.ticker {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  padding: 16px 0;
  color: #000;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: marquee 24s linear infinite;
}

.ticker span::before {
  content: "•";
  margin-right: 22px;
  color: var(--primary);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }

.section-alt {
  background: rgba(34, 31, 27, 0.035);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { margin-bottom: 40px; }

.section-head h2,
.page-head h1,
.feature-copy h2,
.cta-box h2 {
  margin: 16px 0 0;
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  line-height: 1.08;
}

.service-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card,
.mini-card {
  border-radius: 20px;
  padding: 26px 22px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover,
.mini-card:hover,
.timeline-item:hover,
.contact-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(241, 90, 41, 0.3);
  box-shadow: 0 22px 44px rgba(30, 28, 24, 0.16);
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(241, 90, 41, 0.1);
  color: var(--primary-2);
  font-weight: 800;
  border: 1px solid rgba(241, 90, 41, 0.2);
}

.card h3,
.mini-card h3,
.timeline-item h3,
.contact-copy h3,
.page-grid-item h3,
.faq-item h3 {
  margin: 16px 0 8px;
  font-size: 1.34rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* ---------- Team section ("Conheça nosso time") ---------- */
.team-intro {
  max-width: 620px;
  margin: 0 0 48px;
  color: var(--muted);
  line-height: 1.75;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

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

.team-photo-frame {
  position: relative;
  height: 300px;
  margin: 0 auto 26px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.team-swatch {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 74%;
  max-width: 232px;
  height: 264px;
  background: var(--primary);
  border-radius: 30px;
  box-shadow: var(--shadow);
  transform: translateX(-50%) rotate(var(--tilt, 0deg));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.team-card:nth-child(1) .team-swatch { --tilt: -6deg; }
.team-card:nth-child(2) .team-swatch { --tilt: 3deg; }
.team-card:nth-child(3) .team-swatch { --tilt: -4deg; }

.team-card:hover .team-swatch {
  transform: translateX(-50%) rotate(calc(var(--tilt) * 1.6));
  box-shadow: 0 26px 52px rgba(30, 28, 24, 0.22);
}

.team-photo {
  position: relative;
  z-index: 1;
  height: 300px;
  width: auto;
  max-width: 88%;
  object-fit: contain;
  object-position: bottom;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.team-card:hover .team-photo {
  transform: scale(1.08);
}

.team-info h3 {
  margin: 0 0 6px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.team-role {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-2);
  max-width: 240px;
}

@media (max-width: 680px) {
  .team-photo-frame { height: 260px; }
  .team-photo { height: 260px; }
  .team-swatch { height: 226px; }
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #f3f1ec;
  font-weight: 900;
}

.feature-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
  border-radius: 26px;
  align-items: start;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding-top: 6px;
}

.left-panel { padding: 4px; }

.right-panel { padding: 0; }

.portal-preview {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(165deg, var(--steel-2), var(--steel));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-header .project-name strong {
  display: block;
  color: #f3f1ec;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.portal-header .project-name .muted {
  margin-top: 2px;
  color: rgba(243, 241, 236, 0.48);
  font-size: 0.78rem;
}

.project-name {
  margin-left: 12px;
  color: rgba(243, 241, 236, 0.55);
  font-size: 0.8rem;
}

.pill.project-status {
  padding: 7px 13px;
  background: rgba(76, 143, 104, 0.16);
  border: 1px solid rgba(76, 143, 104, 0.32);
  color: #86d6a8;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

/* Simple status list used on the homepage feature preview (flat items, no marker column) */
.portal-status {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.portal-status > .status-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.portal-status > .status-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 241, 236, 0.75);
}

.portal-status > .status-item.done span { background: rgba(76, 143, 104, 0.18); color: #7fd0a2; }
.portal-status > .status-item.current span { background: rgba(185, 132, 60, 0.2); color: #e4b876; }
.portal-status > .status-item.pending span { background: rgba(255, 255, 255, 0.06); color: rgba(243, 241, 236, 0.45); }

.portal-status > .status-item strong { display: block; color: #f3f1ec; }
.portal-status > .status-item small { display: block; color: rgba(243, 241, 236, 0.5); }

/* Full 7-step timeline used on the Portal page (marker + status-row + status-item[pill]) */
.portal-status {
  position: relative;
}

.portal-status:has(.status-row) {
  padding-left: 4px;
}

.portal-status .status-row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.portal-status .status-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: -14px;
  width: 2px;
  background: rgba(255, 255, 255, 0.09);
}

.portal-status .status-row.marker-done-line:not(:last-child)::after {
  background: var(--success);
}

.marker {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  border: 2px solid var(--steel);
  margin-top: 2px;
}

.marker.done { background: var(--success); color: #0c1a13; }
.marker.current { background: var(--warning); color: #241a09; box-shadow: 0 0 0 5px rgba(185, 132, 60, 0.22); }
.marker.pending { background: rgba(255, 255, 255, 0.08); color: rgba(243, 241, 236, 0.4); }

.status-row .status-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-row .status-item.highlight {
  background: rgba(185, 132, 60, 0.08);
  border-color: rgba(185, 132, 60, 0.28);
}

.status-row .status-item strong {
  display: block;
  color: #f3f1ec;
  font-size: 0.94rem;
  letter-spacing: -0.015em;
}

.status-row .status-item.pending strong { color: rgba(243, 241, 236, 0.55); }

.status-row .status-item small {
  display: block;
  margin-top: 3px;
  color: rgba(243, 241, 236, 0.46);
  font-size: 0.78rem;
}

.pill.small {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 0.68rem;
  text-transform: none;
  letter-spacing: 0.02em;
  background: rgba(76, 143, 104, 0.14);
  border-color: rgba(76, 143, 104, 0.3);
  color: #86d6a8;
}

.pill.small.warning {
  background: rgba(185, 132, 60, 0.18);
  border-color: rgba(185, 132, 60, 0.32);
  color: #e4b876;
}

.pill.small.muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(243, 241, 236, 0.5);
}

.stats-row {
  display: flex;
  gap: 26px;
  margin-top: 8px;
}

.stats-row .stat strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.stats-row .stat small {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.cta-section { padding-top: 16px; padding-bottom: 96px; }

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border: 1px solid rgba(241, 90, 41, 0.28);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(241, 90, 41, 0.1), rgba(255, 255, 255, 0.6));
  box-shadow: var(--shadow);
}

/* ---------- FAQ (reduces friction before someone requests a quote) ---------- */
.faq-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.faq-item {
  border-radius: 18px;
  padding: 22px 24px;
}

.faq-item p { margin: 6px 0 0; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 40px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-col p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-contact a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-contact a:hover { color: var(--primary-2); }

.footer-col .footer-links {
  display: grid;
  gap: 4px;
}

.footer-col .footer-links a { padding: 4px 0; border-radius: 0; }

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-fine {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Page transition + reveal (content stays visible even without JS) ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--steel-2), var(--steel));
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  z-index: 90;
  transition: clip-path 0.62s cubic-bezier(0.76, 0, 0.24, 1);
}

body.is-transitioning .page-transition {
  clip-path: inset(0 0 0% 0);
}

body.is-loading .page-transition { transition: none; }

.page-shell {
  opacity: 0;
  animation: pageEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.reveal {
  opacity: 1;
  transform: translateY(16px);
  transition: transform 0.6s ease;
}

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

/* ---------- Secondary pages ---------- */
.page-header-wrap { padding: 64px 0 20px; }

.page-head { max-width: 780px; }

.page-intro {
  border-radius: 24px;
  padding: 30px 28px;
  margin-bottom: 26px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.page-grid-item {
  border-radius: 20px;
  padding: 24px 22px;
}

.page-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page-list li {
  position: relative;
  padding-left: 24px;
}

.page-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

.page-quote {
  border-radius: 20px;
  padding: 28px 26px;
  margin-top: 24px;
}

.page-quote p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.5;
  letter-spacing: -0.03em;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-copy,
.contact-panel {
  border-radius: 22px;
  padding: 26px 22px;
}

.contact-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-note .trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(76, 143, 104, 0.14);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.contact-panel form {
  display: grid;
  gap: 14px;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
}

.contact-panel input::placeholder,
.contact-panel textarea::placeholder {
  color: var(--muted-soft);
}

.contact-panel input:focus,
.contact-panel textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(241, 90, 41, 0.14);
}

.contact-panel textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.76rem;
  text-align: center;
}

.form-note a {
  color: var(--primary-2);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-panel,
  .contact-layout,
  .page-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .benefits-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-wrap {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
  }

  .language-picker { margin-left: auto; }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual { min-height: 520px; }

  .status-row .status-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 680px) {
  .nav-wrap { gap: 10px; }
  .language-trigger { padding: 0 11px; }
  .language-menu { right: -4px; }

  .section { padding: 72px 0; }

  .service-grid,
  .benefits-grid,
  .team-grid,
  .stats-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .stats-row { flex-direction: column; gap: 12px; }

  .trust-bar { flex-direction: column; }

  .hero-copy h1 { font-size: 2.5rem; }

  .visual-card {
    position: relative;
    width: 100%;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin-bottom: 14px;
  }

  .hero-visual {
    display: grid;
    min-height: auto;
  }

  .floating-note {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 4px;
  }

  .cta-box,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================================
   LOADER SIGNATURE — the "hello" handwriting reveal
   ========================================================================= */

.loader-signature {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.loader-signature-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 90, 41, 0.32), transparent 68%);
  opacity: 0;
  transform: scale(0.6);
  filter: blur(4px);
  z-index: -1;
}

/* Real handwritten "hello": vector outline traced from the Dancing Script
   glyph contours, drawn stroke-by-stroke like a pen, then inked with a
   solid fill. See .loader-signature-outline / .loader-signature-fill. */
.loader-signature-svg {
  display: block;
  width: clamp(8.2rem, 27vw, 17rem);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 60px rgba(241, 90, 41, 0.35));
}

.loader-signature-outline,
.loader-signature-fill {
  fill: #f3f1ec;
}

.loader-signature-outline {
  fill: none;
  stroke: var(--primary);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loader-signature-fill {
  opacity: 0;
}

.loader-signature-line {
  display: block;
  width: 0%;
  max-width: 220px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: left;
}

/* ---------- Circular progress ring around the mark ---------- */
.loader-mark-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.loader-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.loader-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2;
}

.loader-ring-progress {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 276.5;
  stroke-dashoffset: 276.5;
}

/* ---------- Ambient glow behind the whole stage ---------- */
.loader::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 620px;
  height: 620px;
  max-width: 140vw;
  max-height: 140vw;
  transform: translate(-50%, -50%) scale(0.92);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 90, 41, 0.16), transparent 70%);
  animation: loaderGlowPulse 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes loaderGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
}

/* ---------- Floating particles ---------- */
.loader-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.loader-particles span {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(243, 241, 236, 0.4);
  animation: loaderFloat 4.2s ease-in-out infinite;
}

.loader-particles span:nth-child(1) { left: 18%; animation-delay: 0s; background: rgba(241, 90, 41, 0.5); }
.loader-particles span:nth-child(2) { left: 32%; animation-delay: 0.6s; }
.loader-particles span:nth-child(3) { left: 48%; animation-delay: 1.2s; background: rgba(178, 101, 44, 0.5); }
.loader-particles span:nth-child(4) { left: 64%; animation-delay: 0.3s; }
.loader-particles span:nth-child(5) { left: 78%; animation-delay: 1.6s; background: rgba(241, 90, 41, 0.4); }
.loader-particles span:nth-child(6) { left: 88%; animation-delay: 0.9s; }

@keyframes loaderFloat {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 0.6; }
  100% { transform: translateY(-70vh) scale(1); opacity: 0; }
}

@media (max-width: 680px) {
  .loader-signature-svg { width: clamp(5.7rem, 32vw, 8.2rem); }
  .loader-signature-glow { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
  .loader-mark-wrap { width: 76px; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .loader::before,
  .loader-particles span { animation: none; display: none; }
}

/* =========================================================================
   MOTION SYSTEM — loading screen, custom cursor, split-text, scroll reveals
   ========================================================================= */

/* Only reveal the loader once JS confirms it can run the sequence.
   Without JS the "no-js" class stays on <body> and the loader never shows. */
.loader { display: none; }
body:not(.no-js) .loader { display: flex; }

body.is-loading { overflow: hidden; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--steel-2), var(--steel));
  clip-path: inset(0 0 0% 0);
  overflow: hidden;
}

.loader-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding: 0 24px;
  width: max-content;
  max-width: 90vw;
}

.loader-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #f3f1ec;
  font-weight: 900;
  font-size: 1.5rem;
  transform: scale(0.5);
  box-shadow: 0 16px 34px rgba(214, 73, 30, 0.35);
}

.loader-sway {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: clamp(150px, 24vw, 260px);
  height: auto;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.82);
}

.loader-word { overflow: hidden; }

.loader-word-mask { display: block; overflow: hidden; }

.loader-word-inner {
  display: inline-block;
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #f3f1ec;
  transform: translateY(115%);
}

.loader-word-inner em { color: var(--primary); font-style: normal; }

.loader-tagline {
  margin: 0;
  max-width: 340px;
  color: rgba(243, 241, 236, 0.5);
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(10px);
}

.loader-meter {
  width: 260px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
}

.loader-meter-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.loader-count {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(243, 241, 236, 0.4);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(10px);
}

.loader-count-value { color: #f3f1ec; font-weight: 700; }

/* ---------- Scroll progress hairline ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 150;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Custom cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.has-custom-cursor.cursor-active .cursor-dot,
body.has-custom-cursor.cursor-active .cursor-ring { opacity: 1; }

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--ink);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-dot.is-pressed { width: 4px; height: 4px; }

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(34, 31, 27, 0.32);
  transition: width 0.28s ease, height 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.cursor-ring.is-active {
  width: 64px;
  height: 64px;
  border-color: var(--primary);
  background: rgba(241, 90, 41, 0.08);
}

.cursor-dot, .cursor-ring { display: none; }

body.has-custom-cursor .cursor-dot,
body.has-custom-cursor .cursor-ring { display: block; }

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea { cursor: none; }

/* ---------- Split-text word masks (hero + section headings) ---------- */
.word-mask { display: inline-block; overflow: hidden; vertical-align: top; }
.word-inner { display: inline-block; will-change: transform; }

/* ---------- Section accent line (drawn on scroll, ties sections together) ---------- */
.line-draw {
  display: block;
  width: 56px;
  height: 2px;
  margin: 16px 0 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform-origin: left;
  transform: scaleX(0);
}

.cta-box .line-draw { background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* ---------- Nav toggle (hamburger, mobile only) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  z-index: 70;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  background: #f3f1ec;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Nav underline micro-interaction ---------- */
.main-nav a { position: relative; }

.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

/* ---------- Button fill sweep ---------- */
.btn-primary { position: relative; overflow: hidden; }

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}

.btn-primary:hover::before { transform: translateX(0); }

.btn-primary span, .btn-primary { position: relative; }

/* ---------- Mobile fullscreen navigation ---------- */
@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(165deg, var(--steel-2), var(--steel));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a {
    color: rgba(243, 241, 236, 0.75);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    padding: 12px 20px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease, color 0.2s ease;
  }

  .main-nav a::after { display: none; }
  .main-nav a.is-active { background: transparent; color: #f3f1ec; }

  body.nav-open .main-nav a { opacity: 1; transform: translateY(0); }
  body.nav-open .main-nav a:nth-child(1) { transition-delay: 0.08s; }
  body.nav-open .main-nav a:nth-child(2) { transition-delay: 0.14s; }
  body.nav-open .main-nav a:nth-child(3) { transition-delay: 0.2s; }
  body.nav-open .main-nav a:nth-child(4) { transition-delay: 0.26s; }

  .language-picker { margin-left: 0; }
}

/* ---------- Reduced motion & accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .loader { display: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .page-transition { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Small-screen tuning for the motion system ---------- */
@media (max-width: 680px) {
  .loader-word-inner { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .loader-tagline { font-size: 0.76rem; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* Threeva identity assets */
.brand-mark,
.brand-text,
.loader-ring,
.loader-word,
.loader-signature { display: none; }

.loader-mark {
  width: clamp(150px, 22vw, 220px);
  height: auto;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  transform: scale(0.94);
  animation: threevaMascotPulse 2.4s ease-in-out infinite;
}

@keyframes threevaMascotPulse {
  0%, 100% { opacity: 0.78; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1); }
}
