/**
 * @file
 * Layout. A small CSS grid replaces the Bootstrap 3 grid from Zymphonies 3.0.1
 * and keeps its class names (container, row, col-md-*).
 */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.container--narrow {
  padding-inline: var(--content-gutter);
}

.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.row > * { grid-column: span 12; }

@media (min-width: 768px) {
  .col-sm-6 { grid-column: span 6; }
}

@media (min-width: 992px) {
  .col-md-3 { grid-column: span 3; }
  .col-md-4 { grid-column: span 4; }
  .col-md-6 { grid-column: span 6; }
  .col-md-8 { grid-column: span 8; }
  .col-md-9 { grid-column: span 9; }
  .col-md-12 { grid-column: span 12; }
}

/* Header ------------------------------------------------------------------ */

.header {
  background: #fff;
}

.header__top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: clamp(16px, 3.1vw, 60px);
}

.header__brand { flex: 1 1 auto; min-width: 0; }

/* Contact / Log in: top-right corner, as in the design. */
.header__utility {
  position: absolute;
  top: clamp(10px, 1.6vw, 32px);
  right: var(--page-gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Main content ------------------------------------------------------------ */

.main-content {
  padding: clamp(2rem, 4.4vw, 84px) 0;
}

.main-content--empty { padding: 0; }

.page-title-wrapper {
  padding: clamp(2rem, 4vw, 4.5rem) 0 0;
}

.topwidget,
.bottom-widgets {
  padding: clamp(2.5rem, 5vw, 6rem) 0;
}

.bottom-widgets { background: var(--color-bg-alt); }

.content-home {
  padding: clamp(2rem, 4vw, 5rem) 0 0;
}

/* Footer ------------------------------------------------------------------ */

.footer {
  border-top: 1px solid var(--color-border);
  padding: clamp(2.5rem, 4vw, 5rem) 0 1rem;
}

.footer h2,
.footer .block-title { font-size: 1.35rem; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  padding: 1.5rem 0 2rem;
}

.footer + .footer-bottom { border-top: 0; }

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom a,
.footer a { color: var(--color-text); }
