/* ==========================================================================
   Bárdi Tartály — design system
   ========================================================================== */

:root {
  --navy-900: #0a1f38;
  --navy-800: #0f2c4c;
  --navy-700: #163d63;
  --navy-600: #1f4f7d;
  --steel-500: #4a7aa8;
  --steel-200: #cfe0ee;
  --amber-500: #e08a2b;
  --amber-600: #c8721a;
  --amber-100: #fbe8d1;

  --ink-900: #101820;
  --ink-700: #33404c;
  --ink-500: #5b6b7a;
  --ink-300: #94a3b3;

  --bg: #f6f8fb;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --border: #e1e8ef;

  --success: #1f7a4d;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 56, 0.06), 0 1px 1px rgba(10, 31, 56, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 31, 56, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 31, 56, 0.16);

  --container: 1180px;
  --header-h: 76px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

/* Nem-desktop nézetben a 24px túl szorosnak hat a nagyobb betűméretek
   mellett — itt bővebb, kényelmesebb szélső margót adunk. */
@media (max-width: 959px) {
  .container { padding: 0 40px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--amber-500);
  border-radius: 2px;
}

.section {
  padding-top: clamp(48px, 5vw, 96px);
  padding-bottom: clamp(48px, 5vw, 96px);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-500);
}

/* Skip link ---------------------------------------------------------- */

#skip-link a {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

#skip-link a:focus {
  left: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--amber-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--amber-600); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--navy-800);
}
.btn-outline:hover { border-color: var(--steel-500); background: var(--steel-200); }

.btn-block { width: 100%; }

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
  flex-shrink: 1;
  min-width: 0;
}

.brand svg { flex-shrink: 0; }

.brand > span { min-width: 0; }

.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-700);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover { background: var(--bg-alt); color: var(--navy-900); }
.nav-links a.active { color: var(--navy-900); background: var(--steel-200); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 599px) {
  .brand small { display: none; }
  .header-cta .btn-primary { display: none; }
  .site-header .container { gap: 8px; padding-left: 24px; padding-right: 24px; }
  .brand { font-size: 1rem; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.nav-toggle svg { pointer-events: none; }

/* A .container max-width-je 1180px, tehát ennél szélesebb ablakban sem kap
   több helyet a fejléc — a teljes, egysoros navigáció (logó + 5 menüpont +
   gomb) csak akkor fér el biztonságosan egymásra csúszás nélkül, ha a
   container már elérte ezt a plafont. Ez a küszöb a konkrét
   tartalommennyiségre lett lemérve, nem kerek szám. Alatta mindig a
   hamburger-menüs elrendezés fut, ami sokkal kevesebb helyet igényel. */
@media (min-width: 1220px) {
  .nav-toggle { display: none; }
}

@media (max-width: 1219px) {
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }
  .nav-links a { padding: 12px 14px; }
  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700) 70%);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 31, 56, 0.92), rgba(15, 44, 76, 0.82) 65%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero.hero-page .hero-inner { padding-top: 52px; padding-bottom: 48px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero h1 { color: #fff; max-width: 16ch; }

.hero-lede {
  margin-top: 18px;
  max-width: 56ch;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  max-width: 640px;
}

.hero-stats dt {
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber-500);
}

.hero-stats dd {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}

.breadcrumb a:hover { color: #fff; }

/* ==========================================================================
   Service cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-media img { transform: scale(1.06); }

.service-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.service-card-body h3 { font-size: 1.1rem; }
.service-card-body p { color: var(--ink-500); font-size: 0.94rem; flex: 1; }

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-800);
  margin-top: 4px;
}

.service-card:hover .service-card-link { color: var(--amber-600); }

.service-card-link svg { transition: transform 0.2s ease; }
.service-card:hover .service-card-link svg { transform: translateX(3px); }

/* ==========================================================================
   Content / prose pages
   ========================================================================== */

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 960px) {
  .content-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

.prose h2 {
  margin-top: 2.2em;
  padding-top: 0.2em;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 1.8em;
  font-size: 1.05rem;
  color: var(--navy-700);
}

.prose p { color: var(--ink-700); }

.prose ul {
  margin: 1em 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prose ul li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-700);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--amber-500);
}

.callout {
  background: var(--steel-200);
  border: 1px solid #bcd4e8;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 1.6em 0;
  color: var(--navy-800);
  font-size: 0.95rem;
}

.callout strong { color: var(--navy-900); }

/* Reference list --------------------------------------------------------- */

.ref-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ref-group h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  margin-bottom: 14px;
}

.ref-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.ref-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--surface);
  font-size: 0.93rem;
  color: var(--ink-700);
}

.ref-list li + li { border-top: 1px solid var(--border); }

.ref-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--success);
}

/* Sidebar ---------------------------------------------------------------- */

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.side-card h3 { margin-bottom: 6px; }
.side-card p { color: var(--ink-500); font-size: 0.92rem; }

.side-card .btn { margin-top: 16px; }

.side-list {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-700);
  padding: 6px 0;
}

.side-list a:hover { color: var(--navy-900); }

/* ==========================================================================
   Certifications
   ========================================================================== */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--amber-100);
  color: var(--amber-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-card h3 { font-size: 1rem; }

.cert-card .btn {
  align-self: stretch;
  margin-top: auto;
  white-space: normal;
  text-align: center;
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding-top: 28px;
  padding-bottom: 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.trust-strip strong { color: #fff; }

.trust-strip .trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-strip svg { color: var(--amber-500); flex-shrink: 0; }

/* ==========================================================================
   Contact section + form
   ========================================================================== */

.contact-section {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}

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

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

.contact-info h2 { color: #fff; }

.contact-info .lede { color: rgba(255, 255, 255, 0.7); }

.contact-details {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-details a,
.contact-details span.value {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.contact-details .label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.contact-details .item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-details .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-500);
  flex-shrink: 0;
}

.contact-form {
  background: #fff;
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 { margin-bottom: 6px; }
.contact-form .lede { color: var(--ink-500); font-size: 0.95rem; margin-bottom: 22px; }

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--ink-900);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--steel-500);
  background: #fff;
}

.form-row textarea { min-height: 120px; resize: vertical; }

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-bottom: 18px;
}

.form-consent input { margin-top: 3px; }
.form-consent a { color: var(--navy-700); font-weight: 600; }

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: none;
}

.form-note.is-visible { display: block; }
.form-note.ok { background: #e7f6ee; color: var(--success); }
.form-note.err { background: #fdecea; color: #b3261e; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .container {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

/* ==========================================================================
   404
   ========================================================================== */

.error-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.error-page .code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--steel-200);
  line-height: 1;
}

/* Utility ------------------------------------------------------------------ */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
