/* styles/site.css */
/*
 * KGSITES shared design system
 *
 * This file owns the reset, design tokens, page chrome and components that are
 * used by more than one route. Route-specific layout belongs in the matching
 * stylesheet beside it; do not add page overrides here.
 */

:root {
  --header-height: 82px;
  --container: 1180px;
  --container-wide: 1380px;

  --color-page: #17191e;
  --color-panel: #111426;
  --color-panel-soft: #20243d;
  --color-text: #f7f8fb;
  --color-muted: #c6c9d2;
  --color-subtle: #a7abb6;
  --color-cyan: #61dafb;
  --color-violet: #9b8cff;
  --color-green: #68d391;
  --color-orange: #ffb86b;
  --eyebrow-color: #c4c9ff;
  --color-line: rgba(255, 255, 255, .14);
  --color-line-soft: rgba(255, 255, 255, .09);

  --surface-card: radial-gradient(circle at 92% 0, rgba(157, 166, 178, .12), transparent 34%), linear-gradient(145deg, #34383e 0%, #282c31 54%, #1d2025 100%);
  --surface-card-soft: linear-gradient(145deg, rgba(61, 66, 73, .92), rgba(31, 34, 39, .96));
  --surface-glass: rgba(255, 255, 255, .055);
  --surface-glass-hover: rgba(255, 255, 255, .09);
  --surface-hero: radial-gradient(circle at 78% 18%, rgba(97, 218, 251, .17), transparent 25%), radial-gradient(circle at 10% 90%, rgba(155, 140, 255, .2), transparent 30%), linear-gradient(145deg, #080a14, #171a35 58%, #282653);

  --action-bg: rgba(8, 10, 20, .46);
  --action-bg-hover: rgba(6, 8, 17, .66);
  --action-line: rgba(255, 255, 255, .18);
  --action-line-hover: rgba(255, 255, 255, .32);

  --radius-small: 10px;
  --radius: 18px;
  --radius-large: 24px;
  --shadow-card: 0 20px 58px rgba(0, 0, 0, .22);
  --shadow-action: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .2);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--color-page);
  background-image: linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
  background-size: 44px 44px;
  background-attachment: fixed;
  color: var(--color-text);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4,
strong {
  color: var(--color-text);
}

a {
  color: inherit;
}

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

button,
select {
  touch-action: manipulation;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

::selection {
  background: #cdd2ff;
  color: #101224;
}

:focus-visible {
  outline: 3px solid var(--color-cyan);
  outline-offset: 3px;
}

#contact,
.history-item {
  scroll-margin-top: 96px;
}

.ui-arrow {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  overflow: visible;
  vertical-align: -.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.ui-arrow--play {
  fill: currentColor;
  stroke: none;
}

/* Shared page introductions */

.hero,
.hero-section,
.service-hero,
.page-hero,
.legal-hero {
  position: relative;
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
  padding: calc(var(--header-height) + 30px) 22px 30px;
  background: var(--surface-hero);
  color: #fff;
}

.hero::before,
.hero-section::before,
.service-hero::before,
.page-hero::before,
.legal-hero::before {
  content: "</>";
  position: absolute;
  z-index: -1;
  top: 90px;
  right: clamp(-45px, 4vw, 65px);
  color: rgba(255, 255, 255, .04);
  font: 900 clamp(140px, 23vw, 340px)/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -.14em;
  transform: rotate(-7deg);
  pointer-events: none;
}

.hero::after,
.hero-section::after,
.service-hero::after,
.page-hero::after,
.legal-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(#000, transparent 92%);
  pointer-events: none;
}

.hero-section h1,
.service-hero h1,
.page-hero h1,
.legal-hero h1 {
  background: linear-gradient(90deg, #fff 15%, #c3caff 62%, var(--color-cyan));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.page-hero__inner,
.page-shell {
  width: min(var(--container), 100%);
  margin-inline: auto;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(46px, 7.5vw, 86px);
  line-height: .95;
  letter-spacing: -.055em;
}

.page-hero__intro {
  max-width: 720px;
  margin-top: 25px;
  color: #d8d8e4;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.page-shell {
  padding: 85px 22px 120px;
}

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

.page-hero__eyebrow,
.service-kicker,
.section-heading > span,
.regency-projects__eyebrow,
.legal-hero p,
.home-services__eyebrow,
.catalogue-service__type,
.origin-story__eyebrow {
  color: var(--eyebrow-color);
  font: 850 14px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.service-kicker,
.section-heading > span,
.regency-projects__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.service-kicker::before,
.section-heading > span::before,
.regency-projects__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-violet));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 35px;
}

.section-heading h2 {
  margin-top: 7px;
  color: var(--color-text);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.045em;
}

.section-heading__intro {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 18px;
}

.info-card {
  padding: 31px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--surface-card);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}

.info-card h2,
.info-card h3 {
  margin-bottom: 12px;
  letter-spacing: -.03em;
}

.info-card h2 {
  font-size: 30px;
}

.info-card h3 {
  font-size: 22px;
}

.info-card p,
.info-card li {
  color: var(--color-muted);
}

.info-card ul {
  padding-left: 19px;
}

.info-card--dark {
  background: radial-gradient(circle at 90% 5%, rgba(97, 218, 251, .18), transparent 30%), linear-gradient(145deg, #242753, #10121f);
}

/* Shared action treatment */

.site-nav__cta,
.site-footer__project-link,
.service-hero a,
.web-portfolio-visit,
.market-visit__trigger,
.shared-client-notice > a,
.about-cta a,
.wizard-next,
.wizard-submit,
.quick-contact__form > button,
.quick-contact__email button,
.catalogue-service__tasks,
.portfolio-carousel__controls button,
.portfolio-cta > a,
.localisation-price-comparison__cta,
.cookie-panel__actions button {
  border: 1px solid var(--action-line);
  background: var(--action-bg);
  color: #fff;
  box-shadow: var(--shadow-action);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible,
.site-footer__project-link:hover,
.site-footer__project-link:focus-visible,
.service-hero a:hover,
.service-hero a:focus-visible,
.web-portfolio-visit:hover,
.web-portfolio-visit:focus-visible,
.market-visit__trigger:hover,
.market-visit__trigger:focus-visible,
.shared-client-notice > a:hover,
.shared-client-notice > a:focus-visible,
.about-cta a:hover,
.about-cta a:focus-visible,
.wizard-next:hover,
.wizard-next:focus-visible,
.wizard-submit:hover,
.wizard-submit:focus-visible,
.quick-contact__form > button:hover,
.quick-contact__form > button:focus-visible,
.quick-contact__email button:hover,
.quick-contact__email button:focus-visible,
.catalogue-service__tasks:hover,
.catalogue-service__tasks:focus-visible,
.portfolio-carousel__controls button:hover,
.portfolio-carousel__controls button:focus-visible,
.portfolio-cta > a:hover,
.portfolio-cta > a:focus-visible,
.localisation-price-comparison__cta:hover,
.localisation-price-comparison__cta:focus-visible,
.cookie-panel__actions button:hover,
.cookie-panel__actions button:focus-visible {
  border-color: var(--action-line-hover);
  background: var(--action-bg-hover);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 16px 34px rgba(0, 0, 0, .28);
  outline: none;
}

.quick-contact__channels {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.quick-contact__channels .quick-contact__email {
  margin-top: 0;
}

.whatsapp-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  text-decoration: none;
}

.whatsapp-contact img {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.whatsapp-contact span {
  display: grid;
  gap: 2px;
}

.whatsapp-contact strong {
  font-size: 14px;
}

.whatsapp-contact small {
  font-size: 12px;
  line-height: 1.35;
}

.whatsapp-contact--light {
  padding: 15px 18px;
  border: 1px solid rgba(37, 211, 102, .42);
  background: rgba(37, 211, 102, .1);
  color: #ddffe8;
}

.whatsapp-contact--light:hover,
.whatsapp-contact--light:focus-visible {
  border-color: #25d366;
  background: rgba(37, 211, 102, .18);
  color: #fff;
}

.whatsapp-contact--home {
  width: min(var(--container-wide), calc(100% - 44px));
  margin: 0 auto 30px;
  padding: 18px 22px;
  border: 1px solid rgba(37, 211, 102, .34);
  background: linear-gradient(115deg, rgba(37, 211, 102, .12), rgba(37, 211, 102, .035));
  color: var(--color-text);
}

.whatsapp-contact--home > a {
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid rgba(37, 211, 102, .55);
  border-radius: 8px;
  color: #d8ffe4;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.whatsapp-contact--home > a:hover,
.whatsapp-contact--home > a:focus-visible {
  background: rgba(37, 211, 102, .18);
  color: #fff;
}

.site-footer__whatsapp {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}

.site-footer__whatsapp img {
  width: 17px;
  height: 17px;
}

.site-footer__whatsapp small {
  color: #888a9d;
  font-size: 11px;
}

.script-notice,
.module-error {
  max-width: 760px;
  margin: 20px auto;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--surface-card-soft);
  color: var(--color-text);
  text-align: center;
}

.form-message {
  display: none;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14px;
}

.form-message.is-sending,
.form-message.is-success,
.form-message.is-error {
  display: block;
}

.form-message.is-sending {
  background: #292d43;
  color: #d9dcff;
}

.form-message.is-success {
  background: #173b26;
  color: #bde8c9;
}

.form-message.is-error {
  background: #4c2025;
  color: #ffd0d0;
}

.form-message a {
  color: inherit;
  font-weight: 800;
}

/* Service visuals shared by the homepage and About page */

.project-card-services {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  min-height: 148px;
  padding: 18px 20px 16px;
  color: #fff;
}

.project-card-services__eyebrow {
  color: #aeb1d8;
  font: 800 14px/1.4 ui-monospace, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-card-services__icons {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
}

.project-service-icon {
  display: grid;
  grid-template-rows: 44px auto;
  place-items: center;
  gap: 6px;
  min-width: 64px;
  color: #fff;
  text-align: left;
}

.project-service-icon__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font: 900 25px/1 Arial, sans-serif;
}

.project-service-icon__mark img,
.project-service-icon__mark svg,
.career-logo-row img,
.about-automation__logos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-platform-grid,
.about-automation__tasks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.project-service-icon--klaviyo .project-service-icon__mark svg {
  filter: invert(1);
}

.project-service-icon--google .project-service-icon__mark b {
  color: #4285f4;
}

.project-service-icon small {
  color: #d2d3e3;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  text-align: left;
}

/* Header */

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #111225;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--header-height);
  padding-inline: clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(9, 10, 22, .64), transparent);
  transition: height .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled,
.nav-open .site-header {
  height: 72px;
  border-color: var(--color-line);
  background: rgba(13, 14, 29, .86);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .15);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-wide);
  height: 100%;
  margin-inline: auto;
}

.site-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
}

.site-brand img {
  display: block;
  width: 145px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.site-nav__link,
.site-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 9px;
  color: #f4f4f7;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  background: rgba(255, 255, 255, .09);
}

.site-nav__cta {
  margin-left: 8px;
  padding-inline: 17px;
}

.site-nav__cta span {
  margin-left: 8px;
}

.site-nav__group {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav__expand {
  position: relative;
  width: 25px;
  height: 42px;
  margin-left: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 244, 247, .78);
  cursor: pointer;
}

.site-nav__expand span {
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s ease;
}

.site-nav__expand::after {
  content: "";
  position: absolute;
  inset: 8px 2px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(191, 193, 255, .1);
  opacity: 0;
  transform: scale(.72);
  transition: opacity .2s ease, transform .25s ease;
}

.site-nav__expand:hover,
.site-nav__expand:focus-visible,
.site-nav__expand[aria-expanded="true"] {
  color: #fff;
}

.site-nav__expand:hover::after,
.site-nav__expand:focus-visible::after,
.site-nav__expand[aria-expanded="true"]::after {
  opacity: 1;
  transform: scale(1);
}

.site-nav__expand[aria-expanded="true"] span,
.site-nav__group.is-open > .site-nav__expand span {
  transform: rotate(225deg) translate(-1px, -1px);
}

.site-nav__mega {
  visibility: hidden;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  width: min(640px, calc(100vw - 36px));
  padding: 8px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(26, 28, 52, .98), rgba(13, 15, 30, .98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .07);
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .16s ease, visibility .16s ease;
}

.site-nav__mega::before {
  content: "";
  position: absolute;
  inset: -13px 0 auto;
  height: 13px;
}

.site-nav__group:hover .site-nav__mega,
.site-nav__group:focus-within .site-nav__mega,
.site-nav__group.is-open .site-nav__mega {
  visibility: visible;
  opacity: 1;
}

.site-nav__mega-intro {
  padding: 17px;
  border-radius: 11px;
  background: linear-gradient(145deg, #34376a, #222544);
  color: #fff;
}

.site-nav__mega-intro > span {
  color: #bfc1ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-nav__mega-intro strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.15;
}

.site-nav__mega-intro p {
  margin-top: 9px;
  color: #d2d2df;
  font-size: 12px;
  line-height: 1.48;
}

.site-nav__mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
}

.site-nav__mega-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 9px;
  border-radius: 9px;
  color: #f1f1f5;
  text-decoration: none;
}

.site-nav__mega-links a:hover,
.site-nav__mega-links a[aria-current="page"] {
  background: rgba(255, 255, 255, .09);
}

.site-nav__mega-links strong,
.site-nav__mega-links small {
  display: block;
}

.site-nav__mega-links strong {
  font-size: 13px;
}

.site-nav__mega-links small {
  margin-top: 1px;
  color: #aaaabd;
  font-size: 12px;
  line-height: 1.35;
}

.nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: #cbd0ff;
  font-size: 0;
}

.nav-icon svg {
  display: block;
  width: 30px;
  height: 30px;
}

.nav-icon svg path:not([fill]):not(.b) {
  fill: currentColor;
}

:is(
  [data-service-logo="CustomHTML"],
  [data-icon="CustomHTML"],
  [data-service-logo="Wix"],
  [data-icon="Wix"],
  [data-service-logo="X"],
  [data-icon="X"]
) svg path:not([fill]),
:is(
  [data-service-logo="Klaviyo"],
  [data-icon="Klaviyo"]
) svg path:not([fill]):not(.b) {
  fill: currentColor;
}

.nav-icon--translation::before {
  content: "✦";
  color: #bfc1ff;
  font-size: 23px;
}

.site-nav__mega--portfolio {
  grid-template-columns: 180px minmax(0, 1fr);
  width: min(570px, calc(100vw - 36px));
}

.site-nav__mega--portfolio .site-nav__mega-links {
  grid-template-columns: 1fr;
}

.site-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--surface-glass);
}

.site-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-open .site-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .site-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .site-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Footer and cookie preferences */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 90px clamp(20px, 5vw, 72px) 25px;
  background: radial-gradient(circle at 82% 10%, rgba(97, 218, 251, .09), transparent 25%), linear-gradient(145deg, #080a14, #161933);
  color: #d6d6df;
}

.site-footer::before {
  content: "</>";
  position: absolute;
  right: clamp(-45px, 4vw, 65px);
  bottom: -30px;
  color: rgba(255, 255, 255, .04);
  font: 900 clamp(140px, 23vw, 340px)/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -.14em;
  transform: rotate(-7deg);
  pointer-events: none;
}

.site-footer a,
.site-footer button {
  color: #d6d6df;
}

.site-footer__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(540px, 1.15fr);
  gap: 80px;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-bottom: 80px;
}

.site-footer__brand img {
  display: block;
  width: 190px;
}

.site-footer__brand > p {
  max-width: 470px;
  margin-block: 24px;
  color: #aaaabd;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer__project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  border-radius: 9px;
  font-weight: 800;
  text-decoration: none;
}

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

.site-footer__columns > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__columns h3 {
  margin-bottom: 17px;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer__columns a,
.site-footer__columns button {
  margin-bottom: 9px;
  padding: 0;
  border: 0;
  background: none;
  color: #b5b5c2;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.site-footer__columns a:hover,
.site-footer__columns button:hover {
  color: #fff;
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
}

.site-footer__bottom p,
.site-footer__bottom a {
  color: #a7a7b3;
  font-size: 12px;
}

.site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer__bottom a {
  text-decoration: none;
}

.cookie-panel {
  position: fixed;
  z-index: 1600;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: end;
  width: min(720px, calc(100% - 36px));
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--surface-card-soft);
  color: var(--color-text);
  box-shadow: 0 24px 75px rgba(8, 9, 24, .45);
}

.cookie-panel__body > span {
  color: #c4c9ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cookie-panel h2 {
  margin-block: 5px 7px;
  font-size: 23px;
}

.cookie-panel p {
  color: var(--color-muted);
  font-size: 14px;
}

.cookie-panel a {
  display: inline-block;
  margin-top: 8px;
  color: #d3d7ff;
  font-size: 14px;
  font-weight: 800;
}

.cookie-panel__actions {
  display: flex;
  gap: 8px;
}

.cookie-panel__actions button {
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

/* Loading veil */

body::before,
body::after {
  visibility: hidden;
  position: fixed;
  z-index: 2147483647;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
}

body::before {
  content: "";
  inset: 0;
  background: var(--surface-hero);
}

body::after {
  content: "</>\A KGSITES";
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border: 1px solid var(--color-line);
  border-radius: 32px;
  background: radial-gradient(circle, rgba(97, 218, 251, .12), rgba(11, 13, 25, .72));
  color: #fff;
  font: 900 17px/1.9 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .16em;
  text-align: center;
  white-space: pre;
  box-shadow: 0 0 0 12px rgba(155, 140, 255, .035), 0 28px 90px rgba(0, 0, 0, .38);
  transform: translate(-50%, -50%);
  animation: site-loader-pulse 1.35s ease-in-out infinite;
}

html.site-loading,
html.site-loading body {
  overflow: hidden;
}

html.site-loading body::before,
html.site-loading body::after {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

@keyframes site-loader-pulse {
  0%,
  100% {
    border-color: rgba(97, 218, 251, .18);
    transform: translate(-50%, -50%) scale(.96);
  }

  50% {
    border-color: rgba(155, 140, 255, .48);
    transform: translate(-50%, -50%) scale(1.035);
  }
}

@media (max-width: 1050px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    height: 72px;
    padding-inline: 16px;
    border-color: var(--color-line);
    background: rgba(13, 14, 29, .94);
    backdrop-filter: none;
  }

  .site-brand img {
    width: 128px;
  }

  .site-nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 0;
    display: block;
    height: calc(100dvh - 72px);
    min-height: calc(100vh - 72px);
    padding: 16px 18px 40px;
    overflow: auto;
    background: #111225;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav-open {
    overflow: hidden;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav__link,
  .site-nav__cta {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 6px;
    border: 0;
    border-bottom: 1px solid var(--color-line-soft);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 16px;
  }

  .site-nav__cta {
    justify-content: center;
    margin-top: 18px;
    border: 1px solid var(--action-line);
    border-radius: 10px;
    background: var(--action-bg);
  }

  .site-nav__group {
    display: grid;
    grid-template-columns: 1fr 48px;
  }

  .site-nav__expand {
    width: 48px;
    height: 52px;
    margin: 0;
    border-bottom: 1px solid var(--color-line-soft);
  }

  .site-nav__mega {
    visibility: hidden;
    position: static;
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    width: auto;
    margin: 4px 0 10px;
    padding: 5px;
    border-radius: 12px;
    background: var(--surface-glass);
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
    opacity: 1;
    transform: none;
  }

  .site-nav__group:hover .site-nav__mega,
  .site-nav__group:focus-within .site-nav__mega {
    visibility: hidden;
    display: none;
  }

  .site-nav__group.is-open .site-nav__mega {
    visibility: visible;
    display: grid;
  }

  .site-nav__mega-intro {
    display: none;
  }

  .site-nav__mega-links {
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 1px;
  }

  .site-nav__mega-links a {
    min-height: 44px;
    padding: 7px 8px;
  }

  .site-nav__mega-links strong {
    font-size: 14px;
  }

  .site-nav__mega-links small {
    font-size: 12px;
  }

  .nav-icon {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
  }

  .nav-icon svg {
    width: 27px;
    height: 27px;
  }
}

@media (max-width: 850px) {
  .site-footer {
    padding-top: 65px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-bottom: 55px;
  }

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

  .site-footer__bottom {
    flex-direction: column;
  }

  .cookie-panel {
    grid-template-columns: 1fr;
  }

  .cookie-panel__actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .hero,
  .hero-section,
  .service-hero,
  .page-hero,
  .legal-hero {
    padding: calc(var(--header-height) + 24px) 18px 30px;
  }

  .hero::before,
  .hero-section::before,
  .service-hero::before,
  .page-hero::before,
  .legal-hero::before {
    top: 150px;
    right: -75px;
  }

  .page-shell {
    padding: 56px 14px 82px;
  }

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

  .section-heading {
    margin-bottom: 27px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .task-card a,
  .filter-tag,
  .project-sort select,
  .portfolio-carousel__controls button,
  .catalogue-service__tasks,
  .quick-contact__email button,
  .wizard-next,
  .wizard-submit {
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .whatsapp-contact--home {
    width: calc(100% - 28px);
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .whatsapp-contact--home > a {
    grid-column: 2;
    margin-left: 0;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding: 56px 18px 24px;
  }

  .site-footer__top {
    gap: 42px;
    padding-bottom: 42px;
  }

  .site-footer__columns {
    gap: 30px 18px;
  }

  .site-footer__columns > div:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

  .site-footer__columns > div:last-child h3 {
    grid-column: 1 / -1;
  }

  .site-footer__columns a,
  .site-footer__columns button {
    overflow-wrap: anywhere;
  }

  .cookie-panel__actions button {
    flex: 1 1 130px;
  }
}

@media (max-width: 360px) {
  .service-hero h1,
  .hero-section[data-portfolio-key] h1,
  .page-hero h1 {
    font-size: clamp(40px, 14vw, 48px);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.whatsapp-launcher {
  position: fixed; z-index: 1500; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 9px; min-height: 58px; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: #25d366; color: #061b0e; box-shadow: 0 14px 32px rgba(0, 0, 0, .35), 0 0 0 4px rgba(37, 211, 102, .12); font-size: 14px; font-weight: 900; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.whatsapp-launcher:hover, .whatsapp-launcher:focus-visible { background: #39e879; color: #061b0e; outline: none; transform: translateY(-3px); box-shadow: 0 18px 38px rgba(0, 0, 0, .4), 0 0 0 5px rgba(37, 211, 102, .2); }
.whatsapp-launcher img { width: 26px; height: 26px; }
.whatsapp-dialog { position: fixed; z-index: 1800; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(4, 6, 15, .78); backdrop-filter: blur(8px); }
.whatsapp-dialog__card { position: relative; width: min(420px, 100%); padding: 34px 30px 30px; border: 1px solid var(--color-line); border-radius: 22px; background: var(--surface-card-soft); box-shadow: 0 28px 90px rgba(0, 0, 0, .5); text-align: center; }
.whatsapp-dialog__close { position: absolute; top: 11px; right: 13px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--color-text); font-size: 26px; line-height: 1; cursor: pointer; }
.whatsapp-dialog__close:hover, .whatsapp-dialog__close:focus-visible { background: rgba(255, 255, 255, .16); }
.whatsapp-dialog__eyebrow { color: var(--color-green); font: 850 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; }
.whatsapp-dialog h2 { margin: 8px auto 20px; max-width: 300px; font-size: clamp(25px, 5vw, 32px); line-height: 1.1; }
.whatsapp-dialog__qr { display: block; width: min(260px, 100%); aspect-ratio: 1; margin: 0 auto 18px; padding: 10px; border-radius: 14px; background: #fff; }
.whatsapp-dialog__card > p:not(.whatsapp-dialog__eyebrow) { color: var(--color-muted); font-size: 14px; }
.whatsapp-dialog__link { display: inline-block; margin-top: 13px; color: var(--color-green); font-size: 14px; font-weight: 800; }
body.whatsapp-dialog-open { overflow: hidden; }

@media (max-width: 520px) {
  .whatsapp-launcher { right: 16px; bottom: 16px; min-height: 54px; padding: 13px 16px; }
}
