/* ELHOL — Pomoc Drogowa Elbląg
   Shared design system */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #0F0F10;
  --ink-2: #1c1c1f;
  --ink-soft: #3a3a3f;
  --paper: #FAFAF7;
  --paper-2: #F3F1EA;
  --line: rgba(15, 15, 16, 0.08);
  --line-strong: rgba(15, 15, 16, 0.18);
  --yellow: #F5B800;
  --yellow-deep: #D89F00;
  --yellow-dark: #8a6500;
  --shadow-sm: 0 1px 2px rgba(15,15,16,.06), 0 2px 6px rgba(15,15,16,.04);
  --shadow-md: 0 4px 12px rgba(15,15,16,.08), 0 12px 32px rgba(15,15,16,.08);
  --shadow-lg: 0 12px 48px rgba(15,15,16,.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Anton', 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0 0 1em; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand__mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 14px rgba(245,184,0,.25);
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand__name {
  display: flex; flex-direction: column;
  line-height: 1.05;
}
.brand__name strong {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.brand__name small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  position: relative;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav a:hover { background: var(--paper-2); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--yellow);
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--yellow) !important;
  font-weight: 700;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: .02em;
  transition: transform .15s, background .15s;
}
.cta-phone:hover { background: #000; transform: translateY(-1px); }
.cta-phone .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d171;
  box-shadow: 0 0 0 0 rgba(52,209,113,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,209,113,.7); }
  70% { box-shadow: 0 0 0 8px rgba(52,209,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,209,113,0); }
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: var(--paper-2);
  border: 1px solid var(--line);
  width: 44px; height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 940px) {
  .site-header__inner { height: 64px; gap: 12px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav a { padding: 14px 16px; font-size: 16px; }
  .nav a.active::after { display: none; }
  .nav a.active { background: var(--paper-2); }
  .cta-phone { padding: 9px 14px; font-size: 14px; }
  .cta-phone span.label { display: none; }
  .brand__name small { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none;
}
.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--yellow-deep), 0 10px 22px rgba(245,184,0,.35);
}
.btn--yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--yellow-deep), 0 14px 28px rgba(245,184,0,.45);
}
.btn--yellow:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--yellow-deep), 0 4px 12px rgba(245,184,0,.3);
}
.btn--ink {
  background: var(--ink);
  color: #fff;
}
.btn--ink:hover { background: #000; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ===== Hash / chip ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 999px;
}
.chip--ink { background: var(--ink); color: var(--yellow); }
.chip--ghost {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 700;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 32px; height: 2px;
  background: var(--yellow);
}

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--ink); color: #f4f4f1; }
.section--paper { background: var(--paper-2); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(40px, 5vw, 64px);
  margin: 16px 0 14px;
}
.section-head p { color: var(--ink-soft); font-size: 18px; max-width: 60ch; }

/* ===== Page header (for sub pages) ===== */
.page-hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 20% 30%, rgba(245,184,0,.16), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(245,184,0,.06) 14px 28px);
}
.page-hero__inner { position: relative; }
.page-hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  margin: 18px 0 16px;
  letter-spacing: .01em;
}
.page-hero h1 .accent { color: var(--yellow); }
.page-hero p {
  font-size: 19px;
  max-width: 60ch;
  color: rgba(255,255,255,.78);
}
.page-hero .crumb {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  font-weight: 600;
}
.page-hero .crumb a { color: var(--yellow); }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 64px 0 28px;
  font-size: 14.5px;
}
.site-footer h4 {
  font-size: 18px;
  letter-spacing: .12em;
  color: #fff;
  margin-bottom: 18px;
  font-family: 'Anton', sans-serif;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer__bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-phone {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  color: var(--yellow);
  letter-spacing: .04em;
  display: block;
  margin-bottom: 6px;
}
@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* Floating phone (mobile) */
.floating-call {
  position: fixed;
  bottom: 18px; right: 18px;
  background: var(--yellow);
  color: var(--ink);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(245,184,0,.5), 0 4px 8px rgba(0,0,0,.2);
  z-index: 60;
  animation: pulse-yellow 2.5s infinite;
}
@keyframes pulse-yellow {
  0%, 100% { box-shadow: 0 8px 24px rgba(245,184,0,.5), 0 0 0 0 rgba(245,184,0,.5); }
  50% { box-shadow: 0 8px 24px rgba(245,184,0,.5), 0 0 0 18px rgba(245,184,0,0); }
}
@media (max-width: 940px) { .floating-call { display: flex; } }

/* Utility */
.text-yellow { color: var(--yellow); }
.text-ink { color: var(--ink); }
.bg-yellow { background: var(--yellow); }
.divider-stripe {
  height: 8px;
  background: repeating-linear-gradient(135deg, var(--ink) 0 14px, var(--yellow) 14px 28px);
}
