﻿.hours-section {
  padding: 100px 0;
  background: var(--pu-off);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.hours {
  background: #fff;
  border: 1px solid var(--pu-line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: 0.2s;
}

.hours:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: var(--pu-blue-200);
}

.hours.today {
  background: var(--pu-blue-50);
  border-color: var(--pu-blue-300);
}

.hours.emergency {
  background: var(--pu-blue-900);
  color: #fff;
  border-color: var(--pu-blue-900);
}

.hours .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.hours .head .day {
  font: 500 10.5px var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pu-blue-700);
  white-space: nowrap;
}

.hours.today .head .day { color: var(--pu-blue-800); }
.hours.emergency .head .day { color: var(--pu-sand-400); }

.hours .head .badge {
  font: 500 9.5px var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: var(--pu-blue-800);
  color: #fff;
  white-space: nowrap;
}

.hours .head .badge.dot { background: rgb(31,168,107); }
.hours .head .badge.off { background: var(--pu-ink-3); }

.hours h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--pu-blue-900);
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.hours.emergency h4 { color: #fff; }

.hours .time {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  color: var(--pu-blue-900);
  letter-spacing: 0;
}

.hours.emergency .time { color: #fff; }

.hours .time small {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--pu-ink-3);
  letter-spacing: 0.04em;
  margin-top: 6px;
  text-transform: uppercase;
}

.hours.emergency .time small { color: var(--pu-blue-300); }

.hours .note {
  font-size: 13px;
  color: var(--pu-ink-2);
  line-height: 1.5;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--pu-line);
}

.hours.emergency .note {
  color: var(--pu-blue-200);
  border-top-color: rgba(255,255,255,.16);
}

.hours.simple {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
}

.hours.simple .head {
  justify-content: center;
}

.hours.emergency a {
  color: #fff;
  text-decoration: underline rgba(255,255,255,.4);
  text-underline-offset: 3px;
  font-weight: 600;
}

@media (max-width: 1000px) {
  .hours-grid { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 768px) {
  .hours-section { padding: 60px 0; }
}

@media (max-width: 1024px) {
  .hours-section { padding: 60px 0; }
}

@media (max-width: 1280px) {
  .hours-section { padding-top: 0; }
}

/* The header's "Avarinė 24/7" button links to #darbo-laikas: keep the heading
   clear of the sticky header (up to ~97px). Below 1280px the section has no
   top padding, so the margin has to cover the whole header. */
.hours-section { scroll-margin-top: 20px; }

@media (max-width: 1280px) {
  .hours-section { scroll-margin-top: 110px; }
}

@media (max-width: 760px) {
  .hours-section { scroll-margin-top: 120px; }
}
