/* Vrbitech — brand CSS foundation
   Colors per grafický manuál: #6AB9EC / #4C86B3 / #274F6A / #002A3F / #CFCFCF / #000000
   Font: Ubuntu (fallback Arial) */

/* Ubuntu font — self-hosted (assets/fonts/), no external requests to Google Fonts.
   Split into "latin" (base a-z, á/é/í/ó/ú/ý...) and "latin-ext" (ě/š/č/ř/ž/ď/ť/ň/ů...)
   subsets, each scoped with unicode-range — mirrors how Google Fonts itself serves
   these so the browser loads the correct glyphs for every character. */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/ubuntu-latin-300-normal.woff2') format('woff2'),
       url('../fonts/ubuntu-latin-300-normal.woff') format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/ubuntu-latin-ext-300-normal.woff2') format('woff2'),
       url('../fonts/ubuntu-latin-ext-300-normal.woff') format('woff');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ubuntu-latin-400-normal.woff2') format('woff2'),
       url('../fonts/ubuntu-latin-400-normal.woff') format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ubuntu-latin-ext-400-normal.woff2') format('woff2'),
       url('../fonts/ubuntu-latin-ext-400-normal.woff') format('woff');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ubuntu-latin-500-normal.woff2') format('woff2'),
       url('../fonts/ubuntu-latin-500-normal.woff') format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ubuntu-latin-ext-500-normal.woff2') format('woff2'),
       url('../fonts/ubuntu-latin-ext-500-normal.woff') format('woff');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ubuntu-latin-700-normal.woff2') format('woff2'),
       url('../fonts/ubuntu-latin-700-normal.woff') format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ubuntu-latin-ext-700-normal.woff2') format('woff2'),
       url('../fonts/ubuntu-latin-ext-700-normal.woff') format('woff');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue-light: #6AB9EC;
  --blue-mid: #4C86B3;
  --blue-dark: #274F6A;
  --blue-deepest: #002A3F;
  --grey: #CFCFCF;
  --black: #000000;
  --white: #ffffff;
  --font-main: 'Ubuntu', Arial, sans-serif;
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--blue-deepest);
  background: var(--white);
  line-height: 1.6;
  font-weight: 400;
}

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

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

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

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--white);
  transition: box-shadow .25s ease;
}
header.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,42,63,.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  transition: padding .25s ease;
}
header.site-header.scrolled .header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo-link { display: flex; align-items: center; }
.logo-lockup { height: 46px; width: auto; transition: height .25s ease; }
header.site-header.scrolled .logo-lockup { height: 32px; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(0,42,63,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease, visibility .25s ease;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-mid); }
.back-to-top svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.logo-link img { height: 44px; width: auto; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

nav.main-nav a {
  color: var(--blue-deepest);
  transition: color .15s ease;
}
nav.main-nav a:hover { color: var(--blue-mid); }

nav.main-nav a.current {
  color: var(--blue-mid);
  border-bottom: 2px solid var(--blue-light);
  padding-bottom: 4px;
}

.btn-cta {
  background: var(--blue-light);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700;
  transition: background .15s ease;
}
.btn-cta:hover { background: var(--blue-mid); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--blue-deepest);
  cursor: pointer;
}

/* ---------- Homepage hero: real brand banner ---------- */
.hero.hero-brand {
  position: relative;
  overflow: hidden;
  background: #EDEEEF url('../img/hero/hero-banner.jpg') no-repeat left center;
  background-size: auto 145%;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 90px 24px;
}
.hero.hero-brand::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 260px;
  background: linear-gradient(to right, rgba(237,238,239,0), rgba(237,238,239,1) 85%);
  pointer-events: none;
}
.hero.hero-brand .hero-inner { max-width: var(--max-width); margin: 0 auto; width: 100%; }
.hero.hero-brand .hero-copy {
  max-width: 560px;
  background: rgba(255,255,255,0.85);
  padding: 28px 32px;
  border-radius: 10px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.hero.hero-brand h1 {
  color: var(--blue-deepest);
  font-size: clamp(2.2rem, 2.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero.hero-brand p { color: var(--blue-dark); font-weight: 300; margin-top: 18px; max-width: 520px; }
.hero.hero-brand .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 18px;
}
.hero.hero-brand .btn-cta { display: inline-block; margin-top: 32px; }

@media (max-width: 760px) {
  .hero.hero-brand { background-position: 20% center; min-height: 460px; }
  .hero.hero-brand .hero-copy {
    max-width: 100%;
    background: rgba(255,255,255,.88);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(2px);
  }
}

/* ---------- Recurring accent: small ribbon mark before section titles ---------- */
h2.section-title { position: relative; padding-left: 22px; }
h2.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 80%);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Card / CTA / gallery hover polish ---------- */
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px -18px rgba(0,42,63,.35); border-color: var(--blue-light); }
.btn-cta { position: relative; overflow: hidden; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(106,185,236,.6); }
.gallery-item img { transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .card, .btn-cta, .gallery-item img { transition: none !important; transform: none !important; opacity: 1 !important; }
}
.hero {
  background: linear-gradient(135deg, var(--blue-deepest) 0%, var(--blue-dark) 55%, var(--blue-mid) 100%);
  color: var(--white);
  padding: 90px 24px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  max-width: 700px;
  line-height: 1.15;
}
.hero p {
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 560px;
  color: #E4F1FB;
}
.hero .btn-cta {
  display: inline-block;
  margin-top: 32px;
}

/* ---------- Sections ---------- */
section { padding: 72px 24px; }
section .container { max-width: var(--max-width); margin: 0 auto; }

h2.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--blue-deepest);
  margin-bottom: 12px;
}
p.section-lead {
  color: var(--blue-dark);
  max-width: 680px;
  margin-bottom: 40px;
  font-weight: 300;
  font-size: 1.05rem;
}

.bg-grey { background: #F5F6F7; }
.bg-dark { background: var(--blue-deepest); color: var(--white); }

/* ---------- Cards / grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 6px;
  padding: 28px;
}
.card h3 {
  color: var(--blue-mid);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* ---------- Tabs (Služby) ---------- */
.tab-group { margin-bottom: 20px; }
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tab-btn {
  background: var(--grey);
  color: var(--blue-deepest);
  border: none;
  padding: 10px 20px;
  border-radius: 4px 4px 0 0;
  font-family: var(--font-main);
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
}
.tab-btn.active { background: var(--blue-deepest); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.category-panel { display: none; }
.category-panel.active { display: block; }
.tech-panel { display: none; }
.tech-panel.active { display: block; }

.tech-detail {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 6px;
  padding: 28px;
}
.tech-detail h3 { color: var(--blue-deepest); font-size: 1.4rem; margin-bottom: 4px; }
.tech-detail .tech-alt { color: var(--blue-mid); font-size: 0.9rem; margin-bottom: 18px; }
.tech-params {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  background: #F5F6F7;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.tech-params dt { font-weight: 700; color: var(--blue-dark); }
.tech-params dd { color: var(--blue-deepest); margin-bottom: 8px; }
.tech-detail h4 { color: var(--blue-mid); margin: 16px 0 6px; font-size: 1rem; }
.tech-detail p { font-size: 0.96rem; }

.category-heading {
  font-size: 1.3rem;
  color: var(--blue-dark);
  margin: 50px 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--grey);
}
.category-heading:first-of-type { margin-top: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #eee;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,42,63,.88), transparent);
  color: var(--white);
  padding: 30px 14px 12px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption strong { display: block; font-size: 0.92rem; }

/* ---------- Forms ---------- */
form.contact-form {
  display: grid;
  gap: 16px;
  max-width: 640px;
}
.form-row { display: grid; gap: 6px; }
.form-row.two-col { grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 500; font-size: 0.92rem; color: var(--blue-dark); }
input, select, textarea {
  font-family: var(--font-main);
  padding: 11px 14px;
  border: 1px solid var(--grey);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--blue-deepest);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blue-light);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-size: 0.85rem;
  color: var(--blue-mid);
  background: #F0F7FC;
  padding: 12px 16px;
  border-radius: 4px;
  border-left: 3px solid var(--blue-light);
}
button.submit-btn {
  background: var(--blue-light);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  justify-self: start;
  transition: background .15s ease;
}
button.submit-btn:hover { background: var(--blue-mid); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--blue-deepest);
  color: #B9D3E4;
  padding: 48px 24px 28px;
  font-size: 0.9rem;
}
footer.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
footer.site-footer h4 { color: var(--white); margin-bottom: 12px; font-size: 1rem; }
footer.site-footer a:hover { color: var(--white); }
footer.site-footer .footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 0.8rem;
  color: #7FA5BE;
}
footer.site-footer .footer-logo { height: 34px; margin-bottom: 12px; }

/* ---------- Team/about ---------- */
.about-person {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
}
.about-person img { border-radius: 6px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  nav.main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 78%;
    height: 100vh;
    background: var(--blue-deepest);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    transition: right .25s ease;
    z-index: 100;
  }
  nav.main-nav.open { right: 0; }
  nav.main-nav a { color: var(--white); font-size: 1.1rem; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  footer.site-footer .container { grid-template-columns: 1fr; }
  .about-person { grid-template-columns: 1fr; }
  .tech-params { grid-template-columns: 1fr; }
  .form-row.two-col { grid-template-columns: 1fr; }
}
