/* Morigrove site styles. Plain CSS, no build step. */

/* Manrope variable font (Latin subset), self-hosted. Licence: /assets/fonts/manrope-OFL.txt */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Brand colours come from the logo: navy #022a36, teal #3abaa9, off-white #f4f6f5.
   --teal-dark is a deeper teal for text and links on white, for readable contrast. */
:root {
  --navy: #022a36;
  --teal: #3abaa9;
  --teal-dark: #1b7a6e;
  --white: #f4f6f5;
  --text: #1c2b33;
  --muted: #4f6169;
  --line: #d6e3e3;
  --soft: #eff6f5;
  --bg: #ffffff;
  --max: 46rem;
}

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

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

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

main.wrap { flex: 1; padding-top: 2.5rem; padding-bottom: 4rem; }

a { color: var(--teal-dark); }
a:hover { color: var(--navy); }

h1, h2, h3 { color: var(--navy); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 2rem; margin: 0 0 1.25rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }

/* Header */
.site-header { background: var(--navy); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.brand:hover { color: var(--white); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
nav a { text-decoration: none; color: #c3d6d8; font-weight: 500; padding-bottom: 2px; }
nav a:hover, nav a[aria-current="page"] { color: var(--teal); }
nav a[aria-current="page"] { border-bottom: 2px solid var(--teal); }

/* Home intro */
.intro { padding: 1rem 0 1.5rem; border-bottom: 4px solid; border-image: linear-gradient(90deg, var(--navy), var(--teal)) 1; margin-bottom: 1.5rem; }
.intro h1 { font-size: 2.25rem; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* Service list */
.cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.card {
  padding: 1.25rem 1.25rem 1rem;
  background: var(--soft);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
}
.card h2, .card h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.card h2 a, .card h3 a { text-decoration: none; color: var(--navy); }
.card h2 a:hover, .card h3 a:hover { color: var(--teal-dark); }
.card p { margin: 0 0 0.25rem; }

/* Call to action */
.cta { margin: 2.5rem 0 0; text-align: center; }
.button {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 6px;
}
.button:hover, .button:focus-visible { background: var(--navy); color: var(--white); }
.button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: center;
  column-gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--soft);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
}
.contact-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--navy);
  color: var(--teal);
  border-radius: 50%;
}
.contact-icon .icon { width: 1.4rem; height: 1.4rem; }
.contact-label { font-weight: 700; color: var(--navy); }
.contact-list a { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }

.back { margin-top: 2rem; font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--navy); color: #c3d6d8; font-size: 0.9rem; }
.site-footer a { color: var(--teal); }
.site-footer a:hover { color: var(--white); }
.site-footer p { margin: 1.25rem 0; }

@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
