:root {
  --light-bg: #e8e7e7;
  --dark-bg: #10214b;
  --accent: #d7bd88;
  --light-text: #f5f5f5;
  --dark-text: #10214b;
  --font-main: 'Montserrat', sans-serif;
  --font-button: 'Montserrat', sans-serif;
  --icons-color: #10214b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--dark-text);
  background: var(--light-bg);
  line-height: 1.6;
}

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

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

section {
  padding: 4rem 6%;
}

/* ================= CONTAINER ================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 700;
}

/* ================= HERO ================= */
.hero {
  height: 100vh;
  background-image:
  linear-gradient(rgba(16,33,75,0.55), rgba(16,33,75,0.55)),
  url('/images/hero-bg.png');
  background-position: center, 50% 20%;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end; /* ⬅️ EZ A LÉNYEG */
  justify-content: center;
  padding: 2.5rem;
  color: var(--light-text);
  position: relative;
}

.hero-content {
  max-width: 1100px;
  width: 100%;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  text-align: center;
  opacity: 0;
  transform: translateY(2000px);
  background: rgba(20, 30, 50, 0.55); /* szürkés helyett mély kékes */
  backdrop-filter: blur(6px);
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 1.4s ease,
    transform 1.4s cubic-bezier(.2,.8,.2,1);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 0;
  max-width: 1100px;
  text-align: center;
}

.btn-primary {
  display: inline-flex;              /* ⬅️ fontos */
  align-items: center;               /* függőleges közép */
  justify-content: center;           /* vízszintes közép */
  min-width: 260px;
  height: 56px;
  background: var(--accent);
  color: var(--dark-bg);
  padding: 0 2rem;
  border-radius: 40px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.btn-secondary {
  background: var(--dark-bg);
  color: var(--light-text);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16,33,75,0.35);
}

@media (max-width: 768px) {
  .hero {
    background-position: top right;
  }
}
@media (max-width: 768px) {
  .hero-content {
    padding: 1.8rem;
    backdrop-filter: blur(5px);
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn-primary {
    width: 100%;              /* egységes */
    max-width: 250px;         /* ⬅️ ez a kulcs */
    margin: 0 auto;

    padding: 0.8rem 1.5rem;   /* kisebb, elegánsabb */
    font-size: 1rem;
  }
  .btn-primary {
    width: 100%;
    max-width: 280px;
  }
}

/* ================= RÓLAM ================= */
.about {
  padding: 6rem 0;
  background: #fff;
}

.about-inner {
  position: relative;
}

/* CÍM */
.about-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.about-title h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* IDÉZET – JOBB FENT */
.about-quote {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 360px;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  color: #555;
  border-left: 3px solid #e5e7eb;
}

.about-quote strong {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 600;
  color: #111;
}

/* KÉP + SZÖVEG */
.about-wrapper {  
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* KÉP */
.about-image {
  position: relative;
  perspective: 1000px; /* 3D tér */
}

.about-image img {
  width: 80%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  transition:
    transform 0.6s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.6s ease,
    filter 0.6s ease;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  filter: saturate(0.95) contrast(1.05);
  transform-style: preserve-3d;
}

.about-image:hover img {
  transform:
    rotateX(3deg)
    rotateY(-3deg)
    scale(1.02);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.12);
  filter: saturate(1.05) contrast(1.08);
}

/* Spotlight overlay */
.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.35),transparent 60%
);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.about-image:hover::after {
  opacity: 1;
}

/* ===== RÓLAM – BEKEZDÉSENKÉNTI ANIMÁCIÓ ===== */
.about-image,
.about-text p {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(.2,.8,.2,1);
}

.about-image.visible,
.about-text p.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Késleltetés bekezdésenként */
.about-text p:nth-child(1) { transition-delay: 0.2s; }
.about-text p:nth-child(2) { transition-delay: 0.8s; }
.about-text p:nth-child(3) { transition-delay: 1s; }
.about-text p:nth-child(4) { transition-delay: 1.2s; }

/* SZÖVEG */
.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

/* MOBIL JAVÍTÁS – stabil, ugrálásmentes */
@media (max-width: 768px) {

  .about {
    padding: 3rem 3%;
  }

  @media (hover: none) {
  .about-image:hover img,
  .about-image:hover::after {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-image img,
  .about-image::after {
    transition: none;
  }
}

  .about-image img {
    width: 80%;
    max-width: 100%;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
  }

  .about-quote {
    position: static;
    max-width: none;
    margin: 2rem 0;
    text-align: center;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .about-title {
    margin-bottom: 2rem;
  }

  .about-text {
    text-align: center;
  }
}

/* ================= SZOLGÁLTATÁSOK ================= */
.services {
  background: var(--light-bg);
  text-align: center;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  padding: 1rem 2rem 1rem 2rem;
}

.service-card {
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08),
              0 5px 15px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
  display: flex;
  flex-direction: column;
  flex: 1 1 260px;
  max-width: 320px;
}

.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 2px solid var(--accent);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.service-card:hover::before {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.service-card::after {
  border-color: transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.15),
    0 10px 25px rgba(0,0,0,0.08);
}

.service-card img {
  width: 70px;
  margin: 0 auto 1rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  color: #666;
  font-size: .95rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5em;
}

.service-card i {
  font-size: 2.2rem;
  color: var(--accent);

  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(215,189,136,0.25),
    rgba(215,189,136,0.08)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.services h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.services .btn-primary {
  display: inline-flex;              /* ⬅️ fontos */
  align-items: center;               /* függőleges közép */
  justify-content: center;          /* vízszintes közép */
  min-width: 160px;
  height: 48px;           
  background: var(--accent);
  color: var(--dark-bg);
  margin: 0 auto;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform .3s ease, box-shadow .3s ease;
 } 

/* ================= KAPCSOLAT ================= */
.contact {
  background: #fff;
  text-align: center;
}

.contact h2 {
  padding-bottom: 3rem;
}

.contact-wrapper {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
}

.contact-info:hover::before {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.contact-info::after {
  border-color: transparent;
}

.contact-info:hover {
  transform: translateY(-10px);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.15),
    0 10px 25px rgba(0,0,0,0.08);
}
.contact-info::before,
.contact-info::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 2px solid var(--accent);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.contact-info {
  text-align: left;
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform .4s ease, box-shadow .4s ease;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 1rem;
  font-weight: 500;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
}

.contact-info i {
  margin-right: 8px;
  color: var(--icons-color);
}

.map {
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
}

/* ================= REFERENCIÁK ================= */
.references {
  background: var(--light-bg);
  text-align: center;
}

.references h2 {
  margin-bottom: 3rem;
}

.references-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.reference-card {
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08),
              0 5px 15px rgba(0,0,0,0.04);
  transition: transform .4s ease, box-shadow .4s ease;
  flex: 1 1 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reference-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.15),
    0 10px 25px rgba(0,0,0,0.08);
}

.reference-card img {
  max-height: 80px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: grayscale(100%);
  transition: filter .4s ease, transform .4s ease;
}

.reference-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.reference-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.reference-card a {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  transition: opacity .3s ease;
}

.reference-card a:hover {
  opacity: 0.7;
}

/* MOBIL */
@media (max-width: 768px) {
  .references-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* ================= ANIMÁCIÓK ================= */
@keyframes slideUpSoft {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-actions {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-extras {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.messenger-btn {
  display: inline-flex;
  gap: 8px;
  padding: 10px 18px;
  background-color: #0084FF;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.messenger-btn:hover {
  background-color: #006edc;
}

@media (max-width: 768px) {

  .contact-wrapper {
    flex-direction: column;   /* <-- EZ HIÁNYZIK */
    align-items: stretch;
  }

  .contact-info,
  .map {
    width: 100%;
  }
}

.contact-wrapper {
   grid-template-columns: 1fr;
}

.contact-actions {
  flex-direction: row;
  align-items: center;
}

.contact-actions .btn-primary {
  width: 100%;
  max-width: 280px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--dark-bg);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: var(--accent);
}

.cookie-banner button {
  background: var(--accent);
  color: var(--dark-text);
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 6px;
  color: #fff;
}