/*
Theme Name: BZS Ferro
Theme URI: http://bzsferro.hu/
Author: BZS Ferro Center Kft.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bzs-ferro
*/

:root {
  --bg: #f4f1e8;
  --surface: #fffdf7;
  --surface-2: #ebe5d7;
  --ink: #20251f;
  --muted: #62695f;
  --green: #234e32;
  --green-2: #326742;
  --orange: #d66b1f;
  --orange-2: #f08a37;
  --line: rgba(32, 37, 31, .14);
  --shadow: 0 1rem 2.5rem rgba(32, 37, 31, .12);
  --radius: 1.2rem;
  --header-h: clamp(3.6rem, 5.5vw, 4.35rem);
  --container: 76rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1rem, .95rem + .18vw, 1.125rem);
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -10rem;
  z-index: 9999;
  padding: .8rem 1rem;
  background: #fff;
  color: #000;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-h);
  display: grid;
  place-items: center;
  background: rgba(35, 78, 50, .96);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(.8rem);
}

.header-inner {
  width: min(calc(100% - clamp(2rem, 6vw, 6rem)), var(--container));
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.site-name {
  display: none;
  font-weight: 850;
  letter-spacing: .04em;
  text-decoration: none;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.35rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.2rem;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  border-radius: 999px;
  transition: background .25s ease, transform .25s ease;
}

.desktop-nav a:hover, .desktop-nav a:focus-visible {
  background: rgba(255,255,255,.14);
  transform: translateY(-.12rem);
  outline: none;
}

.nav-icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: .8rem;
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1100;
  width: min(22rem, 86vw);
  padding: 6rem 1.4rem 2rem;
  background: var(--green);
  color: #fff;
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.2,.8,.2,1);
  box-shadow: -1rem 0 3rem rgba(0,0,0,.25);
}

.mobile-panel.open {
  transform: translateX(0);
}

.mobile-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .65rem;
}

.mobile-panel a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border-radius: .8rem;
  text-decoration: none;
  font-weight: 750;
  background: rgba(255,255,255,.07);
}

.mobile-close {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 1.6rem;
  cursor: pointer;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0,0,0,.48);
  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
}

.menu-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.hero {
  height: calc(100svh - var(--header-h));
  min-height: 34rem;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #173b25 0%, #2a5b39 60%, #386748 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 35%, rgba(240,138,55,.32), transparent 30%), linear-gradient(115deg, transparent 58%, rgba(255,255,255,.06) 58% 61%, transparent 61%);
}

.hero-inner, .section-inner {
  width: min(calc(100% - clamp(2rem, 7vw, 7rem)), var(--container));
  margin-inline: auto;
  position: relative;
}

.hero-inner {
  height: 100%;
  display: grid;
  place-items: center;
}

.funding-badge-link {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: block;
}

.funding-badge {
  height: 120px;
  width: auto;
  max-width: min(48vw, 34rem);
  object-fit: contain;
  object-position: left top;
  border: 0;
  margin: 0;
}

.hero-content {
  width: 100%;
  max-width: none;
  padding: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  color: #ffd7b7;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-size: .82em;
}

h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.7rem, 7vw, 6.8rem);
  line-height: 1;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-shadow: 0 .18em .5em rgba(0,0,0,.22);
}

.hero-title-frame {
  display: grid;
  justify-items: center;
  gap: clamp(.8rem,2vw,1.4rem);
  padding: clamp(2rem,5vw,4rem);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: clamp(1rem,3vw,2rem);
  background: linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 1.5rem 4rem rgba(0,0,0,.18);
  backdrop-filter: blur(.25rem);
}

.hero-tool-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  color: var(--orange-2);
  transform: rotate(45deg);
  font-size: 1.05rem;
}

.hero-title-line {
  width: min(14rem,45vw);
  height: .3rem;
  border-radius: 999px;
  background: linear-gradient(90deg,transparent,var(--orange-2),transparent);
}

.hero p {
  max-width: 68ch;
  font-size: clamp(1.05rem, 1rem + .45vw, 1.4rem);
  color: rgba(255,255,255,.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.25rem;
  border-radius: .8rem;
  text-decoration: none;
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
  transform: translateY(-.18rem);
  box-shadow: 0 .8rem 1.8rem rgba(0,0,0,.18);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: #fff;
}

section {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2.2rem;
}

.section-heading-main {
  max-width: none;
}

.section-heading-main h2 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  margin: 0;
}

.section-kicker {
  color: var(--orange);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82em;
}

h2 {
  margin: .35rem 0 1rem;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.lead {
  font-size: clamp(1.06rem, 1rem + .3vw, 1.3rem);
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.offer-card {
  width: 100%;
}

.offer-card h2 {
  text-align: center;
}

.offer-card .feature-list {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.copy-card, .info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
}

.copy-card p:first-child {
  margin-top: 0;
}

.copy-card p:last-child {
  margin-bottom: 0;
}

.feature-list {
  display: grid;
  gap: .9rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}

.feature-list .bullet {
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: .65rem;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.gallery-section {
  background: var(--surface-2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(.75rem, 1.8vw, 1.35rem);
}

.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #d7d1c5;
  cursor: zoom-in;
  box-shadow: 0 .7rem 1.6rem rgba(32,37,31,.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .4s ease;
}

.gallery-item::after {
  content: "Nagyítás";
  position: absolute;
  inset: auto .75rem .75rem auto;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(20,30,22,.78);
  color: #fff;
  font-weight: 750;
  font-size: .82rem;
  opacity: 0;
  transform: translateY(.4rem);
  transition: .25s ease;
}

.gallery-item:hover img, .gallery-item:focus-visible img {
  transform: scale(1.045);
  filter: brightness(.9);
}

.gallery-item:hover::after, .gallery-item:focus-visible::after {
  opacity: 1;
  transform: none;
}

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

.info-card h3 {
  margin-top: 0;
  color: var(--green);
  font-size: 1.35rem;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin: .85rem 0;
}

.info-row svg {
  flex: 0 0 1.3rem;
  width: 1.3rem;
  color: var(--orange);
  fill: currentColor;
  margin-top: .25rem;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours td {
  padding: .42rem 0;
  border-bottom: 1px solid var(--line);
}

.hours td:last-child {
  text-align: right;
  font-weight: 750;
}

.hours tr:last-child td {
  border: 0;
}

.text-link {
  color: var(--green-2);
  font-weight: 800;
  text-underline-offset: .2em;
}

.site-footer {
  padding: 1.6rem;
  text-align: center;
  color: rgba(255,255,255,.82);
  background: #173b25;
  font-size: .92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(2.1rem);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2,.75,.25,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: clamp(.65rem,3vw,2rem);
  background: rgba(8,12,9,.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  margin: 0;
  width: min(92vw, 90rem);
  height: min(88svh, 58rem);
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: .5rem;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: .5rem;
  box-shadow: 0 1.5rem 5rem rgba(0,0,0,.5);
  cursor: zoom-in;
  transition: transform .28s ease;
  transform-origin: center;
}

.lightbox img.zoomed {
  transform: scale(1.75);
  cursor: zoom-out;
}

.lightbox-button {
  position: absolute;
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #193822;
  font-size: 1.65rem;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: clamp(.5rem,2vw,1.5rem);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: clamp(.5rem,2vw,1.5rem);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,.5);
  padding: .45rem .8rem;
  border-radius: 999px;
}

@media (max-width: 58rem) {
  :root {
    --header-h: 3.75rem;
  }

  .desktop-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
    width: min(calc(100% - 2rem), var(--container));
  }

  .site-name {
    display: inline-block;
  }

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

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

  .offer-card .feature-list {
    grid-template-columns: 1fr;
  }

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

  .funding-badge {
    height: clamp(64px, 15vw, 92px);
    max-width: 58vw;
  }

  .hero-title-frame {
    max-width: calc(100vw - 2rem);
    padding: clamp(1.5rem, 6vw, 2.5rem);
  }
}

@media (max-width: 34rem) {
  .funding-badge {
    height: clamp(52px, 18vw, 76px);
    max-width: 68vw;
  }

  .hero {
    min-height: 29rem;
  }

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

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .lightbox-prev, .lightbox-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
