/* =========================================================
   Financikal — site styles (RTL, mobile-first)
   ========================================================= */

:root {
  --ink: #0b1324;
  --ink-2: #111c33;
  --ink-3: #1a2747;
  --paper: #f8f6f1;
  --paper-2: #efebe2;
  --white: #ffffff;
  --text: #1c2333;
  --muted: #5d6577;
  --muted-light: #aab3c5;
  --gold: #c9a35a;
  --gold-light: #e9cf95;
  --gold-dark: #a37a35;
  --blue: #5b8def;
  --grad-gold: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(11, 19, 36, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 19, 36, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 800; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
}

.section-title { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); color: var(--ink); }
.section-sub { color: var(--muted); font-size: 1.125rem; max-width: 620px; margin: 1rem auto 0; }

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .8rem 1.8rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--grad-gold);
  color: var(--ink);
  box-shadow: 0 10px 25px -10px rgba(201, 163, 90, .7);
}
.btn-gold:hover { box-shadow: 0 16px 35px -12px rgba(201, 163, 90, .85); }

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .35s, box-shadow .35s, height .35s;
}
.site-header.scrolled {
  background: rgba(11, 19, 36, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -15px rgba(0, 0, 0, .5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--white); }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-he { font-weight: 800; font-size: 1.3rem; }
.brand-en {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
  direction: ltr;
  text-align: right;
}

.main-nav ul { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  position: relative;
  display: block;
  padding: .5rem .9rem;
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  border-radius: 999px;
  transition: color .25s;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  inset-inline: .9rem;
  bottom: .2rem;
  height: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.main-nav a:hover,
.main-nav a.active { color: var(--white); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.main-nav .nav-cta {
  margin-inline-start: .75rem;
  padding-inline: 1.3rem;
  color: var(--ink);
  background: var(--grad-gold);
  font-weight: 700;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.main-nav .nav-cta:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(201, 163, 90, .8); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  background: radial-gradient(ellipse at 20% 0%, var(--ink-3) 0%, var(--ink) 60%);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  animation: float 18s ease-in-out infinite alternate;
}
.orb-1 { width: 520px; height: 520px; background: rgba(201, 163, 90, .35); top: -160px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: rgba(91, 141, 239, .28); bottom: -180px; right: -100px; animation-delay: -6s; }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 40px, 0) scale(1.1); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 3rem;
}

.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.4rem);
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
}
.hero-lead {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  color: rgba(255, 255, 255, .75);
  max-width: 580px;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual { position: relative; }
.flow-svg { width: 100%; max-width: 460px; margin-inline: auto; overflow: visible; }
.flow-svg .ring { fill: none; stroke: rgba(255, 255, 255, .08); stroke-dasharray: 4 8; transform-origin: 210px 210px; animation: spin 60s linear infinite; }
.flow-svg .ring-2 { animation-direction: reverse; animation-duration: 45s; }
.flow-svg .links path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .4s var(--ease) forwards; }
.flow-svg .nodes circle {
  fill: var(--ink-2);
  stroke: var(--gold-light);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pop .6s var(--ease) both, breathe 4s ease-in-out 1s infinite;
}
.flow-svg .nodes circle:nth-child(2) { animation-delay: .15s, 1.4s; }
.flow-svg .nodes circle:nth-child(3) { animation-delay: .3s, 1.8s; }
.flow-svg .nodes circle:nth-child(4) { animation-delay: .45s, 2.2s; }
.flow-svg .nodes circle:nth-child(5) { animation-delay: .6s, 2.6s; }
.flow-svg .core { filter: drop-shadow(0 0 24px rgba(233, 207, 149, .55)); }
.flow-svg .pulses circle { filter: drop-shadow(0 0 6px #f3e2b8); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes breathe { 50% { transform: scale(1.12); } }

.scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: 20px;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-light);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(4.5rem, 3rem + 6vw, 8rem) 0; }
.section-head { text-align: center; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head .eyebrow { justify-content: center; }

/* About */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.about-text {
  font-size: 1.15rem;
  color: var(--muted);
  border-inline-start: 2px solid var(--paper-2);
  padding-inline-start: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
}

/* Approach: characterization, development & websites */
.approach {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.approach-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 20%, rgba(201, 163, 90, .18), transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(91, 141, 239, .14), transparent 45%);
}
.approach-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 70%);
}
.approach .eyebrow { color: var(--gold-light); }
.approach .section-title { color: var(--white); }

.approach-top {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.approach-intro p:not(.eyebrow) {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .75);
  max-width: 560px;
}

.ai-card {
  position: relative;
  padding: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(160deg, rgba(201, 163, 90, .14), rgba(255, 255, 255, .03) 60%);
  border: 1px solid rgba(233, 207, 149, .28);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem .35rem 1rem;
  margin-bottom: 1.2rem;
  border-radius: 999px;
  background: rgba(233, 207, 149, .12);
  border: 1px solid rgba(233, 207, 149, .3);
  color: var(--gold-light);
  font-size: .875rem;
  font-weight: 700;
}
.ai-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  animation: spin 14s linear infinite;
}
.ai-card h3 { font-size: 1.45rem; margin-bottom: .8rem; }
.ai-card p { color: rgba(255, 255, 255, .75); }
.ai-card .ai-note {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .97rem;
  color: var(--gold-light);
}

.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  inset-inline: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 207, 149, .45), transparent);
}
.step {
  position: relative;
  padding: 0 .75rem;
  text-align: center;
}
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1.5px solid var(--gold-light);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 0 8px var(--ink);
  transition: background-color .4s, color .4s, transform .4s var(--ease);
}
.step:hover .step-num { background: var(--gold); color: var(--ink); transform: scale(1.06); }
.step h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.step p { color: var(--muted-light); font-size: .98rem; }

.approach-callout {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem) clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-inline-start: 3px solid var(--gold);
}
.approach-callout p { margin: 0; font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 720px; }
.approach-callout strong { display: block; font-size: 1.35rem; color: var(--white); margin-bottom: .3rem; }
.approach-callout .btn { flex-shrink: 0; }

/* Card grids */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* Services */
.services { background: var(--white); }
.service-card {
  position: relative;
  padding: 2.2rem 2rem;
  background: var(--paper);
  border: 1px solid var(--paper-2);
  border-radius: var(--radius);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s, opacity .8s var(--ease);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.icon-wrap {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--ink);
  margin-bottom: 1.5rem;
  transition: transform .45s var(--ease);
}
.service-card:hover .icon-wrap { transform: rotate(-6deg) scale(1.05); }
.icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { font-size: 1.35rem; color: var(--ink); margin-bottom: .75rem; }
.service-card > p { color: var(--muted); }

.check-list { margin-top: 1.25rem; display: grid; gap: .5rem; }
.check-list li {
  position: relative;
  padding-inline-start: 1.7rem;
  font-size: .97rem;
  font-weight: 500;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(201, 163, 90, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3 7 10.6l4.5-5' fill='none' stroke='%23a37a35' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Products */
.products {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.products-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 163, 90, .16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(91, 141, 239, .14), transparent 45%);
}
.products .section-title { color: var(--white); }
.products .section-sub { color: var(--muted-light); }
.products .eyebrow { color: var(--gold-light); }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.4rem 2rem 2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .09);
  transition: transform .45s var(--ease), border-color .45s, background-color .45s, opacity .8s var(--ease);
}
.product-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-gold);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .45s;
  pointer-events: none;
}
.product-card:hover { transform: translateY(-6px); }
.product-card:hover::after,
.product-card.featured::after { opacity: 1; }
.product-card.featured { background: linear-gradient(180deg, rgba(201, 163, 90, .12), rgba(255, 255, 255, .02)); }

.product-emblem {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--grad-gold);
  margin-bottom: 1.6rem;
  box-shadow: 0 14px 30px -12px rgba(201, 163, 90, .6);
}
.product-emblem svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-card h3 { font-size: 1.75rem; margin-bottom: .2rem; }
.product-tag { color: var(--gold-light); font-weight: 600; font-size: .95rem; margin-bottom: 1rem; }
.product-card > p:not(.product-tag) { color: var(--muted-light); flex-grow: 1; }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  align-self: flex-start;
}
.product-link span { transition: transform .3s var(--ease); }
.product-link:hover span { transform: translateX(-6px); }

/* Advantages */
.advantages { background: var(--paper); }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--paper-2);
  border-inline-start: 1px solid var(--paper-2);
}
.adv-item {
  position: relative;
  padding: 2.4rem 2rem;
  border-bottom: 1px solid var(--paper-2);
  border-inline-end: 1px solid var(--paper-2);
  transition: background-color .4s, opacity .8s var(--ease), transform .8s var(--ease);
}
.adv-item:hover { background: var(--white); }
.adv-num {
  display: inline-block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.adv-item h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: .6rem; }
.adv-item p { color: var(--muted); font-size: 1rem; }

/* Contact */
.contact {
  background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.contact-intro p { color: var(--muted); font-size: 1.125rem; margin-top: 1.25rem; }
.contact-intro { position: sticky; top: calc(var(--header-h) + 2rem); }

.contact-form {
  background: var(--white);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--paper-2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; color: var(--ink); }
.req { color: var(--gold-dark); }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  min-height: 50px;
  padding: .75rem 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1.5px solid var(--paper-2);
  border-radius: var(--radius-sm);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235d6577' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 12px;
  padding-inline-end: 2.5rem;
}
.field input:not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover { border-color: #ddd5c4; }
.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 163, 90, .18);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #c2413b; }
.field-error {
  margin: .35rem 0 0;
  font-size: .85rem;
  color: #c2413b;
  min-height: 0;
}
.field-error:empty { display: none; }

.field-check {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .7rem;
}
.field-check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: .2rem 0 0;
  accent-color: var(--gold-dark);
  cursor: pointer;
}
.field-check label { flex: 1; font-weight: 400; color: var(--muted); cursor: pointer; margin: 0; }
.field-check .field-error { flex-basis: 100%; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(11, 19, 36, .25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.contact-form.sending .spinner { display: inline-block; }
.contact-form.sending button[type="submit"] { pointer-events: none; opacity: .85; }

.form-status {
  margin: 1rem 0 0;
  padding: 0;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-align: center;
}
.form-status:empty { display: none; }
.form-status.success { padding: .9rem 1rem; background: #e9f6ee; color: #1f6b3e; }
.form-status.error { padding: .9rem 1rem; background: #fbeceb; color: #9b2c26; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-light);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.footer-nav a { transition: color .25s; }
.footer-nav a:hover { color: var(--gold-light); }
.copyright { margin: 0; font-size: .9rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(233, 207, 149, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s, transform .35s var(--ease), visibility .35s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink-3); }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.in-view { opacity: 1; transform: none; }
/* keep card hover transforms working after reveal */
.js .service-card.reveal.in-view:hover,
.js .product-card.reveal.in-view:hover { transform: translateY(-6px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 2; }
  .hero-visual { order: 1; max-width: 340px; margin-inline: auto; width: 100%; }
  .hero .eyebrow { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .cards-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .approach-top { grid-template-columns: 1fr; }
  .approach-intro p:not(.eyebrow) { max-width: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps::before { display: none; }
  .approach-callout { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1000px) {
  :root { --header-h: 68px; }

  .menu-toggle { display: inline-flex; position: relative; z-index: 2; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(11, 19, 36, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: .5rem; text-align: center; }
  .main-nav li {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
  }
  .main-nav.open li { opacity: 1; transform: none; }
  .main-nav.open li:nth-child(2) { transition-delay: .05s; }
  .main-nav.open li:nth-child(3) { transition-delay: .1s; }
  .main-nav.open li:nth-child(4) { transition-delay: .15s; }
  .main-nav.open li:nth-child(5) { transition-delay: .2s; }
  .main-nav a { font-size: 1.5rem; padding: .7rem 1.5rem; }
  .main-nav .nav-cta { margin: 1rem 0 0; }

  .site-header .brand { position: relative; z-index: 2; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-text { border-inline-start: 0; padding-inline-start: 0; }
  .contact-intro { position: static; text-align: center; }
  .contact-intro .eyebrow { justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: min(100% - 2rem, 1180px); }
  .cards-3,
  .adv-grid,
  .form-row { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .cards-3 > :last-child:nth-child(odd) { grid-column: auto; }
  .hero { padding-bottom: 4.5rem; }
  .hero-actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    text-align: start;
    padding: 0 0 1.75rem;
  }
  .step::before {
    content: "";
    position: absolute;
    top: 46px;
    bottom: 0;
    inset-inline-start: 22px;
    width: 1px;
    background: rgba(233, 207, 149, .3);
  }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
  .step-num { grid-row: span 2; width: 46px; height: 46px; margin: 0; font-size: 1.1rem; box-shadow: none; }
  .step h3 { align-self: center; margin-bottom: .3rem; }
  .approach-callout .btn { width: 100%; }
  .scroll-hint { display: none; }
  .service-card,
  .product-card { padding: 1.9rem 1.5rem; }
  .adv-item { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .to-top { bottom: 1rem; left: 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .flow-svg .pulses { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
