/* ===== Colours and fonts used across the whole site ===== */
:root {
  --navy: #13294b;
  --sand: #f4e9d8;
  --orange: #e8772e;
  --text: #222222;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background-color: var(--sand);
  line-height: 1.6;
}

/* ===== Header and navigation ===== */
header {
  background-color: var(--navy);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
}

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

/* ===== Main content ===== */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Different heading styles (required by the rubric) */
h1 {
  font-family: Georgia, serif;
  color: var(--navy);
  font-size: 2.4rem;
}

h2 {
  color: var(--orange);
  font-size: 1.5rem;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.25rem;
}

/* Different paragraph style for the tagline */
.tagline {
  font-size: 1.2rem;
  font-style: italic;
}

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

/* ===== Home page ===== */
.hero {
  text-align: center;
}

.intro {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.intro img {
  width: 300px;
  max-width: 100%;
  border-radius: 8px;
}

.intro div {
  flex: 1;
  min-width: 250px;
}

.button {
  display: inline-block;
  background-color: var(--orange);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
}

/* ===== Table ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

th,
td {
  padding: 0.6rem;
  border: 1px solid #cccccc;
  text-align: left;
}

th {
  background-color: var(--navy);
  color: white;
}

/* ===== Form ===== */
form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
}

label {
  margin-top: 1rem;
  font-weight: bold;
}

input,
select,
textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
}

button {
  margin-top: 1rem;
  background-color: var(--orange);
  color: white;
  border: none;
  padding: 0.7rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.error {
  color: #c0392b;
  margin: 0.5rem 0 0;
}

/* ===== Footer ===== */
footer {
  background-color: var(--navy);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
