/* ###### HIVATAL (council office) ###### */

.hiv {
  --hiv-green: #0f5238;
  --hiv-red: #a43946;
  --hiv-text: #2b2e2a;
  --hiv-muted: #5b655e;
  --hiv-tint: rgb(224 235 226);
}

/* ---- Hero: a községháza, title over a dark gradient ---- */

.hiv-hero {
  position: relative;
  aspect-ratio: 21 / 9;
  width: 100%;
  overflow: hidden;
  background-color: var(--hiv-green);

  @media (max-width: 768px) {
    aspect-ratio: 4 / 3;
  }

  .hiv-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
  }

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(8 40 27 / 0.85) 0%, rgb(8 40 27 / 0.35) 45%, rgb(8 40 27 / 0) 75%);
  }

  .hiv-hero-text {
    position: absolute;
    inset-inline: 0;
    top: 22%;
    transform: translateY(-50%);
    z-index: 1;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
    text-align: center;
    color: #fff;
  }

  h1 {
    font-size: clamp(1.75rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgb(0 0 0 / 0.35);
  }
}

/* ---- Page body ---- */

.hiv-wrap {
  max-width: 80rem;
  margin-inline: auto;
  padding: 3.5rem 1.5rem 7rem;
  color: var(--hiv-text);
}

/* ---- Nyitvatartás + elérhetőség cards ---- */

.hiv-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;

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

.hiv-card {
  background-color: #ffffff;
  border: 1px solid var(--box-border-color);
  border-radius: 0.75rem;
  padding: 2rem;
}

.hiv-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hiv-card-icon {
  color: var(--hiv-green);
  font-size: 2rem;
  flex-shrink: 0;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 40;
}

.hiv-card h2 {
  margin: 0;
  color: var(--hiv-green);
  font-size: 1.25rem;
}

.hiv-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.hiv-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--hiv-text);
  line-height: 1.6;
}

.hiv-rows .hiv-label {
  color: var(--hiv-muted);
}

.hiv-rows .hiv-value {
  font-weight: 600;
  text-align: right;
}

.hiv-rows a {
  color: var(--hiv-green);
  font-weight: 600;

  &:hover {
    text-decoration: underline;
  }
}

/* ---- eMagyarország Pont ---- */

.hiv-service {
  margin-top: 3.5rem;
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  background-color: var(--hiv-tint);
  border: 1px solid var(--box-border-color);
  border-radius: 1rem;
  padding: 2.5rem 2rem 3rem;

  @media (max-width: 550px) {
    padding: 2rem 1.25rem 2.5rem;
  }
}

.hiv-service h2 {
  margin: 0 auto 0.75rem;
  color: var(--hiv-green);
  font-size: 1.5rem;
}

.hiv-service h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background-color: var(--hiv-red);
}

.hiv-service h3 {
  margin: 2.25rem 0 1rem;
  color: var(--hiv-green);
  font-size: 1.1875rem;
}

.hiv-service-lead {
  color: var(--hiv-text);
  line-height: 1.7;
  margin: 0 auto 1.75rem;
  max-width: 34rem;
}

/* Rows inside the service card: centered, boxed on white */
.hiv-service .hiv-rows {
  gap: 0;
  max-width: 30rem;
  margin-inline: auto;
  text-align: left;
  background-color: #ffffff;
  border: 1px solid var(--box-border-color);
  border-radius: 0.75rem;
  overflow: hidden;
}

.hiv-service .hiv-rows li {
  padding: 0.75rem 1.25rem;
}

.hiv-service .hiv-rows li + li {
  border-top: 1px solid var(--box-border-color);
}

.hiv-service-logo {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin: 2.25rem auto 1.25rem;
  border-radius: 0.75rem;
}

.hiv-service-note {
  color: var(--hiv-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 34rem;

  a {
    color: var(--hiv-green);
    font-weight: 600;

    &:hover {
      text-decoration: underline;
    }
  }
}
