/* ============================================================
   HANGAR / Motorsport Precision
   Shared website and identity board design tokens
   ============================================================ */


/* ------------------------------------------------------------
   1. TYPOGRAFIA — Fonty a design tokens
   ------------------------------------------------------------ */
@font-face {
  font-family: HangarCondensed;
  src: url('assets/BarlowCondensed-SemiBold.ttf') format('truetype');
  font-display: swap;
  font-weight: 600;
  font-style: normal;
}

:root {
  --ink: #080a0b;
  --surface: #14181b;
  --surface-raised: #202629;
  --paper: #f3f5ef;
  --silver: #c3cbcd;
  --muted: #9aa5a9;
  --line: #b6c2c52a;
  --accent: #d4ff28;
  --heading: HangarCondensed, 'Arial Narrow', Arial, sans-serif;
}


/* ------------------------------------------------------------
   2. ZÁKLAD — Body a výber textu
   ------------------------------------------------------------ */
body {
  background: var(--ink);
  color: var(--paper);
}

::selection {
  background: var(--accent);
  color: var(--ink);
}


/* ------------------------------------------------------------
   3. NADPISY — H1, H2, H3
   ------------------------------------------------------------ */
h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.94;
}

h1 {
  font-size: clamp(68px, 7.7vw, 124px);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(60px, 6.6vw, 106px);
}

h1 em,
h2 em {
  color: var(--accent);
}


/* ------------------------------------------------------------
   4. NAVIGÁCIA — Header a menu
   ------------------------------------------------------------ */
.nav {
  border-color: #b7c5c32b;
  background: #080a0b22;
}

.nav .brand > span {
  color: var(--paper);
}

.nav a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-size: 10px;
  padding: 15px 19px;
}

.nav .nav-cta:hover {
  color: var(--ink);
  background: #e2ff79;
  border-color: #e2ff79;
}

.nav-cta span {
  margin-left: 20px;
}

.brand small {
  color: var(--silver);
}

.brand img.brand-wordmark {
  width: 196px;
  height: 40px;
  display: block;
}


/* ------------------------------------------------------------
   5. FILMOVÝ PRÍBEH — Top bar, eyebrow, chapters
   ------------------------------------------------------------ */
.film-top {
  color: #bec8cb;
}

.film-top i {
  background: var(--accent);
}

.story > .film-top {
  z-index: 5;
  pointer-events: none;
}

.eyebrow {
  color: var(--silver);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.chapter {
  top: 28%;
  max-width: 800px;
}

.chapter .eyebrow {
  color: var(--accent);
  position: relative;
  padding-left: 21px;
}

.chapter .eyebrow:before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: skewX(-20deg);
}

.chapter p:not(.eyebrow) {
  color: #c3cbcd;
}

.chapter-4 {
  top: 13%;
  max-width: 440px;
  width: 560px;
  max-width: 90vw;
}

.chapter-4 p {
  letter-spacing: 0.14em;
}

.chapter-4 .reveal-logo {
  width: 480px;
  max-width: 80vw;
}

.reveal-logo {
  width: 350px;
}

.cabin {
  opacity: 0;
  object-position: 62% center;
}


/* ------------------------------------------------------------
   6. GRADIENTY — Shade overlay
   ------------------------------------------------------------ */
.shade {
  background:
    linear-gradient(90deg, #050709c2 0%, #05070922 60%, transparent 82%),
    linear-gradient(0deg, #050709ba, transparent 26%, transparent 78%, #05070944);
}


/* ------------------------------------------------------------
   7. ODKAZY A TRACK — Text links, scene counter, story track
   ------------------------------------------------------------ */
.text-link {
  border-color: #a6b1b461;
}

.text-link:hover {
  border-color: var(--accent);
}

.text-link span {
  color: var(--accent);
}

.scene-counter {
  font-family: var(--heading);
  font-size: 28px;
  color: var(--accent);
}

.scene-counter span {
  font-family: Hangar, Arial, sans-serif;
  color: var(--silver);
  font-size: 9px;
}

.story-track span {
  background: var(--accent);
}

.skip-story:hover {
  color: var(--accent);
}

.scroll-hint {
  color: var(--silver);
}

.mouse {
  border-color: #abb6b8;
}

.mouse:after {
  background: var(--accent);
}


/* ------------------------------------------------------------
   8. MANIFESTO — Filozofia
   ------------------------------------------------------------ */
.manifesto {
  background-color: var(--ink);
}

.manifesto > .eyebrow,
.section-heading > .eyebrow,
.process > .eyebrow,
.contact > .eyebrow {
  color: var(--accent);
}

.outline-mark {
  font-family: var(--heading);
  font-size: 600px;
  right: -2%;
  top: -60px;
  -webkit-text-stroke-color: #b6c2c50b;
}

.manifesto:after {
  content: '';
  position: absolute;
  right: 6%;
  top: 40px;
  width: 120px;
  height: 120px;
  border-top: 1px solid #b7c5c32b;
  border-right: 1px solid #b7c5c32b;
  transform: skewY(-18deg);
  pointer-events: none;
}


/* ------------------------------------------------------------
   9. SECTION HEADING — Nadpisy sekcií
   ------------------------------------------------------------ */
.section-heading {
  grid-template-columns: 1fr 1.7fr 1fr;
}

.section-heading h2 {
  font-size: clamp(54px, 5.7vw, 90px);
}

.section-heading > p:last-child {
  color: var(--silver);
}


/* ------------------------------------------------------------
   10. SLUŽBY — Services accordion
   ------------------------------------------------------------ */
.services {
  background: #101416;
}

.service summary {
  padding: 34px 0;
}

.service .number {
  color: var(--accent);
  font-size: 12px;
}

.service h3 {
  font-size: 37px;
  letter-spacing: 0.005em;
}

.service .tag {
  color: #b6c2c5;
}

.service .description {
  color: #aeb9bd;
}

.service .plus {
  color: var(--accent);
  font-family: Hangar, Arial, sans-serif;
  font-size: 24px;
}

.service[open] {
  background: #1d242755;
}

.service .details {
  color: var(--silver);
}


/* ------------------------------------------------------------
   11. KERAMICKÁ OCHRANA — Ceramic feature
   ------------------------------------------------------------ */
.ceramic-feature h2 {
  font-size: clamp(56px, 6.6vw, 102px);
}

.ceramic-feature .eyebrow {
  color: var(--accent);
}

.ceramic-feature p:not(.eyebrow) {
  color: var(--silver);
}


/* ------------------------------------------------------------
   12. PROCES — Náš prístup
   ------------------------------------------------------------ */
.process {
  position: relative;
  background-color: #0b0e10;
  background-image:
    linear-gradient(#c1cdd105 1px, transparent 1px),
    linear-gradient(90deg, #c1cdd105 1px, transparent 1px);
  background-size: 96px 96px;
}

.process-grid {
  gap: 60px;
}

.process article {
  border-top-color: #b6c2c545;
}

.process article > span {
  color: var(--accent);
  font-size: 9px;
}

.process h3 {
  font-size: 32px;
  letter-spacing: 0.005em;
}

.process article p {
  color: #b0bbbe;
}


/* ------------------------------------------------------------
   13. ŠTÚDIO — Studio section
   ------------------------------------------------------------ */
.studio-copy h2 {
  font-size: clamp(54px, 5.8vw, 90px);
}

.studio-copy .eyebrow {
  color: var(--accent);
}

.studio-copy small {
  color: #bdc8ca;
}


/* ------------------------------------------------------------
   14. INTERIÉR — Interior feature
   ------------------------------------------------------------ */
.interior-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8vw;
  align-items: center;
  background: #0b0e10;
}

.interior-visual {
  position: relative;
  min-width: 0;
}

.interior-visual img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: 63% center;
}

.interior-visual > span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 8px;
  letter-spacing: 0.17em;
  color: #c3cbcd;
}

.interior-copy h2 {
  font-size: clamp(48px, 5vw, 80px);
}

.interior-copy .eyebrow {
  color: var(--accent);
}

.interior-copy p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.9;
  color: #b4bfc1;
}

.interior-copy .muted {
  max-width: 340px;
}


/* ------------------------------------------------------------
   15. KONTAKT — Rezervácia a formulár
   ------------------------------------------------------------ */
.contact {
  background: #101416;
}

.contact h2 {
  font-size: clamp(60px, 6.8vw, 104px);
}

.contact-details .eyebrow,
.company-details .eyebrow {
  color: #b3bec1;
}

.contact-phone {
  font-family: var(--heading);
  font-size: 44px;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.contact-phone span {
  color: var(--accent);
}

input,
select,
textarea {
  border-color: #b6c2c549;
  padding: 14px 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

form label {
  color: var(--silver);
}

.button {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  padding: 20px 22px;
}

.button:hover {
  background: #e2ff79;
  border-color: #e2ff79;
}

.button:disabled {
  background: #20272a;
  border-color: #465155;
  color: #b3bec1;
}

.booking-status {
  color: var(--silver) !important;
}

.booking-status a:hover {
  color: var(--accent);
}


/* ------------------------------------------------------------
   16. FIREMNÉ ÚDAJE — Company details
   ------------------------------------------------------------ */
.company-details dl {
  font-variant-numeric: tabular-nums;
}

.company-details dd {
  color: var(--paper);
}


/* ------------------------------------------------------------
   17. FOOTER — Pätička
   ------------------------------------------------------------ */
footer {
  background: var(--ink);
}

footer > a:not(.brand):hover {
  color: var(--accent);
}


/* ------------------------------------------------------------
   18. PRÍSTUPNOSŤ — Motion toggle, skip link
   ------------------------------------------------------------ */
.motion-toggle {
  border-color: #b7c5c354;
  background: #11171ac7;
}

.motion-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.access-skip {
  background: var(--accent);
}


/* ============================================================
   19. SVG IKONY — Globálne pravidlo pre currentColor
   ============================================================ */
.icon path,
.icon circle,
.icon rect,
.icon line,
.icon polyline,
.icon polygon,
.icon ellipse {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* ============================================================
   SVG IKONY — Kontextové farby podľa umiestnenia (s !important)
   ============================================================ */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* CTA tlačidlá — ikona v accent pozadí (čierna) */
.nav-cta .icon-diagonal,
.mobile-primary .icon-diagonal,
.button .icon-diagonal {
  color: var(--ink) !important;
}

/* Textové odkazy — ikona v accent farbe (zelená #d4ff28) */
.text-link .icon-diagonal,
.skip-story .icon-diagonal,
.motion-toggle .icon-diagonal,
.contact-phone .icon-diagonal,
.menu-phone .icon-diagonal,
.service .plus .icon-plus,
footer .board-link .icon-diagonal {
  color: var(--accent) !important;
}

/* Zatváracie tlačidlo menu */
.menu-close .icon-close {
  color: var(--accent) !important;
}

/* Scroll hint — sivá ikona */
.scroll-hint .icon-down {
  color: var(--silver) !important;
}

/* Footer "Späť nahor" — svetlá ikona */
footer > a:not(.brand) .icon-up {
  color: var(--paper) !important;
}

/* Hover efekty pre ikony (transformácia ostáva bez !important) */
.text-link:hover .icon-diagonal,
.skip-story:hover .icon-diagonal,
.motion-toggle:hover .icon-diagonal,
.contact-phone:hover .icon-diagonal,
.menu-phone:hover .icon-diagonal,
footer .board-link:hover .icon-diagonal,
.nav-cta:hover .icon-diagonal,
.mobile-primary:hover .icon-diagonal,
.button:hover .icon-diagonal {
  transform: translate(2px, -2px);
}

footer > a:not(.brand):hover .icon-up {
  transform: translateY(-3px);
  color: var(--accent) !important;
}

.scroll-hint:hover .icon-down {
  transform: translateY(3px);
}

/* ------------------------------------------------------------
   20. MEDIA QUERIES — Široké obrazovky (2:1+)
   ------------------------------------------------------------ */
@media (min-aspect-ratio: 2/1) {
  h1 {
    font-size: 15vh;
  }
  .chapter {
    top: 27%;
  }
}


/* ------------------------------------------------------------
   21. MEDIA QUERIES — Tablet a mobil (max 760px)
   ------------------------------------------------------------ */
@media (max-width: 760px) {
  h2 {
    font-size: 58px;
  }

  .nav {
    background: #080a0b44;
  }

  .nav nav {
    background: #101416fa;
    flex-wrap: wrap;
    gap: 24px;
  }

  .nav nav .mobile-booking {
    display: block;
    width: 100%;
    color: var(--accent);
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .menu-toggle {
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  .chapter {
    top: 23%;
  }

  .chapter h1 {
    font-size: clamp(60px, 16.5vw, 86px);
    line-height: 0.94;
    letter-spacing: -0.015em;
    max-width: 100%;
  }

  .chapter h2 {
    font-size: 60px;
  }

  .chapter .intro {
    margin-top: 24px;
    max-width: 240px;
  }

  .chapter .eyebrow {
    font-size: 8px;
  }

  .chapter-4 {
    top: 19%;
  }

  .chapter-4 .reveal-logo {
    width: 330px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 58px;
  }

  .service h3 {
    font-size: 32px;
  }

  .service summary {
    padding: 28px 0;
  }

  .ceramic-feature h2 {
    font-size: 58px;
  }

  .process-grid {
    gap: 30px;
  }

  .process h3 {
    font-size: 32px;
  }

  .studio-copy h2 {
    font-size: 52px;
  }

  .contact h2 {
    font-size: 65px;
  }

  .contact-phone {
    font-size: 37px;
  }

  .manifesto:after {
    width: 60px;
    height: 60px;
    top: 30px;
    right: 24px;
  }

  .film-top {
    font-size: 7px;
  }

  .shade {
    background:
      linear-gradient(90deg, #050709a1, transparent),
      linear-gradient(180deg, #03060799, transparent 75%);
  }

  .company-details {
    gap: 25px;
  }

  /* Interior — mobil */
  .brand img.brand-wordmark {
    width: 168px;
    height: auto;
  }

  .interior-feature {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .interior-visual img {
    height: 340px;
  }

  .interior-copy h2 {
    font-size: 54px;
  }

  .chapter-2 h2 {
    font-size: 54px;
  }

  .cabin {
    object-position: 60% center;
  }
}


/* ------------------------------------------------------------
   22. SKRYTÉ ELEMENTY — Mobile booking na desktope
   ------------------------------------------------------------ */
.nav nav .mobile-booking {
  display: none;
}