:root {
  --red: #ff1414;
  --red-deep: #cf1010;
  --slate: #64666d;
  --slate-deep: #292c33;
  --ink: #1f2430;
  --muted: #616674;
  --paper: #f6f7fb;
  --white: #ffffff;
  --gold: #ead8ae;
  --border: rgba(24, 29, 39, 0.08);
  --shadow-lg: 0 28px 70px rgba(21, 26, 36, 0.12);
  --shadow-md: 0 18px 40px rgba(21, 26, 36, 0.1);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: min(1360px, calc(100vw - 32px));
  --page-bg: #ffffff;
  --page-bg-2: #eef2f7;
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(24, 29, 39, 0.08);
  --theme-text: #1f2430;
  --theme-muted: #616674;
  --theme-chip-bg: #ffffff;
  --theme-chip-text: #292c33;
  --panel-soft-bg: linear-gradient(135deg, #ffffff, #fff6f6);
  --panel-soft-text: #1f2430;
  --panel-soft-muted: #4e5563;
  --panel-accent-bg: linear-gradient(135deg, rgba(255, 20, 20, 0.04), rgba(234, 216, 174, 0.22)), #fff;
  --panel-accent-text: #1f2430;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--theme-text);
  font-family: "Barlow", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(234, 216, 174, 0.55), transparent 25%),
    radial-gradient(circle at top right, rgba(255, 20, 20, 0.08), transparent 22%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 34%, var(--page-bg) 100%);
}

body[data-theme="dark"] {
  --page-bg: #000000;
  --page-bg-2: #0d0d10;
  --card-bg: rgba(15, 15, 18, 0.9);
  --card-border: rgba(255, 255, 255, 0.08);
  --theme-text: #f5f7fb;
  --theme-muted: #c5cad4;
  --theme-chip-bg: #000000;
  --theme-chip-text: #f5f7fb;
  --panel-soft-bg: linear-gradient(135deg, rgba(18, 18, 22, 0.98), rgba(30, 18, 18, 0.95));
  --panel-soft-text: #f5f7fb;
  --panel-soft-muted: #d5d9e1;
  --panel-accent-bg: linear-gradient(135deg, rgba(255, 20, 20, 0.1), rgba(234, 216, 174, 0.06)), #111214;
  --panel-accent-text: #f5f7fb;
}

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

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

.hero-header,
main,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.hero-header {
  position: relative;
  padding-top: 18px;
  padding-bottom: 8px;
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--theme-chip-bg);
  color: var(--theme-chip-text);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 30px rgba(21, 26, 36, 0.16);
  cursor: pointer;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero-header::before {
  content: "";
  position: absolute;
  inset: 28px 0 8px;
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(23, 28, 38, 0.84), rgba(100, 102, 109, 0.74)),
    url("https://www.abdafuto.hu/wp-content/uploads/2023/02/20221108_144511-scaled.jpg")
      center/cover;
  box-shadow: var(--shadow-lg);
  z-index: 0;
}

.top-intro,
.main-nav,
.social-row {
  position: relative;
  z-index: 1;
}

.top-intro {
  display: flex;
  align-items: center;
  width: min(480px, calc(100% - 24px));
  padding: 14px 22px;
  margin: 28px 0 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.12);
}

body[data-theme="dark"] .top-intro {
  background: rgba(18, 18, 22, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
}

.logo {
  height: 72px;
  width: auto;
  max-width: 320px;
  border-radius: 0;
  object-fit: contain;
  border: none;
  background: transparent;
}

.main-nav a,
.feature-text h2,
.custom-build h2,
.maps h2,
.hours h2,
.service-box h3 {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 98px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(41, 44, 51, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--white);
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.main-nav a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.main-nav a.active {
  background: var(--white);
  color: var(--slate);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

body[data-theme="dark"] .main-nav a.active {
  background: #f5f7fb;
  color: #20242c;
}

.social-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 12px 6px 0 0;
}

.social-row a,
.footer-social a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--theme-chip-text);
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(21, 26, 36, 0.08);
}

body[data-theme="dark"] .social-row a,
body[data-theme="dark"] .footer-social a,
body[data-theme="dark"] .footer-links a {
  background: rgba(255, 255, 255, 0.06);
}

main {
  flex: 1;
  margin-top: 26px;
}


.features,
.lead-cta,
.custom-build,
.maps,
.hours,
.service-box,
.site-footer {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.cta-button,
.map-actions a,
.service-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(255, 20, 20, 0.22);
}

.lead-cta,
.features,
.custom-build,
.maps,
.hours {
  margin-top: 28px;
  padding: 30px;
}

.lead-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at right top, rgba(255, 20, 20, 0.08), transparent 28%),
    var(--panel-soft-bg);
}

.lead-cta::before {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 20, 20, 0.07);
}

.lead-cta p {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--panel-soft-text);
}

.lead-cta a {
  color: var(--red);
  text-decoration: underline;
}

.lead-cta .cta-button {
  position: relative;
  margin-top: 12px;
  color: var(--white);
  text-decoration: none;
}

.features {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.feature-text h2,
.custom-build h2,
.maps h2,
.hours h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  line-height: 1.05;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin-bottom: 14px;
  padding: 18px 18px 18px 54px;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 253, 0.92));
  font-size: 1.06rem;
  line-height: 1.55;
}

body[data-theme="dark"] .feature-list li {
  background: linear-gradient(180deg, rgba(24, 24, 29, 0.96), rgba(18, 18, 22, 0.92));
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 23px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(255, 20, 20, 0.12);
}

.custom-build {
  background: var(--panel-accent-bg);
}

.custom-build h2 {
  color: var(--panel-accent-text);
}

.maps {
  text-align: center;
}

.map-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.hours {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(41, 44, 51, 0.97), rgba(100, 102, 109, 0.97)),
    var(--slate-deep);
  color: var(--white);
}

.hours h2 {
  color: var(--red);
}

.hours p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.28rem;
  font-weight: 700;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.service-box {
  overflow: hidden;
  grid-column: span 4;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(21, 26, 36, 0.14);
}

.service-box img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #f3f3f3;
}

body[data-theme="dark"] .service-box img {
  background: #111214;
}

.service-box h3,
.service-box p,
.service-box a {
  margin-left: 22px;
  margin-right: 22px;
}

.service-box h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  line-height: 0.96;
}

.service-box p {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--theme-muted);
  line-height: 1.55;
}

.service-box a {
  margin-bottom: 22px;
}

.site-footer {
  margin-bottom: 28px;
  padding: 28px 30px;
  text-align: center;
}

body[data-theme="dark"] .site-footer {
  background: rgba(12, 12, 14, 0.92);
}

.footer-social,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.site-footer p {
  margin: 16px 0;
}

.subpage-main {
  margin-top: 26px;
  margin-bottom: 28px;
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.subpage-hero img,
.subpage-copy,
.contact-grid > * {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
}

.subpage-hero img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.subpage-copy {
  padding: 28px;
}

.subpage-copy h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  line-height: 0.98;
}

.subpage-copy p {
  margin: 14px 0 20px;
  color: var(--theme-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

body[data-theme="dark"] .maps,
body[data-theme="dark"] .subpage-copy,
body[data-theme="dark"] .contact-grid > * {
  background: rgba(15, 15, 18, 0.92);
}

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

@media (max-width: 1200px) {
  .main-nav {
    margin-top: 92px;
  }

  .service-box {
    grid-column: span 6;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

/* ─── Scroll animations ──────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-hidden {
  opacity: 0;
  transform: translateY(30px);
}

.anim-visible {
  animation: fadeSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-visible:nth-child(2) { animation-delay: 80ms; }
.anim-visible:nth-child(3) { animation-delay: 160ms; }
.anim-visible:nth-child(4) { animation-delay: 240ms; }
.anim-visible:nth-child(5) { animation-delay: 320ms; }
.anim-visible:nth-child(6) { animation-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .anim-hidden { opacity: 1; transform: none; }
  .anim-visible { animation: none; }
}

/* ─── Cookie consent banner ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 16px 16px;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1);
  pointer-events: none;
}

.cookie-banner.cookie-visible {
  transform: translateY(0);
  pointer-events: all;
}

.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.14), var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

body[data-theme="dark"] .cookie-inner {
  background: rgba(15, 15, 18, 0.96);
}

.cookie-inner p {
  flex: 1 1 260px;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--theme-muted);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-decline,
.cookie-accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  font-family: "Barlow", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cookie-decline:hover,
.cookie-accept:hover {
  transform: translateY(-2px);
}

.cookie-decline {
  background: var(--theme-chip-bg);
  color: var(--theme-muted);
  border: 1px solid var(--card-border);
}

.cookie-accept {
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 20, 20, 0.22);
}

/* ─── Mobile breakpoint ──────────────────────────────────────────── */
@media (max-width: 760px) {
  :root {
    --container: min(1360px, calc(100vw - 20px));
  }

  .hero-header::before {
    inset: 18px 0 8px;
  }

  .theme-toggle {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }

  .top-intro {
    width: calc(100% - 12px);
    margin: 18px 6px 14px 6px;
    padding: 10px 16px;
    border-radius: 18px;
    justify-content: center;
  }

  .logo {
    height: 54px;
    width: auto;
    max-width: 260px;
  }

  /* ─── Hamburger gomb ─────────────────────────────────────────── */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 48px;
    height: 48px;
    padding: 12px 10px;
    margin: 0 6px 0 auto;
    position: relative;
    z-index: 1;
    background: rgba(41, 44, 51, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 180ms ease;
  }

  .nav-toggle:hover {
    background: rgba(60, 65, 75, 0.88);
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.32s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* ─── Mobilmenü: összecsukva ─────────────────────────────────── */
  .main-nav {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 8px;
    padding: 0 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.25s ease,
      padding 0.3s ease;
  }

  .main-nav.nav-open {
    max-height: 700px;
    opacity: 1;
    pointer-events: auto;
    padding: 8px;
  }

  .main-nav a {
    width: 100%;
    justify-content: flex-start;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 0.92rem;
    flex: none;
    white-space: normal;
  }

  .social-row,
  .map-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .service-cards,
  .subpage-hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-box {
    grid-column: auto;
  }

  .subpage-hero img {
    min-height: 240px;
  }

  .subpage-copy {
    padding: 20px;
  }

  .lead-cta,
  .features,
  .custom-build,
  .maps,
  .hours,
  .site-footer {
    padding: 20px;
  }

  .feature-list li {
    padding: 14px 14px 14px 46px;
  }

  .feature-list li::before {
    left: 16px;
    top: 18px;
  }

  .service-box h3 {
    font-size: 1.5rem;
  }

  .cookie-inner {
    padding: 14px 16px;
    max-height: 75vh;
    overflow-y: auto;
  }
}

@media (max-width: 420px) {
  .top-intro h1 {
    font-size: 1.1rem;
  }

  .top-intro p {
    font-size: 0.82rem;
  }
}
