/* MostPomocy – Mapa Pomocy | styles.css
   Mobile-first, WCAG 2.1 AA
   -------------------------------------------------- */

/* === 1. Reset & Custom Properties =================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette – contrast ≥ 4.5:1 on white unless noted */
  --color-primary:        #1a5276;   /* dark navy – 7.2:1 on white */
  --color-primary-light:  #2e86c1;   /* 4.6:1 on white */
  --color-accent:         #c0392b;   /* red for urgent – 5.5:1 on white */
  --color-accent-bg:      #fdf3f2;
  --color-success:        #1e7e34;   /* 5.1:1 on white */
  --color-success-bg:     #eafaf1;
  --color-bg:             #ffffff;
  --color-surface:        #f4f6f8;
  --color-text:           #1a1a1a;   /* 16.7:1 on white */
  --color-text-muted:     #555555;   /* 7:1 on white */
  --color-border:         #b0bec5;
  --color-focus:          #e67e22;   /* visible focus ring */

  /* Typography */
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height: 1.65;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  3rem;

  /* Layout */
  --max-width: 900px;
  --radius:    6px;
}

/* === 2. Base ========================================= */
html {
  font-size: 100%;
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* === 3. Skip Link ==================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.15s;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* === 4. Focus ======================================== */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* === 5. Header & Navigation ========================= */
.site-header {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-md) var(--space-md);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}

.site-logo span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.85;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #fff;
  color: #fff;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.2);
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .site-nav {
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
  }

  .site-nav.is-open { max-height: 20rem; }

  .site-nav ul {
    flex-direction: column;
    padding-top: var(--space-sm);
  }

  .site-nav a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
  }
}

/* === 6. Page Hero ==================================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #154360 100%);
  color: #fff;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 620px;
  margin: 0 auto var(--space-md);
}

/* === 7. Container ==================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* === 8. Section ====================================== */
.section {
  padding: var(--space-xl) var(--space-md);
}

.section--alt {
  background: var(--color-surface);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

/* === 9. Cards (Quick Steps) ========================= */
.cards {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: var(--space-lg);
}

.card {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.card__icon {
  font-size: 2.4rem;
  line-height: 1;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

.card__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  flex: 1;
}

.card a.btn {
  margin-top: var(--space-sm);
}

/* === 10. Buttons ===================================== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: 2px solid transparent;
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-light);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}

.btn--accent:hover {
  background: #a93226;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--lg {
  padding: 0.8rem 2rem;
  font-size: 1.05rem;
}

/* === 11. Compass Steps ============================== */
.compass-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  counter-reset: compass-step;
}

.compass-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: var(--color-bg);
  border-left: 4px solid var(--color-primary-light);
  padding: var(--space-md);
  border-radius: 0 var(--radius) var(--radius) 0;
  counter-increment: compass-step;
}

.compass-step__number {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.compass-step__number::after {
  content: counter(compass-step);
}

.compass-step__body h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

/* === 12. Urgent Banner ============================== */
.urgent-banner {
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-lg) var(--space-md);
}

.urgent-banner .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.urgent-banner__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.urgent-banner__body {
  flex: 1;
  min-width: 200px;
}

.urgent-banner__body h2 {
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

.urgent-banner__body p {
  font-size: 0.95rem;
  opacity: 0.95;
}

.urgent-banner__phone {
  display: inline-block;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border: 3px solid #fff;
  border-radius: var(--radius);
  margin-top: var(--space-xs);
  transition: background 0.15s;
}

.urgent-banner__phone:hover {
  background: rgba(255,255,255,0.15);
}

/* === 13. Info Boxes ================================= */
.info-box {
  border-left: 4px solid var(--color-primary-light);
  background: var(--color-surface);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-md) 0;
}

.info-box--success {
  border-color: var(--color-success);
  background: var(--color-success-bg);
}

.info-box--warning {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
}

.info-box p + p { margin-top: var(--space-sm); }

/* === 14. Simple Check List ========================== */
.simple-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.simple-list li {
  padding-left: 1.8rem;
  position: relative;
}

.simple-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* === 15. Footer ===================================== */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-lg) var(--space-md);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-col h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  opacity: 0.75;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 2px 0;
  opacity: 0.85;
}

.footer-col a:hover { opacity: 1; text-decoration: underline; }

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
}

/* === 16. Contact Form =============================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 560px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,82,118,0.2);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* === 17. Breadcrumb ================================= */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

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

/* === 18. Coming Soon ================================ */
.coming-soon {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius);
  margin: var(--space-lg) 0;
}

.coming-soon__icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.coming-soon h2 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

/* === 19. Download Block ============================= */
.download-block {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.download-block__icon { font-size: 3rem; }

.download-block__info h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.download-block__info p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

/* === 20. Children Section =========================== */
.children-box {
  background: #eaf4fb;
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-top: var(--space-md);
}

.children-box h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.children-box p + p { margin-top: var(--space-sm); }

/* === 21. Utility ==================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
