/* ==========================================================
   FixIT Montage & Service
   Landing Page - Reference-led visual system

   File:
   assets/css/style.css

   Scope:
   - Swedish and English landing pages
   - Cinematic hero scene
   - Reference-style glass service cards
   - Compact trust bar
   - Contact panel and footer

   Service-card HTML contract:
   1. .service-card__icon--montage
   2. .service-card__icon--technical-service
   3. .service-card__icon--network-wifi
   4. .service-card__icon--smart-home
   5. .service-card__icon--it-troubleshooting
   ========================================================== */

/* ==========================================================
   01. DESIGN TOKENS
   Central values. Change colors, radii, spacing and container
   widths here before changing individual components.
   ========================================================== */

:root {
  /* Core backgrounds */
  --color-bg-black: #01040a;
  --color-bg-deep: #020812;
  --color-bg: #05111e;
  --color-bg-soft: #081a2b;

  /* Text */
  --color-text: #f8fbff;
  --color-text-soft: #d8e4ef;
  --color-text-muted: #a5b8cb;
  --color-text-dark: #02101c;

  /* FixIT blue */
  --color-accent-deep: #006cd5;
  --color-accent: #018dfc;
  --color-accent-strong: #00a0fc;
  --color-accent-bright: #00b5fd;
  --color-accent-cyan: #0bc5fd;

  /* Glass surfaces */
  --glass-card-bg-start: rgba(3, 15, 28, 0.05);
  --glass-card-bg-end: rgba(2, 11, 22, 0.02);
  --glass-panel-bg: rgba(3, 15, 28, 0.38);
  --glass-panel-bg-strong: rgba(3, 13, 25, 0.56);
  --glass-border: rgba(0, 160, 252, 0.34);
  --glass-border-strong: rgba(0, 181, 253, 0.5);
  --glass-highlight: rgba(255, 255, 255, 0.075);

  /* Warm architecture light */
  --color-warm: #ffd28c;

  /* Neutral borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.11);

  /* Shadows and glow */
  --shadow-neon: 0 0 20px rgba(0, 160, 252, 0.28);
  --shadow-neon-strong: 0 0 34px rgba(0, 160, 252, 0.34);
  --shadow-panel: 0 22px 62px rgba(0, 0, 0, 0.28);

  /* Radius */
  --radius-card: 10px;
  --radius-panel: 24px;
  --radius-small: 12px;
  --radius-button: 14px;
  --radius-pill: 999px;

  /* Layout */
  --container-max: 1460px;
  --header-max: 1460px;
  --page-gutter: 72px;

  /* Typography */
  --font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  /* Motion */
  --transition-fast: 160ms ease;
  --transition-normal: 260ms ease;
}

/* ==========================================================
   02. RESET AND BASE
   ========================================================== */

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

html {
  width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--color-bg-deep);
}

body,
h1,
h2,
h3,
p {
  margin: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg-deep);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

address {
  font-style: normal;
}

::selection {
  color: var(--color-text);
  background: rgba(0, 160, 252, 0.38);
}

/* ==========================================================
   03. PAGE CANVAS AND SHARED LAYOUT
   The continuation image begins below the hero and keeps the
   wet reflective visual language through the rest of the page.
   ========================================================== */

main {
  position: relative;
  display: block;
  isolation: isolate;
  background-image:
    linear-gradient(
      180deg,
      rgba(2, 8, 18, 0.08) 0%,
      rgba(2, 8, 18, 0.22) 44%,
      rgba(1, 5, 11, 0.46) 100%
    ),
    url("../img/background/fixit-page-continuation.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

section {
  position: relative;
  scroll-margin-top: 110px;
}

.section-container {
  width: min(calc(100% - var(--page-gutter)), var(--container-max));
  margin-inline: auto;
}

.section-heading__eyebrow {
  margin-bottom: 10px;
  color: var(--color-accent-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ==========================================================
   04. ACCESSIBILITY
   ========================================================== */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  color: var(--color-text-dark);
  background: var(--color-accent-strong);
  border-radius: 8px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent-bright);
  outline-offset: 4px;
}

/* ==========================================================
   05. BUTTONS
   ========================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast);
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0aa6ff 0%, #0877ff 100%);
  border-color: rgba(73, 179, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(0, 160, 252, 0.16),
    0 8px 28px rgba(4, 106, 255, 0.28),
    0 0 24px rgba(0, 160, 252, 0.22);
}

.button--primary:hover {
  background: linear-gradient(135deg, #18b0ff 0%, #1481ff 100%);
  border-color: rgba(92, 194, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(0, 160, 252, 0.24),
    0 12px 34px rgba(4, 106, 255, 0.34),
    0 0 32px rgba(0, 160, 252, 0.28);
}

.button--status {
  cursor: default;
  pointer-events: none;
}

.button--secondary,
.button--header {
  color: var(--color-text);
  background: rgba(2, 13, 24, 0.3);
  border-color: rgba(0, 160, 252, 0.62);
  box-shadow:
    inset 0 0 20px rgba(0, 160, 252, 0.025),
    0 0 18px rgba(0, 160, 252, 0.08);
  backdrop-filter: blur(1.5px) saturate(108%);
  -webkit-backdrop-filter: blur(1.5px) saturate(108%);
}

.button--secondary:hover,
.button--header:hover {
  color: #ffffff;
  background: rgba(0, 160, 252, 0.1);
  border-color: var(--color-accent-bright);
}

.button--header {
  min-height: 46px;
  padding-inline: 24px;
}

/* ==========================================================
   05A. HERO CTA BUTTONS
   ========================================================== */

.hero-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 72px;
  padding: 0 28px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(118%);
  -webkit-backdrop-filter: blur(10px) saturate(118%);
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    background var(--transition-normal);
}

.hero-button:hover {
  transform: translateY(-1px);
}

.hero-button__label {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.hero-button__icon {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background-color: currentColor;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.hero-button__icon--rocket {
  color: #ffffff;
  -webkit-mask-image: url("../icons/rocket.svg");
  mask-image: url("../icons/rocket.svg");
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.42));
}

.hero-button__icon--mail {
  color: var(--color-accent-bright);
  -webkit-mask-image: url("../icons/mail.svg");
  mask-image: url("../icons/mail.svg");
  filter: drop-shadow(0 0 6px rgba(0, 181, 253, 0.36));
}

.hero-button--primary {
  gap: 15px;
  width: 310px;
  min-width: 310px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    #0a7fdc 0%,
    #0940ca 42%,
    #0655cb 72%,
    #0877d8 100%
  );
  border: 1px solid rgba(95, 215, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 18px rgba(255, 255, 255, 0.06),
    0 0 7px rgba(0, 160, 252, 0.82),
    0 0 18px rgba(0, 144, 255, 0.58),
    0 0 34px rgba(0, 112, 225, 0.42),
    0 10px 28px rgba(0, 54, 132, 0.34);
}

.hero-button--primary .hero-button__label {
  flex: 1 1 auto;
  text-align: left;
}

.hero-button--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 26px rgba(255, 255, 255, 0.09),
    0 0 20px rgba(0, 160, 252, 0.52),
    0 0 42px rgba(0, 160, 252, 0.34),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.hero-button--secondary {
  min-width: 255px;
  padding: 0 26px 0 22px;
  justify-content: flex-start;
  color: #ffffff;
  background: linear-gradient(
    180deg,
    rgba(2, 8, 18, 0.76),
    rgba(2, 8, 18, 0.62)
  );
  border: 1px solid rgba(0, 174, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 14px rgba(0, 160, 252, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.18);
}

.hero-button--secondary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(0, 160, 252, 0.24),
    0 10px 22px rgba(0, 0, 0, 0.2);
}

.hero-button__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  margin-left: 14px;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.14);
}

/* ==========================================================
   06. SITE HEADER
   Transparent overlay. The hero photograph remains visible.
   ========================================================== */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-header__inner {
  width: min(calc(100% - var(--page-gutter)), var(--header-max));
  min-height: 92px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.menu-toggle {
  display: none;
}

/* ==========================================================
   06A. TOP INFORMATION BAR
   ========================================================== */

.topbar {
  position: relative;
  z-index: 10;
  width: min(calc(100% - var(--page-gutter)), var(--container-max));
  min-height: 52px;
  margin-inline: auto;
  display: grid;
  grid-template-columns:
    max-content
    minmax(70px, 1fr)
    max-content
    minmax(70px, 1fr)
    max-content
    56px
    max-content;
  align-items: center;
  gap: 24px;
  color: var(--color-text-soft);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.topbar__brand {
  color: #f8fbff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.topbar__line {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(188, 213, 232, 0.75),
    rgba(188, 213, 232, 0.38)
  );
}

.topbar__line--short {
  width: 56px;
}

.topbar__tagline {
  color: #b9c8d6;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-align: center;
}

.topbar__location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e6eef5;
  font-size: 0.76rem;
  font-weight: 600;
}

.topbar__location-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 3px solid var(--color-accent-strong);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  filter: drop-shadow(0 0 5px rgba(0, 160, 252, 0.55))
    drop-shadow(0 0 10px rgba(0, 160, 252, 0.22));
}

.topbar__location-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #dff7ff;
  transform: translate(-50%, -50%);
}

.topbar__status {
  color: #e3ebf2;
  font-size: 0.76rem;
  font-weight: 500;
}

/* ==========================================================
   07. BRAND
   Hero logo lockup shared by Swedish and English pages.
   ========================================================== */

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: clamp(325px, 26vw, 460px);
  flex: 0 0 auto;
  text-decoration: none;
}

html[lang="en"] .brand {
  width: clamp(335px, 27vw, 445px);
}

.brand__logo--sv .brand__logo-image {
  transform: scale(1.08);
  transform-origin: left center;
}

.brand__logo--en .brand__logo-image {
  transform: translateX(-10px) scale(1.08);
  transform-origin: left center;
}

.brand__logo {
  display: block;
  width: 100%;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

.brand__logo-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 160, 252, 0.14))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.24));
}

/* ==========================================================
   08. DESKTOP NAVIGATION
   ========================================================== */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-left: 0;
}

.site-nav a {
  position: relative;
  padding: 31px 0 27px;
  color: var(--color-text-soft);
  font-size: 0.86rem;
  font-weight: 650;
  transition: color var(--transition-fast);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 0;
  height: 2px;
  background: var(--color-accent-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-neon);
  transform: translateX(-50%);
  transition: width var(--transition-fast);
}

.site-nav a:hover {
  color: #ffffff;
}

.site-nav a:hover::after {
  width: 24px;
}

.site-nav a:first-child {
  color: var(--color-accent-bright);
}

.site-nav a:first-child::after {
  width: 34px;
}

/* ==========================================================
   09. LANGUAGE SWITCHER
   ========================================================== */

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 7px 11px;
  background: rgba(3, 14, 27, 0.36);
  border: 1px solid rgba(0, 160, 252, 0.2);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.language-switcher__link {
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition:
    color var(--transition-fast),
    text-shadow var(--transition-fast);
}

.language-switcher__link:hover {
  color: #ffffff;
}

.language-switcher__link--active {
  color: var(--color-accent-bright);
  text-shadow: 0 0 12px rgba(0, 160, 252, 0.5);
}

.language-switcher__separator {
  color: rgba(165, 184, 203, 0.38);
  font-size: 0.7rem;
}

/* ==========================================================
   10. HERO SCENE
   Single photographic background behind header, hero copy,
   service cards and trust bar.
   ========================================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 900px;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--color-bg-deep);
  background-image:
    linear-gradient(
      90deg,
      rgba(1, 4, 9, 0.96) 0%,
      rgba(1, 5, 12, 0.88) 19%,
      rgba(2, 8, 17, 0.61) 39%,
      rgba(2, 10, 21, 0.22) 60%,
      rgba(1, 8, 17, 0.07) 80%,
      rgba(1, 7, 16, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 3, 8, 0.02) 0%,
      rgba(1, 5, 12, 0.02) 68%,
      rgba(1, 5, 11, 0.16) 88%,
      rgba(1, 5, 11, 0.38) 100%
    ),
    url("../img/background/fixit-hero-background.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 79%,
    rgba(0, 0, 0, 0.96) 85%,
    rgba(0, 0, 0, 0.68) 92%,
    rgba(0, 0, 0, 0.28) 97%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 79%,
    rgba(0, 0, 0, 0.96) 85%,
    rgba(0, 0, 0, 0.68) 92%,
    rgba(0, 0, 0, 0.28) 97%,
    transparent 100%
  );
}

.hero__background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 78% 40%,
      rgba(0, 160, 252, 0.04),
      transparent 36%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 70%,
      rgba(1, 5, 11, 0.08) 100%
    );
  pointer-events: none;
}

/* ==========================================================
   11. HERO CONTENT
   ========================================================== */

/* Hero decorative handwritten note */
.hero__note {
  position: absolute;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.92;
  transform: rotate(-3deg);
  filter: drop-shadow(0 0 6px rgba(0, 160, 252, 0.28))
    drop-shadow(0 0 14px rgba(0, 160, 252, 0.18));
}

.hero__note-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

/* Swedish hero note */
.hero__note--sv {
  top: 39%;
  left: 39%;
  width: clamp(155px, 12.5vw, 225px);
}

/* English hero note */
.hero__note--en {
  top: 42%;
  left: 37%;
  width: clamp(190px, 16vw, 285px);
}

.hero__note--en .hero__note-image {
  filter: hue-rotate(-10deg) saturate(1.15) brightness(0.92) contrast(1.05);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - var(--page-gutter)), var(--container-max));
  min-height: 515px;
  margin-inline: auto;
  display: grid;
  grid-template-columns:
    minmax(0, 0.88fr)
    minmax(400px, 1.12fr);
  align-items: start;
  gap: clamp(40px, 6vw, 100px);
  padding-top: 126px;
  padding-bottom: 24px;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 1050px;
}

.hero__eyebrow {
  position: relative;
  top: 0px;
  margin-bottom: 14px;
  color: var(--color-text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero__title {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  max-width: none;
  padding-bottom: 0.08em;
  color: var(--color-text);
  font-size: clamp(4.8rem, 6.4vw, 6.9rem);
  font-weight: 860;
  line-height: 1.25;
  letter-spacing: -0.072em;
  white-space: nowrap;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.hero__title-accent {
  display: inline-block;
  margin-left: 0.12em;
  color: transparent;
  background: linear-gradient(
    90deg,
    var(--color-accent-cyan) 0%,
    var(--color-accent-strong) 52%,
    var(--color-accent-deep) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow:
    0 0 14px rgba(0, 160, 252, 0.28),
    0 0 30px rgba(0, 160, 252, 0.18);
}

.hero__lead {
  max-width: 680px;
  margin-top: -10px;
  color: #ffffff;
  font-size: clamp(1.15rem, 1.65vw, 1.5rem);
  font-weight: 560;
  line-height: 1.4;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.52);
}

.hero__description {
  max-width: 430px;
  margin-top: 22px;
  color: #c4d2df;
  font-size: 0.94rem;
  line-height: 1.62;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.66);
}

.hero__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 1025px) {
  .hero__inner {
    padding-top: clamp(168px, 12vw, 220px);
  }
}

/* ==========================================================
   12. HERO ATMOSPHERE
   Decorative CSS only. No independent foreground objects.
   ========================================================== */

.hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 360px;
  pointer-events: none;
}

.hero__visual::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 18%;
  width: 68%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 160, 252, 0.36),
    transparent
  );
  box-shadow: 0 0 18px rgba(0, 160, 252, 0.18);
  transform: rotate(-10deg);
  opacity: 0.24;
}

.hero__glow {
  position: absolute;
  top: 10%;
  right: -8%;
  width: 74%;
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(0, 160, 252, 0.065) 0%,
    rgba(0, 160, 252, 0.015) 38%,
    transparent 70%
  );
  filter: blur(20px);
}

.hero__grid {
  position: absolute;
  right: -8%;
  bottom: 0;
  width: 88%;
  height: 35%;
  opacity: 0.02;
  background-image:
    linear-gradient(rgba(0, 160, 252, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 160, 252, 0.18) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: perspective(500px) rotateX(64deg) translateY(30%);
  transform-origin: bottom center;
}

/* ==========================================================
   13. SERVICE CARDS
   Reference-style glassmorphism.
   ========================================================== */

/* Service cards wrapper */
.hero-services {
  position: relative;
  z-index: 4;
  margin-top: -6px;
}

/* Five-column desktop grid */
.services__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 195px));
  justify-content: start;
  gap: 15px;
}

/* Glass service card */
.service-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 15px 18px 14px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    145deg,
    var(--glass-card-bg-start),
    var(--glass-card-bg-end)
  );
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 0 22px rgba(0, 160, 252, 0.022),
    0 10px 26px rgba(0, 0, 0, 0.14),
    0 0 18px rgba(0, 160, 252, 0.05);
  backdrop-filter: blur(4px) saturate(108%);
  -webkit-backdrop-filter: blur(4px) saturate(108%);
  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

/* Subtle glass reflection */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 30%
  );
  pointer-events: none;
}

/* Thin illuminated top edge */
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(115, 221, 255, 0.3),
    transparent
  );
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 14px 30px rgba(0, 0, 0, 0.18),
    0 0 20px rgba(0, 160, 252, 0.08);
}

/* Service card icons */
.service-card__icon {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  color: var(--color-accent-bright);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.service-card__icon::before {
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  background-color: currentColor;
  -webkit-mask-image: var(--service-icon);
  mask-image: var(--service-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  filter: drop-shadow(0 0 6px rgba(0, 160, 252, 0.3));
}

.service-card__icon--montage {
  --service-icon: url("../icons/montage.svg");
}

.service-card__icon--technical-service {
  --service-icon: url("../icons/technical-service.svg");
}

.service-card__icon--network-wifi {
  --service-icon: url("../icons/network-wifi.svg");
}

.service-card__icon--smart-home {
  --service-icon: url("../icons/smart-home.svg");
}

.service-card__icon--it-troubleshooting {
  --service-icon: url("../icons/it-troubleshooting.svg");
}

/* Service card content */
.service-card__content {
  margin-top: 3px;
  padding-top: 0;
}

.service-card__title {
  position: relative;
  margin: 0;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.service-card__title::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 5px;
  background: var(--color-accent-strong);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 8px rgba(0, 160, 252, 0.34);
}

.service-card__description {
  margin-top: 6px;
  color: rgba(226, 236, 245, 0.87);
  font-size: 0.79rem;
  line-height: 1.4;
}

/* ==========================================================
   14. TRUST / POSITIONING BAR
   Compact four-column strip below the service cards.
   ========================================================== */

.trust-bar {
  position: relative;
  z-index: 4;
  margin-top: 10px;
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  width: min(100%, 1035px);
  min-height: 66px;
  background: linear-gradient(
    90deg,
    rgba(2, 11, 22, 0.12),
    rgba(4, 18, 33, 0.08),
    rgba(2, 11, 22, 0.12)
  );
  border-top: 1px solid rgba(0, 160, 252, 0.12);
  border-bottom: 1px solid rgba(0, 160, 252, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(0) saturate(105%);
  -webkit-backdrop-filter: blur(0) saturate(105%);
}

.trust-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 24px;
}

.trust-item + .trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: rgba(0, 160, 252, 0.2);
}

.trust-item__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 0 8px rgba(0, 160, 252, 0.24));
}

.trust-item__icon--location {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a0fc' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 11-8 11S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.trust-item__icon--customers {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a0fc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.3'/%3E%3Cpath d='M3 20v-2a5 5 0 0 1 5-5h2a5 5 0 0 1 5 5v2'/%3E%3Cpath d='M15 14.2h1.5A4.5 4.5 0 0 1 21 18.7V20'/%3E%3C/svg%3E");
}

.trust-item__icon--quality {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a0fc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.6 2.8 8.2 7 10 4.2-1.8 7-5.4 7-10V6l-7-3Z'/%3E%3Cpath d='m9 12 2 2 4-5'/%3E%3C/svg%3E");
}

.trust-item__icon--technology {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a0fc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4c-7.5.3-12.7 3-15 8.1C3.4 15.8 5.3 19 9 19c6.1 0 9.8-5.8 11-15Z'/%3E%3Cpath d='M4 20c3.3-4.1 7.2-7.3 12-9.5'/%3E%3C/svg%3E");
}

.trust-item__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-item__title {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 730;
  line-height: 1.2;
}

.trust-item__subtitle {
  color: var(--color-text-muted);
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ==========================================================
   15. CONTACT
   ========================================================== */

.contact {
  position: relative;
  z-index: 2;
  padding-block: 90px 92px;
  background: transparent;
}

.contact__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(48px, 6vw, 110px);
  width: 100%;
  padding: clamp(46px, 5vw, 76px) clamp(42px, 5vw, 72px);
  background: rgba(2, 11, 22, 0.18);
  border: 1px solid rgba(0, 160, 252, 0.14);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.contact__panel::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, rgba(0, 160, 252, 0.1), transparent 68%);
  pointer-events: none;
}

.contact__content {
  position: relative;
  z-index: 2;
}

.contact__content h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 3.8vw, 3.25rem);
  font-weight: 810;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.contact__content > p:not(.section-heading__eyebrow) {
  max-width: 760px;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.contact__details {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 11px;
  align-self: stretch;
}

.contact-detail {
  padding: 18px 0 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 160, 252, 0.16);
  border-radius: 0;
  box-shadow: none;
}

.contact-detail__label {
  color: var(--color-accent-bright);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-detail a,
.contact-detail > span:last-child {
  color: var(--color-text-soft);
  font-size: 0.94rem;
  font-weight: 620;
  overflow-wrap: anywhere;
}

.contact-detail a {
  transition: color var(--transition-fast);
}

.contact-detail a:hover {
  color: var(--color-accent-bright);
}

/* ==========================================================
   16. FOOTER
   ========================================================== */

.site-footer {
  position: relative;
  z-index: 2;
  background: rgba(2, 8, 18, 0.08);
  border-top: 1px solid rgba(0, 160, 252, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-footer__inner {
  width: min(calc(100% - var(--page-gutter)), var(--container-max));
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.site-footer a {
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: var(--color-accent-bright);
}

/* ==========================================================
   17. TABLET / SMALL DESKTOP - <= 1024px
   ========================================================== */

@media (max-width: 1024px) {
  :root {
    --container-max: 1080px;
    --header-max: 1080px;
    --page-gutter: 48px;
  }

  .site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .site-nav {
    gap: 20px;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .button--header {
    padding-inline: 18px;
  }

  .hero {
    min-height: 880px;
  }

  .hero__inner {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(330px, 0.9fr);
    gap: 34px;
  }

  .hero__title {
    font-size: clamp(4.4rem, 7.4vw, 6.3rem);
  }

  .hero__background {
    background-position: 55% center;
  }

  .services__grid {
    gap: 10px;
  }

  .service-card {
    min-height: 148px;
    padding: 15px 15px 14px;
  }

  .service-card__title {
    font-size: 0.94rem;
  }

  .service-card__description {
    font-size: 0.76rem;
  }

  .trust-item {
    padding-inline: 16px;
  }

  /* Mobile menu toggle */
  .menu-toggle {
    position: relative;
    z-index: 30;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 0;
    background: rgba(3, 15, 28, 0.42);
    border: 1px solid rgba(0, 160, 252, 0.28);
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .menu-toggle__line {
    display: block;
    width: 22px;
    height: 2px;
    margin: 3px 0;
    background: #f8fbff;
    border-radius: 999px;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .menu-toggle.is-open .menu-toggle__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.is-open .menu-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open .menu-toggle__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Mobile navigation panel */
  .header-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 12px);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: calc(100vw - 32px);
    margin-left: 0;
    padding: 24px;
    background: linear-gradient(
      145deg,
      rgba(3, 15, 28, 0.96),
      rgba(2, 10, 20, 0.94)
    );
    border: 1px solid rgba(0, 160, 252, 0.24);
    border-radius: 16px;
    box-shadow:
      0 22px 60px rgba(0, 0, 0, 0.48),
      0 0 28px rgba(0, 137, 252, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .header-menu.is-open {
    display: flex;
  }

  .header-menu .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-left: 0;
    gap: 0;
  }

  .header-menu .site-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-menu .site-nav a::after {
    display: none;
  }

  .header-menu .language-switcher {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .header-menu .button--header {
    width: 100%;
    margin-top: 20px;
    justify-content: center;
  }
}

/* ==========================================================
   18. TABLET - <= 900px
   ========================================================== */

@media (max-width: 900px) {
  section {
    scroll-margin-top: 160px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 32px;
  }

  .hero__inner {
    min-height: 720px;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 174px;
    padding-bottom: 54px;
  }

  .hero__content {
    max-width: 650px;
  }

  .hero__title {
    max-width: 650px;
    font-size: clamp(4rem, 11vw, 6rem);
  }

  .hero__background {
    background-position: 67% center;
  }

  .hero__visual {
    position: absolute;
    top: 14%;
    right: -22%;
    width: 64%;
    min-height: 480px;
    opacity: 0.24;
  }

  .hero-services {
    margin-top: -54px;
  }

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

  .service-card {
    min-height: 148px;
  }

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

  .trust-item:nth-child(3)::before {
    display: none;
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid rgba(0, 160, 252, 0.12);
  }

  .contact {
    padding-block: 76px;
  }

  .contact__panel {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px;
  }

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

/* ==========================================================
   19. MOBILE - <= 640px
   ========================================================== */

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: max-content minmax(20px, 1fr) max-content;
    grid-template-areas:
      "brand line1 line1"
      "tagline tagline tagline"
      "location line3 status";
    gap: 10px 12px;
    padding-block: 14px;
    white-space: normal;
  }

  .topbar__brand {
    grid-area: brand;
  }

  .topbar__brand + .topbar__line {
    grid-area: line1;
  }

  .topbar__tagline {
    grid-area: tagline;
    text-align: center;
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    white-space: nowrap;
  }

  .topbar__tagline + .topbar__line {
    display: none;
  }

  .topbar__location {
    grid-area: location;
  }

  .topbar__line--short {
    grid-area: line3;
    width: 100%;
  }

  .topbar__status {
    grid-area: status;
  }

  .topbar__line {
    display: block;
    min-width: 0;
  }

  :root {
    --page-gutter: 32px;
  }

  section {
    scroll-margin-top: 190px;
  }

  .hero__inner {
    min-height: 760px;
    padding-top: 160px;
    padding-bottom: 86px;
  }

  .hero__background {
    background-image:
      linear-gradient(
        90deg,
        rgba(1, 4, 10, 0.96) 0%,
        rgba(1, 5, 12, 0.92) 46%,
        rgba(2, 8, 17, 0.68) 72%,
        rgba(2, 9, 20, 0.42) 100%
      ),
      linear-gradient(
        180deg,
        rgba(0, 3, 8, 0.02) 0%,
        rgba(1, 5, 12, 0.04) 60%,
        rgba(1, 5, 11, 0.2) 100%
      ),
      url("../img/background/fixit-hero-background.webp");
    background-position: 70% center;
    background-size: cover;
  }

  .hero__eyebrow {
    top: 0;
    margin-bottom: 13px;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
  }

  .hero__title {
    flex-wrap: wrap;
    max-width: 100%;
    font-size: clamp(3.45rem, 17vw, 5.2rem);
    line-height: 1;
    white-space: normal;
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 1.08rem;
  }

  .hero__description {
    max-width: 96%;
    margin-top: 15px;
    font-size: 0.92rem;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 25px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__visual {
    top: 24%;
    right: -48%;
    width: 96%;
    min-height: 450px;
    opacity: 0.16;
  }

  .hero-services {
    margin-top: -56px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .service-card {
    min-height: 138px;
    padding: 16px 17px;
  }

  .service-card__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .service-card__icon::before {
    width: 38px;
    height: 38px;
  }

  .service-card__title {
    font-size: 1rem;
  }

  .service-card__description {
    font-size: 0.82rem;
  }

  .trust-bar {
    margin-top: 12px;
  }

  .trust-bar__inner {
    grid-template-columns: 1fr;
  }

  .trust-item {
    min-height: 70px;
    padding: 12px 18px;
  }

  .trust-item + .trust-item::before {
    display: none;
  }

  .trust-item:nth-child(n + 2) {
    border-top: 1px solid rgba(0, 160, 252, 0.12);
  }

  .contact {
    padding: 32px 0 66px;
  }

  .contact__panel {
    gap: 28px;
    padding: 30px 24px;
    border-radius: 20px;
  }

  .contact__content h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .contact__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact__actions .button {
    width: 100%;
  }

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

  .site-footer__inner {
    min-height: 104px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 7px;
  }
}
/* ==========================================================
   20. SMALL MOBILE - <= 420px
   ========================================================== */

@media (max-width: 420px) {
  .brand,
  html[lang="en"] .brand {
    width: clamp(210px, 68vw, 275px);
  }

  .site-header__inner {
    gap: 12px;
  }

  .language-switcher {
    padding-inline: 9px;
  }

  .topbar {
    gap: 9px 10px;
    padding-block: 12px;
  }

  .topbar__tagline {
    font-size: 0.54rem;
    letter-spacing: 0.18em;
    white-space: nowrap;
  }

  .topbar__brand {
    font-size: 0.72rem;
  }

  .topbar__location,
  .topbar__status {
    font-size: 0.7rem;
  }

  .hero__inner {
    min-height: 740px;
    padding-bottom: 82px;
  }

  .hero__background {
    background-position: 73% center;
  }

  .hero__title {
    font-size: clamp(3.05rem, 17vw, 4.35rem);
  }

  .hero__eyebrow {
    max-width: 300px;
    line-height: 1.5;
  }
}
/* ==========================================================
   21. INPUT AND MOTION PREFERENCES
   ========================================================== */

@media (hover: none) {
  .button:hover,
  .service-card:hover {
    transform: none;
  }
}

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

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