/* Makes element sizing include padding and borders. */

* {
  box-sizing: border-box;
}

/* Removes the default page margin and sets the site's main font and colors. */

body {
  margin: 0;
  color: rgb(58, 39, 29);
  background-color: rgb(255, 249, 240);
  font-family: Arial, Helvetica, sans-serif;
}

/* Prevents images from overflowing their containers. */

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

/* Creates the red restaurant header and centers its contents. */

header {
  padding-top: 24px;
  background-color: rgb(190, 39, 45);
  color: rgb(255, 255, 255);
  text-align: center;
}

/* Styles the restaurant name. */

header h1 {
  margin: 0 0 6px;
  font-size: 36px;
  text-transform: uppercase;
}

/* Controls the tagline's spacing. */
/* header > p targets paragraphs that are direct children of the header. :first-of-type: This pseudo-class restricts the style so that it only applies to the very first paragraph inside the header. */
/* margin: 0 0 18px;: cleared any default spacing on the top, left, and right sides; adds 18 pixels of space beneath the paragraph. */


header > p:first-of-type {
  margin: 0 0 18px;
}

/* Uses Flexbox to arrange the navigation links in one centered row. */

nav ul {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Styles the navigation links. */

nav a {
  color: rgb(255, 255, 255);
  font-weight: bold;
  text-decoration: none;
}

/* Creates the green information bar beneath the navigation. */

header > p:last-child {
  margin: 18px 0 0;
  padding: 10px 20px;
  background-color: rgb(28, 128, 65);
  font-weight: bold;
}

/* Makes the telephone link match the information bar. */

header > p:last-child a {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

/* Makes the hero section and photograph span the full page width. */

main > section:first-child img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
}

/* Uses Flexbox to arrange the heading and four menu categories. */

#menu {
  display: flex;
  flex-wrap: wrap;
  gap: 42px 60px;
  width: 60%;
  max-width: 900px;
  margin: 0 auto;
  padding: 58px 0 80px;
}

/* Makes the Menu heading occupy its own full row. */

#menu > h2 {
  flex-basis: 100%;
  margin: 0;
  color: rgb(190, 39, 45);
  font-size: 30px;
  text-align: center;
}

/* Gives each menu category approximately half of the available row. */

#menu > section {
  flex: 1 1 40%;
}

/* Styles the category headings and adds the dashed red line. */

#menu h3 {
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px dashed rgb(190, 39, 45);
  color: rgb(28, 128, 65);
  font-size: 18px;
}

/* Removes the lists' default bullets and indentation. */

#menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Adds space between individual menu items. */

#menu li {
  margin-bottom: 12px;
}

/* Creates the dark footer and centers its contents. */

footer {
  padding: 34px 20px;
  background-color: rgb(61, 42, 31);
  color: rgb(255, 249, 240);
  text-align: center;
}

/* Removes the address element's default italic style. */

footer address {
  font-style: normal;
}

/* For spacing between the footer lines. */

footer p {
  margin: 12px 0;
}

/* Makes the telephone link match the footer text. */

footer a {
  color: rgb(255, 249, 240);
  text-decoration: none;
}