/* =========================================================
   SERVICE PAGE — SHARED STYLES
   Common styles used by Gyengeáram, Erősáram, Napelem, Klíma, etc.
   ========================================================= */

/* =========================================================
   GYENGERAM HERO
   ========================================================= */

.ct-service-hero {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;

  padding: 150px 0 90px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 72% 30%,
      rgba(0, 174, 239, 0.09),
      transparent 30%
    ),
    radial-gradient(
      circle at 15% 80%,
      rgba(47, 48, 130, 0.14),
      transparent 35%
    ),
    var(--ct-bg);
}

/* GRID */

.ct-service-hero__grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(420px, 1.05fr);

  gap: clamp(60px, 7vw, 120px);

  align-items: center;
}

/* CONTENT */

.ct-service-hero__content {
  position: relative;

  z-index: 4;
}

.ct-service-hero__eyebrow {
  display: flex;
  align-items: center;

  gap: 14px;

  margin-bottom: 30px;

  color: var(--ct-text-muted);

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ct-service-hero__eyebrow-line {
  width: 38px;
  height: 1px;

  background: var(--ct-brand-light-blue);
}

.ct-service-hero__title {
  max-width: 900px;

  margin: 0;

  font-family: "Space Grotesk", sans-serif;

  font-size: clamp(58px, 5.7vw, 105px);
  font-weight: 600;

  line-height: 0.91;
  letter-spacing: -0.055em;
}

.ct-service-hero__title span {
  display: block;

  color: #8d98a6;
}

.ct-service-hero__lead {
  max-width: 680px;

  margin: 38px 0 0;

  color: #aeb7c2;

  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.75;
}

/* ACTIONS */

.ct-service-hero__actions {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 42px;
}

.ct-service-hero__actions .ct-button {
  display: inline-flex;
  align-items: center;

  gap: 18px;
}

/* META */

.ct-service-hero__meta {
  display: flex;
  flex-wrap: wrap;

  gap: 10px 22px;

  margin-top: 48px;

  color: #56616d;

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.17em;
}

.ct-service-hero__meta span {
  position: relative;
}

.ct-service-hero__meta span:not(:last-child)::after {
  content: "";

  position: absolute;

  right: -12px;
  top: 50%;

  width: 3px;
  height: 3px;

  transform: translateY(-50%);

  background: rgba(0, 174, 239, 0.6);
}

/* =========================================================
   VISUAL
   ========================================================= */

.ct-service-hero__visual {
  position: relative;

  min-width: 0;
}

.ct-service-hero__image-wrap {
  position: relative;

  min-height: 680px;

  overflow: hidden;

  background: var(--ct-surface);

  clip-path: polygon(10% 0, 100% 0, 100% 82%, 88% 100%, 0 100%, 0 15%);
}

/* IMAGE */

.ct-service-hero__image {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: saturate(0.55) contrast(1.1) brightness(0.62);

  transform: scale(1.02);
}

/* IMAGE OVERLAY */

.ct-service-hero__overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(90deg, rgba(7, 10, 15, 0.62), rgba(7, 10, 15, 0.08) 55%),
    linear-gradient(0deg, rgba(7, 10, 15, 0.55), transparent 45%),
    linear-gradient(135deg, rgba(47, 48, 130, 0.13), transparent 50%);
}

/* HUD */

.ct-service-hero__hud {
  position: absolute;

  inset: 0;

  z-index: 3;

  padding: 28px;

  pointer-events: none;
}

.ct-service-hero__hud-top,
.ct-service-hero__hud-bottom {
  position: absolute;

  left: 28px;
  right: 28px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  color: rgba(255, 255, 255, 0.5);

  font-family: monospace;

  font-size: 9px;

  letter-spacing: 0.16em;
}

.ct-service-hero__hud-top {
  top: 28px;
}

.ct-service-hero__hud-bottom {
  bottom: 28px;
}

.ct-service-hero__status {
  display: inline-flex;
  align-items: center;

  gap: 8px;
}

.ct-service-hero__status i {
  width: 6px;
  height: 6px;

  background: var(--ct-brand-light-blue);

  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.08);
}

/* NETWORK */

.ct-service-hero__network {
  position: absolute;

  inset: 0;
}

.ct-service-hero__network-line {
  position: absolute;

  display: block;

  height: 1px;

  background: linear-gradient(
    90deg,
    rgba(0, 174, 239, 0),
    rgba(0, 174, 239, 0.45),
    rgba(0, 174, 239, 0)
  );
}

.ct-service-hero__network-line--01 {
  width: 46%;

  left: 16%;
  top: 39%;

  transform: rotate(-14deg);
}

.ct-service-hero__network-line--02 {
  width: 34%;

  right: 8%;
  top: 55%;

  transform: rotate(18deg);
}

.ct-service-hero__network-line--03 {
  width: 40%;

  left: 27%;
  bottom: 25%;

  transform: rotate(8deg);
}

/* NODES */

.ct-service-hero__node {
  position: absolute;

  width: 7px;
  height: 7px;

  background: var(--ct-brand-light-blue);

  box-shadow: 0 0 0 6px rgba(0, 174, 239, 0.08);
}

.ct-service-hero__node--01 {
  left: 18%;
  top: 36%;
}

.ct-service-hero__node--02 {
  left: 57%;
  top: 43%;
}

.ct-service-hero__node--03 {
  right: 15%;
  top: 59%;
}

.ct-service-hero__node--04 {
  left: 38%;
  bottom: 24%;
}

/* SYSTEM LABEL */

.ct-service-hero__system-label {
  position: absolute;

  right: 30px;
  bottom: 78px;

  display: flex;
  align-items: center;

  gap: 14px;

  padding: 13px 16px;

  background: rgba(5, 9, 14, 0.76);

  border-left: 2px solid var(--ct-brand-light-blue);

  backdrop-filter: blur(6px);
}

.ct-service-hero__system-label span {
  color: var(--ct-brand-light-blue);

  font-family: monospace;

  font-size: 10px;
}

.ct-service-hero__system-label strong {
  color: #d9e0e7;

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.15em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .ct-service-hero__grid {
    grid-template-columns: 1fr 0.9fr;

    gap: 50px;
  }

  .ct-service-hero__image-wrap {
    min-height: 580px;
  }
}

@media (max-width: 900px) {
  .ct-service-hero {
    min-height: auto;

    padding: 140px 0 80px;
  }

  .ct-service-hero__grid {
    grid-template-columns: 1fr;
  }

  .ct-service-hero__visual {
    margin-top: 20px;
  }

  .ct-service-hero__image-wrap {
    min-height: 560px;
  }
}

@media (max-width: 620px) {
  .ct-service-hero {
    padding: 120px 0 65px;
  }

  .ct-service-hero__title {
    font-size: clamp(52px, 15vw, 72px);
  }

  .ct-service-hero--erosaram .ct-service-hero__title,
  .ct-service-hero--solar .ct-service-hero__title,
  .ct-service-hero--climate .ct-service-hero__title {
    font-size: clamp(46px, 13vw, 64px);
  }

  .ct-service-hero__lead {
    margin-top: 28px;
  }

  .ct-service-hero--erosaram .ct-service-hero__lead,
  .ct-service-hero--solar .ct-service-hero__lead,
  .ct-service-hero--climate .ct-service-hero__lead {
    margin-top: 24px;
  }

  .ct-service-hero__actions {
    flex-direction: column;

    align-items: stretch;
  }

  .ct-service-hero--erosaram .ct-service-hero__actions,
  .ct-service-hero--solar .ct-service-hero__actions,
  .ct-service-hero--climate .ct-service-hero__actions {
    margin-top: 32px;
  }

  .ct-service-hero__actions .ct-button {
    justify-content: center;
  }

  .ct-service-hero__meta {
    margin-top: 35px;
  }

  .ct-service-hero__image-wrap {
    min-height: 430px;

    clip-path: polygon(12% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 12%);
  }

  .ct-service-hero__hud {
    padding: 18px;
  }

  .ct-service-hero__hud-top,
  .ct-service-hero__hud-bottom {
    left: 18px;
    right: 18px;
  }

  .ct-service-hero__system-label {
    right: 18px;
    bottom: 60px;
  }
}

/* =========================================================
   SERVICE NAV
   ========================================================= */

.ct-service-nav {
  position: sticky;
  top: 0;
  z-index: 80;

  background: #111721;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(14px);
}

.ct-service-nav__scroll-button {
  position: absolute;
  top: 50%;
  z-index: 2;

  width: 36px;
  height: 36px;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;

  background: rgba(7, 10, 15, 0.72);
  color: #ffffff;

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.ct-service-nav__scroll-button span {
  display: block;

  font-size: 24px;
  line-height: 1;
}

.ct-service-nav__scroll-button:hover {
  background: rgba(0, 174, 239, 0.9);
  transform: translateY(-50%) scale(1.04);
}

.ct-service-nav__scroll-button--previous {
  left: 16px;
}

.ct-service-nav__scroll-button--next {
  right: 16px;
}

.ct-service-nav.is-scrollable .ct-service-nav__scroll-button {
  display: inline-flex;
}

.ct-service-nav.is-at-start .ct-service-nav__scroll-button--previous,
.ct-service-nav.is-at-end .ct-service-nav__scroll-button--next {
  opacity: 0;
  pointer-events: none;
}

.ct-service-nav__inner {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 12px;

  min-height: 88px;

  overflow-x: auto;
  scrollbar-width: none;
}

.ct-service-nav__inner::-webkit-scrollbar {
  display: none;
}

.ct-service-nav__inner a {
  position: relative;

  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 0 22px;

  color: #071019;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;

  background: #00aeef;

  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.ct-service-nav__inner a:hover {
  color: #071019;

  background: #ffffff;

  transform: translateY(-2px);
}

/* =========================================================
   ANGLED BUTTON SHAPES
   ========================================================= */

.ct-service-nav__inner a:nth-child(4n + 1) {
  clip-path: polygon(0 0, 100% 0, 100% 72%, 92% 100%, 0 100%);
}

.ct-service-nav__inner a:nth-child(4n + 2) {
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%, 0 28%);
}

.ct-service-nav__inner a:nth-child(4n + 3) {
  clip-path: polygon(0 0, 92% 0, 100% 28%, 100% 100%, 0 100%);
}

.ct-service-nav__inner a:nth-child(4n + 4) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%, 0 72%);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .ct-service-nav.is-scrollable .ct-service-nav__inner {
    padding-inline: 42px;
  }

  .ct-service-nav__inner {
    justify-content: flex-start;

    min-height: 78px;

    gap: 10px;
  }

  .ct-service-nav__inner a {
    padding: 0 18px;

    font-size: 11px;
  }
}

@media (max-width: 620px) {
  .ct-service-nav__scroll-button {
    width: 32px;
    height: 32px;
  }

  .ct-service-nav__scroll-button--previous {
    left: 8px;
  }

  .ct-service-nav__scroll-button--next {
    right: 8px;
  }

  .ct-service-nav.is-scrollable .ct-service-nav__inner {
    padding-inline: 36px;
  }

  .ct-service-nav__inner {
    min-height: 72px;

    gap: 8px;
  }

  .ct-service-nav__inner a {
    min-height: 40px;

    padding: 0 15px;

    font-size: 10px;
  }
}

/* =========================================================
   SERVICE SECTION
   ========================================================= */

.ct-service-section {
  position: relative;

  padding: 140px 0;

  background: var(--ct-bg);
}

/* GRID */

.ct-service-section__grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(420px, 1.05fr);

  gap: clamp(60px, 7vw, 120px);

  align-items: center;
}

/* VISUAL */

.ct-service-section__visual {
  position: relative;

  min-width: 0;
}

.ct-service-section__image-wrap {
  position: relative;

  min-height: 560px;

  overflow: hidden;

  background: var(--ct-surface);

  clip-path: polygon(0 0, 88% 0, 100% 16%, 100% 100%, 12% 100%, 0 84%);
}

.ct-service-section__image {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: saturate(0.58) contrast(1.08) brightness(0.62);

  transform: scale(1.02);
}

.ct-service-section__overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(180deg, rgba(7, 10, 15, 0.05), rgba(7, 10, 15, 0.55)),
    linear-gradient(135deg, rgba(47, 48, 130, 0.18), transparent 55%);
}

/* IMAGE LABEL */

.ct-service-section__index {
  position: absolute;

  left: 28px;
  bottom: 28px;

  z-index: 10;

  display: flex;
  align-items: center;

  gap: 15px;

  padding: 12px 15px;

  background: rgba(7, 10, 15, 0.76);

  border-left: 2px solid var(--ct-brand-light-blue);

  backdrop-filter: blur(6px);
}

.ct-service-section__index span {
  color: var(--ct-brand-light-blue);

  font-family: monospace;
  font-size: 10px;
}

.ct-service-section__index strong {
  color: #dce3e9;

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.16em;
}

/* CONTENT */

.ct-service-section__content {
  position: relative;
}

.ct-service-section__eyebrow {
  display: flex;
  align-items: center;

  gap: 14px;

  margin-bottom: 26px;

  color: var(--ct-text-muted);

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ct-service-section__eyebrow-line {
  width: 38px;
  height: 1px;

  background: var(--ct-brand-light-blue);
}

.ct-service-section__title {
  margin: 0;

  font-family: "Space Grotesk", sans-serif;

  font-size: clamp(48px, 4.2vw, 78px);
  font-weight: 600;

  line-height: 0.95;
  letter-spacing: -0.05em;
}

.ct-service-section__title span {
  display: block;

  color: #8d98a6;
}

.ct-service-section__lead {
  max-width: 650px;

  margin: 30px 0 0;

  color: #a8b1bc;

  font-size: clamp(16px, 1vw, 18px);
  line-height: 1.75;
}

/* FEATURES */

.ct-service-section__features {
  display: flex;
  flex-direction: column;

  margin-top: 48px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-service-feature {
  display: grid;

  grid-template-columns: 48px 1fr;

  gap: 22px;

  padding: 25px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-service-feature__number {
  padding-top: 4px;

  color: var(--ct-brand-light-blue);

  font-family: monospace;
  font-size: 10px;

  letter-spacing: 0.1em;
}

.ct-service-feature h3 {
  margin: 0;

  font-family: "Space Grotesk", sans-serif;

  font-size: 22px;
  font-weight: 600;

  letter-spacing: -0.03em;
}

.ct-service-feature p {
  max-width: 520px;

  margin: 9px 0 0;

  color: #7f8a96;

  font-size: 14px;
  line-height: 1.7;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .ct-service-section__grid {
    grid-template-columns: 1fr;

    gap: 55px;
  }

  .ct-service-section__visual {
    order: 2;
  }

  .ct-service-section__content {
    order: 1;
  }

  .ct-service-section__image-wrap {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .ct-service-section {
    padding: 90px 0;
  }

  .ct-service-section__title {
    font-size: clamp(46px, 13vw, 64px);
  }

  .ct-service-section__image-wrap {
    min-height: 400px;
  }

  .ct-service-feature {
    grid-template-columns: 36px 1fr;

    gap: 15px;
  }
}
/* =========================================================
   REVERSED SERVICE SECTION
   ========================================================= */

.ct-service-section--reverse .ct-service-section__visual {
  order: 2;
}

.ct-service-section--reverse .ct-service-section__content {
  order: 1;
}

/* CAMERA SECTION BACKGROUND */

/* RESPONSIVE */

@media (max-width: 900px) {
  .ct-service-section--reverse .ct-service-section__visual,
  .ct-service-section--reverse .ct-service-section__content {
    order: initial;
  }

  .ct-service-section--reverse .ct-service-section__content {
    order: 1;
  }

  .ct-service-section--reverse .ct-service-section__visual {
    order: 2;
  }
}
