/* Grif-Tools Kft. – site stylesheet */

:root {
  --green: #1bb30c;
  --green-dark: #128207;
  --green-tint: #eaf7e8;
  --ink: #1d2226;
  --ink-soft: #4a5258;
  --muted: #6f777d;
  --line: #e3e7ea;
  --surface: #ffffff;
  --surface-alt: #f5f7f8;
  --dark: #1a1f23;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 8px 24px rgba(16, 24, 32, .06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 32, .06), 0 18px 40px rgba(16, 24, 32, .10);
  --container: 1200px;
  --header-h: 76px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand img { width: 172px; height: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; list-style: none; gap: 4px; }
.nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
}
.nav .btn { display: inline-flex; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-alt); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm);
  background: transparent; cursor: pointer; padding: 0;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
  content: "";
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: currentColor; color: var(--green-dark); background: transparent; }
.btn-outline:hover { background: var(--green-tint); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--green-tint); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Infoblocks (Széchenyi 2020 – required placement) ---------- */

.infoblock-top {
  position: absolute; top: 0; right: 0; z-index: 60;
  line-height: 0;
}
.infoblock-top img { height: 150px; width: auto; }

.infoblock-bottom {
  position: fixed; right: 0; bottom: 0; z-index: 40;
  line-height: 0;
}
.infoblock-bottom img { height: 110px; width: auto; }

/* keep the header menu clear of the top infoblock (217px wide at 150px height) */
@media (max-width: 1720px) {
  .site-header .container { max-width: none; padding-right: 241px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(27, 179, 12, .22), transparent 60%),
    linear-gradient(180deg, #20262b 0%, #161a1d 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background: url(../img/bg-fps.png) center / cover no-repeat;
  filter: invert(1);
}
.hero .container { position: relative; padding-top: 96px; padding-bottom: 56px; }

.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
}
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; max-width: 15ch; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .78); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.stat strong { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: #fff; line-height: 1.1; }
.stat span { font-size: 14px; color: rgba(255, 255, 255, .64); }

/* ---------- Slider ---------- */

.slider {
  position: relative; background: #8f9ea3;
  border-top: 4px solid var(--green);
}
.slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; scroll-behavior: smooth;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide img { width: 100%; aspect-ratio: 1909 / 438; object-fit: cover; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.slider-btn:hover { background: #fff; }
.slider-btn svg { width: 20px; height: 20px; }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px;
}
.slider-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .55);
}
.slider-dots button[aria-current="true"] { background: var(--green); width: 26px; border-radius: 5px; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.section-head p { color: var(--ink-soft); font-size: 18px; margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-2.top { align-items: start; }

/* Feature list (company values) */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-tint); color: var(--green-dark); margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

.media-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 28px;
}
.media-card img { margin: 0 auto; }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; text-decoration: none; }
.product-img { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 20px; background: #fff; }
.product-img img { max-height: 100%; width: auto; object-fit: contain; }
.product-body { padding: 20px 22px 24px; border-top: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 19px; margin-bottom: 8px; }
.product-body p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.product-link { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--green-dark); display: inline-flex; align-items: center; gap: 6px; }
.product-link svg { width: 16px; height: 16px; transition: transform .2s; }
.product:hover .product-link svg { transform: translateX(4px); }
.badge {
  display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px;
  background: var(--green-tint); color: var(--green-dark); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* Partners */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner {
  display: grid; place-items: center; min-height: 120px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .25s, transform .25s;
}
.partner:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.partner img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.partner:hover img { filter: none; opacity: 1; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: #fff; border-radius: calc(var(--radius) + 6px);
  padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }

/* ---------- Forms ---------- */

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.field label .opt { font-weight: 400; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #cfd5da; border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(27, 179, 12, .15);
}
.file-input {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px dashed #b9c1c7; border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface-alt);
}
.file-input input { font-size: 14px; max-width: 100%; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; max-width: 46ch; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px; display: none; }
.form-status.is-ok { display: block; background: var(--green-tint); color: var(--green-dark); }
.form-status.is-error { display: block; background: #fdecec; color: #a3201d; }

/* Contact */
.contact-card { overflow: hidden; padding: 0; }
.contact-card img { width: 100%; aspect-ratio: 365 / 257; object-fit: cover; }
.contact-card .body { padding: 28px; }
.contact-card h3 { font-size: 20px; margin-bottom: 14px; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--green-dark); margin-top: 3px; }
.contact-list a { color: var(--ink); font-weight: 500; }
.map-link { display: inline-flex; margin-top: 18px; }

/* ---------- Sub pages ---------- */

.page-hero {
  background:
    radial-gradient(900px 380px at 90% -20%, rgba(27, 179, 12, .22), transparent 60%),
    linear-gradient(180deg, #20262b 0%, #161a1d 100%);
  color: #fff; padding: 64px 0 56px;
}
.breadcrumb { display: flex; gap: 8px; list-style: none; font-size: 14px; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .35); }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, .78); font-size: 19px; max-width: 56ch; margin: 0; }
.page-hero .fps-logo { background: #fff; border-radius: var(--radius-sm); padding: 10px 14px; display: inline-block; margin-bottom: 18px; }
.page-hero .fps-logo img { height: 48px; width: auto; }

.prose p { color: var(--ink-soft); font-size: 18px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }

.checklist { list-style: none; display: grid; gap: 12px; margin: 8px 0 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23128207' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist.cols-2 { grid-template-columns: 1fr 1fr; gap: 14px 28px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 8px 0 24px; }
.tags li {
  padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 15px; font-weight: 500; color: var(--ink);
}

.gallery { display: grid; gap: 24px; }
.figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; place-items: center; }

.callout {
  border-left: 4px solid var(--green); background: var(--green-tint);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink);
}

.other-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding: 64px 0 32px; font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.footer-logo img { width: 150px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08);
}
.social a:hover { background: var(--green); }
.social svg { width: 18px; height: 18px; }
.footer-legal {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: grid; gap: 6px; font-size: 14px; color: rgba(255, 255, 255, .55);
  padding-right: 200px;
}
.footer-legal p { margin: 0; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .infoblock-top img { height: 110px; }
  .site-header .container { padding-right: 184px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { width: 140px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 16px 16px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; }
  .nav a:not(.btn) { padding: 12px; font-size: 17px; }
  .nav .btn { padding: 12px 22px; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .section { padding: 72px 0; }
  .other-products { grid-template-columns: 1fr 1fr; }
  .infoblock-top { position: static; display: flex; justify-content: flex-end; }
  .infoblock-top img { height: 90px; }
  .site-header .container { padding-right: 24px; }
  .infoblock-bottom img { height: 84px; }
  .footer-legal { padding-right: 130px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero .container { padding-top: 56px; }
  .features, .form-grid, .checklist.cols-2, .other-products { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .cta-band { padding: 32px 24px; }
  .slider-btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .infoblock-bottom img { height: 64px; }
  .footer-legal { padding-right: 0; padding-bottom: 72px; }
}
