@font-face {
  font-family: 'Monda';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/monda-latin-400-normal.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --page: light-dark(#f8faf9, #111916);
  --surface: light-dark(#fff, #1b2521);
  --surface-subtle: light-dark(#f3f7f5, #222f29);
  --text: light-dark(#25332d, #eaf2ee);
  --muted: light-dark(#50645a, #b3c5bb);
  --border: light-dark(#dbe5df, #374940);
  --input-border: light-dark(#7e9589, #778e82);
  --accent: light-dark(#24654d, #91dabe);
  --brand: #266a52;
  --nav-text: #fff;
  --radius: 0.875rem;
}

:root[data-theme='light'] {
  color-scheme: light;
}

:root[data-theme='dark'] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 1rem/1.7 'Monda', sans-serif;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
}

h2 {
  margin: 1.65rem 0 0.55rem;
  font-size: 1.32rem;
}

h3 {
  font-size: 1.12rem;
}

.main-container {
  position: relative;
  width: min(100% - 2rem, 50rem);
  margin-inline: auto;
  padding-block: clamp(1.25rem, 8vw, 5rem) 2rem;
}

.header-logo {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.9rem;
}

.logo {
  display: block;
  width: min(100%, 21rem);
  height: auto;
}

.header-rect {
  position: absolute;
  top: 1rem;
  right: -6.75rem;
  width: 11rem;
  height: 14rem;
  background: url('/assets/css/header-rect.svg') center / contain no-repeat;
  pointer-events: none;
}

@media (max-width: 66rem) {
  .header-rect {
    display: none;
  }
}

.header-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.45rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--nav-text);
}

.header-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.menu-item, .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
}

.home-link {
  min-width: 2.75rem;
}

.menu-item:hover, .menu-item[aria-current='page'], .theme-toggle:hover {
  background: rgb(0 0 0 / 20%);
}

.header-bar :focus-visible {
  outline-color: currentColor;
  outline-offset: 1px;
}

.theme-toggle {
  gap: 0.35rem;
  border-color: rgb(255 255 255 / 55%);
  background: transparent;
  cursor: pointer;
}

.theme-toggle[hidden] {
  display: none;
}

.theme-toggle::before {
  content: '';
  width: 0.78em;
  height: 0.78em;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.theme-toggle[aria-pressed='true'] {
  background: var(--nav-text);
  color: var(--brand);
}

.theme-toggle[aria-pressed='true']:focus-visible {
  outline-color: var(--nav-text);
}

.content {
  margin-top: 0.75rem;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-wrap: anywhere;
}

.footer, .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
}

.footer {
  justify-content: space-between;
  padding: 0.8rem 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.classic-link[aria-current='page'] {
  font-weight: bold;
}

.privacy {
  margin-top: 1.5rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.875rem;
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

.home-icon {
  filter: invert(1);
}

.home-intro {
  max-width: 65ch;
  margin: 0 0 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--brand);
  color: var(--nav-text);
  text-decoration: none;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.service {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  background: var(--surface-subtle);
}

.service > :first-child {
  margin-bottom: 0.3rem;
  font-weight: bold;
  color: var(--accent);
}

.service .icon {
  opacity: 0.8;
}

.location {
  display: none;
}

.profiles {
  display: grid;
  gap: 1.25rem;
}

.profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem 1.25rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.profile-picture {
  display: block;
  width: 6rem;
  height: 6rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  object-fit: cover;
}

.profile h2 {
  margin: 0;
  color: var(--accent);
}

.profile h3 {
  margin: 1rem 0 0.25rem;
  font-size: 1rem;
}

.profile p {
  margin: 0.4rem 0 0;
}

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

.profile ul {
  margin: 0;
  padding-inline-start: 1.2rem;
}

.profile li::marker {
  color: var(--accent);
}

@media (max-width: 32rem) {
  .profile {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  max-width: 35rem;
  margin-top: 1.2rem;
}

.contact-form label {
  display: grid;
  gap: 0.25rem;
}

.contact-form input, .contact-form textarea, .contact-form button {
  font: inherit;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--input-border);
  border-radius: 0.5rem;
  background: var(--page);
  color: var(--text);
}

.contact-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--brand);
  color: var(--nav-text);
  cursor: pointer;
}

.contact-link:hover, .contact-form button:hover {
  background: #19543e;
}

.contact-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-note {
  color: var(--muted);
  font-size: 0.875rem;
}

.contact-form [role='status'] {
  margin: 0;
}

.contact-form [role='status']:empty {
  display: none;
}

@media (max-width: 38rem) {
  .services {
    grid-template-columns: 1fr;
  }
}

:root[data-theme='dark'] .logo {
  filter: brightness(3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .logo {
    filter: brightness(3);
  }
}

:root[data-theme='dark'] .service .icon {
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .service .icon {
    filter: invert(1);
  }
}
