/* frank-servis.cz – lightweight static style matching current light theme */

/* Color palette & layout tokens */
:root {
  --fg: #111827;           /* slate-900 */
  --muted: #4b5563;        /* gray-600 */
  --bg: #ffffff;
  --border: #e5e7eb;
  --accent: #0082b2;       /* amber-500 */
  --accent-2: #f97316;     /* orange-500 */
  --container-width: 1200px;
  --radius: 12px;
  --radius-lg: 14px;
}

/* Base reset */
* { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* keeps anchored sections below sticky header */
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --------------- Typography --------------- */
h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  margin: .35rem 0;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.2;
  margin: 0 0 .8rem;
  font-weight: 600;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: .25rem 0 .2rem;
  font-weight: 600;
}

a {
  color: var(--fg);
  text-decoration-thickness: .08em;
}

a:hover,
a:focus-visible {
  color: #000;
}

a:focus-visible {
  outline: 3px solid rgba(17, 24, 39, .35);
  outline-offset: 2px;
}

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

.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 {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 0px;
}

/* --------------- Header --------------- */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 10;
  backdrop-filter: saturate(180%) blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  max-width: var(--container-width);
  gap: 1rem;
  padding: .5rem 0;
  margin: 0 auto;
}

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

.brand img {
  width: 40px;
  height: 40px;
}

.brand .name {
  font-weight: 700;
  letter-spacing: .2px;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-weight: 600;
  opacity: .8;
  text-decoration: none;
  transition: opacity .2s ease, color .2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

.nav-toggle {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: border-color .35s ease, color .35s ease;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: currentColor;
  transition: transform .35s ease, box-shadow .35s ease, opacity .35s ease;
}

.nav-toggle::before {
  top: 14px;
  box-shadow: 0 6px 0 currentColor;
}

.nav-toggle::after {
  top: 26px;
}

.site-header.is-open .nav-toggle::before {
  transform: translateY(6px) rotate(45deg);
  box-shadow: none;
}

.site-header.is-open .nav-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle:hover {
  border-color: rgba(17, 24, 39, .25);
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(17, 24, 39, .35);
  outline-offset: 2px;
}

/* --------------- Hero Banner --------------- */
.hero{
  padding: 80px 0px;
  background-image: url("assets/heroImg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

/* --------------- Sections --------------- */

.description {
  background-color: var(--accent);
  color:#fff;
  padding-bottom: 80px;
}

.description p {
  max-width: 640px;
}

.cards {
  margin-top: -80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.card {
  max-width: 220px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #fff;
  box-shadow: 0 6px 12px rgba(15, 23, 42, .08);
  transition: box-shadow .2s ease, transform .2s ease;
}

.card-icon {
  width: 64px;
  height: 64px;
}

.card h3 {
  margin: 1rem 0px;
  color: var(--accent);
}

.card p {
  margin: .25rem 0 0;
  color: var(--muted);
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

/* Partner logos */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.partner-logos li {
  flex: 1 1 200px;
  max-width: 400px;
  display: flex;
}

.partner-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.partner-logos a:hover,
.partner-logos a:focus-visible {
  border-color: #cbd5e1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.partner-logos img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

/* Buttons */
.cta {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin: 12px 0 0;
}

.btn {
  display: inline-block;
  padding: .6rem .95rem;
  background: linear-gradient(135deg, #ffffffaa, #ffffff);
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
}


/* Misc blocks */
.note {
  display: flex;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed #fcd34d;
  background: #fffbeb;
  border-radius: var(--radius);
}

.note p {
  margin: 1rem;
}

.site-footer {
  padding: 24px 0;
  background-color: var(--accent);
  color: #fff;
}

.site-footer a {
  color: #fff;
}

/* Responsive tweaks */
@media (max-width: 1200px) {
  .container {
    padding: 40px 16px;
  }

  .header-inner {
    padding: .5rem;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 96px;
  }

  .header-inner {
    gap: .75rem;
    padding: 1rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0px;
    top: 72px;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .6rem;
    padding: 1rem;
    background: var(--bg);
    order: 3;
  }

  .nav a {
    width: 100%;
    padding: .45rem 0;
  }

  .site-header.is-open .nav {
    display: flex;
    border-top: 1px solid var(--border);
    padding-top: .75rem;
  }

  .container {
    padding: 40px 16px;
  }

  .cta {
    justify-content: flex-start;
  }

  .card {
    max-width: none;
  }

  .partner-logos li {
    flex: 1 1 40%;
  }

  .note {
    flex-wrap: wrap;
  }
}

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