/* ==========================================================================
   BOILER PIZZA  -  MAIN STYLESHEET
   --------------------------------------------------------------------------
   Written mobile first: the basic rules are for phones, the @media blocks
   add the layout for bigger screens.

   Breakpoints
     37.5rem (600px)    small tablets: two cards next to each other
     62rem   (992px)    laptops and desktops: full navigation, two columns
     75rem   (1200px)   wide screens: more space at the sides

   Contents
     1.  Brand variables (colors, font, sizes)
     2.  Font
     3.  Base styles
     4.  Helpers (container, hidden text, sections, page title)
     5.  Buttons
     6.  Header and navigation
     7.  Footer
     8.  Banners and wide photos
     9.  Cards (pizza cards and menu cards)
     10. Forms and boxes
     11. Home page
     12. Menu page
     13. Order page
     14. Reservation and contact page
     15. About page
     16. Jobs page
     17. Less motion for users who ask for it
   ========================================================================== */


/* ==========================================================================
   1. BRAND VARIABLES
   The first four colors are overwritten by JS/main.js with the values from
   JS/site-config.js. Changing the colors there is enough to rebrand the site.
   ========================================================================== */

:root {
  /* Colors from the config */
  --primary-color: #B00D17;        /* brand red */
  --accent-color: #2E6B34;         /* green for success messages */
  --text-color: #121212;
  --background-color: #FFFFFF;

  /* Colors that main.js calculates from the ones above */
  --primary-dark: #840A11;         /* hover state of red buttons */
  --on-primary-color: #FFFFFF;     /* text on top of the brand color */
  --on-accent-color: #FFFFFF;      /* text on top of the accent color */

  /* Fixed colors */
  --muted-color: #666666;          /* grey text: subtitles, descriptions, labels */
  --line-color: #D9D9D9;           /* thin lines */
  --border-color: #808080;         /* borders of fields, cards and boxes */
  --surface-color: #F5F5F5;        /* light grey areas */
  --error-color: #B00020;

  /* Font */
  --font: "Inter", Arial, Helvetica, sans-serif;

  /* Sizes */
  --container-width: 90rem;
  --header-height: 4.5rem;
  --space-section: 3.5rem;
}


/* ==========================================================================
   2. FONT
   The font files are in CSS/fonts, so the site needs no outside service.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   3. BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  /* Links to a place on the page stop below the sticky header. */
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

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

a {
  color: inherit;
}

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

address {
  font-style: normal;
}

/* Clearly visible outline for keyboard users */
:focus-visible {
  outline: 3px solid var(--text-color);
  outline-offset: 3px;
}

/* The hidden attribute always wins, also over display: flex or grid. */
[hidden] {
  display: none !important;
}

@media (min-width: 62rem) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }
}


/* ==========================================================================
   4. HELPERS
   ========================================================================== */

/* Centers the content and keeps a margin at the screen edges.
   Only left and right padding are set here, so top and bottom stay free
   for other classes like .section. */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Vertical space of a page section */
.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

/* Space below the last block of a page, before the footer */
.section-bottom {
  padding-bottom: var(--space-section);
}

/* Centered heading of a section, for example "Our pizzas" */
.section-title {
  margin-bottom: 2rem;
  text-align: center;
}

/* Centered button below a section */
.section-action {
  margin: 2.5rem 0 0;
  text-align: center;
}

/* Title of a page: big centered heading with a grey line of text below */
.page-head {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  text-align: center;
}

.page-head h1 {
  margin-bottom: 0.75rem;
}

.page-head p {
  margin: 0;
  color: var(--muted-color);
}

/* Text that only screen readers should get */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* First link on every page, only visible when it has keyboard focus */
.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--background-color);
  background-color: var(--text-color);
}

.skip-link:focus {
  top: 1rem;
}

/* Things that only work with JavaScript (cart, plus buttons, newsletter)
   are hidden while JavaScript is off. Every page adds the class "js" to <html>
   with one line of script in its <head>. */
html:not(.js) .needs-js {
  display: none;
}

/* Note for visitors without JavaScript */
.noscript-note {
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

@media (min-width: 37.5rem) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 62rem) {
  :root {
    --space-section: 5rem;
  }

  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  .page-head {
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 75rem) {
  .container {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}


/* ==========================================================================
   5. BUTTONS
   .button             red button (default)
   .button-light       white button for red backgrounds
   .button-outline     white button with a black border
   .button-small       less padding
   The :hover rules are the "rollover" effect of the buttons.
   ========================================================================== */

.button {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--on-primary-color);
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button-light {
  color: var(--primary-color);
  background-color: var(--on-primary-color);
  border-color: var(--on-primary-color);
}

.button-light:hover {
  color: var(--on-primary-color);
  background-color: transparent;
  border-color: var(--on-primary-color);
}

.button-outline {
  color: var(--text-color);
  background-color: var(--background-color);
  border-color: var(--text-color);
}

.button-outline:hover {
  color: var(--background-color);
  background-color: var(--text-color);
  border-color: var(--text-color);
}

.button-small {
  padding: 0.65rem 1rem;
}

.button-wide {
  width: 100%;
}


/* ==========================================================================
   6. HEADER AND NAVIGATION
   Without JavaScript the navigation is simply always visible.
   With JavaScript (class "js" on <html>) small screens get a button that
   opens and closes it.
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--background-color);
  border-bottom: 1px solid var(--line-color);
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  max-width: 90rem;
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 0.75rem;
}

/* ----- Word mark "BOILER PIZZA" ----- */
.logo {
  margin-right: auto;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ----- Button that opens the navigation on small screens ----- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.6rem;
  background-color: transparent;
  border: 1px solid var(--text-color);
  border-radius: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background-color: var(--text-color);
}

/* ----- Navigation: a styled list of links ----- */
.main-nav {
  width: 100%;
}

/* Small screens with JavaScript: a panel below the header, closed at first */
.js .main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  padding: 0 0.75rem 0.75rem;
  background-color: var(--background-color);
  border-bottom: 1px solid var(--line-color);
}

.js .main-nav.is-open {
  display: block;
}

.main-nav a {
  display: block;
  padding: 0.8rem 0;
  font-size: 0.9375rem;
  text-decoration: none;
  border-top: 1px solid var(--line-color);
}

.main-nav a:hover {
  text-decoration: underline;
}

/* The page you are on is bold and underlined */
.main-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* ----- Cart ----- */
.header-tools {
  display: flex;
  align-items: center;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--text-color);
}

.cart-link svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* The small number at the cart. It is only shown when something is in the cart. */
.cart-count {
  display: none;
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4rem;
  text-align: center;
  color: var(--on-primary-color);
  background-color: var(--primary-color);
  border-radius: 1rem;
}

.cart-link.has-items .cart-count {
  display: block;
}

/* ----- Desktop: word mark, navigation and tools in one row ----- */
@media (min-width: 62rem) {
  .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem;
  }

  .logo {
    margin-right: 0;
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav,
  .js .main-nav {
    position: static;
    display: block;
    width: auto;
    padding: 0;
    border-bottom: 0;
  }

  .main-nav ul {
    display: flex;
    gap: 0.25rem;
  }

  .main-nav a {
    padding: 0.5rem 0.6rem;
    font-size: 0.875rem;
    white-space: nowrap;
    border-top: 0;
  }
}

@media (min-width: 75rem) {
  .header-inner {
    padding: 0 3rem;
  }

  .main-nav ul {
    gap: 0.9rem;
  }

  .main-nav a {
    font-size: 0.9375rem;
  }
}


/* ==========================================================================
   7. FOOTER
   Left: newsletter, social media and copyright.
   Right: red block with the contact details.
   ========================================================================== */

.site-footer {
  display: grid;
}

.footer-left {
  padding: 2.5rem 1rem;
}

.footer-title {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

/* E-mail field with the arrow button directly next to it */
.newsletter-row {
  display: flex;
  max-width: 21.5rem;
}

.newsletter-row input {
  flex: 1;
  min-width: 0;
  border-color: var(--text-color);
}

.newsletter-row button {
  width: 2.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  background-color: var(--background-color);
  border: 1px solid var(--text-color);
  border-left: 0;
  border-radius: 0;
  cursor: pointer;
}

.newsletter-row button:hover {
  color: var(--background-color);
  background-color: var(--text-color);
}

.social-list {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0;
}

.social-list img {
  width: 2rem;
  height: 2rem;
}

.footer-small {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  color: var(--muted-color);
}

.footer-right {
  padding: 3.5rem 1rem;
  font-size: 0.875rem;
  text-align: center;
  color: var(--on-primary-color);
  background-color: var(--primary-color);
}

.footer-right :focus-visible {
  outline-color: var(--on-primary-color);
}

.footer-right a {
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

.footer-right p {
  margin: 0 0 1.25rem;
}

.footer-right p:last-child {
  margin-bottom: 0;
}

.footer-email {
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ----- Opening hours table: days on the left, times on the right ----- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table th,
.hours-table td {
  padding: 0.2rem 0;
  font-weight: 400;
  white-space: nowrap;
}

.hours-table th {
  padding-right: 1.5rem;
  text-align: left;
}

.hours-table td {
  text-align: right;
  color: var(--muted-color);
}

/* In the red footer block the table is centered and white */
.footer-right .hours-table {
  width: auto;
  margin: 0 auto 1.25rem;
}

.footer-right .hours-table td {
  color: var(--on-primary-color);
}

@media (min-width: 62rem) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-left {
    padding: 3rem;
  }

  .footer-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 1.5rem;
  }
}


/* ==========================================================================
   8. BANNERS AND WIDE PHOTOS
   ========================================================================== */

/* Red block over the full width with centered text */
.banner {
  padding: 3.5rem 0;
  text-align: center;
  color: var(--on-primary-color);
  background-color: var(--primary-color);
}

.banner :focus-visible {
  outline-color: var(--on-primary-color);
}

.banner-text {
  max-width: 56rem;
  margin: 0 auto;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.banner .button {
  margin-top: 1.5rem;
}

/* Photo over the full width of the screen */
.wide-photo {
  width: 100%;
}

@media (min-width: 62rem) {
  .banner {
    padding: 5.5rem 0;
  }

  .banner-text {
    font-size: 2.125rem;
  }

  /* On big screens the photo becomes a flat strip.
     object-fit: cover fills the strip and cuts off what does not fit. */
  .wide-photo {
    max-height: 30rem;
    aspect-ratio: 24 / 7;
    object-fit: cover;
  }

  /* Cut only at the top, so the people at the lower edge stay in the picture. */
  .wide-photo-people {
    object-position: center bottom;
  }
}


/* ==========================================================================
   9. CARDS
   .card-grid     one, two or three columns depending on the screen
   .pizza-card    home page: square photo with the name below
   .menu-card     menu page: photo, name, price and ingredients
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* ----- Home page ----- */
.pizza-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--line-color);
}

.pizza-card-title {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

/* ----- Menu page ----- */
.menu-card-image {
  width: 100%;
  margin-bottom: 0.75rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--line-color);
}

/* The name floats to the left and the price to the right, so both share one line. */
.menu-card-title {
  float: left;
  max-width: 75%;
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
}

.menu-card-price {
  float: right;
  font-weight: 700;
  line-height: 1.2;
}

/* clear: both ends the floating, the ingredients start on a new line. */
.menu-card-description {
  clear: both;
  margin: 0;
  padding-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--muted-color);
}

.menu-card-info {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted-color);
}

.menu-card-button {
  margin-top: 0.9rem;
}

/* For a moment after a click the button turns green and says "Added" */
.menu-card-button.is-added,
.menu-card-button.is-added:hover {
  color: var(--on-accent-color);
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

@media (min-width: 37.5rem) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* The small cards on the home page fit three in a row already on tablets. */
  .card-grid-three {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 62rem) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}


/* ==========================================================================
   10. FORMS AND BOXES
   ========================================================================== */

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-color);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-color);
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 0;
}

/* Example text inside an empty field */
::placeholder {
  color: #767676;
  opacity: 1;
}

/* Select boxes get our own arrow as a background picture */
select {
  padding-right: 2.25rem;
  background-image: url("../Images/arrow-down.png");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 0.8rem;
  appearance: none;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error-color);
  border-width: 2px;
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted-color);
}

/* Message below a field. Empty messages take no space. */
.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--error-color);
}

.field-error:empty {
  display: none;
}

/* Line below a form: thank you text or a note about mistakes */
.form-status {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: var(--on-accent-color);
  background-color: var(--accent-color);
}

.form-status.is-error {
  color: var(--error-color);
  background-color: var(--background-color);
  border: 2px solid var(--error-color);
}

/* Two fields next to each other on wider screens */
.form-grid {
  display: grid;
  gap: 0 2rem;
}

@media (min-width: 37.5rem) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* A field (or the button) that uses the full width of the form */
  .field-wide {
    grid-column: 1 / -1;
  }
}

/* Two columns for the form pages: form on the left, photo and box on the right */
.two-columns {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 62rem) {
  .two-columns {
    grid-template-columns: 8fr 7fr;
    gap: 5rem;
    align-items: start;
  }
}

/* Box with a thin border, for example "Opening hours" */
.info-box {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.info-box h2 {
  margin-bottom: 0.6rem;
  font-size: 1.125rem;
}

.info-box p {
  margin: 0 0 0.4rem;
  color: var(--muted-color);
}

.info-box .hours-table {
  margin-bottom: 0.4rem;
}

/* ----- File upload: the real input is hidden, its label is the dashed box ----- */
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.field .upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 5.5rem;
  margin-bottom: 0;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  text-align: center;
  color: var(--text-color);
  background-color: var(--background-color);
  border: 1px dashed var(--border-color);
  cursor: pointer;
}

.upload-box:hover {
  border-style: solid;
}

.upload-file {
  color: var(--muted-color);
}

.file-input:focus-visible + .upload-box {
  outline: 3px solid var(--text-color);
  outline-offset: 3px;
}

/* ----- Confirmation window (order page) ----- */
.dialog {
  width: calc(100% - 2rem);
  max-width: 32rem;
  padding: 2rem 1.5rem;
  color: var(--text-color);
  background-color: var(--background-color);
  border: 4px solid var(--primary-color);
}

.dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.65);
}


/* ==========================================================================
   11. HOME PAGE
   ========================================================================== */

/* ----- Hero: red logo block on the left, big photo on the right ----- */
.hero {
  display: grid;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  color: var(--on-primary-color);
  background-color: var(--primary-color);
}

/* White circle with the letter and the small text inside */
.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 11rem;
  height: 11rem;
  border: 3px solid var(--on-primary-color);
  border-radius: 50%;
}

.hero-letter {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}

.hero-logo-text {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-photo {
  width: 100%;
  height: 15rem;
  object-fit: cover;
}

/* ----- Intro: headline and text on the left, two photos on the right ----- */
.intro {
  display: grid;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.intro h1 {
  font-size: 1.9rem;
}

.intro-text p {
  max-width: 37rem;
  margin-bottom: 1.5rem;
  color: var(--muted-color);
}

.intro-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.intro-photos img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

@media (min-width: 62rem) {
  .hero {
    grid-template-columns: 1fr 2fr;
  }

  .hero-logo {
    width: 16.25rem;
    height: 16.25rem;
  }

  .hero-letter {
    font-size: 6rem;
  }

  .hero-logo-text {
    font-size: 0.8125rem;
  }

  .hero-photo {
    height: auto;
    max-height: 40rem;
    aspect-ratio: 3 / 2;
  }

  .intro {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .intro h1 {
    font-size: 2.25rem;
  }

  .intro-photos {
    gap: 1.5rem;
    width: 100%;
    max-width: 36.5rem;
    margin-left: auto;
  }
}


/* ==========================================================================
   12. MENU PAGE
   ========================================================================== */

/* ----- Filter: Pizza / Drinks / Dessert, a styled list of links ----- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.tab {
  display: block;
  padding: 0.9rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--text-color);
  background-color: var(--background-color);
  border: 1px solid var(--text-color);
}

.tab:hover {
  background-color: var(--surface-color);
}

/* The category that is shown right now */
.tab[aria-current="true"] {
  color: var(--on-primary-color);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

@media (min-width: 37.5rem) {
  .tabs {
    gap: 0.75rem;
  }

  .tab {
    min-width: 6.5rem;
    padding: 0.9rem 1.5rem;
  }
}

.menu-category {
  padding-bottom: var(--space-section);
}

.menu-category-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* With JavaScript only one category is shown at a time and the filter says
   which one, so its heading is only kept for screen readers. */
.is-filtered .menu-category-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}


/* ==========================================================================
   13. ORDER PAGE
   ========================================================================== */

/* ----- Switch: Pickup / Delivery ----- */
.order-type {
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
}

.order-type-options {
  display: inline-flex;
  border: 1px solid var(--text-color);
}

/* The real radio buttons are hidden, their labels look like buttons. */
.order-type input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.order-type label {
  min-width: 8.5rem;
  padding: 0.9rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.order-type input:checked + label {
  color: var(--on-primary-color);
  background-color: var(--primary-color);
}

.order-type input:focus-visible + label {
  outline: 3px solid var(--text-color);
  outline-offset: 3px;
}

.order-type input:disabled + label {
  text-decoration: line-through;
  cursor: not-allowed;
}

.order-type-note {
  margin: 0.75rem 0 0;
  font-weight: 600;
}

/* ----- Layout: dishes on the left, order box on the right ----- */
.order-layout {
  display: grid;
  gap: 2.5rem;
  padding-bottom: var(--space-section);
}

.order-category {
  margin-bottom: 2rem;
}

.order-category-title {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

/* ----- One dish in the list ----- */
.order-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-color);
}

.order-item-image {
  width: 3.5rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--line-color);
}

.order-item-name {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
}

.order-item-description {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-color);
}

/* Price and plus button: below each other on phones, side by side on desktop */
.order-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.order-item-price {
  margin: 0;
  font-weight: 700;
}

/* ----- Plus and minus buttons with the quantity in between ----- */
.stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stepper-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--on-primary-color);
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 0;
  cursor: pointer;
}

.stepper-button:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.stepper-button-minus {
  color: var(--text-color);
  background-color: var(--background-color);
  border-color: var(--text-color);
}

.stepper-button-minus:hover {
  color: var(--background-color);
  background-color: var(--text-color);
  border-color: var(--text-color);
}

.stepper-quantity {
  min-width: 1.25rem;
  font-weight: 700;
  text-align: center;
}

/* ----- Box "Your order" ----- */
.order-box {
  padding: 1.5rem;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
}

.order-box h2 {
  font-size: 1.25rem;
}

.order-box h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
}

/* The fields in the box are a little more compact, so the button
   "Place order" stays in view on a laptop screen. */
.order-box .field {
  margin-bottom: 0.8rem;
}

.order-box input {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

#summary-empty {
  margin-bottom: 0;
  color: var(--muted-color);
}

/* One line: "2x PEPPERONI", small plus and minus buttons, price */
.summary-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.875rem;
}

.summary-line-name {
  text-transform: uppercase;
}

.summary-line-amount {
  min-width: 3rem;
  text-align: right;
}

.summary-line .stepper {
  gap: 0.25rem;
}

.summary-line .stepper-button {
  width: 1.9rem;
  height: 1.9rem;
  font-size: 1.1rem;
}

.summary-totals {
  margin: 0.75rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.summary-totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
  font-size: 0.875rem;
}

.summary-totals dt,
.summary-totals dd {
  margin: 0;
}

.summary-totals .summary-total {
  padding-top: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.summary-note {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--background-color);
  border-left: 6px solid var(--primary-color);
}

/* ----- Bar at the bottom of small screens: jump to the order ----- */
.order-bar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--background-color);
  background-color: var(--text-color);
}

.order-bar p {
  margin: 0;
  font-weight: 600;
}

.order-bar :focus-visible {
  outline-color: var(--background-color);
}

/* ----- Confirmation window after the order ----- */
.dialog form {
  margin-top: 1.25rem;
}

.dialog-number-label {
  margin-bottom: 0;
  font-weight: 600;
}

.dialog-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (min-width: 62rem) {
  .order-layout {
    grid-template-columns: 7fr 4fr;
    gap: 3.75rem;
    align-items: start;
  }

  .order-item {
    grid-template-columns: 5.5rem 1fr auto;
    gap: 1.25rem;
  }

  .order-item-image {
    width: 5.5rem;
  }

  .order-item-side {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  /* The order box stays in view while the list of dishes scrolls. */
  .order-box {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    max-height: calc(100vh - var(--header-height) - 2rem);
    overflow-y: auto;
  }

  .order-bar {
    display: none;
  }
}


/* ==========================================================================
   14. RESERVATION AND CONTACT PAGE
   ========================================================================== */

/* Photo in the right column */
.side-photo {
  width: 100%;
  margin-bottom: 1.5rem;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.map {
  display: block;
  width: 100%;
  height: 16.25rem;
  margin-top: 1.5rem;
  border: 1px solid var(--line-color);
}

.map-link {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

/* ----- Answer page contact.php: list of what the visitor sent ----- */
.message-list {
  margin: 0;
}

.message-list dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-color);
}

.message-list dd {
  margin: 0 0 0.9rem;
  overflow-wrap: anywhere;
  /* pre-line keeps the line breaks of the message */
  white-space: pre-line;
}


/* ==========================================================================
   15. ABOUT PAGE
   ========================================================================== */

.story {
  display: grid;
  gap: 2rem;
  padding-bottom: var(--space-section);
}

.story-text p {
  color: var(--muted-color);
}

.story img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ----- Red band with three columns ----- */
.features {
  display: grid;
  gap: 2.5rem;
}

/* White circle with a small PNG icon inside */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  border: 2px solid var(--on-primary-color);
  border-radius: 50%;
}

.feature-icon img {
  width: 2.5rem;
  height: 2.5rem;
}

/* The icons are white. If the brand color is so light that text on it is
   black, main.js adds this class and the icons are turned black as well. */
.dark-on-primary .feature-icon img {
  filter: invert(1);
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  margin: 0;
  font-size: 0.875rem;
}

/* ----- Team ----- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.25rem;
}

.team-card img {
  width: 100%;
  aspect-ratio: 10 / 11;
  object-fit: cover;
}

.team-name {
  margin: 0.9rem 0 0.2rem;
  font-size: 1rem;
  text-align: center;
}

.team-role {
  margin: 0;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--muted-color);
}

@media (min-width: 37.5rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 62rem) {
  .story {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }

  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}


/* ==========================================================================
   16. JOBS PAGE
   ========================================================================== */

.job-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--border-color);
}

.job-title {
  margin-bottom: 0.4rem;
  font-size: 1.375rem;
}

.job-type {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-color);
}

.job-description {
  font-size: 0.875rem;
  color: var(--muted-color);
}

/* The button always sits at the bottom of the card */
.job-card .button {
  align-self: flex-start;
  margin-top: auto;
}

/* Light grey area with the application form */
.apply-section {
  margin-top: var(--space-section);
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  background-color: var(--surface-color);
}

.form-narrow {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================================
   17. LESS MOTION
   Some people get dizzy from movement and switch animations off in their
   system settings. For them we remove smooth scrolling and transitions.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
