/* ============================================================
   JH Redovisning & Konsult AB
   Premium dark-green + gold design system
   Zero dependencies · system fonts · GDPR-clean
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Greens */
  --bg:          #081a13;
  --bg-2:        #0a2117;
  --surface:     #0e2a1f;
  --surface-2:   #12352759;
  --surface-hi:  #143b2c;

  /* Gold */
  --gold:        #d6b16a;
  --gold-bright: #f3dc9a;
  --gold-deep:   #b0863a;
  --gold-grad:   linear-gradient(135deg, #f3dc9a 0%, #d6b16a 45%, #b0863a 100%);

  /* Text */
  --cream:       #f4efe4;
  --text:        #e7e2d5;
  --text-muted:  #9fb0a4;
  --text-faint:  #94a89c;

  /* Lines & shadows */
  --line:        rgba(214,177,106,0.18);
  --line-soft:   rgba(244,239,228,0.08);
  --shadow-lg:   0 30px 60px -25px rgba(0,0,0,0.65);
  --shadow-gold: 0 20px 50px -20px rgba(214,177,106,0.25);

  /* Type */
  --font-serif:  Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-sans:   system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw:        1200px;
  --gutter:      clamp(20px, 5vw, 48px);
  --radius:      16px;
  --radius-lg:   26px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scroll-padding-top: 88px;
}

/* Fine grain + ambient green gradient behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 80% -5%, rgba(214,177,106,0.10), transparent 60%),
    radial-gradient(900px 700px at 0% 20%, rgba(23,73,58,0.55), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }

::selection { background: rgba(214,177,106,0.28); color: var(--cream); }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--gold); color: #16130a; font-weight: 600;
  padding: 10px 18px; border-radius: 10px; z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }
#main:focus { outline: none; }

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.eyebrow__dot {
  width: 26px; height: 1px; background: var(--gold);
  display: inline-block; opacity: 0.7;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.section__intro {
  margin-top: 20px;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 1.06rem;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 100px;
  font-weight: 600; font-size: 0.96rem; letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap; will-change: transform;
}
.btn--sm  { --pad-y: 10px; --pad-x: 18px; font-size: 0.9rem; }
.btn--lg  { --pad-y: 17px; --pad-x: 34px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--gold-grad);
  color: #17130a;
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 55px -18px rgba(214,177,106,0.5); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--cream);
  border: 1px solid var(--line);
  background: rgba(244,239,228,0.02);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  --header-h: 84px;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header[data-scrolled="true"] {
  --header-h: 70px;
  background: rgba(8,26,19,0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px -24px rgba(0,0,0,0.9);
}
.header__inner {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
  transition: height 0.4s var(--ease);
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(circle at 50% 30%, rgba(214,177,106,0.14), transparent 70%);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.24rem;
  color: var(--cream); letter-spacing: 0.01em;
}
.brand__sub {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 2px; }
.nav__link {
  position: relative; white-space: nowrap;
  padding: 10px 13px; border-radius: 100px;
  font-size: 0.95rem; color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px;
  height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease); opacity: 0.8;
}
.nav__link:hover { color: var(--cream); }
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { color: var(--gold-bright); }

.header__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header__phone svg { color: var(--gold); }

/* Hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; flex-shrink: 0; }
.nav-toggle__bar {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px;
  background: var(--cream); transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bar:nth-child(1) { top: 15px; }
.nav-toggle__bar:nth-child(2) { top: 21px; }
.nav-toggle__bar:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  background: linear-gradient(180deg, #0b2318 0%, #081a13 100%);
  padding: 18px var(--gutter) 34px;
  overflow-y: auto; overscroll-behavior: contain;
  animation: menuIn 0.35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.mobile-menu__list { display: flex; flex-direction: column; }
.mobile-menu__list a {
  display: block; padding: 15px 4px; font-family: var(--font-serif);
  font-size: 1.4rem; color: var(--cream); border-bottom: 1px solid var(--line-soft);
}
.mobile-menu__list a:hover { color: var(--gold-bright); }
.mobile-menu__actions { display: grid; gap: 12px; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(120px, 18vh, 190px) 0 0;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow {
  position: absolute; top: -10%; right: -5%;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,177,106,0.18), transparent 62%);
  filter: blur(10px);
}
.hero__arc {
  position: absolute; top: 8%; right: -140px;
  width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid var(--line);
  border-right-color: transparent; border-bottom-color: transparent;
  transform: rotate(25deg);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(385deg); } }
@media (prefers-reduced-motion: reduce) { .hero__arc { animation: none; } }

.hero__inner {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding-bottom: clamp(60px, 9vh, 96px);
}
.hero__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.03; letter-spacing: -0.015em;
  color: var(--cream);
}
.hero__lead {
  margin-top: 26px; max-width: 52ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
}
.hero__lead em { color: var(--gold-bright); font-style: normal; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 40px;
  font-size: 0.9rem; color: var(--text-muted);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { color: var(--gold); }

.hero__call {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  margin-top: 26px; padding: 12px 20px;
  border: 1px solid var(--line); border-radius: 100px;
  background: rgba(214,177,106,0.06);
  font-size: 0.98rem; color: var(--text-muted);
}
.hero__call svg { color: var(--gold); flex-shrink: 0; }
.hero__call a {
  color: var(--gold-bright); font-weight: 700; font-size: 1.06rem;
  letter-spacing: 0.02em; white-space: nowrap;
}
.hero__call a:hover { text-decoration: underline; text-underline-offset: 3px; }
[dir="rtl"] .hero__call a { direction: ltr; }

/* Hero card */
.hero__card {
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(20,59,44,0.55), rgba(10,33,23,0.35));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.pillars { display: grid; gap: 8px; }
.pillar {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.pillar:last-child { border-bottom: none; }
.pillar__num {
  grid-row: 1 / 3; font-family: var(--font-serif); font-size: 1.5rem;
  color: var(--gold); opacity: 0.85;
}
.pillar__label { font-family: var(--font-serif); font-size: 1.5rem; color: var(--cream); line-height: 1; }
.pillar__desc { font-size: 0.92rem; color: var(--text-muted); margin-top: 4px; }
.hero__card-foot {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px;
  font-size: 0.8rem; letter-spacing: 0.03em; color: var(--text-faint);
}

/* Marquee */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; margin-top: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 34px;
  white-space: nowrap; will-change: transform;
  animation: marquee 34s linear infinite;
  font-family: var(--font-serif); font-size: 1.35rem; color: var(--text-muted);
}
.marquee__track span { flex-shrink: 0; }
.marquee__dot { color: var(--gold); font-size: 0.7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vh, 130px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(14,42,31,0.4), transparent); }
.section--alt::before, .section--alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line-soft);
}
.section--alt::before { top: 0; } .section--alt::after { bottom: 0; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 66px); }

/* Grids */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Service groups */
.service-group + .service-group { margin-top: 56px; }
.service-group__head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.service-group__kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); flex-shrink: 0;
}
.hairline { flex: 1; height: 1px; background: var(--line); }

/* Cards */
.card {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(18,53,39,0.5), rgba(10,33,23,0.25));
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(400px 180px at 50% -30%, rgba(214,177,106,0.14), transparent 70%);
  opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(214,177,106,0.4); box-shadow: var(--shadow-lg); }
.card:hover::after { opacity: 1; }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; margin-bottom: 22px;
  color: var(--gold);
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 30%, rgba(214,177,106,0.16), transparent 72%);
}
.card__title {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem;
  color: var(--cream); margin-bottom: 10px; line-height: 1.2;
}
.card__text { font-size: 0.96rem; color: var(--text-muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; padding: 30px 24px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(18,53,39,0.4), rgba(10,33,23,0.2));
}
.step__num {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; margin-bottom: 20px;
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
  color: var(--gold-bright);
  border: 1px solid var(--gold); background: rgba(214,177,106,0.08);
}
.step__title { font-family: var(--font-serif); font-size: 1.3rem; color: var(--cream); margin-bottom: 8px; }
.step__text { font-size: 0.95rem; color: var(--text-muted); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 54px; right: -13px; width: 26px; height: 1px;
  background: var(--line); z-index: 1;
}

/* Features */
.feature { padding: 28px 26px; border-radius: var(--radius); border: 1px solid transparent; transition: border-color 0.4s var(--ease), background 0.4s var(--ease); }
.feature:hover { border-color: var(--line); background: rgba(18,53,39,0.35); }
.feature__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  color: var(--gold); margin-bottom: 18px;
  border: 1px solid var(--line); background: rgba(214,177,106,0.06);
}
.feature__title { font-family: var(--font-serif); font-size: 1.3rem; color: var(--cream); margin-bottom: 8px; }
.feature__text { font-size: 0.96rem; color: var(--text-muted); }

/* Segments */
.segments { display: flex; flex-wrap: wrap; gap: 14px; }
.segment {
  padding: 14px 24px; border-radius: 100px; border: 1px solid var(--line);
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--cream);
  background: rgba(18,53,39,0.3);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.segment:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold-bright); }

/* About */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__media {
  display: grid; place-items: center; gap: 26px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 35%, rgba(214,177,106,0.12), transparent 60%),
    linear-gradient(160deg, rgba(20,59,44,0.5), rgba(10,33,23,0.3));
  box-shadow: var(--shadow-lg);
}
.about__badge { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; border: 1px solid var(--line); background: rgba(8,26,19,0.4); }
.about__tagline {
  font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.about__text { color: var(--text-muted); margin-top: 18px; font-size: 1.05rem; }
.about__facts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.about__facts > div {
  padding: 14px 22px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(18,53,39,0.3);
}
.about__facts dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.about__facts dd { font-family: var(--font-serif); font-size: 1.2rem; color: var(--cream); margin-top: 3px; }

/* CTA band */
.cta-band { padding: clamp(20px, 4vw, 40px) 0; }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(36px, 5vw, 60px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(214,177,106,0.14), transparent 60%),
    linear-gradient(160deg, rgba(20,59,44,0.6), rgba(10,33,23,0.4));
  box-shadow: var(--shadow-lg);
}
.cta-band__title { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--cream); line-height: 1.1; }
.cta-band__text { color: var(--text-muted); margin-top: 12px; max-width: 52ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact__lead { color: var(--text-muted); margin-top: 18px; max-width: 44ch; }
.contact__list { margin-top: 32px; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list strong { color: var(--cream); font-weight: 600; }
.contact__list a:hover { color: var(--gold-bright); }
.contact__ico {
  display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px; color: var(--gold);
  border: 1px solid var(--line); background: rgba(214,177,106,0.06);
}

.contact__form {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(18,53,39,0.45), rgba(10,33,23,0.25));
  box-shadow: var(--shadow-lg);
}
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text-muted); }
.field label span { color: var(--gold); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px;
  background: rgba(8,26,19,0.55); color: var(--cream);
  border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214,177,106,0.15); background: rgba(8,26,19,0.8);
}
@media (forced-colors: active) {
  .field input:focus, .field textarea:focus { outline: 2px solid Highlight; outline-offset: 2px; }
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #d98a6a; box-shadow: 0 0 0 3px rgba(217,138,106,0.18);
}
.contact__form-note { margin-top: 16px; font-size: 0.86rem; color: var(--text-muted); }
.contact__form-note[data-state="error"] { color: #f0a884; }
.contact__form-note[data-state="ok"] { color: var(--gold-bright); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: rgba(6,20,14,0.5); }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px;
  padding-top: 64px; padding-bottom: 48px;
}
.brand--footer { margin-bottom: 18px; }
.footer__tagline { color: var(--text-muted); max-width: 40ch; }
.footer__heading { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
.footer__nav ul { display: grid; gap: 12px; }
.footer__nav a, .footer__contact a { color: var(--text-muted); transition: color 0.3s var(--ease); }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold-bright); }
.footer__contact address { font-style: normal; color: var(--text-muted); line-height: 2; }
.footer__bar { border-top: 1px solid var(--line-soft); }
.footer__bar-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 22px; padding-bottom: 22px;
  font-size: 0.84rem; color: var(--text-faint);
}

/* To-top button */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; color: #17130a; background: var(--gold-grad);
  box-shadow: var(--shadow-gold);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .mobile-menu { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 380px; margin-inline: auto; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header__cta { margin-left: auto; }
}

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

@media (max-width: 620px) {
  body { font-size: 16px; }
  .header__cta .btn--primary { display: none; }
  .header__cta { margin-left: auto; }
  .grid--4, .grid--3, .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .hero__trust { gap: 10px 18px; }
  .to-top { right: 16px; bottom: 16px; }
}

@media print {
  .site-header, .mobile-menu, .to-top, .marquee, .hero__bg, .cta-band, .contact__form { display: none !important; }
  body { color: #000; background: #fff; }
  body::before, body::after { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Language switcher
   ============================================================ */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 12px; border-radius: 100px;
  border: 1px solid var(--line); background: rgba(244,239,228,0.02);
  color: var(--text-muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lang__btn:hover { color: var(--cream); border-color: var(--gold); }
.lang__btn > svg:first-child { color: var(--gold); }
.lang__chev { transition: transform 0.3s var(--ease); opacity: 0.8; }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 130;
  min-width: 180px; padding: 6px;
  background: #0b2318; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  animation: menuIn 0.25s var(--ease);
}
.lang__menu[hidden] { display: none; }
.lang__menu li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
  color: var(--text-muted); font-size: 0.95rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang__menu li:hover { background: rgba(214,177,106,0.1); color: var(--cream); }
.lang__menu li[aria-selected="true"] { color: var(--gold-bright); }
.lang__menu li[aria-selected="true"]::after { content: "✓"; color: var(--gold); font-size: 0.9rem; }

.mobile-menu__langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.mobile-menu__langs button {
  padding: 8px 15px; border-radius: 100px; border: 1px solid var(--line);
  color: var(--text-muted); font-size: 0.9rem; font-weight: 600;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mobile-menu__langs button:hover { color: var(--cream); border-color: var(--gold); }
.mobile-menu__langs button[aria-current="true"] { border-color: var(--gold); color: var(--gold-bright); background: rgba(214,177,106,0.08); }

/* ============================================================
   References / portfolio cards
   ============================================================ */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ref-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(165deg, rgba(18,53,39,0.5), rgba(10,33,23,0.25));
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.ref-card:hover { transform: translateY(-6px); border-color: rgba(214,177,106,0.4); box-shadow: var(--shadow-lg); }
.ref-card__frame { display: block; color: inherit; }
.ref-card__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 15px; background: rgba(6,20,14,0.55); border-bottom: 1px solid var(--line-soft);
}
.ref-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(214,177,106,0.4); }
.ref-dot:nth-child(2) { background: rgba(159,176,164,0.4); }
.ref-dot:nth-child(3) { background: rgba(159,176,164,0.25); }
.ref-card__url {
  margin-inline-start: 10px; font-size: 0.82rem; color: var(--text-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ref-card__canvas {
  position: relative; display: grid; place-items: center; gap: 16px;
  aspect-ratio: 16 / 10; padding: 26px 20px;
  background:
    radial-gradient(360px 200px at 50% -10%, rgba(214,177,106,0.14), transparent 70%),
    linear-gradient(160deg, rgba(20,59,44,0.45), rgba(8,26,19,0.55));
}
.ref-card__mono {
  display: grid; place-items: center; width: 66px; height: 66px; border-radius: 16px;
  font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; color: #17130a;
  background: var(--gold-grad); box-shadow: var(--shadow-gold);
}
.ref-card__name { font-family: var(--font-serif); font-size: 1.55rem; color: var(--cream); text-align: center; transition: color 0.4s var(--ease); }
a.ref-card__frame:hover .ref-card__name { color: var(--gold-bright); }
.ref-card__meta { display: flex; flex-direction: column; gap: 13px; padding: 20px 22px; }
.ref-card__status {
  align-self: flex-start; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; border: 1px solid;
}
.ref-card__status--live { color: #86d6a6; border-color: rgba(134,214,166,0.4); background: rgba(134,214,166,0.08); }
.ref-card__status--soon { color: var(--gold); border-color: var(--line); background: rgba(214,177,106,0.08); }
.ref-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-card__tags span {
  font-size: 0.78rem; color: var(--text-muted);
  padding: 5px 10px; border: 1px solid var(--line-soft); border-radius: 8px;
}
.ref-card__visit { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--gold); }
.ref-card__visit:hover { color: var(--gold-bright); }

/* ============================================================
   "Why choose" USP band (directly after hero)
   ============================================================ */
.choose { padding-top: clamp(52px, 7vh, 88px); padding-bottom: clamp(52px, 7vh, 88px); }
.choose__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12;
  color: var(--cream); text-align: center; margin-bottom: clamp(32px, 4.5vw, 52px);
}
.choose__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.choose__item {
  text-align: center; padding: 36px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(18,53,39,0.5), rgba(10,33,23,0.25));
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.choose__item:hover { transform: translateY(-5px); border-color: rgba(214,177,106,0.4); box-shadow: var(--shadow-lg); }
.choose__icon {
  display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 22px;
  border-radius: 50%; color: var(--gold);
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 30%, rgba(214,177,106,0.18), transparent 72%);
}
.choose__item-title { font-family: var(--font-serif); font-size: 1.45rem; color: var(--cream); margin-bottom: 10px; }
.choose__item-text { color: var(--text-muted); font-size: 0.98rem; }
@media (max-width: 760px) { .choose__grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }

/* ============================================================
   RTL support (Arabic & Persian) + script fonts
   ============================================================ */
[lang="ar"], [lang="fa"] {
  --font-serif: "Segoe UI", "Noto Naskh Arabic", "Geeza Pro", Tahoma, serif;
  --font-sans: "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif;
}
[lang="ar"] body, [lang="fa"] body { line-height: 1.8; }
[dir="rtl"] .hero__title,
[dir="rtl"] .section__title,
[dir="rtl"] .cta-band__title,
[dir="rtl"] .ref-card__name { letter-spacing: normal; }
/* Arabic/Persian have no casing & connected script — drop tracking/uppercase */
[dir="rtl"] .eyebrow,
[dir="rtl"] .service-group__kicker,
[dir="rtl"] .footer__heading,
[dir="rtl"] .about__facts dt,
[dir="rtl"] .about__tagline,
[dir="rtl"] .ref-card__status,
[dir="rtl"] .lang__btn { letter-spacing: normal; text-transform: none; }
[dir="rtl"] .header__cta { margin-left: 0; margin-right: auto; }
[dir="rtl"] .lang__menu { right: auto; left: 0; }
[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .to-top { right: auto; left: 24px; }
[dir="rtl"] .step:not(:last-child)::after { right: auto; left: -13px; }
[dir="rtl"] .ref-card__visit span { display: inline-block; transform: scaleX(-1); }
/* keep latin contact details reading left-to-right inside RTL */
[dir="rtl"] .footer__contact address,
[dir="rtl"] .hero__card-foot,
[dir="rtl"] .contact__list a[href^="tel"],
[dir="rtl"] .contact__list a[href^="mailto"] { direction: ltr; }
[dir="rtl"] .footer__contact address { text-align: right; }

/* References + switcher responsive */
@media (max-width: 1024px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  {
  .ref-grid { grid-template-columns: 1fr; }
  [dir="rtl"] .to-top { left: 16px; }
  /* header switcher would crowd the hamburger on phones — language is
     changed from the in-menu chooser instead */
  .header__cta .lang { display: none; }
}
