/* =========================================================
   IberiaBridge Group — Design System
   Palette:
     --night       #0A1A2F  Azul-Noite (dark backgrounds, headlines)
     --deep-blue   #12375D  Azul Profundo (primary navy)
     --gold        #C38A45  Dourado/Cobre (accent, CTAs)
     --gold-soft   #D9A766  (hover lift)
     --ivory       #F6F4EF  Marfim (page background)
     --white       #FFFFFF
     --line        #E3DFD6  Subtle ivory border
     --muted       #5C6B7E  Body text on dark? or use it on light bg
     --ink         #1A2433  Primary text on light bg
   Typography: Montserrat (400/500/600/700)
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
input, select, textarea, button { font: inherit; color: inherit; }

:root {
  --night: #0A1A2F;
  --deep-blue: #12375D;
  --gold: #C38A45;
  --gold-soft: #D9A766;
  --ivory: #F6F4EF;
  --white: #FFFFFF;
  --line: #E3DFD6;
  --line-strong: #C9C2B5;
  --ink: #1A2433;
  --muted: #5C6B7E;

  --container: 1240px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;
  --radius-pill: 999px;

  --shadow-s: 0 1px 2px rgba(10, 26, 47, 0.06);
  --shadow-m: 0 6px 20px rgba(10, 26, 47, 0.08);
  --shadow-l: 0 16px 40px rgba(10, 26, 47, 0.12);

  --ease-out: cubic-bezier(0.16, 0.84, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--night);
  margin: 0 0 0.6em;
  line-height: 1.18;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.14; }
h3 { font-size: clamp(1.25rem, 2.0vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }

p { margin: 0 0 1em; color: var(--ink); }
.lead { font-size: 1.125rem; color: var(--muted); line-height: 1.6; max-width: 60ch; }
.gold { color: var(--gold); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px; background: var(--gold);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 0;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 56px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out),
              color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out),
              transform 0.2s var(--ease-out),
              box-shadow 0.2s var(--ease-out);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn .arrow { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 6px 16px rgba(195, 138, 69, 0.28);
}
.btn--primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(195, 138, 69, 0.32);
}

.btn--secondary {
  background: transparent;
  color: var(--night);
  border-color: var(--night);
}
.btn--secondary:hover {
  background: var(--night);
  color: var(--white);
}

/* On dark surfaces, secondary uses ivory border. */
.on-dark .btn--secondary {
  color: var(--ivory);
  border-color: rgba(246, 244, 239, 0.5);
}
.on-dark .btn--secondary:hover {
  background: var(--ivory);
  color: var(--night);
  border-color: var(--ivory);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.95rem 1rem;
  border-color: transparent;
}
.btn--ghost:hover { color: var(--gold); }
.on-dark .btn--ghost { color: var(--ivory); }
.on-dark .btn--ghost:hover { color: var(--gold-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-s);
}
.nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-top: 18px;
  padding-bottom: 18px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.nav__logo .mark { width: 56px; height: auto; }
.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.nav__brand-name {
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--night);
}
.nav__brand-name strong {
  font-weight: 600;
  color: var(--gold);
}
.nav__brand-sub {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-top: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  flex: 1;
  justify-content: center;
}
.nav__links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s var(--ease-out);
  padding: 0.4rem 0;
}
.nav__links a:hover { color: var(--gold); }
.nav__links a.is-active {
  color: var(--gold);
  font-weight: 600;
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: all 0.2s var(--ease-out);
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); }
.lang-switch__current { color: var(--night); font-weight: 700; }
.lang-switch__sep { opacity: 0.45; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--night);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer (hidden on desktop; only shown on mobile when toggled open) */
.nav__drawer {
  position: fixed;
  top: 80px;
  left: 0; right: 0;
  bottom: 0;
  background: var(--white);
  padding: 2rem 28px 2.5rem;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  animation: drawerIn 0.28s var(--ease-out);
}
@keyframes drawerIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.nav__drawer.is-open { display: flex; }
.nav__drawer ul { display: flex; flex-direction: column; gap: 0.4rem; }
.nav__drawer a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--night);
  border-bottom: 1px solid var(--line);
}
.nav__drawer .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--night);
  color: var(--ivory);
  overflow: hidden;
  padding: 80px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 35%, rgba(18, 55, 93, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 40% at 25% 80%, rgba(195, 138, 69, 0.08), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  color: var(--ivory);
  margin-bottom: 1.4rem;
}
.hero h1 .gold { color: var(--gold); display: block; }
.hero__subhead {
  font-size: 1.08rem;
  color: rgba(246, 244, 239, 0.78);
  max-width: 52ch;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2rem;
  color: rgba(246, 244, 239, 0.7);
  font-size: 0.88rem;
  font-weight: 500;
}
.hero__trust .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.hero__trust .pill svg {
  width: 18px; height: 18px;
  stroke: var(--gold);
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.peninsula-map {
  width: 100%;
  max-width: 580px;
  height: auto;
}

/* ---------- Generic light section ---------- */
.section {
  padding: 90px 0;
  position: relative;
}
.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }
.section--night {
  background: var(--night);
  color: var(--ivory);
}
.section--night h2, .section--night h3, .section--night h4 { color: var(--ivory); }
.section--night p { color: rgba(246, 244, 239, 0.78); }
.section--night .section-title::after { background: var(--gold); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.section-head .section-title { margin-bottom: 0; }
.section-head .section-intro {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.section--night .section-head .section-intro { color: rgba(246, 244, 239, 0.78); }

/* ---------- Process steps (Como funciona) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 1rem;
}
.process::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(to right,
    var(--line-strong) 0%, var(--line-strong) 40%,
    var(--gold) 40%, var(--gold) 60%,
    var(--line-strong) 60%, var(--line-strong) 100%);
  opacity: 0.7;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}
.process-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 14px rgba(10, 26, 47, 0.18);
}
.process-step__icon {
  margin: 0.4rem 0 0.9rem;
  color: var(--gold);
}
.process-step__icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.process-step__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--night);
  margin-bottom: 0.45rem;
}
.process-step__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Service cards (O que fazemos) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.8rem 1.6rem 1.7rem;
  transition: transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-m);
}
.service-card__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(195, 138, 69, 0.10);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--gold);
}
.service-card__icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Sectors strip (Apoiamos empresas em) ---------- */
.sector-strip {
  background: var(--night);
  color: var(--ivory);
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}
.sector-strip::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -20px;
  width: 480px;
  height: 200px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 200' fill='none' stroke='%23C38A45' stroke-opacity='0.18' stroke-width='1.2'><path d='M30 170 L120 170'/><path d='M120 170 L120 90'/><path d='M120 90 Q170 50 220 90'/><path d='M220 90 L220 170'/><path d='M220 170 L320 170'/><path d='M320 170 L320 60'/><path d='M320 60 Q370 30 420 60'/><path d='M420 60 L420 170'/><path d='M420 170 L470 170'/><path d='M125 170 L125 130 M135 170 L135 120 M145 170 L145 130 M225 170 L225 130 M235 170 L235 120 M245 170 L245 130 M325 170 L325 100 M335 170 L335 110 M345 170 L345 120 M425 170 L425 110 M435 170 L435 120'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  pointer-events: none;
  opacity: 0.85;
}
.sector-strip .wrap { position: relative; z-index: 1; }
.sector-strip__head {
  display: flex;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.sector-strip h2 {
  color: var(--ivory);
  position: relative;
  margin-bottom: 0;
  flex-shrink: 0;
  max-width: 380px;
}
.sector-strip h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -14px;
  width: 56px; height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.sector-strip__intro {
  color: rgba(246, 244, 239, 0.7);
  font-size: 0.95rem;
  max-width: 50ch;
  margin: 0;
}
.sector-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.sector-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 1.5rem 0.5rem;
}
.sector-icon svg {
  width: 38px; height: 38px;
  stroke: var(--gold);
  stroke-width: 1.4;
  fill: none;
}
.sector-icon__label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ivory);
}

/* ---------- CTA bar ---------- */
.cta-bar {
  background: var(--ivory);
  padding: 80px 0;
  position: relative;
}
.cta-bar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
}
.cta-bar__logo {
  width: 100px;
}
.cta-bar__logo .mark { width: 100%; height: auto; }
.cta-bar__text {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  color: var(--night);
  line-height: 1.35;
  margin: 0;
}
.cta-bar__text em { font-style: normal; color: var(--gold); font-weight: 600; }

@media (max-width: 800px) {
  .cta-bar__inner { grid-template-columns: 1fr; text-align: left; gap: 1.5rem; }
  .cta-bar__logo { width: 64px; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--night);
  color: var(--ivory);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 30%, rgba(18, 55, 93, 0.5), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; max-width: 880px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 {
  color: var(--ivory);
  margin-bottom: 1.2rem;
}
.page-hero p {
  color: rgba(246, 244, 239, 0.78);
  font-size: 1.05rem;
  max-width: 64ch;
  margin: 0;
}

/* ---------- Service block (full services page) ---------- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 2.5rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
}
.service-item:last-child { border-bottom: 1px solid var(--line); }
.service-item__num {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.service-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}
.service-item p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
}
.service-item__meta { font-size: 0.88rem; }
.service-item__meta strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.service-item__meta ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.service-item__meta ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 1px;
  background: var(--gold);
}
.service-item__result {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
  margin-top: 0.8rem;
}

/* ---------- Problem cards (4-up grid) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.6rem 1.4rem;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card__num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.7rem;
  letter-spacing: 0.04em;
}
.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- Sector cards (Sectors page) ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.sector-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.8rem 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.sector-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.sector-card__icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(195, 138, 69, 0.10);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.sector-card__icon svg { width: 22px; height: 22px; stroke-width: 1.5; fill: none; }
.sector-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.sector-card p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Result list ---------- */
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2.5rem;
}
.result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}
.result-item::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 2.5rem;
  box-shadow: var(--shadow-m);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--night);
  letter-spacing: 0.02em;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 0.85rem 0.95rem;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  outline: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(195, 138, 69, 0.18);
}
.form-field textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.form-actions { margin-top: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Contact info side panel ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info {
  background: var(--night);
  color: var(--ivory);
  border-radius: var(--radius-l);
  padding: 2.5rem;
}
.contact-info h3 { color: var(--ivory); font-size: 1.2rem; margin-bottom: 1.2rem; }
.contact-info p { color: rgba(246, 244, 239, 0.78); }
.contact-info ul { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.contact-info ul li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--ivory);
}
.contact-info ul li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  stroke: var(--gold);
  stroke-width: 1.6;
  fill: none;
}
.contact-info ul li a { color: var(--ivory); transition: color 0.2s var(--ease-out); }
.contact-info ul li a:hover { color: var(--gold); }

/* ---------- Privacy / text page ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h2 { margin-top: 2rem; }
.prose p { color: var(--ink); line-height: 1.7; }
.prose ul { margin: 1rem 0 1.5rem 1.2rem; list-style: disc; }
.prose ul li { margin-bottom: 0.4rem; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: rgba(246, 244, 239, 0.7);
  padding: 70px 0 28px;
  position: relative;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(246, 244, 239, 0.10);
}
.footer__brand p {
  color: rgba(246, 244, 239, 0.62);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 38ch;
  margin: 1rem 0 0;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer__logo .mark { width: 56px; height: auto; }
.footer__logo > span { display: flex; flex-direction: column; line-height: 1.05; }
.footer__name { font-size: 1.18rem; font-weight: 500; color: var(--ivory); }
.footer__name strong { color: var(--gold); font-weight: 600; }
.footer__sub { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; color: var(--gold); margin-top: 1px; }

.footer__col h5 { color: var(--ivory); margin-bottom: 1.2rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col a {
  font-size: 0.92rem;
  color: rgba(246, 244, 239, 0.65);
  transition: color 0.2s var(--ease-out);
}
.footer__col a:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: rgba(246, 244, 239, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__lang { display: inline-flex; gap: 0.5rem; }
.footer__lang a { transition: color 0.2s var(--ease-out); }
.footer__lang a:hover { color: var(--gold); }

/* ---------- Assistant widget ---------- */
.assistant-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  z-index: 90;
  box-shadow: 0 12px 28px rgba(195, 138, 69, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.assistant-fab:hover { transform: scale(1.06); background: var(--gold-soft); }
.assistant-fab svg { width: 24px; height: 24px; }
.assistant-fab__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.7;
  animation: pulse 2.4s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes pulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.45); opacity: 0; }
}

.assistant-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: min(360px, calc(100vw - 32px));
  background: var(--white);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  z-index: 91;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(70vh, 580px);
}
.assistant-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.assistant-panel__header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  background: var(--night);
  color: var(--ivory);
}
.assistant-panel__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.assistant-panel__title { font-weight: 600; font-size: 0.95rem; }
.assistant-panel__status { font-size: 0.78rem; color: rgba(246, 244, 239, 0.66); display: flex; align-items: center; gap: 0.4rem; }
.assistant-panel__status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #58D08A;
}
.assistant-panel__close {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(246, 244, 239, 0.7);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.assistant-panel__close:hover { background: rgba(246, 244, 239, 0.1); color: var(--ivory); }

.assistant-panel__body {
  padding: 1rem 1rem 0.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  scroll-behavior: smooth;
}

/* Chat bubbles */
.chat-msg {
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 88%;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.chat-msg--bot {
  background: var(--ivory);
  color: var(--ink);
  align-self: flex-start;
  border-top-left-radius: 4px;
}
.chat-msg--user {
  background: var(--night);
  color: var(--ivory);
  align-self: flex-end;
  border-top-right-radius: 4px;
}
.chat-msg a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.chat-msg--user a { color: var(--gold-soft, #D9A766); }

/* Typing dots animation */
.chat-typing {
  display: inline-flex;
  gap: 4px;
  padding: 0.85rem 1rem;
  align-items: center;
  min-height: 36px;
}
.chat-typing > span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  animation: chatDot 1.2s infinite ease-in-out;
}
.chat-typing > span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing > span:nth-child(3) { animation-delay: 0.36s; }
@keyframes chatDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* Quick-suggestion buttons (visible until first message sent) */
.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.3rem 0 0.4rem;
}
.chat-suggestions.is-hidden { display: none; }
.chat-suggestion {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}
.chat-suggestion:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(195, 138, 69, 0.04);
}

/* Chat input row at the bottom of the panel */
.chat-input-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.chat-input-form input {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--ivory);
  outline: none;
  transition: border-color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}
.chat-input-form input:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(195, 138, 69, 0.15);
}
.chat-input-form button {
  width: 38px; height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s var(--ease-out), transform 0.12s var(--ease-out);
}
.chat-input-form button:hover { background: var(--gold-soft, #D9A766); transform: translateY(-1px); }
.chat-input-form button:active { transform: translateY(0); }
.chat-input-form button svg { width: 16px; height: 16px; transform: translateX(-1px); }

.assistant-panel__footer {
  padding: 0.7rem 1.2rem;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.reveal { transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); }
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Selection ---------- */
::selection { background: var(--gold); color: var(--white); }
::-moz-selection { background: var(--gold); color: var(--white); }

/* =========================================================
   Responsive — Tablet (≤960px)
   ========================================================= */
@media (max-width: 960px) {
  .hero { padding: 60px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { order: -1; max-width: 480px; margin: 0 auto; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav { gap: 1rem; padding-top: 14px; padding-bottom: 14px; }
  .nav__cta .btn--primary { display: none; } /* hide inline CTA on small screens */
  .nav__brand-name { font-size: 1.05rem; }
  .nav__brand-sub { font-size: 0.72rem; }
  .nav__logo .mark { width: 48px; }

  .section { padding: 60px 0; }

  .process { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; row-gap: 2.5rem; }
  .process::before { display: none; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-icons { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .sector-strip__head { gap: 1.5rem; }

  .result-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.6rem; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }

  .service-item { grid-template-columns: 1fr; gap: 1rem; }
  .service-item__num { color: var(--gold); }

  .section-head { gap: 1rem; }

  h1 { font-size: clamp(2.05rem, 7vw, 2.8rem); }
  h2 { font-size: clamp(1.7rem, 5vw, 2.1rem); }
}

/* =========================================================
   Responsive — Phone (≤520px)
   ========================================================= */
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 44px 0 56px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .hero__trust { gap: 0.85rem 1.5rem; }

  .service-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr; }
  .sector-icons { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; }

  .assistant-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .assistant-fab svg { width: 22px; height: 22px; }
  .assistant-panel { right: 12px; left: 12px; bottom: 80px; width: auto; }

  .form-card { padding: 1.2rem; }
}
