:root {
	--primary: #CEC6B3;
  --secondary: #367B76;
  --secondary-darker: #15282F;
  --secondary-hover: #213135;
  --tertiary: #E37C37;
}

/* ============================= */
/* Base Styles */
/* ============================= */

body {
	background-color: var(--tertiary);
  font-family: "Noto Sans", sans-serif;
  color: #000; /* Ensures readable default text */
}

figcaption {
	text-align: center;
}

section {
	padding: 1.2em;
}

form {
	padding: 1.2em;
}

/* ============================= */
/* Footer */
/* ============================= */

footer {
	background-color: var(--secondary-darker);
  padding: 0.5em;
  color: #ffffff; /* Improved contrast */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Ensure footer links are accessible */
footer a {
  color: #ffffff;
  text-decoration: underline;
}

footer a:focus,
footer a:hover {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* ============================= */
/* Navigation */
/* ============================= */

#navigation {
	display: flex;
  justify-content: space-around;
  flex-direction: column;
}

#logo {
	width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
}

#banner {
	width: 100%;
  max-width: 1000px;
  padding: 1em;
}

/* ============================= */
/* Skip Link */
/* ============================= */

#skip {
  background: #000;
  position: absolute;
  left: -9999px;
  top: 0;
  text-decoration: none;
  color: #fff;
  padding: 0.5em 1em;
  z-index: 1000;
}

#skip:focus {
  left: 10px;
  top: 10px;
}

/* ============================= */
/* Form Accessibility */
/* ============================= */

#owner-info input,
#pet-info input,
#other-info input {
	width: 100%;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
  font-size: 1em;
  height: 2em;
  border: 2px solid var(--secondary);
}

/* Visible focus for ALL inputs */
#owner-info input:focus,
#pet-info input:focus,
#other-info input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}

#owner-info label,
#pet-info label,
#other-info label {
	font-weight: bold;
}

#more-info {
	width: 100%;
}

/* ============================= */
/* Layout Container */
/* ============================= */

.container {
	background-color: var(--primary);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================= */
/* Navigation Links */
/* ============================= */

.nav-link {
	background-color: var(--secondary);
  color: #ffffff; /* Contrast fixed */
  font-size: 1.3em;
  padding: 0.5em 1em;
  text-decoration: underline; /* Non‑color indicator */
  font-weight: bold;
}

/* Hover + Focus + Active parity */
.nav-link:hover,
.nav-link:focus,
.active {
	background-color: var(--secondary-hover);
  color: #ffffff;
  text-decoration: underline;
}

/* Visible keyboard focus */
.nav-link:focus {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* ============================= */
/* Headings */
/* ============================= */

.heading {
	font-size: 1.5em;
  font-weight: bold;
}

/* ============================= */
/* Required Field Indicator */
/* ============================= */

.fake-require {
	color: #B00020; /* AA-compliant red */
  font-weight: bold;
}

/* ============================= */
/* Utility Classes */
/* ============================= */

.img-fluid {
	width: 100%;
}

.img-center {
	display: block;
  margin: 0 auto;
}

.text-center {
	text-align: center;
}

.pt-1 {
	padding-top: 1em;
}

/* ============================= */
/* Buttons */
/* ============================= */

.btn {
	background-color: var(--secondary-darker);
  padding: 0.5em 1em;
  border-radius: 0.3em;
  text-transform: uppercase;
  display: inline-block;
  cursor: pointer;
  color: #ffffff;
  border: none;
  text-decoration: none;
}

.btn:hover,
.btn:focus {
  background-color: var(--secondary-hover);
}

.btn:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* ============================= */
/* Global Focus Consistency */
/* ============================= */

a:focus,
button:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* ============================= */
/* Responsive */
/* ============================= */

@media (min-width: 768px) {
	#navigation {
    flex-direction: row;
  }
}