/* =========================================================
   Duggan Veterinary: maintenance holding page
   Palette sampled from the live site:
   navy #18136e, red #ee2a4a, teal #2ec4a5, light grey #f6f6f7
   ========================================================= */

:root {
  --navy: #18136e;
  --navy-dark: #100c52;
  --red: #ee2a4a;
  --teal: #2ec4a5;
  --grey: #f6f6f7;
  --grey-200: #e7e7ea;
  --ink: #18136e;
  --ink-soft: #46467a;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, address, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.wrap { width: min(1200px, 100% - 3rem); margin-inline: auto; }

/* ---------- Header / logo ---------- */
.header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(24, 19, 110, .08);
  padding: 1rem 0;
}

.header .wrap {
  display: flex;
  justify-content: center;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo-top {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -.01em;
  color: var(--navy);
}
.logo-cross {
  width: .72em;
  height: .72em;
  margin-right: .06em;
  fill: var(--teal);
}
.logo-sub {
  margin-top: .2rem;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .34em;
  color: var(--red);
  white-space: nowrap;
}
.logo-sub small {
  margin-left: .35em;
  font-size: .5rem;
  letter-spacing: 0;
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.main { flex: 1; }

.hero {
  background: var(--grey);
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}
.hero-copy { text-align: center; }
.hero-copy p:last-child { margin-inline: auto; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.2rem;
  padding: .35rem 1rem;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  background: #fff;
  border: 2px solid var(--red);
  border-radius: 999px;
}
.pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin-bottom: 1.4rem;
  color: var(--navy);
}
h1 span { color: var(--red); }

.lead {
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  margin-bottom: 1rem;
}
.hero-copy p:last-child { max-width: 56ch; color: var(--ink-soft); }

/* ---------- Banner ---------- */
.banner {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: clamp(1.6rem, 4vw, 2.6rem) 0;
}
.banner p {
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  letter-spacing: .01em;
}

/* ---------- Contact ---------- */
.contact { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.card {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--grey);
  border-left: 6px solid var(--navy);
}
.card:nth-child(2) { border-left-color: var(--red); }

.card h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--navy);
}
.flag-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

address { font-style: normal; margin-bottom: 1.1rem; color: var(--ink-soft); }

.links li { display: flex; flex-wrap: wrap; gap: .2rem 1rem; padding: .3rem 0; }
.links span {
  min-width: 4.2rem;
  font-weight: 700;
  color: #1c9f85;
}
.links a {
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.links a:hover, .links a:focus-visible { color: var(--red); border-color: var(--red); }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: #fff;
  padding: 1.3rem 0;
  font-size: .9rem;
  text-align: center;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
}

@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .wrap { width: calc(100% - 2rem); }
  .logo-top { font-size: 2.1rem; }
  .logo-sub { font-size: .68rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .card h2 { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; }
}
