/* =============================================================================
   CoolPool – stíluslap
   1. Változók és alapok      5. Rólunk / folyamat
   2. Gombok, segédosztályok  6. Galéria
   3. Fejléc és navigáció     7. Szolgáltatások
   4. Hero                    8. Kapcsolat / űrlap
                              9. Lábléc  10. Reszponzív
   ========================================================================== */

/* ============================ 1. VÁLTOZÓK ÉS ALAPOK ====================== */
:root {
  --white: #ffffff;
  --sky-50: #f2fafd;
  --sky-100: #e2f4fb;
  --sky-200: #c3e9f6;
  --turq: #14b8c4;
  --turq-dark: #0e9aa6;
  --navy: #0a4b78;
  --navy-deep: #06304e;
  --ink: #12263a;
  --muted: #5b7186;
  --line: #dbe9f2;

  --grad-brand: linear-gradient(135deg, var(--turq) 0%, var(--navy) 100%);
  --grad-soft: linear-gradient(180deg, var(--sky-50) 0%, var(--white) 100%);

  --shadow-sm: 0 2px 8px rgba(10, 75, 120, .06);
  --shadow-md: 0 10px 30px rgba(10, 75, 120, .09);
  --shadow-lg: 0 22px 50px rgba(10, 75, 120, .14);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--navy-deep);
  margin: 0 0 .6em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--turq-dark); }

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

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

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--grad-soft); }

.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--turq-dark);
  background: var(--sky-100);
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: 1rem;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Belépő animáció */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================ 2. GOMBOK ================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  border-radius: var(--r-full);
  cursor: pointer;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 184, 196, .28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(20, 184, 196, .38); }

.btn-ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { background: #fff; border-color: var(--turq); color: var(--turq-dark); }

.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ============================ 3. FEJLÉC ================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .94);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--turq); }
.logo-mark { display: flex; }
.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy-deep);
}
.logo-text span { color: var(--turq); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative;
  font-weight: 600;
  font-size: .97rem;
  color: var(--ink);
  padding: 6px 0;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--turq);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }
.nav-list a.is-active { color: var(--navy); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0;
  background: var(--sky-50);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 48, 78, .35);
  backdrop-filter: blur(2px);
}

/* ============================ 4. HERO ==================================== */
.hero {
  position: relative;
  padding: clamp(70px, 11vw, 130px) 0 clamp(90px, 12vw, 150px);
  background: linear-gradient(170deg, var(--sky-100) 0%, var(--sky-50) 45%, var(--white) 100%);
  overflow: hidden;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .45;
  animation: float 16s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; top: -120px; left: -100px; background: var(--turq); opacity: .22; }
.blob-2 { width: 340px; height: 340px; top: 40px; right: -80px; background: var(--navy); opacity: .14; animation-delay: -5s; }
.blob-3 { width: 260px; height: 260px; bottom: 40px; left: 45%; background: var(--sky-200); animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -24px) scale(1.06); }
}

.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { margin-bottom: .5em; }
.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  margin: clamp(44px, 6vw, 70px) auto 0;
  padding: 0;
  max-width: 800px;
}
.hero-stats li {
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
}
.hero-stats strong { display: block; color: var(--navy); font-size: 1.05rem; }
.hero-stats span { font-size: .9rem; color: var(--muted); line-height: 1.5; }

.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.wave-divider svg { width: 100%; height: 70px; }
.wave-divider path { fill: var(--white); }

/* ============================ 5. RÓLUNK / FOLYAMAT ======================= */
.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.value-list li {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.value-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky-200);
}
.value-icon {
  flex: 0 0 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--sky-100);
  border-radius: 14px;
}
.value-list h3 { margin-bottom: .3em; }
.value-list p { margin: 0; color: var(--muted); font-size: .95rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 22px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute;
  top: -18px; left: 22px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
  border-radius: var(--r-full);
  box-shadow: 0 6px 14px rgba(20, 184, 196, .35);
}
.step h3 { margin: 8px 0 .4em; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ============================ 6. GALÉRIA ================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.gallery-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.gallery-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-100), var(--sky-200));
}
.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.gallery-card:hover .gallery-media img { transform: scale(1.06); }

.gallery-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, .92);
  padding: 5px 12px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
}
.gallery-body { padding: 18px 20px 22px; }
.gallery-body h3 { margin-bottom: .35em; font-size: 1.05rem; }
.gallery-body p { margin: 0; color: var(--muted); font-size: .92rem; }

.upload-slot {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
  padding: 26px;
  border: 2px dashed var(--sky-200);
  border-radius: var(--r-lg);
  background: var(--sky-50);
}
.upload-icon {
  flex: 0 0 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  color: var(--turq);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.upload-slot h3 { margin-bottom: .3em; }
.upload-slot p { color: var(--muted); font-size: .93rem; margin-bottom: .9em; }
.upload-slot code {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .86em;
}
.hint { margin: 10px 0 0; font-size: .88rem; color: var(--turq-dark); min-height: 1.2em; }

/* ============================ 7. SZOLGÁLTATÁSOK ========================== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sky-200);
}
.service-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--turq-dark);
  background: var(--sky-100);
  border-radius: 16px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.service-card:hover .service-icon { background: var(--grad-brand); color: #fff; }
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.service-card > p { color: var(--muted); font-size: .95rem; }
.service-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.service-list li {
  position: relative;
  padding-left: 26px;
  font-size: .93rem;
  color: var(--ink);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--turq);
  border-bottom: 2px solid var(--turq);
  transform: rotate(-45deg);
}
.service-cta { margin-top: auto; align-self: flex-start; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg);
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cta-band h3 { color: #fff; margin-bottom: .35em; font-size: 1.3rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .9); }
.cta-band .btn-primary { background: #fff; color: var(--navy-deep); box-shadow: none; }
.cta-band .btn-primary:hover { color: var(--turq-dark); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }

/* ============================ 8. KAPCSOLAT / ŰRLAP ======================= */
.grid-contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; }
.contact-icon {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: var(--sky-100);
  border-radius: 14px;
}
.contact-list h3 { margin-bottom: .15em; font-size: 1rem; }
.contact-list p { margin: 0; color: var(--muted); font-size: .95rem; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.5vw, 38px);
  box-shadow: var(--shadow-md);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--navy-deep);
}
.req { color: #d64545; }
.opt { font-weight: 400; color: var(--muted); font-size: .86rem; }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--sky-50);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: #9db1c2; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--turq);
  box-shadow: 0 0 0 4px rgba(20, 184, 196, .15);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #d64545; background: #fdf5f5; }

.error { margin: 6px 0 0; font-size: .85rem; color: #c93b3b; min-height: 0; }

.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 22px;
}
.field-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--turq); }
.field-check label { font-weight: 400; font-size: .89rem; color: var(--muted); line-height: 1.55; margin: 0; }
.field-check .error { grid-column: 1 / -1; }
.inline-link { color: var(--turq-dark); text-decoration: underline; }

/* Spamvédelmi honeypot – vizuálisan és képernyőolvasóknak is rejtett */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.form-status {
  margin: 14px 0 0;
  padding: 0;
  font-size: .93rem;
  font-weight: 600;
  border-radius: var(--r-sm);
}
.form-status.is-success {
  padding: 14px 16px;
  color: #0d6e52;
  background: #e6f7f1;
  border: 1px solid #b8e6d6;
}
.form-status.is-error {
  padding: 14px 16px;
  color: #c93b3b;
  background: #fdf0f0;
  border: 1px solid #f2cfcf;
}

/* ============================ 9. LÁBLÉC ================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .78);
  padding-top: clamp(50px, 6vw, 76px);
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .9em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--turq); }
.logo-footer .logo-text { color: #fff; }
.logo-footer .logo-text span { color: var(--turq); }
.slogan { margin: 12px 0 8px; font-weight: 700; color: var(--turq); }
.footer-text { color: rgba(255, 255, 255, .62); max-width: 34ch; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .87rem;
  color: rgba(255, 255, 255, .6);
}
.footer-bottom p { margin: 0; }
.site-footer .inline-link { color: rgba(255, 255, 255, .7); }

/* ============================ 10. RESZPONZÍV ============================= */
@media (max-width: 1024px) {
  .grid-2, .grid-contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    z-index: 95;
    width: min(320px, 86vw);
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 26px 24px 40px;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 40px rgba(10, 75, 120, .12);
    transform: translateX(100%);
    /* A becsukott menü rejtett: nem kerül a tab-sorrendbe és nem csordul túl. */
    visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-list a {
    display: block;
    padding: 14px 12px;
    border-radius: var(--r-sm);
    font-size: 1.02rem;
  }
  .nav-list a:hover { background: var(--sky-50); }
  .nav-list a::after { display: none; }
  .nav-list a.is-active { background: var(--sky-100); }
  .nav-cta { margin-top: 14px; }

  .hero-stats { grid-template-columns: 1fr; max-width: 420px; }
  .upload-slot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions .btn { width: 100%; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
  .service-card { padding: 26px 22px; }
}

/* Nyomtatás */
@media print {
  .site-header, .nav, .hamburger, .wave-divider, .hero-bg, .upload-slot, .form-card { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .section { padding: 16px 0; }
}
