/* ==========================================================================
   SVARMONT – sdílený styl webu (čistá, střídmá varianta)
   ========================================================================== */

:root {
  --primary: #0b2545;
  --secondary: #1d6fa5;
  --accent: #e89b0c;
  --accent-hover: #c98508;
  --red: #c1121f;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: #e3e7ec;
  --bg: #f7f8fa;
  --white: #ffffff;

  --radius: 6px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset & základ ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--secondary); }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* ---------- Hlavička ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 46px; width: auto; display: block; }

.nav-right { display: flex; align-items: center; gap: 14px; }
nav { display: flex; align-items: center; gap: 2px; }

nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: .87rem;
  white-space: nowrap;
  padding: 9px 9px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav a:hover { color: var(--red); }
nav a.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--red); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.lang-switch a { display: flex; opacity: .5; transition: opacity .15s; }
.lang-switch a:hover, .lang-switch a.active { opacity: 1; }
.lang-switch img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--primary); }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (úvod i podstránky) ---------- */
.hero, .page-hero {
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.page-hero { padding: 64px 24px 68px; }
.page-hero-inner { max-width: 780px; margin: 0 auto; }

.page-hero .category-tag,
.page-hero .section-category {
  display: block;
  color: #f0b84a;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 18px;
}
.page-hero .divider { display: none; }

.page-hero p {
  color: #c5cfdb;
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

/* úvodní hero – ilustrace svařovacích robotů (soubor hero-bg.svg, lze nahradit fotkou) */
.hero {
  padding: 120px 24px 128px;
  scroll-margin-top: 80px;
  background:
    radial-gradient(ellipse at center, rgba(8, 24, 46, .78) 0%, rgba(8, 24, 46, .35) 60%, rgba(8, 24, 46, .1) 100%),
    url("hero-bg.svg") center / cover no-repeat,
    var(--primary);
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero p { font-size: 1.1rem; color: #c5cfdb; max-width: 680px; margin: 0 auto 34px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Tlačítka ---------- */
.btn, .btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn, .btn-primary { background: var(--accent); color: #1a1405; }
.btn:hover, .btn-primary:hover { background: var(--accent-hover); }

.btn-secondary { background: transparent; color: var(--primary); border-color: #9aa8b8; }
.btn-secondary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-secondary:hover { background: #fff; color: var(--primary); border-color: #fff; }

.actions, .action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ---------- Obsah ---------- */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  flex: 1 0 auto;
}

/* ---------- Panely (textové bloky) ---------- */
.details-section, .info-panel, .content-box, .about-box,
.reasons-section, .contact-info, .contact-form-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 36px;
  margin-bottom: 40px;
}

.details-section h2, .info-panel h2, .content-box h2,
.about-box h2, .contact-info h2, .contact-form-box h2 {
  color: var(--primary);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}
.details-section p, .info-panel p, .content-box p, .about-box p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 14px;
}
.details-section p:last-child, .info-panel p:last-child, .content-box p:last-child { margin-bottom: 0; }
.about-box p strong { color: var(--primary); font-weight: 600; }

/* ---------- Karty ---------- */
.features-grid, .cards-grid, .grid-container {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}
.features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cards-grid { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid-container { grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }

.feature-card, .card-box, .grid-container .card, .cards-grid .card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.feature-card:hover, .card-box:hover, .grid-container .card:hover, .cards-grid .card:hover {
  box-shadow: 0 2px 10px rgba(11, 37, 69, .07);
}

.feature-card h3, .card-box h3, .grid-container .card h3, .card-title {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
}
.feature-card p, .card-box p, .grid-container .card p, .card-text {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
}
.card-box ul {
  list-style: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card-box li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.55;
}
.card-box li::before {
  content: "";
  position: absolute; left: 2px; top: .68em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--secondary);
}
.card-box li:last-child { margin-bottom: 0; }

/* úvodní karty */
.grid-container .card { display: flex; flex-direction: column; justify-content: space-between; scroll-margin-top: 100px; }
.grid-container .card h3 { font-size: 1.2rem; }
.grid-container .card p { margin-bottom: 22px; }
.card-link {
  align-self: flex-start;
  color: var(--secondary);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
}
.card-link:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* karty s obrázkem (AL-PVC) */
.cards-grid .card:has(.card-img-wrapper) { padding: 0; text-align: center; display: flex; flex-direction: column; }
.card-img-wrapper {
  height: 240px;
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
  background: #fff;
}
.card-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card-body {
  padding: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center;
  flex-grow: 1;
}
.card-body .card-title { margin-bottom: 16px; font-size: 1.2rem; }
.card-body .btn { padding: 10px 24px; font-size: .9rem; }

/* ---------- Úvodní stránka ---------- */
.services { max-width: 1100px; width: 100%; margin: 0 auto; padding: 80px 24px; }

.section-title, .section-heading {
  text-align: center;
  color: var(--primary);
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 44px;
}
.section-heading { margin-bottom: 24px; }

.why-us { background: var(--white); padding: 80px 24px; scroll-margin-top: 80px; border-block: 1px solid var(--line); }
.why-us-container { max-width: 1000px; margin: 0 auto; }
.why-us-list { list-style: none; max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.why-us-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--muted);
}
.why-us-item strong { color: var(--primary); font-weight: 600; }

.cta {
  text-align: center;
  color: #fff;
  padding: 80px 24px;
  scroll-margin-top: 80px;
  background: var(--primary);
}
.cta h2 { font-size: clamp(1.5rem, 2.8vw, 1.9rem); font-weight: 700; margin-bottom: 16px; }
.cta p { font-size: 1.05rem; color: #c5cfdb; max-width: 620px; margin: 0 auto 28px; }
.phone-number {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 26px;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius);
  transition: background-color .15s, color .15s;
}
.phone-number:hover { background: #fff; color: var(--primary); }

/* ---------- Interim management ---------- */
.about-box { border-left: 3px solid var(--accent); }

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.badge-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.badge-title { color: var(--primary); font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.badge-desc { color: var(--muted); font-size: .86rem; line-height: 1.5; }

.experience-box {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  margin-bottom: 40px;
}
.experience-box h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.experience-lead { color: #c5cfdb; max-width: 680px; margin: 0 auto; }
.experience-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.tag {
  border: 1px solid rgba(255, 255, 255, .28);
  color: #e5e9ef;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: .86rem;
}

.reasons-title { color: var(--primary); font-size: 1.45rem; font-weight: 700; text-align: center; margin-bottom: 24px; }
.reasons-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px 28px; list-style: none; }
.reasons-list li { position: relative; padding-left: 26px; color: #475569; }
.reasons-list li::before {
  content: "";
  position: absolute; left: 4px; top: .6em;
  width: 8px; height: 2px;
  background: var(--accent);
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 36px;
}
.contact-info, .contact-form-box { margin-bottom: 0; }

.info-block { margin-bottom: 20px; }
.info-block:last-child { margin-bottom: 0; }
.info-block h3 {
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 3px;
}
.info-block p, .info-block a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}
.info-block a:hover { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .88rem; font-weight: 500; color: var(--primary); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: .96rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #c9d1da;
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(29, 111, 165, .15);
}
.contact-form-box .btn-primary { width: 100%; margin-top: 4px; }

/* ---------- Patička ---------- */
.site-footer { background: #091d38; color: #aab6c5; margin-top: auto; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: .88rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links a { color: #dbe2ea; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responzivita ---------- */
@media (max-width: 1320px) {
  .nav-toggle { display: flex; }
  .nav-right {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  .site-header.open .nav-right { display: flex; }
  nav { flex-direction: column; align-items: stretch; gap: 0; }
  nav a { padding: 13px 4px; border-bottom: 1px solid #eef1f4; font-size: .98rem; }
  nav a.active { border-bottom-color: #eef1f4; color: var(--red); }
  .lang-switch { border-left: none; padding: 14px 4px 0; }
}

@media (max-width: 900px) {
  .grid-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-container { padding: 8px 16px; }
  .logo-img { height: 40px; }
  .page-hero { padding: 48px 18px 52px; }
  .hero { padding: 64px 18px 70px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .container { padding: 36px 16px 52px; }
  .details-section, .info-panel, .content-box, .about-box,
  .reasons-section, .contact-info, .contact-form-box { padding: 24px 20px; margin-bottom: 30px; }
  .experience-box { padding: 30px 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .actions, .action-buttons { flex-direction: column; align-items: stretch; }
  .btn, .btn-primary, .btn-secondary { width: 100%; }
  .card-body .btn { width: auto; }
  .services, .why-us, .cta { padding: 52px 16px; }
  .section-title { margin-bottom: 32px; }
  .phone-number { display: block; font-size: 1.15rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* Karty se seznamy (Svařování): 2 × 2 */
.cards-grid:has(.card-box) { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .cards-grid:has(.card-box) { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
