/* ==========================================================================
   V-Trió Kft. – site styles
   ========================================================================== */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/rubik-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent: #ffb400;
  --accent-dark: #e09e00;
  --dark: #2a2a2a;
  --darker: #1f1f1f;
  --header: #333;
  --text: #555;
  --heading: #2a2a2a;
  --light: #f5f5f5;
  --white: #fff;
  --radius: 2px;
  --container: 1120px;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Rubik", "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0 0 1em; }
ul { margin: 0; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--accent); color: var(--dark); padding: 0.6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Small accent bar used above / under headings */
.bar { display: block; width: 50px; height: 4px; background: var(--accent); margin: 0 0 1.5rem; border: 0; }
.bar--center { margin-inline: auto; }
.bar--dark { background: var(--dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95em 1.9em;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  border: 3px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--accent { background: var(--accent); color: var(--dark); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline { border-color: var(--accent); color: var(--dark); background: transparent; }
.offset__cta .btn--outline, .hero .btn--outline { color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--dark); }
.btn--dark { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn--dark:hover { background: var(--dark); color: var(--accent); }
.btn--small { padding: 0.5em 1em; font-size: 0.7rem; border-width: 2px; border-color: #ccc; color: var(--dark); }
.btn--small:hover { border-color: var(--accent); background: var(--accent); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--accent); color: var(--dark); font-size: 0.78rem; font-weight: 600; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; justify-content: space-between; padding-block: 0.45rem; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.topbar a:hover { text-decoration: underline; }
.topbar__contact { display: flex; gap: 1.25rem; }
.topbar svg { width: 0.9em; height: 0.9em; fill: currentColor; }
.topbar__tagline { margin: 0; }
@media (max-width: 760px) { .topbar__tagline { display: none; } .topbar .container { justify-content: center; } }

.site-header { background: var(--header); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo { display: block; }
.logo img { width: 44px; height: 44px; }

.nav ul { list-style: none; padding: 0; margin: 0; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.9rem; display: block; padding: 0.5rem 0; }
.nav a:hover, .nav a[aria-current="page"], .nav .is-active > a { color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white); padding: 0.5rem; cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; fill: currentColor; }

@media (min-width: 901px) {
  .nav > ul { display: flex; gap: 2rem; }
  .nav li { position: relative; }
  .nav .has-sub > a::after {
    content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-left: 0.45em; vertical-align: 0.2em;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  }
  .nav .sub {
    position: absolute; top: 100%; left: -1rem; min-width: 230px; padding: 0.75rem 1rem;
    background: var(--white); border-top: 3px solid var(--accent); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .nav .sub a { color: var(--dark); font-weight: 500; }
  .nav .sub a:hover, .nav .sub a[aria-current="page"] { color: var(--accent-dark); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 3px solid var(--accent); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: block; }
  .nav > ul { padding: 0.75rem 1.25rem 1rem; }
  .nav a { color: var(--dark); padding: 0.6rem 0; border-bottom: 1px solid #eee; }
  .nav .sub { padding-left: 1rem; }
  .nav a:hover, .nav a[aria-current="page"], .nav .is-active > a { color: var(--accent-dark); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white); background: var(--dark);
  padding-block: clamp(5rem, 12vw, 9rem);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at top left, rgba(40,40,40,.79) 0%, rgba(40,40,40,.86) 100%);
}
.hero h1, .hero h2 { color: var(--white); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; }
.hero--center { text-align: center; }
.hero--center .hero__inner { max-width: 760px; margin-inline: auto; }
.hero .btn { margin-top: 1rem; }

.hero--split .hero__inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 901px) { .hero--split .hero__inner { grid-template-columns: 1.4fr 1fr; } }
.hero__title { border-left: 8px solid var(--accent); padding-left: 1.1rem; margin-bottom: 1.5rem; }
.hero__title h1 { margin: 0; }
.hero__aside h2 { color: var(--accent); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.hero__list { list-style: none; padding: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 2.1; }

.audience { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.audience li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.audience img { width: 52px; height: 52px; }
.audience h3 { color: var(--white); font-size: 1rem; font-weight: 700; margin: 0 0 0.2rem; }
.audience p { font-size: 0.92rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--light { background: var(--light); }
.section--accent { background: var(--accent); }
.section__head { text-align: center; margin-bottom: 3rem; }

/* Feature blurbs (home) */
.features { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; }
.feature img { width: 56px; height: 56px; }
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature p { font-size: 0.92rem; margin: 0; }

/* Audience columns (home) */
.columns-3 { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.columns-3 { counter-reset: card; }
.audience-card h3 { font-weight: 700; font-size: 1.2rem; }
/* Decorative 01/02/03 numbers – generated by CSS so they are not read as content */
.audience-card::before {
  counter-increment: card; content: "0" counter(card);
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1; display: block; margin-bottom: 0.75rem;
}

/* Yellow block with white card (home) */
.offset { background: var(--accent); padding-block: 4rem; }
.offset__card { background: var(--light); margin-left: auto; width: min(100%, 780px); box-shadow: var(--shadow); }
.offset__body { padding: clamp(2rem, 6vw, 5rem); }
.offset__cols { display: grid; gap: 1rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); font-size: 0.95rem; }
.offset__cta { background: var(--dark); color: var(--white); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.75rem clamp(2rem, 4vw, 2.5rem); }
.offset__cta h2 { color: var(--white); font-size: 1.6rem; margin: 0; }

/* CTA strip */
.cta-strip { box-shadow: var(--shadow); position: relative; z-index: 1; }
.cta-strip .container { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding-block: 2.5rem; }
.cta-strip h2 { margin: 0; }

/* Service rows (services page) */
.service { padding-block: clamp(3rem, 7vw, 5rem); scroll-margin-top: 80px; }
.service__box { background: var(--light); padding: clamp(2rem, 5vw, 4rem); }
.service:nth-of-type(odd) .service__box { margin-left: clamp(0px, 10vw, 160px); }
.service:nth-of-type(even) .service__box { margin-right: clamp(0px, 10vw, 160px); }
.service__lists { display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 1.5rem 0 2rem; font-size: 0.95rem; }
.service__lists ul { padding-left: 1.2rem; }
.service__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Two-column text + image */
.split { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 901px) { .split { grid-template-columns: 1fr 1fr; } }
.highlight { background: var(--accent); color: var(--dark); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; padding: 0.8rem 1rem; margin-bottom: 1.5rem; }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; overflow: hidden; aspect-ratio: 3 / 4; background: #ddd; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.05); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; }
.lightbox button {
  position: fixed; background: rgba(0,0,0,.5); color: var(--white); border: 0; font-size: 2rem; line-height: 1;
  width: 3rem; height: 3rem; cursor: pointer; border-radius: 50%;
}
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Cards (more services) */
.cards { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--white); border: 1px solid #e3e3e3; display: flex; flex-direction: column; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.1rem; font-weight: 700; }
.card p { font-size: 0.92rem; flex: 1; }
.card .btn { align-self: flex-start; }

/* ---------- Contact ---------- */
.contact { display: grid; }
@media (min-width: 901px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__form-wrap { background: var(--accent); padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 6vw, 5rem); }
.contact__form-wrap > * { max-width: 520px; margin-left: auto; }
.contact__info { padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 6vw, 5rem); }
.contact__info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; max-width: 460px; }
.contact__info li { display: grid; grid-template-columns: 24px 1fr; gap: 1rem; font-family: var(--font-head); font-weight: 500; color: var(--dark); }
.contact__info svg { width: 18px; height: 18px; fill: #666; margin-top: 0.25rem; }
.contact__info a { text-decoration: none; }
.contact__info a:hover { color: var(--accent-dark); }

.form { display: grid; gap: 0.9rem; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--dark); margin-bottom: 0.25rem; }
.form input, .form textarea {
  width: 100%; border: 0; border-radius: var(--radius); background: var(--white);
  padding: 0.9rem 1rem; font: inherit; font-size: 0.95rem; color: var(--dark);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--dark); outline-offset: 0; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form__consent { font-size: 0.8rem; color: var(--dark); margin: 0; flex: 1 1 220px; }
.form__status { grid-column: 1 / -1; margin: 0; font-weight: 600; padding: 0.8rem 1rem; border-radius: var(--radius); }
.form__status:empty { display: none; }
.form__status.is-ok { background: #e7f6e9; color: #1d6b2c; }
.form__status.is-error { background: #fdeceb; color: #a12a20; }
.form button[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color: #aaa; font-size: 0.85rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-block: 1.5rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #ccc; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.social { display: inline-flex; align-items: center; gap: 0.5rem; }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- 404 ---------- */
.notfound { min-height: 50vh; display: grid; place-items: center; text-align: center; }
