/* Mabank Veterinary Clinic — first site.
 * Palette: a clinical teal for the trade, a warm clay against it, and
 * bone/sand neutrals. Colour is used in bands behind whole sections.
 */

:root {
  --teal-900: #0b262b;
  --teal-800: #0f3940;
  --teal-700: #12494f;
  --teal-600: #17605f;
  --clay-700: #8f3d1f;
  --clay-600: #a84a28;
  --clay-500: #c2653f;
  --bone: #fcf9f5;
  --sand: #f4ece1;
  --line: #e0d4c4;
  --ink: #17242a;
  --ink-soft: #40525a;
  --white: #ffffff;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --measure: 40rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  /* room for the fixed call bar on a phone */
  padding-bottom: 4.5rem;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }

p { margin: 0 0 1.1em; }

a { color: var(--clay-700); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--clay-500);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus {
  left: 0;
}

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

.wrap--measure { max-width: calc(var(--measure) + 2.5rem); }

/* ---------- Masthead: name on its own row, links in a band under it ---------- */

.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.masthead__name {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.9rem 1.25rem 0.8rem;
}

.wordmark {
  display: inline-block;
  text-decoration: none;
  color: var(--teal-800);
  font-family: var(--serif);
  line-height: 1.05;
}

.wordmark__line1 {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wordmark__line2 {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.navband {
  background: var(--teal-700);
}

.navband ul {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 0.6rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.navband a {
  display: block;
  padding: 0.7rem 0.7rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 3px solid transparent;
}

.navband a:hover,
.navband a:focus {
  border-bottom-color: var(--clay-500);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background-color: var(--teal-900);
  border-bottom: 6px solid var(--clay-600);
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

/* The scrim is measured, not judged: the flat 0.80 layer keeps white text
   above 8:1 even where the photograph is at its brightest. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(9, 32, 37, 0.86) 0%,
    rgba(9, 32, 37, 0.80) 45%,
    rgba(9, 32, 37, 0.88) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3.25rem 1.25rem 3rem;
  color: var(--white);
}

.hero__eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0d9cb;
}

.hero__headline {
  max-width: 22ch;
  font-size: clamp(2rem, 1.35rem + 3.1vw, 3.4rem);
  color: var(--white);
  margin-bottom: 0.5em;
}

.hero__standfirst {
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: #eef3f3;
  margin-bottom: 1.9rem;
}

.hero__action { margin: 0 0 0.9rem; }

.hero__alt {
  margin: 0;
  font-size: 0.98rem;
  color: #dde8e8;
}

.hero__alt a {
  color: var(--white);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  word-break: break-word;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--clay-600);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  border: 0;
  border-radius: 4px;
  padding: 0.95rem 1.5rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.btn:hover { background: var(--clay-700); }

.btn--call {
  font-size: 1.25rem;
  line-height: 1.25;
}

.btn__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.95;
}

.btn__number {
  display: block;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.btn--send {
  font-family: var(--sans);
  font-size: 1.05rem;
  cursor: pointer;
}

/* ---------- Bands ---------- */

.band { padding: 3.25rem 0; }

.band--bone {
  background: var(--bone);
}

.band--sand {
  background: var(--sand);
  border-top: 1px solid var(--line);
}

.band--teal {
  background: var(--teal-700);
  color: var(--white);
}

.band--teal .band__heading { color: var(--white); }

.lede {
  font-size: 1.15rem;
  color: var(--ink);
}

.band p { color: var(--ink-soft); }
.band--bone .lede { color: var(--ink); }

.cta-inline { margin-top: 1.6rem; }

.link-strong {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clay-700);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- Reach ---------- */

.reach {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 3.5rem;
}

.reach__item { min-width: 0; }

.reach__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bcd6d4;
  margin-bottom: 0.35rem;
}

.reach__value {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  color: var(--white);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  word-break: break-word;
}

.reach__value--email { font-size: clamp(1.05rem, 0.95rem + 0.7vw, 1.45rem); }

/* ---------- Form ---------- */

.form { margin-top: 1.75rem; }

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.field__note {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c9b9a4;
  border-radius: 3px;
  padding: 0.7rem 0.75rem;
}

.field textarea { resize: vertical; }

.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.footer {
  background: var(--teal-900);
  color: #dbe6e6;
  padding: 2.25rem 0;
}

.footer__inner { text-align: left; }

.footer__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer__lines {
  margin: 0;
  color: #dbe6e6;
}

.footer__lines a {
  color: var(--white);
  text-underline-offset: 3px;
  word-break: break-word;
}

.footer__dot { padding: 0 0.4rem; }

/* ---------- Fixed call bar (phones) ---------- */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--clay-600);
  border-top: 3px solid var(--clay-700);
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
}

.callbar__btn {
  display: block;
  text-align: center;
  color: var(--white);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.6rem 0.5rem;
}

@media (min-width: 46rem) {
  body { padding-bottom: 0; }
  .callbar { display: none; }

  .masthead {
    position: relative;
  }

  .hero__inner { padding: 5.5rem 1.25rem 5rem; }

  .band { padding: 4.5rem 0; }

  .footer { padding: 3rem 0; }
}
