/* ==========================================================================
   Pečiatky Expres Trnava — hlavný štýl
   ========================================================================== */

:root {
  --color-primary: #c1272d;
  --color-primary-dark: #8f1a1f;
  --color-primary-light: #e4454c;
  --color-navy: #1b2a4a;
  --color-navy-light: #27406e;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6f8;
  --color-border: #e3e6ea;
  --color-text: #222934;
  --color-muted: #5b6472;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(27, 42, 74, 0.08);
  --shadow-strong: 0 14px 40px rgba(27, 42, 74, 0.16);
  --font: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--color-navy); font-weight: 800; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(193, 39, 45, .3);
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.65);
}
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-navy {
  background: var(--color-navy);
  color: #fff;
}
.btn-navy:hover { background: var(--color-navy-light); }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--color-navy);
  color: #cfd7ea;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar a { color: #fff; }
.topbar .topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy);
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.logo-text small {
  display: block;
  font-weight: 500;
  font-size: .68rem;
  color: var(--color-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: .96rem;
}
.nav-links a { color: var(--color-text); }
.nav-links a.active, .nav-links a:hover { color: var(--color-primary); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 700; color: var(--color-navy); white-space: nowrap; }
.nav-phone svg { vertical-align: -3px; margin-right: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px auto;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 78px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-links { flex-direction: column; gap: 16px; font-size: 1.1rem; }
  .nav-cta { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-cta .btn { width: 100%; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(27,42,74,.93) 0%, rgba(27,42,74,.82) 45%, rgba(193,39,45,.55) 100%);
}
.hero-inner {
  position: relative;
  padding: 90px 0 100px;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; max-width: 740px; }
.hero p.lead {
  font-size: 1.15rem;
  color: #e7ebf5;
  max-width: 600px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-points {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-weight: 600;
  font-size: .92rem;
}
.hero-points li { list-style: none; display: flex; align-items: center; gap: 8px; }
.hero-points { padding: 0; margin: 40px 0 0; }
.hero-points .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; flex-shrink: 0;
}

.page-hero {
  background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #d7dcea; max-width: 640px; font-size: 1.05rem; margin-bottom: 0; }
.breadcrumbs { font-size: .85rem; color: #b9c2da; margin-bottom: 14px; }
.breadcrumbs a { color: #e7ebf5; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head.align-left { margin: 0 0 40px; text-align: left; }
.kicker {
  display: block;
  color: var(--color-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
  margin-bottom: 10px;
}

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card img { aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { color: var(--color-muted); margin-bottom: 14px; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

.icon-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.icon-card .icon-circle {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(193,39,45,.1);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-card p { color: var(--color-muted); margin-bottom: 0; }

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) {
  .about-split { grid-template-columns: 1fr; }
}
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow-strong); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; color: var(--color-primary); font-weight: 800; }
.stat span { color: var(--color-muted); font-size: .88rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  border-radius: 20px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: .2em; }
.cta-banner p { color: #ffe3e4; margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.testimonial .stars { color: #f0a500; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial footer { margin-top: 14px; font-weight: 700; color: var(--color-navy); font-style: normal; }
.testimonial footer span { display: block; font-weight: 500; color: var(--color-muted); font-size: .85rem; }

/* ---------- Pricing ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table caption { text-align: left; padding: 16px 20px; font-weight: 800; background: var(--color-navy); color: #fff; }
.price-table th, .price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.price-table th { background: var(--color-bg-alt); color: var(--color-navy); font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td.price { font-weight: 800; color: var(--color-primary); white-space: nowrap; }
.price-note { font-size: .85rem; color: var(--color-muted); margin-top: 12px; }
.price-block { margin-bottom: 40px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 920px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 700; font-size: .9rem; color: var(--color-navy); }
.form-field .required { color: var(--color-primary); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: #fbfbfc;
  color: var(--color-text);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field.checkbox-field { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-field.checkbox-field input { width: auto; margin-top: 4px; }
.form-field.checkbox-field label { font-weight: 500; color: var(--color-muted); font-size: .88rem; }
.form-foot { font-size: .8rem; color: var(--color-muted); margin-top: 14px; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }
.form-alert {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: .92rem;
}
.form-alert.error { background: #fde8e8; color: #9c1c22; border: 1px solid #f3b9bc; }
.form-alert.success { background: #e7f6ec; color: #1d7a3e; border: 1px solid #b8e3c6; }

/* ---------- Contact info blocks ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .icon-circle {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(193,39,45,.1); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-list strong { display: block; color: var(--color-navy); }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--color-primary); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--color-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: #c9d1e6;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 34px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer .logo { color: #fff; }
.site-footer p { color: #aeb8d1; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #c9d1e6; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: .82rem;
  color: #8d97b4;
}
.footer-bottom a { color: #8d97b4; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  padding: 20px 22px;
  z-index: 300;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: .88rem; color: var(--color-muted); margin-bottom: 14px; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Misc page sections ---------- */
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .steps-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-list { grid-template-columns: 1fr; } }
.steps-list li { counter-increment: step; position: relative; padding-top: 10px; }
.steps-list li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.legal-content h2 { margin-top: 1.6em; }
.legal-content ul { padding-left: 1.2em; }
.legal-content { max-width: 760px; }

.back-top-space { height: 4px; }
