/* Evatis site styles. Colours and sizes come from
   docs/superpowers/specs/2026-10-04-brand-and-page-design.md, sections 3 and 8. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --navy: #0f1f3d;
  --blue: #2a4fa8;
  --slate: #5a6478;
  --mist: #f4f6fa;
  --line: #e6eaf1;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --section-gap: 96px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue);
}

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

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

/* The hidden attribute must win over the display rules below (the form is a grid). */
[hidden] {
  display: none !important;
}

/* Layout */

main {
  flex: 1; /* keeps the footer at the bottom on a short page */
}

.container {
  width: 100%;
  max-width: 1168px; /* 1120 content + 24 each side */
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-top: var(--section-gap);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
}

.skip-link:focus {
  top: 16px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}

.logo {
  display: inline-block;
}

.logo img {
  width: auto;
  height: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--slate);
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--navy);
}

/* Buttons */

.button {
  display: inline-block;
  padding: 16px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--blue);
}

.button:disabled {
  background: var(--navy);
  opacity: 0.5;
  cursor: not-allowed;
}

.button-small {
  padding: 11px 18px;
  font-size: 0.9375rem;
}

/* Headline */

.hero {
  padding-top: 72px;
}

h1 {
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 38rem;
  margin-top: 28px;
  color: var(--slate);
  font-size: 1.25rem;
  line-height: 1.5;
}

.hero .button {
  margin-top: 32px;
}

/* Section headings */

h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
}

/* Services */

.specialty {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

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

.card p {
  margin-top: 10px;
  color: var(--slate);
}

.points {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.points li {
  position: relative;
  padding-left: 20px;
}

.points li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.also-heading {
  margin-top: 64px;
  font-size: 1.5rem;
}

.also {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.also-item {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.also-item p {
  margin-top: 8px;
  color: var(--slate);
}

/* About */

.about {
  display: grid;
  gap: 24px;
  max-width: 46rem;
  margin-top: 32px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  object-fit: cover;
}

.about-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.about-role {
  margin-top: 4px;
  color: var(--slate);
}

.about-text {
  margin-top: 16px;
}

/* Contact form */

.contact-lead {
  margin-top: 12px;
  color: var(--slate);
}

.form {
  display: grid;
  justify-items: start;
  gap: 20px;
  max-width: 40rem;
  margin-top: 32px;
}

.field {
  display: grid;
  gap: 6px;
  width: 100%;
}

label {
  font-size: 0.9375rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

[aria-invalid="true"] {
  padding: 11px 13px;
  border: 2px solid var(--navy);
}

.field-error {
  font-size: 0.9375rem;
  font-weight: 500;
}

#turnstile-widget:empty {
  display: none;
}

.form-foot {
  display: grid;
  gap: 8px;
}

.form-status {
  font-weight: 500;
}

.form-note {
  color: var(--slate);
  font-size: 0.9375rem;
}

.form-success {
  max-width: 40rem;
  margin-top: 32px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--mist);
  font-size: 1.125rem;
  font-weight: 500;
}

.form-success:focus {
  outline: none;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: var(--section-gap);
  padding-block: 32px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.9375rem;
}

/* Screen sizes */

@media (min-width: 720px) {
  .specialty,
  .also {
    grid-template-columns: 1fr 1fr;
  }

  .about {
    grid-template-columns: 96px 1fr;
    gap: 32px;
  }
}

@media (max-width: 719.98px) {
  :root {
    --section-gap: 64px;
  }

  .hero {
    padding-top: 40px;
  }

  .card {
    padding: 24px;
  }
}

@media (max-width: 559.98px) {
  .nav-link {
    display: none;
  }
}
