/* COFRA — layout & theme */
:root {
  --bg-dark: #100e1f;
  --bg-secondary: #0A0A14;
  --color-primary: #7A73D1;
  --accent: #c4b5fd;
  --accent-strong: #8C83FD;
  --text-on-dark: #f8fafc;
  --text-muted-dark: rgba(248, 250, 252, 0.55);
  --header-bg: #ffffff;
  --header-text: #211C84;
  --header-link: #334155;
  --logo-blue: #1e3a8a;

  font-family: "Poppins", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: inherit;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.page-contact {
  background: #ffffff;
  color: #100e1f;
}

#services,
#process,
#trust,
#why,
#contact {
  scroll-margin-top: 5.5rem;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: clamp(34px, 5vw, 42px);
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex: 1;
  min-width: 0;
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-select {
  appearance: auto;
  cursor: pointer;
  min-width: 6.5rem;
  padding: 0.42rem 2rem 0.42rem 0.55rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--header-text);
  background: #f1f5ff;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-select:hover,
.lang-select:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
  background: #e8edff;
}

.lang-select:focus-visible {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--header-text) !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-list a:hover {
  color: var(--logo-blue);
}

.btn-nav {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: filter 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.btn-nav:hover {
  filter: brightness(1.05);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: var(--header-text);
}

.nav-toggle-lines {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--accent-strong);
  border: 2px solid var(--accent-strong);
}

.btn-outline:hover {
  background: rgba(167, 139, 250, 0.12);
}

/* Hero */
.hero-shell {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  background: var(--bg-dark);
  overflow: visible;
  padding: 3rem 1.25rem 0;
  min-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
}

.hero-arrow {
  position: absolute;
  left: -1%;
  bottom: -4%;
  width: clamp(99px, 64vw, 587px);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  z-index: 23;
}

.hero-inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  align-content: end;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-height: 0;
}

.hero-content {
  padding-right: 0.5rem;
  padding-bottom: 14rem;
  align-self: center;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero .accent {
  color: var(--accent-strong);
  font-weight: 700;
}

.hero .hero-h1-light {
  font-weight: 400;
}

.hero-lede {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(248, 250, 252, 0.88);
  max-width: 57ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted-dark);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: end;
}

.hero-visual-frame {
  position: relative;
  width: min(100%, 400px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
}

.hero-bg-icon {
  position: absolute;
  right: -30%;
  bottom: 0;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom right;
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.35);
  transform-origin: bottom right;
}

.hero-woman {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-width: 400px;
  object-fit: contain;
  object-position: bottom center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Trust */
.trust {
  padding: 4rem 1.25rem 5rem;
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.trust-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.trust-intro {
  margin: 0 auto 2rem;
  font-size: 20px;
  font-weight: 400;
  max-width: 70ch;
  color: var(--text-on-dark);
}

.trust-tagline {
  margin: 0 0 3rem;
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6B687C7A;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.stat-num {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 16px;
  font-weight: 500;
  color: #A6A2BE;
}

.section-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 5.5rem;
}

/* Services grid — light lavender band */
.offerings {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 1.25rem clamp(4rem, 7vw, 6rem);
  background: #f5f5ff;
  color: #0f172a;
}

/* Layered top edge: black → periwinkle → pastel lavender → pale line */
.offerings::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  height: 15px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    #0a0a0c 0 1px,
    #9a93e6 1px 8px,
    #e2def8 8px 12px,
    #faf8ff 12px 14px,
    #f5f5ff 14px 100%
  );
}

.offerings-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.offerings-header {
  margin: 0 auto 3rem;
  max-width: 42rem;
  text-align: center;
}

.offerings-label {
  margin: 0 0 0.75rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: #4D55CC;
}

.offerings-title {
  margin: 0 0 1rem;
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #0f172a;
}

.offerings-lede {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #100E1F;
}

.offerings-board {
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #bdb8fe;
  border-radius: 16px;
  background: #bdb8fe;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offering-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  margin: 0;
  background: #f5f5ff;
  transition: background 0.2s ease;
}

.offering-card:hover,
.offering-card:focus-within {
  background: #ebebff;
}

.offering-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #D9DDFF;
}

.offering-icon img {
  display: block;
  width: 22px;
  height: auto;
}

.offering-card-title {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #100E1F;
}

.offering-card-desc {
  margin: 0;
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  color: #64748b;
}

/* How we work — timeline */
.workflow {
  position: relative;
  padding: clamp(3.25rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem) clamp(4rem, 7vw, 5.5rem);
  background: #ffffff;
  color: #0f172a;
  overflow: hidden;
}

.workflow-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.workflow-header {
  margin: 0 auto 3.25rem;
  max-width: 44rem;
  text-align: center;
}

.workflow-label {
  margin: 0 0 0.75rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  color: #4D55CC;
}

.workflow-title {
  margin: 0 0 1rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #100E1F;
}

.workflow-lede {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #100E1F;
}

.workflow-track {
  position: relative;
  padding-top: 0.125rem;
  --workflow-gap: clamp(0.75rem, 2vw, 1.125rem);
}

.workflow-line {
  position: absolute;
  left: calc((100% - 5 * var(--workflow-gap)) / 12);
  right: calc((100% - 5 * var(--workflow-gap)) / 12);
  top: 25px;
  z-index: 0;
  height: 2px;
  border-radius: 9999px;
  background: #dddbff;
  pointer-events: none;
}

.workflow-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--workflow-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-step {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.workflow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 50%;
  background: #f4f3ff;
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(92, 84, 180, 0.2);
}

.workflow-step .workflow-num {
  margin-bottom: 1.05rem;
}

.workflow-num-d1 {
  color: #bdb8fe;
}

.workflow-num-d2 {
  color: #4d55cc;
}

.workflow-step-title {
  margin: 0 0 0.625rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #100E1F;
}

.workflow-step-desc {
  margin: 0 auto;
  max-width: 12.5rem;
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: #64748b;
}

/* Why COFRA — dark feature grid */
.edge {
  padding: clamp(3.5rem, 6vw, 5.25rem) 1.25rem clamp(4rem, 7vw, 6rem);
  background: var(--bg-secondary);
  color: var(--text-on-dark);
}

.edge-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.edge-header {
  margin: 0 auto 2.75rem;
  max-width: 42rem;
  text-align: center;
}

.edge-label {
  margin: 0 0 0.75rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #8C83FD;
}

.edge-title {
  margin: 0 0 1rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #FFFFFF;
}

.edge-lede {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #FFFFFF;
}

.edge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edge-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #8c83fd;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.edge-icon img {
  display: block;
  width: 18px;
  height: auto;
}

.edge-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.125rem;
  padding: clamp(1.35rem, 3vw, 1.65rem);
  border-radius: 14px;
  border: 1px solid rgba(140, 131, 253, 0.18);
  background: rgba(16, 14, 31, 0.55);
}

.edge-card-body {
  min-width: 0;
  text-align: left;
}

.edge-card-title {
  margin: 0 0 0.55rem;
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-on-dark);
}

.edge-card-desc {
  margin: 0;
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted-dark);
}

/* Flexible engagement models */
.engage {
  padding: clamp(3.25rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem) clamp(4rem, 7vw, 6rem);
  background: #faf9ff;
  color: #0f172a;
}

.engage-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.engage-header {
  margin: 0 auto clamp(2.25rem, 4vw, 3rem);
  max-width: 44rem;
  text-align: center;
}

.engage-label {
  margin: 0 0 0.75rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #4D55CC;
}

.engage-title {
  margin: 0 0 1rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #100E1F;
}

.engage-lede {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #100E1F;
}

.engage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.engage-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: min(460px, 52vw);
  padding: 0 0 clamp(3rem, 8vw, 5rem);
  overflow: visible;
}

.engage-visual-disc {
  position: absolute;
  left: clamp(0%, 1vw, 6%);
  top: clamp(-11%, -8vw, 0%);
  z-index: 0;
  width: clamp(220px, 36vw, 340px);
  height: clamp(220px, 36vw, 340px);
  border-radius: 50%;
  background: #dddbff;
}

.engage-ellipse-img {
  position: absolute;
  right: clamp(19%, 1vw, 6%);
  bottom: clamp(-9rem, 6vw, 3rem);
  z-index: 1;
  width: clamp(160px, 28vw, 240px);
  height: auto;
  max-width: none;
}

.engage-laptop {
  position: relative;
  z-index: 2;
  width: clamp(260px, 46vw, 460px);
  margin-left: clamp(8%, 12vw, 14%);
}

.engage-models {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(2rem, 4vw, 2.75rem);
}

.engage-model {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.engage-model-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
}

.engage-model-icon img {
  display: block;
  width: 40px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.engage-model-body {
  min-width: 0;
  text-align: left;
}

.engage-model-title {
  margin: 0 0 0.35rem;
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.engage-model-desc {
  margin: 0;
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.55;
  color: #64748b;
}

/* CTA — Next step */
.cta-band {
  padding: clamp(4rem, 10vw, 6.25rem) 1.25rem;
  background: #ffffff;
  color: #0f172a;
}

.cta-inner {
  display: flex;
  max-width: 52rem;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  text-align: center;
}

.cta-label {
  margin: 0 0 0.75rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  color: #8C83FD;
}

.cta-title {
  margin: 0 0 1rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #4D55CC;
}

.cta-lede {
  margin: 0 0 1.75rem;
  max-width: 47ch;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6B687C;
}

.cta-btn {
  padding: 0.62rem 1.85rem;
  border: 2px solid transparent;
  background: #8C83FD;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(140, 131, 253, 0.28);
}

.cta-btn:hover {
  filter: brightness(1.06);
}

/* Contact page (contact.html) */
.contact-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2rem) clamp(4rem, 10vw, 5.5rem);
  background: #ffffff;
  color: #100e1f;
}

.contact-section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.contact-section-eyebrow {
  margin: 0 0 0.75rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d55cc;
}

.contact-section-title {
  margin: 0 0 1rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #100e1f;
}

.contact-section-intro {
  margin: 0 0 1.75rem;
  max-width: 40ch;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: #5b6478;
}

.contact-section-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-section-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 0.15rem;
}

.contact-bullet-title {
  margin: 0 0 0.2rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #100e1f;
}

.contact-bullet-desc {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  color: #5b6478;
}

.contact-form-wrap {
  min-width: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
  width: 100%;
  padding: 0.62rem 0.85rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: #8c83fd;
  box-shadow: 0 0 0 3px rgba(140, 131, 253, 0.2);
}

.contact-form-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.contact-form-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

.contact-form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.contact-form-divider span {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4d55cc;
}

.contact-form-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.contact-form-submit {
  padding: 0.65rem 1.85rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(160deg, #1e1b4b, #12122b);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 27, 75, 0.35);
  transition: filter 0.2s ease, transform 0.15s ease;
}

.contact-form-submit:hover {
  filter: brightness(1.08);
}

.contact-form-submit:active {
  transform: translateY(1px);
}

@media (max-width: 900px) {
  .contact-section-inner {
    grid-template-columns: 1fr;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  --footer-surface-bg:
    radial-gradient(ellipse 120% 75% at 50% 100%, rgba(46, 46, 92, 0.82) 0%, rgba(30, 30, 62, 0.25) 45%, transparent 62%),
    radial-gradient(ellipse 70% 50% at 10% 100%, rgba(70, 70, 120, 0.35) 0%, transparent 55%),
    linear-gradient(
      152deg,
      #12122b 0%,
      #161632 26%,
      #1f1f43 54%,
      #282853 82%,
      #2e2e5c 100%
    );
}

.footer-main {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 13vw, 7.25rem) clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 9vw, 5.5rem);
  color: #f8fafc;
  background: var(--footer-surface-bg);
}

/* Top wave shadow: full width; tall enough so asset isn’t clipped */
.footer-main::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(260px, 52vw, 620px);
  pointer-events: none;
  z-index: 0;
  background: url("../img/sombra_waver.png") no-repeat left top;
  background-size: 100% auto;
}

.footer-glow {
  position: absolute;
  right: -18%;
  top: -40%;
  width: min(560px, 70vw);
  height: min(420px, 90%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(167, 139, 250, 0.18) 0%,
    rgba(105, 90, 180, 0.1) 38%,
    transparent 68%
  );
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  display: block;
  height: clamp(38px, 5vw, 46px);
  width: auto;
}

.footer-tagline {
  margin: 0 0 0.4rem;
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
}

.footer-tagline-muted {
  margin: 0;
  max-width: 28ch;
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.72);
}

.footer-contact-title {
  margin: 0 0 1.25rem;
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #a78bfa;
}

.footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-list li {
  margin: 0;
  padding: 0;
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #f8fafc;
}

.footer-contact-label {
  display: inline;
  font-weight: 700;
}

.footer-contact-val {
  display: inline;
  font-weight: 400;
  color: inherit;
}

a.footer-contact-val {
  text-decoration: none;
}

a.footer-contact-val:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bar {
  position: relative;
  padding: 1rem 1.25rem calc(1.125rem + 2px);
  text-align: center;
  overflow: visible;
  background: var(--footer-surface-bg);
}

/* Línea inferior con degradado tipo glow (mockup) */
.footer-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    #2d52d4 0%,
    #4f46e5 38%,
    #9333ea 72%,
    #c026d3 100%
  );
  box-shadow:
    0 0 10px rgba(79, 70, 229, 0.45),
    0 0 18px rgba(147, 51, 234, 0.25),
    0 2px 6px rgba(45, 82, 212, 0.35);
  pointer-events: none;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #888899;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-contact-block {
    max-width: 40rem;
  }
}

@media (max-width: 1040px) {
  .workflow-line {
    display: none;
  }

  .workflow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2.25rem;
  }
}

@media (max-width: 700px) {
  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }

  .workflow-step-desc {
    max-width: 17rem;
  }
}

@media (max-width: 480px) {
  .workflow-steps {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .workflow-step-desc {
    max-width: none;
  }

  .workflow-header {
    margin-bottom: 2.5rem;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }

  .hero-content {
    align-self: center;
    padding-bottom: 0;
    flex-shrink: 0;
  }

  .hero-lede {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    margin-top: auto;
    width: 100%;
    align-self: stretch;
  }

  .hero-visual-frame {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-woman {
    max-width: 320px;
  }

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

  .engage-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .engage-models {
    order: -1;
  }

  .engage-visual {
    order: 1;
    min-height: auto;
    justify-content: center;
    padding: 0 0 3.5rem;
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .engage-laptop {
    margin-left: auto;
    margin-right: auto;
    width: min(94%, 420px);
    display: block;
  }

  .engage-visual-disc {
    left: clamp(0%, 1vw, 4%);
    top: clamp(0%, 2vw, 6%);
    width: min(260px, 72vw);
    height: min(260px, 72vw);
  }

  .engage-ellipse-img {
    width: min(220px, 48vw);
    right: clamp(-4%, -1vw, 4%);
    bottom: -2.5rem;
  }

  .hero-bg-icon {
    right: -8%;
    transform: scale(1.05);
  }

  .hero-arrow {
    left: 0;
    right: 0;
    margin-inline: auto;
    bottom: -10%;
    width: min(587px, 94vw);
  }
}

@media (max-width: 768px) {
  .header-actions {
    margin-left: auto;
  }

  .lang-select {
    min-width: 3.75rem;
    padding: 0.32rem 1.6rem 0.32rem 0.5rem;
    font-size: 0.75rem;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f1f5ff;
    border: 1px solid rgba(99, 102, 241, 0.22);
    -webkit-tap-highlight-color: transparent;
  }

  .nav-toggle-lines {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: 60px;
    right: 1rem;
    left: auto;
    flex: none;
    width: min(320px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 99;
    justify-content: flex-start;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    margin-bottom: 0.75rem;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-list li a {
    display: block;
    padding: 0.65rem 0.25rem;
  }

  .trust-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .offerings-grid {
    grid-template-columns: 1fr;
  }

  .offerings-header {
    margin-bottom: 2.25rem;
  }

  .edge-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding: 0.75rem 0.85rem;
    gap: 0.6rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .lang-select {
    min-width: 3.25rem;
    padding: 0.28rem 1.4rem 0.28rem 0.45rem;
    font-size: 0.7rem;
  }

  .btn-nav {
    padding: 0.46rem 0.85rem;
    font-size: 0.82rem;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }

  .nav-toggle-lines {
    width: 18px;
  }
}

body.nav-open {
  overflow: hidden;
}

/* Scroll reveal (activado con [data-reveal] + .is-revealed en JS) */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.trust-stats .stat[data-reveal]:nth-child(1) {
  --reveal-delay: 0s;
}
.trust-stats .stat[data-reveal]:nth-child(2) {
  --reveal-delay: 0.1s;
}
.trust-stats .stat[data-reveal]:nth-child(3) {
  --reveal-delay: 0.2s;
}

.workflow-steps .workflow-step[data-reveal]:nth-child(1) {
  --reveal-delay: 0s;
}
.workflow-steps .workflow-step[data-reveal]:nth-child(2) {
  --reveal-delay: 0.06s;
}
.workflow-steps .workflow-step[data-reveal]:nth-child(3) {
  --reveal-delay: 0.12s;
}
.workflow-steps .workflow-step[data-reveal]:nth-child(4) {
  --reveal-delay: 0.18s;
}
.workflow-steps .workflow-step[data-reveal]:nth-child(5) {
  --reveal-delay: 0.24s;
}
.workflow-steps .workflow-step[data-reveal]:nth-child(6) {
  --reveal-delay: 0.3s;
}

.offerings-grid .offering-card[data-reveal]:nth-child(1) {
  --reveal-delay: 0s;
}
.offerings-grid .offering-card[data-reveal]:nth-child(2) {
  --reveal-delay: 0.045s;
}
.offerings-grid .offering-card[data-reveal]:nth-child(3) {
  --reveal-delay: 0.09s;
}
.offerings-grid .offering-card[data-reveal]:nth-child(4) {
  --reveal-delay: 0.135s;
}
.offerings-grid .offering-card[data-reveal]:nth-child(5) {
  --reveal-delay: 0.18s;
}
.offerings-grid .offering-card[data-reveal]:nth-child(6) {
  --reveal-delay: 0.225s;
}
.offerings-grid .offering-card[data-reveal]:nth-child(7) {
  --reveal-delay: 0.27s;
}
.offerings-grid .offering-card[data-reveal]:nth-child(8) {
  --reveal-delay: 0.315s;
}
.offerings-grid .offering-card[data-reveal]:nth-child(9) {
  --reveal-delay: 0.36s;
}

.edge-grid .edge-card[data-reveal]:nth-child(1) {
  --reveal-delay: 0s;
}
.edge-grid .edge-card[data-reveal]:nth-child(2) {
  --reveal-delay: 0.08s;
}
.edge-grid .edge-card[data-reveal]:nth-child(3) {
  --reveal-delay: 0.16s;
}
.edge-grid .edge-card[data-reveal]:nth-child(4) {
  --reveal-delay: 0.24s;
}

.engage-models .engage-model[data-reveal]:nth-child(1) {
  --reveal-delay: 0s;
}
.engage-models .engage-model[data-reveal]:nth-child(2) {
  --reveal-delay: 0.1s;
}
.engage-models .engage-model[data-reveal]:nth-child(3) {
  --reveal-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
