/* Autor: Karel Vohlídka */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FONTY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@font-face {
  font-family: 'GoldbeckNext';
  src: url('../font/GoldbeckNext-Light.woff2') format('woff2'),
       url('../font/GoldbeckNext-Light.woff')  format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GoldbeckNext';
  src: url('../font/GoldbeckNext-LightItalic.woff2') format('woff2'),
       url('../font/GoldbeckNext-LightItalic.woff')  format('woff');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'GoldbeckNext';
  src: url('../font/GoldbeckNext-Regular.woff2') format('woff2'),
       url('../font/GoldbeckNext-Regular.woff')  format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GoldbeckNext';
  src: url('../font/GoldbeckNext-Italic.woff2') format('woff2'),
       url('../font/GoldbeckNext-Italic.woff')  format('woff');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'GoldbeckNext';
  src: url('../font/GoldbeckNext-SemiBold.woff2') format('woff2'),
       url('../font/GoldbeckNext-SemiBold.woff')  format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GoldbeckNext';
  src: url('../font/GoldbeckNext-SemiBoldItalic.woff2') format('woff2'),
       url('../font/GoldbeckNext-SemiBoldItalic.woff')  format('woff');
  font-weight: 600; font-style: italic; font-display: swap;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DESIGN TOKENY  (barvy + font zůstávají v CSS)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --gb-carbon:     #2b323a;
  --gb-blue:       #3ebaec;
  --gb-blue-dark:  #28a0d0;
  --gb-aluminium:  #b8bbbe;
  --gb-white:      #ffffff;
  --gb-bg-cool:    #ecf8fd;
  --gb-bg-gray:    #eaebeb;
  --gb-border:     #d1d6da;
  --gb-blue-light: rgba(62, 186, 236, .15);

  --font:          'GoldbeckNext', Arial, sans-serif;
  --container-max: 80rem;
  --container-px:  1.5rem;   /* = px-6 v Tailwindu */
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  background: var(--gb-carbon);
  color: #fff;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 1rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ZÁKLAD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Kompenzace fixed headeru při cross-page navigaci (index.html#kontakt) */
#kontakt {
  scroll-margin-top: 88px;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gb-carbon);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SDÍLENÉ KOMPONENTY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--gb-carbon);
  color: var(--gb-carbon);
  padding: .75rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  margin-top: .5rem;
  transition: background 200ms ease, color 200ms ease;
}
.card-link:hover {
  background: var(--gb-carbon);
  color: #fff;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVIGACE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-header {
  --header-line-width:   1.5px;  /* ← tloušťka čáry */
  --header-line-inset:   5rem;   /* ← odsazení od krajů */
  --header-line-opacity: 0.8;      /* ← průhlednost čáry (0–1) */

  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 300ms ease, backdrop-filter 300ms ease;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--header-line-inset);
  right: var(--header-line-inset);
  height: var(--header-line-width);
  background: #fff;
  opacity: var(--header-line-opacity);
  transition: background 300ms ease, left 300ms ease, right 300ms ease, opacity 300ms ease;
}

.site-header.is-scrolled {
  background: rgba(43, 50, 58, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.is-scrolled::after {
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, .06);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: calc(var(--container-px) / 2);
}

.nav__logo {
  grid-column: 2;
  display: flex;
  align-items: center;
  padding-inline: 20px;
}

.nav__logo-img {
  width: 150px;
  height: auto;
}

.nav__cta-group {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gb-white);
  padding: .5rem 0;
}
.nav__link { transition: color 200ms ease; }
.nav__link:hover { color: var(--gb-blue); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease;
}
.btn--primary { background: var(--gb-blue); color: #fff; }
.btn--primary:hover { background: var(--gb-blue-dark); }

.nav__cta { font-size: .8125rem; padding: .5rem 1.125rem; }

.nav__left-group {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Hamburger tlačítko */
.nav__burger {
  display: none;
  grid-column: 1;
  justify-self: start;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--gb-white);
  flex-shrink: 0;
  transition: color 200ms ease;
}
.nav__burger:hover { color: var(--gb-blue); }

/* Mobilní dropdown menu */
.nav__mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--gb-carbon);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.nav__mobile-menu.is-open {
  display: flex;
  animation: navMenuIn 220ms ease forwards;
}

@keyframes navMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav__mobile-link {
  display: block;
  padding: 1rem 1.5rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gb-white);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background 200ms ease, color 200ms ease;
}
.nav__mobile-link:hover { background: rgba(255, 255, 255, .06); color: var(--gb-blue); }

.nav__mobile-link--cta {
  background: var(--gb-blue);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav__mobile-link--cta:hover { background: var(--gb-blue-dark); color: #fff; }

/* Nav — mobil + tablet (< 1024 px) */
@media (max-width: 1023px) {
  .nav__burger     { display: flex; }
  .nav__cta-group  { display: none; }
  .nav__left-group { display: none; }
  .nav__logo-img   { width: 120px; }
  .nav__logo       { padding-inline: 12px; }
  .site-header     { --header-line-inset: calc(var(--container-px) / 2); }
}

@media (min-width: 834px) {
  .nav__logo-img { width: 200px; }
  .nav__logo     { padding-inline: 28px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO  (komplexní calc nelze vyjádřit Tailwindem inline)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  position: relative;
  height: clamp(560px, 56vw, 760px);
  overflow: hidden;
  background-image: url('../img/Golbeck_prefabeton_vrdy_cover.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}
.hero--benefity { background-image: url('../img/Golbeck_prefabeton_vrdy__kontakt_cover.webp'); }
.hero--studenti { background-image: url('../img/Golbeck_prefabeton_studenti_cover.webp'); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(43, 50, 58, .75) 0%, transparent 10%),
    linear-gradient(to right,  rgba(43, 50, 58, .75) 0%, rgba(43, 50, 58, .60) 40%, rgba(43, 50, 58, .15) 65%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  /* max-width: calc(max(var(--container-px), calc((100vw - var(--container-max)) / 2)) + 54rem);*/
  padding-inline: max(var(--container-px), calc((100vw - var(--container-max)) / 2));
  padding-block: clamp(3rem, 8vw, 8rem);
}

.hero__cta {
  display: inline-flex;
  width: 100%;
  max-width: 15rem;
  min-height: 5.125rem;
  border: 1px solid #fff;
  color: #fff;
  padding: 1rem;
  transition: background 200ms ease;
}
.hero__cta:hover { background: rgba(255, 255, 255, .2); }
.hero__cta--dark { border-color: var(--gb-carbon); color: var(--gb-carbon); }
.hero__cta--dark:hover { background: rgba(43, 50, 58, .08); }

.hero__cta-inner {
  display: flex;
  width: 100%;
  align-items: flex-end;
}

.hero__cta-text {
  flex: 1;
  font-size: .9375rem;
  line-height: 1.3;
  word-break: break-word;
  hyphens: auto;
}

.hero__cta-icon {
  align-self: flex-start;
  padding-left: .25rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .hero { height: auto; min-height: 520px; overflow: visible; }
  .hero__content {
    padding-inline: var(--container-px);
    padding-block-start: calc(72px + 2.5rem);
    padding-block-end: 3rem;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   O NÁS — parallax text
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#onas-txt {
  will-change: transform;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   KONTAKTNÍ FORMULÁŘ
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Honeypot — skrytý před uživateli, boti ho vyplní */
.form__trap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Vizuálně skryté popisky (pro screenreadrery) */
.form__sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.form__row {
  display: grid;
  gap: 1.5rem;
}

.form__row--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Základní styl polí */
.form__field input,
.form__field textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--gb-border);
  padding: .875rem 1rem;
  font-family: var(--font);
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--gb-carbon);
  background: #fff;
  outline: none;
  transition: border-color 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--gb-carbon);
}

.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--gb-blue);
}

.form__field input.is-invalid,
.form__field textarea.is-invalid {
  border-color: #c0392b;
}

/* Viditelný label pro pole bez placeholderu (např. datum) */
.form__label {
  display: block;
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gb-carbon);
  margin-bottom: .375rem;
}

/* File upload */
.form__field--file { position: relative; }

.form__file-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--gb-border);
  transition: border-color 200ms ease;
  overflow: hidden;
}

.form__file-wrap:focus-within {
  border-color: var(--gb-blue);
}

.form__file-name {
  flex: 1;
  padding: .875rem 1rem;
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--gb-carbon);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.form__file-btn {
  display: flex;
  align-items: center;
  padding: .875rem 1.25rem;
  background: var(--gb-carbon);
  color: #fff;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 200ms ease;
}

.form__file-btn:hover { background: var(--gb-blue-dark); }

.form__file-wrap.is-drag-over {
  border-color: var(--gb-blue);
  background: rgba(0, 90, 170, .05);
}

.form__field--file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* Souhlas se zpracováním údajů */
.form__consent-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
}

.form__consent-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gb-border);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: .2rem;
  transition: border-color 200ms ease, background 200ms ease;
}

.form__consent-label input[type="checkbox"]:checked {
  background: var(--gb-blue);
  border-color: var(--gb-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.form__consent-label input[type="checkbox"].is-invalid {
  border-color: #c0392b;
}

.form__consent-label span {
  font-size: .8125rem;
  color: var(--gb-aluminium);
  line-height: 1.6;
}

/* Chybová hláška */
.form__error {
  font-size: .875rem;
  color: #c0392b;
  min-height: 1.25rem;
}

/* Responzivita formuláře */
@media (max-width: 639px) {
  .form__row--3 { grid-template-columns: 1fr; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .form__row--3 { grid-template-columns: repeat(2, 1fr); }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-footer {
  background: var(--gb-carbon);
  color: var(--gb-aluminium);
  border-top: none;
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Top: logo + sociální sítě */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-logo { height: 22px; width: auto; opacity: .85; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  color: var(--gb-aluminium);
  opacity: .7;
  transition: opacity 200ms ease, color 200ms ease;
}
.footer-social a:hover { opacity: 1; color: var(--gb-blue); }

/* Kontaktní blok */
.footer-contact { margin-bottom: 2rem; }

.footer-contact__title {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .75rem;
}

.footer-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem 2rem;
  font-size: .8125rem;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .footer-contact__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-contact__grid { grid-template-columns: repeat(4, 1fr); }
}

/* Oddělovač */
.footer-rule {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin: 2rem 0;
}

/* Navigační sloupce */
.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 480px) {
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (min-width: 1024px) {
  .footer-nav { grid-template-columns: repeat(5, 1fr); }
}

.footer-nav__heading {
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .75rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-nav a {
  font-size: .8125rem;
  color: var(--gb-aluminium);
  transition: color 200ms ease;
}
.footer-nav a:hover { color: var(--gb-blue); }

/* Spodní lišta */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copy {
  font-size: .8125rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .8125rem;
}
.footer-links a { color: var(--gb-aluminium); transition: color 200ms ease; }
.footer-links a:hover { color: var(--gb-blue); }

/* Kontaktní linky */
.footer-contact a { color: var(--gb-aluminium); transition: color 200ms ease; }
.footer-contact a:hover { color: var(--gb-blue); }

/* Top: mobilní zalamování */
@media (max-width: 479px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .footer-nav { gap: 1.5rem; }
  .footer-rule { margin: 1.5rem 0; }
}

/* Autor: Karel Vohlídka */
