/*
  Töréspontok: 900px (tablet) és 680px (mobil).
  A reszponzív szabályok mindig az adott elemnél, beágyazva szerepelnek.
*/

:root {
  --blue: #087fbd;
  --deep-blue: #084889;
  --navy: #102d55;
  --cyan: #27c2e4;
  --pale: #eff9fd;
  --ink: #18304b;
  --muted: #61758a;

  /* RGB-csatornák az átlátszó színekhez: rgb(var(--blue-rgb) / .16) */
  --blue-rgb: 8 127 189;
  --deep-rgb: 8 72 137;
  --navy-rgb: 16 45 85;

  --shadow: 0 20px 55px rgb(var(--deep-rgb) / .12);
  --font-head: 'Manrope', Arial, sans-serif;
  --gutter: max(calc((100vw - 1180px) / 2), 6.5%);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  @media (max-width: 680px) { scroll-padding-top: 70px; }
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: 'DM Sans', Arial, sans-serif;
  line-height: 1.65;
}

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

/* ---------- Tipográfia ---------- */

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); font-family: var(--font-head); font-weight: 800; }
h1 span, h2 span { color: var(--blue); }

h2 {
  margin-bottom: 13px;
  font-size: clamp(32px, 4vw, 45px);
  letter-spacing: -1.7px;
  line-height: 1.18;
  @media (max-width: 680px) { font-size: 34px; }
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

/* ---------- Logó (közös alap + változatok) ---------- */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--deep-blue);
  font-family: var(--font-head);
  font-weight: 800;
  line-height: .92;
  border: 2px solid var(--blue);
  border-radius: 13px;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px rgb(var(--blue-rgb) / .14);

  & span:first-child { font-size: var(--logo-top); letter-spacing: -1.2px; }
  & span:last-child { font-size: var(--logo-bottom); letter-spacing: 2px; }
}

/* Fejléc és lábléc */
.brand-mark {
  --logo-top: 19px;
  --logo-bottom: 17px;
  justify-content: center;
  width: 144px;
  height: 51px;
  line-height: .94;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px rgb(var(--blue-rgb) / .16);
  transform: skew(-2deg);

  & span:first-child { letter-spacing: -1px; }

  @media (max-width: 680px) {
    --logo-top: 17px;
    --logo-bottom: 15px;
    width: 128px;
    height: 46px;
  }
}

.footer-brand .brand-mark {
  --logo-top: 16px;
  --logo-bottom: 14px;
  width: 119px;
  height: 43px;
}

/* Hero grafika */
.sheet-logo {
  --logo-top: 21px;
  --logo-bottom: 19px;
  margin-top: 15px;
  padding: 8px 16px;
  transform: scale(1.42);
  @media (max-width: 680px) { transform: scale(1.2); }
}

/* Rólunk */
.about-logo {
  --logo-top: 28px;
  --logo-bottom: 25px;
  z-index: 1;
  padding: 13px 22px;
  background: #fff;
  box-shadow:
    0 14px 40px rgb(var(--deep-rgb) / .13),
    inset 0 0 0 3px #fff,
    inset 0 0 0 5px rgb(var(--blue-rgb) / .14);
  transform: scale(1.4);
  @media (max-width: 680px) { transform: scale(1.2); }
}

/* ---------- Gombok, linkek ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}

.button-primary, .nav-cta {
  color: #fff;
  background: var(--blue);
  &:hover { background: var(--deep-blue); transform: translateY(-2px); }
}

.button-primary { box-shadow: 0 9px 20px rgb(var(--blue-rgb) / .18); }

.button-outline {
  color: var(--deep-blue);
  background: rgb(255 255 255 / .7);
  border-color: rgb(var(--deep-rgb) / .25);
  &:hover { background: #fff; border-color: var(--blue); }
}

.button-light {
  color: var(--deep-blue);
  background: #fff;
  &:hover { background: #eaf8fd; transform: translateY(-2px); }
}

.text-link {
  color: var(--deep-blue);
  font-size: 12px;
  font-weight: 700;
  & span { margin-left: 4px; color: var(--blue); }
}

.main-nav > a:not(.nav-cta):hover, .text-link:hover, .back-top:hover { color: var(--blue); }

/* ---------- Fejléc ---------- */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: 0 var(--gutter);
  background: rgb(255 255 255 / .96);
  border-bottom: 1px solid rgb(var(--blue-rgb) / .1);
  backdrop-filter: blur(14px);
  @media (max-width: 900px) { padding: 0 5%; }
  @media (max-width: 680px) { height: 70px; }
}

.brand, .footer-brand { display: inline-flex; align-items: center; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 14px;
  font-weight: 600;

  & a { transition: .2s ease; }

  @media (max-width: 900px) { gap: 21px; }

  @media (max-width: 680px) {
    position: absolute;
    top: 69px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 6% 20px;
    background: #fff;
    border-bottom: 1px solid #e4eef4;
    box-shadow: 0 15px 20px rgb(var(--navy-rgb) / .08);

    &.is-open { display: flex; flex-direction: column; }
    & > a:not(.nav-cta) { padding: 12px 0; border-bottom: 1px solid #edf3f6; }
  }
}

.nav-cta {
  padding: 11px 19px;
  border-radius: 6px;
  @media (max-width: 680px) { margin-top: 13px; text-align: center; }
}

/* Hamburger menü – csak mobilon látszik */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 1px solid #d7e9f2;
  border-radius: 5px;
  cursor: pointer;

  & span { width: 100%; height: 2px; background: var(--deep-blue); transition: .2s ease; }
  &[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  &[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  &[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

  @media (max-width: 680px) { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 620px;
  overflow: hidden;
  padding: 72px var(--gutter) 96px;
  background: linear-gradient(115deg, var(--pale) 0%, #fff 48%, #f4fbfe 100%);
  @media (max-width: 900px) { min-height: 590px; padding-left: 6%; }
  @media (max-width: 680px) { display: block; min-height: auto; padding: 65px 6% 82px; }
}

.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 36%;
  height: 100%;
  opacity: .34;
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgb(var(--blue-rgb) / .16) 10px 11px);
  clip-path: polygon(33% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 54%;
  max-width: 620px;
  @media (max-width: 900px) { width: 56%; }
  @media (max-width: 680px) { width: 100%; }
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 5vw, 65px);
  letter-spacing: -2.7px;
  line-height: 1.08;
  @media (max-width: 680px) { max-width: 500px; font-size: clamp(40px, 10vw, 57px); letter-spacing: -2px; }
}

.hero-text {
  max-width: 510px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 16px;
  @media (max-width: 680px) { max-width: 500px; font-size: 14px; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 39px;
  color: #688098;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .35px;
}

.note-line { width: 32px; height: 2px; background: var(--cyan); }

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6e8497;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  & span { width: 17px; height: 27px; border: 1px solid var(--blue); border-radius: 12px; }
  @media (max-width: 680px) { bottom: 20px; left: 6%; }
}

/* Hero grafika (jobb oldali „lapok”) */
.hero-visual {
  position: absolute;
  top: 50%;
  right: max(calc((100vw - 1160px) / 2), 7%);
  width: min(40vw, 470px);
  height: 390px;
  transform: translateY(-48%);
  @media (max-width: 900px) { right: 3%; width: 40vw; }
  @media (max-width: 680px) {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 400px);
    height: 300px;
    margin: 34px auto 0;
    transform: none;
  }
}

.visual-sheet {
  position: absolute;
  width: 76%;
  height: 78%;
  border-radius: 4px;
  @media (max-width: 680px) { height: 82%; }
}

.sheet-back {
  top: 7%;
  right: 5%;
  background: linear-gradient(135deg, #b6effb, #eafaff);
  border: 1px solid rgb(39 194 228 / .7);
  box-shadow: 0 18px 40px rgb(0 114 171 / .11);
  transform: rotate(8deg);
  &::before { position: absolute; inset: 14px; content: ''; border: 1px dashed rgb(var(--blue-rgb) / .35); }
}

.sheet-line {
  position: absolute;
  right: 23px;
  bottom: 35px;
  width: 60%;
  height: 7px;
  background: rgb(var(--blue-rgb) / .17);
}

.sheet-dot {
  position: absolute;
  right: 22px;
  bottom: 51px;
  width: 42px;
  height: 42px;
  border: 2px solid rgb(var(--blue-rgb) / .32);
  border-radius: 50%;
}

.sheet-front {
  top: 13%;
  left: 4%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #9bdcef;
  box-shadow: var(--shadow);
  transform: rotate(-5deg);
}

.sheet-topline, .sheet-bottomline { position: absolute; left: 0; width: 100%; height: 13px; }
.sheet-topline { top: 0; background: linear-gradient(90deg, #0783c2, #32c1df 72%, #d3f4fb); }
.sheet-bottomline { bottom: 0; background: linear-gradient(90deg, #c7f2fb, #138ec4); }

.sheet-caption {
  margin-top: 30px;
  color: #56a5c9;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  @media (max-width: 680px) { margin-top: 23px; }
}

.visual-spark { position: absolute; color: var(--blue); }
.spark-one { top: 3%; left: 7%; font-size: 30px; }
.spark-two { right: 8%; bottom: 3%; color: #35bada; font-size: 32px; }

.visual-stamp {
  position: absolute;
  right: 1%;
  bottom: 15%;
  display: grid;
  width: 82px;
  height: 82px;
  place-content: center;
  color: #fff;
  background: var(--blue);
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgb(var(--deep-rgb) / .2);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transform: rotate(10deg);
}

/* ---------- Szekciók közös elemei ---------- */

.section-wrap {
  width: min(1180px, 87%);
  margin: 0 auto;
  @media (max-width: 680px) { width: 88%; }
}

.section-heading {
  max-width: 580px;
  margin: 0 auto 42px;
  text-align: center;
  & > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 14px; }
  @media (max-width: 680px) { margin-bottom: 30px; }
}

/* ---------- Szolgáltatások ---------- */

.services {
  padding-block: 102px 95px;
  @media (max-width: 680px) { padding-block: 72px 67px; }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
  @media (max-width: 680px) { grid-template-columns: 1fr; gap: 13px; }
}

.service-card {
  position: relative;
  min-height: 310px;
  padding: 29px 27px 25px;
  background: #fff;
  border: 1px solid #e4eef4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(23 65 101 / .045);
  transition: transform .25s ease, box-shadow .25s ease;
  &:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
  @media (max-width: 680px) { min-height: 0; padding: 24px; }
}

.featured-card { border-top: 3px solid var(--blue); }

.service-number {
  position: absolute;
  top: 26px;
  right: 27px;
  color: #bdd8e8;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
}

.service-icon {
  display: grid;
  width: 51px;
  height: 51px;
  margin-bottom: 19px;
  place-items: center;
  background: #eaf8fd;
  border-radius: 12px;
  & svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }
}

.service-card h3 { margin-bottom: 9px; font-size: 17px; }

.service-card p {
  min-height: 70px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 13px;
  @media (max-width: 680px) { min-height: 0; }
}

.service-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
  padding: 16px 20px;
  color: #567086;
  background: var(--pale);
  border-radius: 5px;
  font-size: 13px;
  & a { color: var(--deep-blue); font-weight: 700; }
  @media (max-width: 680px) { flex-wrap: wrap; justify-content: flex-start; font-size: 12px; }
}

.ribbon-star { color: var(--blue); font-size: 20px; }

/* ---------- Munkáink ---------- */

.work {
  padding-block: 35px 100px;
  @media (max-width: 680px) { padding-block: 5px 70px; }
}

.work-gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
  @media (max-width: 680px) { grid-template-columns: 1fr; gap: 13px; }
}

.work-image {
  position: relative;
  min-width: 0;
  height: 280px;
  margin: 0;
  overflow: hidden;
  background: var(--pale);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(23 65 101 / .1);
  @media (max-width: 680px) { height: 250px; }

  & img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
  }
  &:hover img { transform: scale(1.04); }

  & figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px 16px 14px;
    color: #fff;
    background: linear-gradient(transparent, rgb(var(--navy-rgb) / .8));
    font-size: 13px;
    font-weight: 700;
  }
}

/* ---------- Rólunk ---------- */

.about {
  overflow: hidden;
  background: linear-gradient(110deg, #f3fbfe 0%, #fff 72%);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 85px;
  min-height: 480px;
  padding-block: 58px;
  @media (max-width: 900px) { gap: 35px; }
  @media (max-width: 680px) { grid-template-columns: 1fr; gap: 8px; padding-block: 50px 55px; }
}

.about-art {
  position: relative;
  display: grid;
  min-height: 350px;
  place-items: center;
  @media (max-width: 680px) { min-height: 300px; }
}

.about-ring {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 2px solid rgb(var(--blue-rgb) / .35);
  border-radius: 50%;
  box-shadow: 0 0 0 13px rgb(var(--blue-rgb) / .05), 0 0 0 27px rgb(var(--blue-rgb) / .04);
  @media (max-width: 680px) { width: 230px; height: 230px; }

  &::before, &::after { position: absolute; content: ''; border-radius: 50%; }
  &::before { inset: 19px; border: 1px dashed rgb(var(--blue-rgb) / .28); }
  &::after {
    top: 50%;
    left: -80px;
    width: 446px;
    height: 1px;
    background: rgb(var(--blue-rgb) / .21);
    transform: rotate(-28deg);
    @media (max-width: 680px) { left: -54px; width: 336px; }
  }
}

.about-scribble {
  position: absolute;
  right: 3%;
  bottom: 11%;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transform: rotate(-8deg);
  @media (max-width: 680px) { right: 4%; bottom: 6%; }
}

.about-copy {
  max-width: 490px;
  @media (max-width: 680px) { padding: 0 3px; }
  & h2 { margin-bottom: 19px; }
  & > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
  & .button { margin-top: 7px; }
}

/* ---------- Kapcsolat ---------- */

.contact {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 65px;
  overflow: hidden;
  margin-block: 100px 90px;
  padding: 55px 62px;
  color: #fff;
  background: linear-gradient(120deg, var(--blue), #075c9c);
  border-radius: 9px;
  box-shadow: 0 20px 45px rgb(var(--deep-rgb) / .2);
  @media (max-width: 900px) { gap: 35px; padding: 45px; }
  @media (max-width: 680px) { grid-template-columns: 1fr; gap: 33px; margin-block: 65px 60px; padding: 35px 26px; }

  & .eyebrow { color: #b7edfb; }
  & h2 {
    color: #fff;
    font-size: clamp(32px, 3.5vw, 42px);
    @media (max-width: 680px) { font-size: 35px; }
  }
  & h2 span { color: #9be7f5; }
}

.contact-intro, .contact-details { position: relative; z-index: 1; }

.contact-intro > p:not(.eyebrow) {
  max-width: 410px;
  margin-bottom: 22px;
  color: rgb(255 255 255 / .83);
  font-size: 13px;
}

.contact-details {
  display: grid;
  align-content: center;
  gap: 19px;
  @media (max-width: 680px) { gap: 15px; }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  & small {
    display: block;
    margin-bottom: 1px;
    color: #bceafa;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  & a, & p { margin: 0; font-size: 13px; font-weight: 600; }
  & a:hover { text-decoration: underline; }
}

.contact-icon {
  display: grid;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  place-items: center;
  background: rgb(255 255 255 / .14);
  border: 1px solid rgb(255 255 255 / .23);
  border-radius: 50%;
  font-size: 17px;
}

.contact-decoration {
  position: absolute;
  right: -51px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgb(255 255 255 / .04), 0 0 0 45px rgb(255 255 255 / .035);
}

/* ---------- Lábléc ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 27px var(--gutter);
  border-top: 1px solid #e7f0f5;
  @media (max-width: 680px) { justify-content: center; padding: 25px 6%; text-align: center; }

  & > small { flex-basis: 100%; color: #91a2b1; font-size: 10px; text-align: center; }
}

.site-footer > p, .back-top {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  @media (max-width: 680px) { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
