/* Borsod Plasztik Kft. – statikus weboldal */
:root {
  --ink: #28282d;
  --ink-2: #3f4149;
  --muted: #6d7887;
  --line: #e2e5f0;
  --soft: #f1f2f7;
  --white: #fff;
  --accent: #2f4a73;
  --header-h: 72px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Fejléc ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h);
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 var(--line);
  z-index: 50;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo img { height: 44px; width: auto; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a, .nav button {
  display: block; padding: 10px 14px; text-decoration: none;
  font: 500 15px/1 "Barlow", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: none; border: 0; cursor: pointer; border-radius: 4px;
}
.nav a:hover, .nav button:hover, .nav a.active { background: var(--soft); }
.has-sub { position: relative; }
.has-sub > button::after { content: ""; display: inline-block; margin-left: 8px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.sub {
  position: absolute; right: 0; top: 100%; width: 380px; list-style: none; margin: 6px 0 0; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 30px rgba(40,40,45,.14);
  display: none;
}
.has-sub.open .sub { display: block; }
@media (hover: hover) and (min-width: 961px) { .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; } .sub { margin-top: 0; } }
.sub a { text-transform: none; letter-spacing: 0; font-size: 14px; line-height: 1.35; padding: 10px 12px; }
.sub a strong { display: block; font-weight: 700; margin-bottom: 2px; }
.social { display: flex; align-items: center; gap: 6px; padding-left: 14px; margin-left: 6px; border-left: 1px solid var(--line); }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.social a:hover { background: var(--soft); }
.social svg { width: 18px; height: 18px; fill: var(--ink); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .social { margin-left: 0; border: 0; padding: 0; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0;
    background: var(--white); overflow-y: auto; padding: 12px 20px 40px;
    display: none;
  }
  .nav.open { display: block; animation: navIn .2s ease; }
  @keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav button { width: 100%; text-align: left; padding: 16px 8px; font-size: 16px; border-bottom: 1px solid var(--soft); border-radius: 0; }
  .sub { position: static; width: auto; box-shadow: none; border: 0; margin: 0; padding: 0 0 0 12px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; padding-top: var(--header-h);
  display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden;
  background: var(--ink-2);
}
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease; filter: grayscale(.35);
}
.hero-slides img.show { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,40,45,.45), rgba(40,40,45,.55)); }
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero h1 { font-size: clamp(30px, 5.4vw, 64px); text-transform: uppercase; letter-spacing: .01em; margin-bottom: .35em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero p { font-size: clamp(17px, 2vw, 22px); font-weight: 300; margin: 0 0 2em; }
.hero p::before, .hero p::after { content: "—"; margin: 0 .5em; }
.btn {
  display: inline-block; padding: 15px 42px; border-radius: 4px; text-decoration: none;
  background: var(--ink); color: var(--white); font-weight: 600; letter-spacing: .04em;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.light { background: var(--white); color: var(--ink); }

.szechenyi {
  position: fixed; right: 0; bottom: 0; z-index: 40; width: 250px;
  filter: drop-shadow(0 -2px 12px rgba(0,0,0,.15));
}
@media (max-width: 600px) { .szechenyi { width: 170px; } }

/* ---------- Szolgáltatás sáv ---------- */
.services { background: var(--ink); color: var(--white); }
.services ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.services li {
  padding: 34px 20px; text-align: center; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 16px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.services li:first-child { border-left: 0; }
.services img { width: 58px; margin: 0 auto 14px; opacity: .9; }
@media (max-width: 760px) { .services ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .services li { font-size: 14px; letter-spacing: .05em; padding: 26px 12px; overflow-wrap: anywhere; } .services li:nth-child(3) { border-left: 0; } .services li { border-top: 1px solid rgba(255,255,255,.12); } }

/* ---------- Szekciók ---------- */
section { padding: 96px 0; }
.section-title { font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; letter-spacing: .06em; text-align: center; margin-bottom: 56px; }
.section-title::after { content: ""; display: block; width: 64px; height: 3px; background: var(--ink); margin: 18px auto 0; }
.lead { font-size: 19px; }

.about { background: linear-gradient(135deg, #fff 0%, var(--soft) 45%, var(--line) 100%); }
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.about-grid p { margin: 0 0 1.1em; }
.about-side { position: sticky; top: calc(var(--header-h) + 24px); }
.about-photo { border-radius: 6px; overflow: hidden; box-shadow: 0 20px 40px rgba(40,40,45,.18); }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.cert { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 16px; background: var(--white); border-radius: 6px; border: 1px solid var(--line); }
.cert img { width: 130px; }
.cert p { margin: 0; font-size: 15px; }
.cert a { font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.facts div { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 18px; text-align: center; }
.facts strong { display: block; font-size: 30px; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-side { position: static; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* Termékek */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.product:hover { box-shadow: 0 18px 40px rgba(40,40,45,.12); transform: translateY(-3px); }
.product-img { position: relative; background: var(--soft); aspect-ratio: 4/3; overflow: hidden; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product:hover .product-img img { transform: scale(1.04); }
.product-body { padding: 22px 24px 26px; }
.product h3 { font-size: 21px; text-transform: uppercase; letter-spacing: .04em; }
.product dl { margin: 0 0 12px; font-size: 15px; }
.product dt { font-weight: 700; display: inline; }
.product dd { display: inline; margin: 0; }
.product dd::after { content: ""; display: block; margin-bottom: 4px; }
.product p, .product ul { font-size: 15px; color: var(--ink-2); margin: 0; }
.product ul { padding-left: 18px; }
@media (max-width: 960px) { .products-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .products-grid { grid-template-columns: 1fr; } }

/* Partnerek */
.partners { background: var(--soft); }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; align-items: center; }
.partner-grid img { background: var(--white); border-radius: 6px; padding: 12px; filter: grayscale(1); opacity: .8; transition: .25s; }
.partner-grid img:hover { filter: none; opacity: 1; }

/* Minőségpolitika sáv a főoldalon */
.quality-band { background: var(--ink); color: var(--white); padding: 72px 0; }
.quality-band .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; }
.quality-band img { width: 150px; background: var(--white); border-radius: 6px; padding: 10px; }
.quality-band h2 { font-size: 30px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3em; }
.quality-band p { margin: 0; color: #d1d9e8; }
@media (max-width: 800px) { .quality-band .wrap { grid-template-columns: 1fr; text-align: center; } .quality-band img { margin: 0 auto; } }

/* Kapcsolat */
.contacts { position: relative; color: var(--white); background: var(--ink) url("../img/contacts-bg-small.webp") center/cover; }
.contacts::before { content: ""; position: absolute; inset: 0; background: rgba(40,40,45,.88); }
.contacts .wrap { position: relative; }
.contacts .section-title::after { background: var(--white); }
.contacts .intro { text-align: center; margin: -30px 0 48px; font-size: 19px; color: #d1d9e8; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.contact-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 22px; }
.contact-card svg { width: 26px; height: 26px; fill: var(--white); margin-bottom: 10px; }
.contact-card h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: #beceE0; margin-bottom: 6px; }
.contact-card a { font-size: 19px; font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }
.map { border-radius: 8px; overflow: hidden; min-height: 360px; background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(.4); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-cards { grid-template-columns: 1fr; } }

/* Lábléc */
.site-footer { background: #1c1c20; color: #aab; font-size: 14px; padding: 28px 0 120px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: #d1d9e8; text-decoration: none; margin-left: 18px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Aloldalak (Minőségpolitika, Pályázatok) ---------- */
.page-hero { padding: calc(var(--header-h) + 64px) 0 56px; background: linear-gradient(-45deg, #fff, var(--soft), var(--line), #d1d9e8); }
.page-hero .kicker { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.page-hero h1 { font-size: clamp(28px, 4.2vw, 48px); text-transform: uppercase; letter-spacing: .02em; max-width: 900px; }
.page-hero .sub-title { font-size: 20px; font-weight: 300; max-width: 820px; margin: 0; }
.page-body { padding: 64px 0 96px; }
.prose { max-width: 820px; }
.prose p, .prose li { margin: 0 0 1em; }
.prose h2 { font-size: 26px; margin-top: 1.6em; text-transform: uppercase; letter-spacing: .04em; }
.prose img { border-radius: 6px; margin: 8px 0 32px; }
.facts-list { list-style: none; padding: 0; margin: 0 0 32px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.facts-list li { display: grid; grid-template-columns: 260px 1fr; gap: 16px; padding: 14px 20px; margin: 0; border-top: 1px solid var(--line); }
.facts-list li:first-child { border-top: 0; }
.facts-list li:nth-child(even) { background: var(--soft); }
.facts-list b { font-weight: 600; color: var(--ink-2); }
@media (max-width: 640px) { .facts-list li { grid-template-columns: 1fr; gap: 2px; } }
.back { display: inline-block; margin-top: 24px; font-weight: 600; text-decoration: none; }
.back:hover { text-decoration: underline; }

/* Minőségpolitika */
.policy-grid { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.policy-aside { position: sticky; top: calc(var(--header-h) + 24px); background: var(--soft); border-radius: 8px; padding: 24px; }
.policy-aside img { width: 100%; background: var(--white); border-radius: 6px; padding: 12px; margin-bottom: 16px; }
.policy-aside p { font-size: 15px; margin: 0 0 12px; }
.commitments { list-style: none; padding: 0; margin: 0 0 1.5em; counter-reset: c; }
.commitments li { position: relative; padding: 18px 20px 18px 68px; margin: 0 0 12px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; counter-increment: c; }
.commitments li::before { content: counter(c); position: absolute; left: 20px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.signature { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.signature p { margin: 0; }
@media (max-width: 900px) { .policy-grid { grid-template-columns: 1fr; } .policy-aside { position: static; } }

@media print {
  .site-header, .szechenyi, .site-footer, .policy-aside { display: none; }
  .page-hero { padding-top: 0; background: none; }
}
