/*
  ENDOTRON s.r.o. — site stylesheet
  Custom design system (no framework). Tokens below are the single source of
  truth for color, spacing, type, and radius — reuse them rather than adding
  one-off values.
*/

@charset "UTF-8";

:root {
  /* Brand colors, taken from the logo mark */
  --color-navy: #2e294e;
  --color-navy-ink: #211d38;
  --color-coral: #f26157;       /* ~3.2:1 on white — large text / icons / borders only */
  --color-coral-deep: #c14d4b;  /* ~4.7:1 with white text — safe for solid fills */
  --color-coral-press: #a83f3d; /* hover/active step of coral-deep, same hue */
  --color-teal: #1b9a8b;
  --color-yellow: #f7ee7f;

  /* Neutrals */
  --color-bg: #ffffff;
  --color-bg-subtle: #faf9fb;
  --color-text: var(--color-navy-ink);
  --color-text-muted: #635f6d;
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: rgba(255, 255, 255, 0.72);
  --color-border: #e5e2ec;
  --color-border-on-dark: rgba(255, 255, 255, 0.16);

  /* Spacing scale (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;

  /* Type */
  --font-sans: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.25rem;
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;

  --radius: 0.5rem;
  --radius-lg: 0.875rem;
  --container-max: 71.25rem; /* 1140px */
  --nav-height: 4.5rem;

  --shadow-sm: 0 1px 2px rgba(33, 29, 56, 0.06), 0 1px 1px rgba(33, 29, 56, 0.04);
  --shadow-md: 0 12px 32px rgba(33, 29, 56, 0.1);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & base ---------- */

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

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-4));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-navy-ink);
}

p {
  margin: 0;
}

a {
  color: var(--color-coral-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-navy-ink);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

/* Visible, consistent focus state for every interactive element */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-coral-deep);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Visually hidden until keyboard-focused, then appears above the fixed nav */
.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 50;
  padding: var(--space-3) var(--space-5);
  background: var(--color-navy-ink);
  color: var(--color-text-on-dark);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(calc(-100% - var(--space-4)));
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--color-text-on-dark);
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  padding-block: var(--space-16);
}

/* Follow-up section that visually belongs to the one above it */
.section-flush-top {
  padding-top: 0;
}

.section-heading {
  max-width: 38rem;
  margin-bottom: var(--space-10);
}

.section-heading h2 {
  font-size: var(--text-3xl);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.8rem var(--space-6);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}

.btn-primary {
  background: var(--color-coral-deep);
  color: var(--color-text-on-dark);
}

.btn-primary:hover {
  background: var(--color-coral-press);
  color: var(--color-text-on-dark);
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  border-color: var(--color-border);
  color: var(--color-navy-ink);
}

.btn-ghost:hover {
  border-color: var(--color-navy-ink);
  background: rgba(46, 41, 78, 0.05);
  color: var(--color-navy-ink);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav.nav-scrolled,
.nav.nav-solid {
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
}

.brand svg,
.brand img {
  height: 2rem;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-menu a {
  position: relative;
  color: var(--color-navy-ink);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  padding-block: var(--space-2);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-coral-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a.is-active::after {
  transform: scaleX(1);
}


/* Language switch — sits at the end of the nav menu */
.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* The non-current language is an ordinary nav link (inherits .nav-menu a
   styling incl. the sliding underline). The current language is not a link,
   but carries the same marker as the active menu item. */
.lang-switch .lang-current {
  position: relative;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-navy-ink);
  padding-block: var(--space-2);
}

.lang-switch .lang-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-coral-deep);
}

.lang-switch .lang-divider {
  color: var(--color-border);
}

@media (min-width: 48rem) {
  .lang-switch {
    margin-left: var(--space-2);
    padding-left: var(--space-6);
    border-left: 1px solid var(--color-border);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-navy-ink);
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 47.9375rem) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s var(--ease);
  }

  .nav-menu.is-open {
    max-height: 20rem;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: var(--space-4) var(--space-5);
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu .lang-switch {
    padding: var(--space-2) var(--space-5) var(--space-4);
  }

  .nav-menu .lang-switch a,
  .nav-menu .lang-switch .lang-current {
    display: inline-block;
    width: auto;
    padding: var(--space-2);
  }
}

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42rem;
  padding-top: calc(var(--nav-height) + var(--space-10));
  padding-bottom: var(--space-16);
  overflow: hidden;
  background: var(--color-bg-subtle);
}

.hero-decoration {
  position: absolute;
  top: 50%;
  right: 6rem;
  transform: translateY(-50%);
  width: 26rem;
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 40rem;
}

.hero h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.01em;
}

.hero-lead {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

@media (max-width: 61.9375rem) {
  /* The "1" motif needs clear space to read as a numeral — below desktop
     width it would collide with the headline, so it steps aside entirely. */
  .hero-decoration {
    display: none;
  }
}

@media (max-width: 35.9375rem) {
  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: var(--text-2xl);
  }
}

/* ---------- Subpage header ---------- */

.page-header {
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-10);
  background: var(--color-bg-subtle);
}

.page-header h1 {
  font-size: var(--text-3xl);
}

.page-intro {
  max-width: 38rem;
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
}

/* ---------- Bio cards (O nás) ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.bio-card {
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.bio-photo {
  width: 9rem;
  height: 9rem;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.bio-card h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-5);
}

.bio-role {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
}

.bio-text {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
}

.bio-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.bio-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
}

@media (max-width: 61.9375rem) {
  .bio-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Projects placeholder (O nás) ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 10rem;
  padding: var(--space-5);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

@media (max-width: 61.9375rem) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Visibly unfinished copy — bracketed text the owner still needs to replace */
.todo-text {
  font-style: italic;
  opacity: 0.85;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

/* Cards are informative, not clickable — deliberately no hover affordance,
   so they don't promise an interaction that isn't there. */
.service-card {
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-5);
  border-radius: var(--radius);
  background: var(--color-bg-subtle);
  color: var(--color-coral-deep);
  font-size: 1.375rem;
}

.service-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

@media (max-width: 61.9375rem) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 35.9375rem) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- About / Contact (dark section) ---------- */

.section-dark {
  background: var(--color-navy);
  color: var(--color-text-on-dark);
}

.section-dark h2 {
  color: var(--color-text-on-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-12);
}

.about-company address,
.about-company p {
  margin-top: var(--space-4);
  color: var(--color-text-on-dark-muted);
  line-height: var(--leading-normal);
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.team-card {
  padding: var(--space-6);
  border: 1px solid var(--color-border-on-dark);
  border-radius: var(--radius-lg);
}

.team-photo {
  width: 6rem;
  height: 6rem;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--color-text-on-dark);
}

.team-name {
  margin-top: var(--space-4);
  font-weight: 700;
  font-size: var(--text-lg);
}

.team-email {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-on-dark-muted);
  font-size: var(--text-sm);
}

.team-email:hover {
  color: var(--color-text-on-dark);
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  color: var(--color-yellow);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
}

.team-linkedin:hover {
  color: var(--color-text-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 61.9375rem) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 35.9375rem) {
  .team-list {
    grid-template-columns: 1fr;
  }
}

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

.footer {
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.footer p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}
