/* Pace Veterinary Physiotherapy
   Gold: #b99151 | Green: #6F7F6A | Black / cream
   Permanent dark theme. Centred, fluid layout.
*/

:root {
  --black: #000000;
  --black-soft: #111111;
  --gold: #b99151;
  --gold-hover: #c9a227;
  --green: #6f7f6a;
  --cream: #f2efe6;
  --cream-dim: #c9c4b8;
  --border: #222222;
  --bg: #000000;
  --text: #f2efe6;
  --text-muted: #c9c4b8;
  --card-bg: #111111;
  --header-bg: rgba(0, 0, 0, 0.97);
  --max: 44rem;
  --pad: clamp(1.1rem, 4.2vw, 1.85rem);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: clamp(1rem, 0.96rem + 0.22vw, 1.08rem);
  overflow-x: hidden;
}

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

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

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
}

.brand-banner {
  background: #000;
  padding: 0.35rem var(--pad) 0.15rem;
}

.brand-banner a {
  display: block;
  width: min(100%, 50rem);
  margin-inline: auto;
}

.brand-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.nav-bar {
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.nav-container {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  min-height: 4.15rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(0.9rem, 3vw, 2rem);
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.45rem 0.1rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease;
}

nav a:hover,
nav a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gold);
  font-size: 1.15rem;
  cursor: pointer;
}

main {
  flex: 1;
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  padding: clamp(1.6rem, 4vw, 2.6rem) 0 clamp(2.6rem, 6vw, 4rem);
  text-align: center;
}

h2 {
  color: var(--gold);
  font-size: clamp(1.28rem, 1.1rem + 0.7vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 1.2px;
  margin-bottom: 1.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(185, 145, 81, 0.28);
  text-align: center;
}

h3 {
  color: var(--gold);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.18rem);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: 1.6rem 0 0.55rem;
  text-align: center;
}

p { margin-bottom: 1.05rem; color: var(--text); text-align: left; }
section ul {
  margin: 0.7rem auto 1.2rem;
  padding: 0 0 0 1.2rem;
  max-width: 36rem;
  text-align: left;
}
li { margin-bottom: 0.4rem; color: var(--text); }

section {
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

section.visible {
  opacity: 1;
  transform: none;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.3rem 1.25rem;
  text-align: left;
}

.card h3 { margin-top: 0; margin-bottom: 0.5rem; text-align: center; }
.card p { font-size: 0.96rem; margin-bottom: 0; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.4rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.7rem 1.35rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  min-height: 2.75rem;
}

.btn:hover { background: var(--gold); color: #000; }

.contact-details { margin: 1.4rem auto 1.8rem; line-height: 1.9; text-align: center; }
.contact-details strong { color: var(--gold); font-weight: 500; }
.contact-details a { color: var(--text); text-decoration: none; }
.contact-details a:hover { color: var(--gold); }

.contact-form { width: 100%; max-width: 28rem; margin-inline: auto; text-align: center; }
.contact-form label { display: block; margin-bottom: 0.3rem; color: var(--gold); font-size: 0.88rem; text-align: center; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.contact-form button {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 0.8rem 1.6rem;
  min-height: 2.75rem;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.95rem;
  width: 100%;
}

footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem var(--pad);
  font-size: 0.85rem;
  color: #888;
}
footer .footer-inner { width: min(100%, var(--max)); margin-inline: auto; }
footer a { color: var(--gold); text-decoration: none; }
footer p { margin-bottom: 0.3rem; }

.content-image {
  width: 100%;
  max-width: 32rem;
  margin: 1.4rem auto 1.7rem;
  border-radius: 8px;
  object-fit: cover;
}

@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-form button { width: auto; display: inline-block; }
}

@media (max-width: 620px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav a { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  section { opacity: 1; transform: none; transition: none; }
}

.form-status {
  max-width: 28rem;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  text-align: center;
}
.form-status.ok { background: #14301f; color: #cfe9d6; }
.form-status.bad { background: #3a1616; color: #f3cfcf; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
