/* ==========================================================================
   Newlogic Templates — static landing
   Vizuální styl vychází z newlogic.cz (Galano Grotesque, #15191c, #efeded, #83cd4f)
   ========================================================================== */

@font-face {
  font-family: "GalanoGrotesque Fallback";
  src: local("Arial");
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

@font-face {
  font-family: "GalanoGrotesque";
  src: url("../fonts/galano-grotesque-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GalanoGrotesque";
  src: url("../fonts/galano-grotesque-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GalanoGrotesque";
  src: url("../fonts/galano-grotesque-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark: #15191c;
  --dark-2: #22272b;
  --light: #efeded;
  --white: #ffffff;
  --green: #83cd4f;
  --green-hover: #95d866;
  --green-text: #5c9e2e;

  --text: #15191c;
  --text-muted: #5d6266;
  --text-inverse: #ffffff;
  --text-inverse-muted: rgba(255, 255, 255, 0.68);
  --line: rgba(21, 25, 28, 0.12);
  --line-inverse: rgba(255, 255, 255, 0.12);

  --font: "GalanoGrotesque", "GalanoGrotesque Fallback", Arial, sans-serif;

  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  --fs-h2: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --fs-h1: clamp(2.625rem, 1.5rem + 4.6vw, 5.25rem);

  --gutter: clamp(1.25rem, 0.25rem + 4.5vw, 6.25rem);
  --max: 76rem;
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius: clamp(0.75rem, 0.5rem + 0.8vw, 1rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Reset ------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  background: var(--dark);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p {
  margin: 0;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: var(--text-inverse);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: clamp(5rem, 4rem + 2vw, 6.375rem);
}

.logo {
  display: block;
  flex: none;
}

.logo img {
  width: auto;
  height: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
  filter: invert(1);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
}

.nav-link {
  position: relative;
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.nav-link:hover::after {
  width: 100%;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.375rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--dark);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease);
}

.btn:hover {
  background: var(--green-hover);
}

.btn svg {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--small {
  min-height: 2.75rem;
  padding: 0.75rem 1.375rem;
  font-size: var(--fs-sm);
}

@media (max-width: 30rem) {
  .site-header .btn {
    display: none;
  }
}

/* Hero (dark) ------------------------------------------------------------ */

.hero {
  padding-top: clamp(9rem, 7rem + 7vw, 14rem);
  padding-bottom: clamp(4.5rem, 3rem + 6vw, 9rem);
  background: var(--dark);
  color: var(--text-inverse);
}

.hero__title {
  max-width: 15ch;
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 37rem;
  margin-top: clamp(2rem, 1.25rem + 2.5vw, 4.5rem);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: -0.02em;
  color: var(--text-inverse-muted);
  text-wrap: pretty;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-inverse-muted);
}

.breadcrumb a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--text-inverse);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.5;
}

.breadcrumb [aria-current] {
  color: var(--green);
}

/* Content (light) -------------------------------------------------------- */

.content {
  padding-block: var(--section);
  background: var(--light);
  border-radius: clamp(1.25rem, 0.5rem + 2.5vw, 2.5rem);
}

.section-label {
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  font-size: var(--fs-lead);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Image card — transparent device mockups on a white rounded surface */

.shot {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}

.shot img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: contain;
  padding: clamp(0.75rem, 0.25rem + 2vw, 2.25rem);
  transition: transform 0.8s var(--ease);
}

/* Item — shared by homepage category and template rows ------------------- */

.item-list {
  display: grid;
  gap: clamp(4rem, 2.5rem + 5vw, 8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.item {
  display: grid;
  gap: clamp(1.75rem, 1rem + 2.5vw, 2.5rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .item {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(3rem, 1rem + 4vw, 6rem);
  }
}

.item__title {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.item__title a {
  text-decoration: none;
}

.item__tagline {
  margin-top: 0.75rem;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--green-text);
}

.item__text {
  max-width: 32rem;
  margin-top: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  color: var(--text-muted);
  text-wrap: pretty;
}

.item__text a {
  color: var(--text);
  text-decoration-color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s var(--ease);
}

.item__text a:hover {
  text-decoration-color: currentColor;
}

.item__actions {
  margin-top: clamp(1.75rem, 1.25rem + 1vw, 2.25rem);
}

.item:hover .shot img {
  transform: scale(1.025);
}

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

.site-footer {
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
  background: var(--dark);
  color: var(--text-inverse-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.site-footer .logo img {
  height: 1.25rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer a:hover {
  color: var(--text-inverse);
}

/* Motion ----------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
