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

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

html {
  font-size: 100%; /* WCAG 1.4.4 Resize Text */
}

body {
	background-color: var(--tertiary);
  font-family: "Noto Sans", sans-serif;

  /* FIXED: Previously text was same color as background */
  color: var(--secondary-darker); /* WCAG 1.4.3 Contrast */
  
  line-height: 1.5; /* WCAG 1.4.12 Text Spacing */
}

figcaption {
	text-align: center;
}

section {
	padding: 1.2em;
}

form {
	padding: 1.2em;
}

footer {
	background-color: var(--secondary-darker);
  padding: 0.5em;
  color: var(--primary);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===================================================== */
/* 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 {
  background: #fff;
  position: absolute;
  left: -9999px;
  text-decoration: none;
  color: #000;
  padding: 0.5em;
  opacity: 0;
}

/* Improved skip visibility */
#skip:focus {
  position: static;
	opacity: 1;
  outline: 3px solid #000; /* WCAG 2.4.7 */
}

/* ===================================================== */
/* Forms */
/* ===================================================== */

#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);
}

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

#more-info {
	width: 100%;
}

/* Focus styling for accessibility */
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
  border-color: #000; /* WCAG 1.4.11 */
}

/* ===================================================== */
/* Containers */
/* ===================================================== */

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

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

.nav-link {
	background-color: var(--secondary);
  color: var(--secondary-darker);
  font-size: 1.3em;
  padding: 0.5em 1em;
  text-decoration: none;
  font-weight: bold;
}

/* Hover + Active */
.nav-link:hover,
.active {
	background-color: var(--tertiary);
}

/* Focus visible */
.nav-link:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* ===================================================== */
/* FAQ Blocks */
/* ===================================================== */

.faqs {
	background-color: var(--secondary);
  padding: 0.5em;
  margin: 1em auto;
  color: #000; /* WCAG 1.4.3 Contrast on teal background */
}

.faqs h2 {
	text-decoration: underline;
}

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

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

.img-fluid {
	width: 100%;
}

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

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

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

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

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