/* ==========================================================================
   General Enterprise Holding – styles
   Breakpoints: desktop >980px, tablet ≤980px, phone ≤767px
   ========================================================================== */

@font-face { font-family: "HeptaSlab-Bold"; src: url("../fonts/HeptaSlab-Bold.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "GoogleSans";     src: url("../fonts/GoogleSans.woff2")     format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "HostGrotesk";    src: url("../fonts/HostGrotesk.woff2")    format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --ink: #3c0109;
  --white: #fff;
  --blue: #3a14d7;
  --orange: #ff9233;
  --glow: #7733ff;
  --violet: #340052;
  --page: #fafafa;

  --font-slab: "HeptaSlab-Bold", Helvetica, Arial, sans-serif;
  --font-sans: "GoogleSans", Helvetica, Arial, sans-serif;
  --font-label: "HostGrotesk", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

#main-content { background: var(--white); overflow: hidden; }

h1, h2, h3, p { margin: 0; padding: 0; font-weight: inherit; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: transparent;
}

.row {
  display: flex;
  width: 80%;
  max-width: 1080px;
  column-gap: 5.5%;
  row-gap: 40px;
}

.col { display: flex; flex-direction: column; min-width: 0; gap: 30px; }
.col--full { width: 100%; }
.col--center { align-items: center; }
.col--top { align-self: flex-start; }
.col--quarter       { width: calc(25% - 5.5% * 0.75); }
.col--three-quarters { width: calc(75% - 5.5% * 0.25); }
.col--half          { width: calc(50% - 5.5% * 0.5); }

/* ---------- Animations (scroll reveal, played once) ---------- */

[data-anim] { opacity: 0; }
[data-anim].is-visible {
  animation-duration: 1000ms;
  animation-timing-function: ease-in-out;
  animation-delay: var(--delay, 0ms);
  animation-fill-mode: both;
}
.anim--fade.is-visible { animation-name: gehFade; }
.anim--zoom.is-visible { animation-name: gehZoom; }
.anim--up.is-visible   { animation-name: gehUp; }
.anim--slide.is-visible { animation-name: gehSlide; }

@keyframes gehFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes gehZoom  { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes gehUp    { from { opacity: 0; transform: translateY(5%); } to { opacity: 1; transform: none; } }
@keyframes gehSlide { from { opacity: 0; transform: translateX(5%); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1; }
  [data-anim].is-visible { animation: none; }
  html { scroll-behavior: auto; }
}
.no-js [data-anim] { opacity: 1; }

/* ---------- Typography ---------- */

.t-hero {
  font-family: var(--font-slab);
  font-weight: 500;
  font-size: 180px;
  letter-spacing: -9px;
  line-height: 0.9em;
  text-align: center;
}
.t-lead { font-weight: 500; font-size: 24px; line-height: 1.3em; text-align: center; }
.t-body { font-size: 24px; line-height: 1.3em; }
.t-body--90 { width: 90%; }
.t-body--light { color: var(--white); text-align: center; }

.t-eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 24px;
  line-height: 28.8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
}
.t-eyebrow--center { text-align: center; }

.t-h2 {
  font-family: var(--font-slab);
  font-weight: 500;
  font-size: 80px;
  line-height: 1em;
  letter-spacing: -3px;
  mix-blend-mode: multiply;
}
.t-h2--tight { letter-spacing: -4px; }
.t-h2--glow {
  color: var(--white);
  text-align: center;
  mix-blend-mode: normal;
  text-shadow: 0 0 0.5em var(--glow);
}

.t-formula {
  font-size: 48px;
  line-height: 28.8px;
  color: var(--orange);
  text-align: center;
}

/* ---------- Hero ---------- */

.section--hero {
  padding: max(50px, 4vw) 0;
  gap: 80px;
  background-image: url("../GEH-Podklady-web/600_4.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.row--hero { max-width: 1280px; }
.row--hero .col { width: 100%; gap: 80px; align-items: center; }
.hero-logo { width: 100%; height: auto; }
.row--hero .module:first-child { width: 20%; }
.row--hero .module:last-child { width: 100%; }

.row--intro { max-width: 720px; align-items: center; }
.row--intro .module { width: 100%; }

.row--about { align-items: center; row-gap: 40px; }
.row--about .col { gap: 30px; }
.img-60 { width: 60%; margin: 0 auto; }
.img-60 img { width: 100%; }

/* ---------- Story section ---------- */

.section--story {
  padding: 150px 0 80px;
  gap: 100px;
  background-image: url("../GEH-Podklady-web/1920.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.row--wide { max-width: 1280px; align-items: center; column-gap: 3%; }
.row--wide .col--half { width: calc(50% - 3% * 0.5); }
.row--wide .col--top { gap: 20px; }
.row--enterprises { column-gap: 2%; }
.row--enterprises .col--half { width: calc(50% - 2% * 0.5); }

.img-round { width: 100%; border-radius: 8px; overflow: hidden; }
.img-round img { width: 100%; border-radius: inherit; }
.img-fluid { width: 100%; }
.row--wide .col--center .module { width: 100%; }

.row--profit { max-width: 700px; justify-content: center; }
.col--profit { width: 100%; gap: 20px; }
.t-profit-text { align-self: center; width: 60%; }

/* ---------- Projects list ---------- */

.section--projects { padding: 0 0 max(50px, 4vw); gap: 10px; }
.row--pair { row-gap: 2px; align-items: flex-start; }
.t-item { font-weight: 700; font-size: 24px; line-height: 28.8px; }
.t-item-desc { font-size: 24px; line-height: 28.8px; }

.divider {
  position: relative;
  width: 100%;
  height: 23px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--ink);
}
.section--projects .row:has(> .divider) { display: block; }

/* ---------- Logos ---------- */

.section--logos { padding: 0 0 max(50px, 4vw); gap: 60px; }
.row--logos { column-gap: 8%; align-items: center; flex-wrap: nowrap; }
.col--logo { width: 10%; flex: 0 0 10%; align-items: center; }
.col--logo img { width: 100%; }
.col--logo-s img { width: 80%; }

/* ---------- Contact ---------- */

.section--contact { padding: 100px 0; gap: 60px; }

.row--contact {
  max-width: 860px;
  padding: 50px;
  background: rgba(60, 1, 9, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.contact-form { width: 100%; display: flex; flex-direction: column; }

.t-contact-title {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 30px;
  line-height: 28.8px;
  padding-bottom: 20px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.field { display: flex; flex-direction: column; }
.field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field--first { border-top: 1px solid #333; }
.field--message { margin-bottom: 10px; }

.field input,
.field textarea {
  width: 100%;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid #333;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: normal;
  outline: none;
  resize: none;
}
.field textarea { height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: #999; opacity: 1; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.t-consent { font-size: 14px; line-height: 28.8px; padding-bottom: 30px; }

.form-actions { display: flex; justify-content: center; align-items: flex-start; min-height: 55px; }

.btn {
  width: 30%;
  padding: 4.8px 16px;
  border: 0;
  border-radius: 8px;
  background-color: var(--violet);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7em;
  cursor: pointer;
  transition: background-color 300ms ease, letter-spacing 300ms ease;
}
.btn:hover { letter-spacing: 1px; }
.btn:disabled { opacity: 0.6; cursor: default; }

.form-status:empty { display: none; }
.form-status { margin-top: 20px; font-size: 14px; line-height: 1.3em; text-align: center; min-height: 1.3em; }

/* ---------- Footer ---------- */

.site-footer { background: var(--white); padding: 50px 0; display: flex; justify-content: center; }
.row--footer { max-width: 1280px; column-gap: 0; row-gap: 10px; flex-wrap: wrap; }
.footer-col { width: 50%; display: flex; flex-direction: column; gap: 8px; }
.footer-col p { font-size: 14px; line-height: 1.3em; color: var(--violet); }
.footer-col--right { align-items: flex-end; text-align: right; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 980px) {
  body { font-size: 16px; }

  .t-hero { font-size: 96px; line-height: 1em; }
  .t-lead, .t-body, .t-item, .t-item-desc { font-size: 18px; line-height: 1.3em; }
  .t-eyebrow { line-height: 1.3em; }
  .t-h2 { font-size: 48px; line-height: 1.2em; }
  .t-h2--tight { letter-spacing: -3px; }
  .t-formula { font-size: 36px; line-height: 1.3em; }
  .t-contact-title { line-height: 1.3em; }
  .t-consent { line-height: 1.3em; }

  .row { width: 80%; }
  .section--story { background-size: cover; }
  .row--wide { column-gap: 3%; }
  .row--enterprises { column-gap: 3%; }
  .row--enterprises .col--half { width: calc(50% - 3% * 0.5); }

  .row--logos { column-gap: 8%; }

  .btn { font-size: 24px; padding: 7.2px 24px; }
  .t-profit-text { width: 60%; }

}

/* ==========================================================================
   Phone
   ========================================================================== */
@media (max-width: 767px) {
  .section--hero { padding: 50px 0; gap: 40px; background-size: auto; }
  .section--hero .row--hero .col { gap: 30px; }
  .row--hero .module:first-child { width: 50%; }
  .t-hero { font-size: 72px; line-height: 0.9em; letter-spacing: -4px; }

  .row--intro { flex-wrap: wrap; row-gap: 50px; }
  .row--about { flex-wrap: wrap; }
  .row--about .col--quarter,
  .row--about .col--three-quarters { width: 100%; }
  .img-60 { width: 30%; }

  .t-lead { line-height: 1.3em; }
  .t-body, .t-item-desc, .t-item { font-size: 16px; line-height: 1.3em; }

  .t-eyebrow { font-size: 18px; }
  .t-h2 { font-size: 40px; line-height: 1em; letter-spacing: -2px; }
  .t-h2--tight { letter-spacing: -2px; }
  .t-formula { font-size: 30px; }
  .t-contact-title { font-size: 18px; }

  .section--story { padding: 0 0 30px; gap: 80px; background-image: url("../GEH-Podklady-web/6001200.webp"); background-size: contain; }

  .row--wide { flex-wrap: wrap; row-gap: 30px; }
  .row--enterprises { row-gap: 40px; }
  .row--wide .col--half,
  .row--enterprises .col--half { width: 100%; }
  .row--wide .col--top { gap: 10px; }
  .col--profit { gap: 10px; }
  .t-profit-text { width: 80%; }

  .section--projects { padding: 30px 0 20px; }
  .row--pair { flex-wrap: wrap; }
  .row--pair .col--half { width: 100%; }

  .section--logos { padding: 30px 0 20px; }
  .row--logos { width: 70%; flex-wrap: wrap; column-gap: 15%; row-gap: 15px; }
  .col--logo { width: calc((100% - 30%) / 3); flex: 0 0 calc((100% - 30%) / 3); }

  .section--contact .row--contact { padding: 20px; }
  .btn { width: 50%; }
  .t-consent { font-size: 12px; padding-bottom: 20px; }

  .row--wide, .row--profit, .row--contact, .row--footer { width: 90%; }
  .site-footer { padding: 30px 0; }
  .footer-col { width: 100%; }
  .footer-col--right { align-items: flex-end; }
}

/* ---------- Cookie consent ---------- */

.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 760px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  background: var(--white); color: var(--ink);
  border: 1px solid rgba(60, 1, 9, 0.15); border-radius: 8px;
  box-shadow: 0 10px 40px rgba(52, 0, 82, 0.18);
}
.consent[hidden] { display: none; }
.consent__text { flex: 1; font-size: 14px; line-height: 1.4em; }
.consent__actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent__btn {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--violet); border-radius: 8px;
  background: var(--violet); color: var(--white);
  font: 500 14px/1 var(--font-sans); cursor: pointer; white-space: nowrap;
}
.consent__btn--ghost { background: transparent; color: var(--violet); }

.link-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline;
}
.footer-col .link-btn { font-size: 14px; line-height: 1.3em; color: var(--violet); }

@media (hover: none) { .btn:hover { letter-spacing: 0; } }

/* ---------- Mobile refinements ---------- */

@media (max-width: 767px) {
  .t-hero { font-size: clamp(54px, 19vw, 72px); }
  .t-h2 { font-size: clamp(34px, 11vw, 40px); }

  /* 16px prevents iOS Safari from zooming into the form on focus */
  .field input, .field textarea { font-size: 16px; padding: 16px; }
  .t-consent { font-size: 13px; line-height: 1.4em; }
  .btn { width: 70%; min-height: 52px; font-size: 18px; }

  .consent { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; padding: 16px; gap: 14px; }
  .consent__actions { flex-direction: column-reverse; }
  .consent__btn { width: 100%; }

  .site-footer { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
}

/* ---------- Právní stránka ---------- */
.legal { width: 90%; max-width: 760px; margin: 0 auto; padding: 80px 0 100px; }
.legal__back { display: inline-block; margin-bottom: 40px; font-size: 16px; text-decoration: underline; }
.legal h1 { font-family: var(--font-slab); font-weight: 500; font-size: clamp(40px, 8vw, 64px); line-height: 1em; letter-spacing: -2px; margin-bottom: 40px; }
.legal h2 { font-family: var(--font-label); font-weight: 600; font-size: 22px; line-height: 1.3em; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 17px; line-height: 1.55em; }
.legal ul { margin: 12px 0; padding-left: 22px; }
.legal a { text-decoration: underline; }
.legal .link-btn { font-size: 17px; }

/* ---------- Formulář: validace a stavy ---------- */
.field__error {
  margin: 6px 0 4px; padding: 8px 14px; border-radius: 6px;
  background: #fde8e8; color: #8a1f1f; font-size: 14px; line-height: 1.4em;
}
.field__error[hidden] { display: none; }
.field input[aria-invalid="true"] { border-bottom-color: #d64545; }

.form-status:empty { display: none; }
.form-status {
  margin-top: 20px; padding: 14px 18px; border-radius: 8px;
  font-size: 15px; line-height: 1.4em; text-align: center;
}
.form-status.is-success { background: #e1f4e5; color: #1e6b32; border: 1px solid #b7e0bf; }
.form-status.is-error   { background: #fde8e8; color: #8a1f1f; border: 1px solid #f3c1c1; }
