/* Plynoservis Jiří Straka - static one-page site. No build step, no dependencies. */

:root {
  /* Dark palette taken from the previous site: #161821 background, white headings, yellow accent. */
  color-scheme: dark;
  --bg: #161821;
  --surface: #1f2230;
  --surface-tint: #1c1f2c;
  --text: #ffffff;
  --text-muted: #bfc3cf;
  --border: #33384a;
  --accent: #e7b500;
  --accent-hover: #ffd033;
  --on-accent: #161821;
  --radius: 10px;
  --shadow: 0 10px 30px rgb(0 0 0 / 0.45);
  --container: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
  color: var(--on-accent);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  color: var(--text);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding-block: 0.75rem;
}

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

.nav {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

/* Hero */

.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.lead {
  margin-top: 1.25rem;
  max-width: 34ch;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}

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

.button-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.button-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.hero-image {
  width: 100%;
  max-width: 350px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Sections */

.section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section-intro {
  margin-top: 0.75rem;
  max-width: 60ch;
  color: var(--text-muted);
}

/* Services */

.work-list {
  display: grid;
  gap: 1.25rem 2.5rem;
  margin-top: 2.25rem;
  padding: 0;
  list-style: none;
  counter-reset: work;
}

.work-list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  counter-increment: work;
}

.work-list li::before {
  content: counter(work);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--surface);
  color: var(--accent);
  border-radius: var(--radius);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.scope {
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.scope-list {
  display: grid;
  gap: 0.75rem 2.5rem;
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.scope-list li::marker {
  color: var(--accent);
}

/* Contact */

.contact {
  background: var(--surface-tint);
  border-block: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.phone {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.contact-card {
  display: grid;
  gap: 0.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-style: normal;
}

.contact-card strong {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.contact-card dl {
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.contact-card dl div {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
}

.contact-card dt {
  color: var(--text-muted);
}

.contact-card dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.map-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.5rem;
  font-weight: 600;
}

.message {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

/* Google Forms renders its own light page inside the frame; the height is set to fit the whole form without scrolling. */
.message-form {
  display: block;
  width: 100%;
  max-width: 720px;
  height: 900px;
  margin-top: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Footer */

.site-footer {
  padding-block: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
}

/* Wider screens */

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
  }

  .hero-image {
    justify-self: end;
  }

  .work-list,
  .scope-list {
    grid-template-columns: 1fr 1fr;
  }

  .contact-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}

/* Narrow phones: the wordmark already links to the top, so the "Úvod" item is dropped to keep the nav on one line. */
@media (max-width: 480px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 0.5rem;
  }

  .brand {
    font-size: 1rem;
    letter-spacing: 0.04em;
  }

  .nav {
    gap: 0;
  }

  .nav li:first-child {
    display: none;
  }

  .nav a {
    padding-inline: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .map-link,
  .message {
    display: none;
  }
}
