/* ACROSS ALL PAGES */

/* COLORS
Red: #B94741
Blue: #26394E
Cream: #ECE1C0
*/

/* TYPOGRAPHIC SCALE 
16px
25.888px
41.887px
67.773px
109.656px
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: black;
  color: white;
  font-family: "Inter", "IBM Plex Sans", sans-serif;
}

.page-grid {
  min-height: 100vh;
  display: grid;

  /* Explicit rows (no implicit grid tracks) */
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "main"
    "footer";
}

.page-main {
  grid-area: main;
}
.get-in-touch {
  grid-area: footer;
}

/* HOME PAGE GRID 
/* HEADER NAV */
.site-header {
  grid-area: header;
  /* width: 100%; */
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* NAVIGATION AS A LIST */
/* FLEXBOX EXAMPLE FOR THIS ASSIGNMENT */
.main-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* NAVIGATION CONTENT */

.main-nav a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  letter-spacing: 0.14rem;
  border-bottom: solid white 2px;
  padding-bottom: 4px;
}

/* NAVIGATION HOVER STATE */

.main-nav a:hover {
  border-bottom: solid #b94741 2px;
  padding-bottom: 4px;
}

/* HERO SECTION */

.home-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  background-image: url(../Images/hero_image.jpg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-picture,
.hero-picture img {
  /* width: 100%; */
  height: 100%;
  display: block;
}

.hero-img {
  /* width: 100%; */
  height: 100%;
  object-fit: cover;
}

/* dark overlay so white text is readable */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Black overlay on hero image */

.hero-overlay {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-logo {
  margin-bottom: 22px;
  /* max-width: 140px; */
  /* width: 100%; */
  height: auto;
}

/* SMOKE YARD BBQ */

.hero-title {
  font-size: 109.656px;
  font-weight: 800;
  letter-spacing: 0.1rem;
}

.hero-subtitle {
  font-size: 25.888px;
  font-family: "IBM Plex Sans", sans-serif;
  letter-spacing: 0.28rem;
  margin: 8px 0 24px;
  font-weight: 500;
}

/* hero button */
.hero-button {
  display: inline-block;
  padding: 12px 38px;
  border-radius: 999px;
  background-color: #b94741;
  color: white;
  text-decoration: none;
  letter-spacing: 0.12rem;
  font-size: 16px;
  font-family: "IBM Plex Sans", sans-serif;
}

.hero-button:hover {
  background-color: white;
  color: #b94741;
}

/* GRILL IMAGES SECTION */

.grill-section {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.grill-wrapper {
  margin: 0 auto;
  padding: 0 25px;
  max-width: 1200px;
}

.grill-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  place-items: center;
  width: 100%;
}

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

.home-intro {
  margin: 20px auto 0 auto;
  /* max-width: 1000px; */
  line-height: 1.5;
  font-size: 25.888px;
  text-align: center;
  padding-top: 20px;
  margin-bottom: -30px;
  font-family: "IBM Plex Sans", sans-serif;
}

/* TEXAS STYLE SECTION (split text and image) */
.texas-section {
  padding: 80px 0;
  background-color: black;
}

.texas-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto;
  gap: 2rem;
  align-items: center;
}

/* TEXAS STYLE BBQ YOUL'LL LOVE */
.texas-text {
  flex: 0 0 32%;
}

.texas-text h2 {
  font-size: 67.773px;
  font-weight: 700;
  letter-spacing: 0.14rem;
  line-height: 1.2;
  font-family: "Inter", sans-serif;
  padding-bottom: 40px;
}

/* Our menu button */

.button {
  display: inline-block;
  padding: 12px 38px;
  border-radius: 999px;
  background-color: #b94741;
  color: white;
  text-decoration: none;
  letter-spacing: 0.12rem;
  font-size: 16px;
  margin-top: 18px;
  font-family: "IBM Plex Sans", sans-serif;
}

.button:hover {
  background-color: white;
  color: #b94741;
}

.texas-image {
  flex: 1;
}

.texas-image img {
  display: block;
}

/* GET IN TOUCH / FOOTER SECTION */
.get-in-touch {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  background-image: url(../Images/hero_image.jpg);
  background-size: cover;
  background-position: center;
}

/* FOOTER IMAGE BLACK OVERLAY */

.get-in-touch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.get-in-touch-overlay {
  position: relative;
  z-index: 2;
  padding-bottom: 20px;
  padding-top: -10px;
}

.get-in-touch-overlay h2 {
  font-size: 41.887px;
  font-weight: 700;
  letter-spacing: 0.25rem;
  margin-bottom: 20px;
  padding-top: 40px;
  font-family: "Inter", sans-serif;
}

.footer {
  font-size: 16px;
}

/* END OF HOME PAGE CSS SECTION
BEGINNING OF OUR MENU PAGE */

/* ======================================== */

/* MENU HERO SECTION */

.menu-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* flames background image behind the menu */
  background-image: url(../Images/menu_background.jpg);
  background-size: cover;
  background-position: center;
}

.menu-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* MENU GRID SECTION */

.menu-section {
  padding: 80px 0;
  background-color: black;
}

.menu-wrapper {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 25px;
  padding-left: calc(16px + 1vw);
  padding-right: calc(16px + 1vw);
}

/* flexbox grid: 3 cards per row on desktop, wraps on smaller screens */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 30px;
}

/* each item/image in each row */
.menu-item {
  /* max-width: 100%; */
  margin-bottom: 0;
}

/* the image itself */
.menu-item img {
  /* width: 100%; */
  display: block;
}

/* image text/subtitle */

.menu-item h2 {
  margin-top: 10px;
  font-size: 16px;
  letter-spacing: 0.12rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
}

/* END OF MENU PAGE CSS SECTION
BEGINNING OF CONTACT US PAGE */

/* ======================================== */

/* CONTACT US HERO SECTION */
.contact-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  background-image: url(../Images/contact_header.jpg);
  background-size: cover;
  background-position: center;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.contact-hero .hero-overlay {
  position: relative;
  z-index: 2;
}

.contact-subtitle {
  font-size: 25.888px;
  letter-spacing: 0.18rem;
  margin-top: 8px;
  font-family: "IBM Plex Sans", sans-serif;
}

/* CONTACT FORM AREA */
.contact-section {
  padding: 60px 0 80px;
  background-color: black;
}

.contact-wrapper {
  /* max-width: 1000px; */
  margin: 0 auto;
  padding: 0 25px;
  padding-left: calc(16px + 1vw);
  padding-right: calc(16px + 1vw);
}

/* BLUE BEHIND THE FORM */
.contact-form {
  background-color: #26394e;
  padding: 40px;
  color: white;
}

/* TWO FIELDS ON ONE ROW */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

/* ONE FIELD TAKING FULL ROW */
.form-single {
  grid-column: 1 / -1;
  /* width: 100%; */
  margin-bottom: 0;
}

/* EACH HALF IN A ROW */
.form-group {
  flex: 1;
}

/* LABELS */
.contact-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  letter-spacing: 0.1rem;
}

/* TEXT INPUTS AND DATE */
input,
textarea {
  width: 100%;
  padding: 10px;
  background-color: white;
  border: none;
  display: block;
}

/* COMMENTS BOX HEIGHT */
.contact-form textarea {
  height: 200px;
  resize: none;
}

/* TOP MESSAGE IF THERE ARE ERRORS */
.error-summary {
  background-color: #b94741;
  color: white;
  padding: 10px 15px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 16px;
}

/* MESSAGE UNDER EACH FIELD */
.error-message {
  margin-top: 6px;
  font-size: 16px;
  color: #ffb3b3;
}

/* SUBMIT BUTTON */
/* Center the submit button row */

.form-row-center {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* RED SUBMIT BUTTON */
.form-submit-button {
  padding: 12px 40px;
  border-radius: 999px;
  border: none;
  background-color: #b94741;
  color: white;
  letter-spacing: 0.12rem;
  font-size: 16px;
}

.form-submit-button:hover {
  background-color: white;
  color: #b94741;
}

/* CONFIRMATION AREA UNDER THE FORM */
.confirmation {
  margin-top: 30px;
  background-color: #000000;
  padding: 20px 25px;
  font-size: 16px;
}

.confirmation h2 {
  margin-bottom: 10px;
}

/* MEDIA QUERIES */
@media (max-width: 2000px) {
  .hero-title {
    font-size: 67.773px;
  }

  .texas-text h2 {
    margin-left: 40px;
  }

  .button {
    margin-left: 40px;
  }
}

@media (max-width: 900px) {
  .main-nav ul {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .texas-wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .texas-text h2 {
    margin-left: 0;
  }

  .button {
    margin-left: 0;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* .grill-images {
    grid-template-columns: 1fr;
    gap: 24px;
  } */
  .hero-title {
    font-size: 67.773px;
  }
  .texas-text h2 {
    font-size: 41.887px;
    letter-spacing: 0.08rem;
    line-height: 1.1;
  }
  .texas-text {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .texas-text h2 {
    margin-left: 0;
  }

  .button {
    margin-left: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 41.887px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .main-nav ul {
    gap: 1.5rem;
  }
  .texas-text h2 {
    font-size: 41.887px;
    letter-spacing: 0.08rem;
    line-height: 1.1;
  }

  .texas-text {
    text-align: center;
  }
  .texas-wrapper {
    justify-items: center;
    gap: 1.25rem;
    padding: 0 20px;
  }
}

@media (max-width: 430px) {
  html,
  body {
    max-width: 100%;
  }
  .home-hero {
    min-height: 50vh;
  }

  .main-nav a {
    font-size: 12px;
  }
  .grill-images {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .grill-wrapper {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 30px;
  }

  .home-intro {
    font-size: 18px;
    width: 60%;
  }

  .texas-text h2 {
    font-size: 42px;
    width: 100%;
    align-items: center;
  }

  .get-in-touch h2 {
    font-size: 25px;
  }
}
