/* Tijdelijke website Tandheelkunde Beverdam. Colours follow the existing logo. */

:root {
  --green: #87bd4b;
  --green-dark: #4a7520;
  --grey-dark: #3b3b3a;
  --text: #2e2e2d;
  --muted: #5f5f5d;
  --line: #e2e2df;
  --bg: #f6f6f3;
  --card: #ffffff;
  --radius: 10px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

a {
  color: var(--green-dark);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 3px;
}

h1,
h2,
h3 {
  color: var(--grey-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.05rem;
  margin-top: 1.5em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 16px;
}

.muted {
  color: var(--muted);
}

/* Header and photo */

.site-header {
  background: var(--card);
  border-bottom: 4px solid var(--green);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  width: min(100%, 320px);
}

.site-header__phone {
  color: var(--grey-dark);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}

.photo-strip img {
  width: 100%;
  height: clamp(110px, 16vw, 300px);
  object-fit: cover;
}

/* Notice */

main {
  padding-top: 32px;
  padding-bottom: 48px;
}

.notice {
  max-width: 46rem;
  margin-bottom: 32px;
}

.notice p {
  font-size: 1.125rem;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 0.7em 1.1em;
  border-radius: 999px;
  background: var(--green);
  color: #222;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #79ad3f;
}

.button--urgent {
  background: var(--grey-dark);
  color: #fff;
}

.button--urgent:hover {
  background: #2a2a29;
}

/* Cards */

.cards {
  display: grid;
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card--urgent {
  background: var(--grey-dark);
  border-color: var(--grey-dark);
  color: #f1f1ee;
}

.card--urgent h2,
.card--urgent h3 {
  color: #fff;
}

.card--urgent a {
  color: var(--green);
}

.card--urgent .note {
  color: #d6d6d2;
  font-size: 0.95rem;
}

.details {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 10px 16px;
  margin: 0;
}

.details dt {
  font-weight: 700;
}

.details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.hours {
  border-collapse: collapse;
  width: 100%;
  max-width: 26rem;
  margin-bottom: 1em;
}

.hours th,
.hours td {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.hours th {
  padding-right: 1em;
  font-weight: 400;
}

.post-hours {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.post-hours li + li {
  margin-top: 0.5em;
}

/* Footer */

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  padding: 24px 0;
}

.site-footer p {
  margin: 0.25em 0;
}

@media (min-width: 760px) {
  .card {
    padding: 32px;
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 559px) {
  .site-header__phone {
    display: none;
  }

  .details {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .details dd + dt {
    margin-top: 10px;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}
