:root {
  --color-primary: #0c3f6a; /* sötétkék 1e5b91 3176b3*/
  --color-accent: #93b7ca; /* világoskék */
  --color-muted: #91959a; /* középszürke */
  --color-bg-soft: #f5f7fb;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Quicksand",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1f2933;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

/* header top */

.header-top {
  background-color: var(--color-primary);
  color: #f9fafb;
  font-size: 0.8rem;
  padding: 0 1rem;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.3rem 0;
}

.header-top-left,
.header-top-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.ht-item {
  opacity: 0.9;
}

.ht-item:hover {
  opacity: 1;
  text-decoration: underline;
}

.ht-label {
  opacity: 0.8;
}

.ht-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.35);
  color: #ffffff;
  transition: all 0.2s ease;
}

.ht-social:hover {
  background-color: rgba(249, 250, 251, 0.12);
  transform: scale(1.1);
}

/* header main */

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
}

.logo a {
  display: flex;
  flex-direction: column;
}

.logo img {
  height: 120px;
  width: auto;
}

.logo-main {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* NAV */

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav a:hover::after {
  width: 100%;
}

/* NAV TOGGLE (MOBIL) */

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background-color: #111827;
  border-radius: 999px;
}

/* HERO */

.hero {
  position: relative;
  width: 100%;
  min-height: 75vh;
  background-image: url("../img/hero-desktop.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to bottom,
    rgba(12, 63, 108, 0.15),
    rgba(12, 63, 108, 0.25)
  );
}

.hero-content {
  max-width: 650px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(4px);
  padding: 2rem 2.2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #102a43;
}

.hero p {
  margin: 0 0 1rem;
  color: #425466;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  color: #425466;
}

.hero-highlights li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.25rem;
}

.hero-highlights li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn.primary {
  background-color: var(--color-primary);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.btn.primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn.primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn.primary:hover {
  background-color: #072844;
  transform: scale(1.05);
}

.btn.ghost {
  border-color: #d1d5db;
  background-color: #ffffff;
  color: #374151;
}

.btn.ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(1.05);
  background-color: rgba(12, 63, 108, 0.05);
}

/* GENERAL SECTIONS */

.section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  /* max-width: 640px; */
  margin: 0 auto 2rem;
}

.section-header h2 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  color: #102a43;
}

.section-header p {
  color: var(--color-muted);
}

/* GRID HELPERS */

.services-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 901px) {
  .testimonials-grid .card:nth-child(4) {
    grid-column: span 2;
  }
}

/* CARDS */

.card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  /* padding: 1.5rem; */
  padding: 0;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: #102a43;
}

.card p {
  margin: 1.5rem;
  color: #4b5563;
  text-align: left;
}

/* TEAM – váltakozó, képes layout */

.team-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.team-member {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 3rem;
  margin-bottom: 4rem;
}

.team-member:last-child {
  margin-bottom: 0;
}

.team-image {
  width: 100%;
  max-width: 500px;
}

.team-member.left .team-image {
  order: 1;
  justify-self: end;
}

.team-member.left .team-content {
  order: 2;
  justify-self: start;
  margin-top: 10em;
}

.team-member.right .team-image {
  order: 2;
  justify-self: start;
}

.team-member.right .team-content {
  order: 1;
  justify-self: end;
  text-align: left;
  margin-top: 10em;
}

.team-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.team-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.28);
}

.team-content h3 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
  color: #102a43;
}

.team-content .role {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 600;
}

.team-content .bio {
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
  color: #374151;
  max-width: 60ch;
}

/* INFO SECTION */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}
.two-column p {
  text-align: justify;
  margin: 0.5rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: #374151;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin: 1rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* FAQ */

.faq-list details {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-soft);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: #102a43;
}

.faq-list p {
  margin-top: 0.6rem;
  color: var(--color-muted);
}

/* TESTIMONIALS */

.testimonials {
  background-color: var(--color-bg-soft);
}

.testimonials .card p {
  margin-bottom: 0.5rem;
}

.testimonials .author {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  text-align: right;
}

/* CONTACT */

.map-section {
  padding: 0;
}

.map-section iframe {
  display: block;
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-block {
  margin-bottom: 1rem;
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #072844;
  transform: scale(1.1);
}

.contact-form {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

label {
  font-size: 0.9rem;
  color: #111827;
}

input,
textarea {
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font: inherit;
  transition: all 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(12, 63, 108, 0.15);
  transform: scale(1.01);
}

input,
textarea {
  transition: all 0.2s ease;
}

/* SCROLL TO TOP BUTTON */

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(12, 63, 108, 0.3);
  z-index: 1001;
  backdrop-filter: blur(4px);
}

.scroll-to-top:hover {
  background-color: rgba(12, 63, 108, 0.9);
  transform: scale(1);
  box-shadow: 0 6px 20px rgba(12, 63, 108, 0.4);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.scroll-to-top:active {
  transform: scale(0.95);
}

/* COOKIE BANNER */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(12, 63, 108, 0.98),
    rgba(12, 63, 108, 0.95)
  );
  color: #ffffff;
  padding: 1.5rem 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 300px;
  line-height: 1.6;
}

.cookie-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-actions .btn {
  white-space: nowrap;
}

/* FORM ENHANCEMENTS */

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-message {
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.form-message.success {
  color: #059669;
  font-weight: 600;
}

.form-message.error {
  color: #dc2626;
  font-weight: 600;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0.5rem 0 0;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .spinner {
  display: inline-block !important;
}

/* PRIVACY POLICY PAGE */

.privacy-policy {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-policy h1 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.privacy-policy h2 {
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.privacy-policy p,
.privacy-policy li {
  line-height: 1.8;
  color: #374151;
  margin-bottom: 1rem;
}

.privacy-policy ul {
  margin-left: 1.5rem;
}

.privacy-policy a {
  color: var(--color-primary);
  text-decoration: underline;
}

.privacy-policy a:hover {
  color: #072844;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem 0;
  background-color: #f9fafb;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #072844;
}

/* SCROLL TO TOP BUTTON */

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero {
    min-height: 90vh;
  }

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

  .team-member {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-image {
    order: 0 !important;
    justify-self: center !important;
    max-width: 400px;
  }

  .team-content {
    order: 1 !important;
    justify-self: start !important;
    text-align: left !important;
    margin-top: 0 !important;
  }

  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .team-content .bio {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    background-image: url("../img/hero-mobile.jpg");
    background-position: center top;
  }
}

@media (max-width: 780px) {
  .main-nav ul {
    flex-direction: column;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.15s ease-in-out;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .header-top {
    font-size: 0.7rem;
  }

  .header-top-inner {
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .header-top-left,
  .header-top-right {
    gap: 0.5rem;
  }

  .ht-social {
    width: 28px;
    height: 28px;
  }

  .ht-social svg {
    width: 16px;
    height: 16px;
  }

  .logo-sub {
    font-size: 0.75rem;
  }

  .hero-content {
    padding: 1.5rem 1.6rem;
  }
}
