/* The Third Space - Simple Stylesheet */

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

body {
  font-family: Georgia, serif;
  background-color: #f4ecd8;   /* ivory / cream */
  color: #3b2a1a;              /* dark walnut text */
  line-height: 1.6;
}

a {
  color: #6b4226;
  text-decoration: none;
}

a:hover {
  color: #b8860b;              /* brass */
}

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

/* ---- Header ---- */
header {
  background-color: #3b2a1a;
  color: #f4ecd8;
  padding: 15px 30px;
}

header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

nav ul {
  list-style: none;
}

nav ul li {
  display: inline-block;
  margin-right: 20px;
}

nav ul li a {
  color: #f4ecd8;
  font-size: 16px;
}

nav ul li a:hover {
  color: #b8860b;
}

/* ---- Main / Sections ---- */
main {
  padding: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

section {
  margin-bottom: 40px;
}

h2 {
  color: #6b4226;
  margin-bottom: 15px;
  border-bottom: 2px solid #b8860b;
  padding-bottom: 5px;
}

h3 {
  color: #3b2a1a;
  margin-bottom: 10px;
}

p {
  margin-bottom: 10px;
}

/* ---- Hero (home page) ---- */
.hero {
  background-color: #6b4226;
  color: #f4ecd8;
  padding: 50px 30px;
  text-align: center;
}

.hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 6px;
}

.about-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.menu-section {
  margin-top: 20px;
}

.card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 36px;
  color: #f4ecd8;
  border: none;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background-color: #b8860b;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.btn:hover {
  background-color: #6b4226;
  color: #fff;
}

/* ---- Cards (menu items, books) ---- */
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  background-color: #fff;
  border: 1px solid #d6c6a8;
  border-radius: 6px;
  padding: 15px;
  width: 250px;
}

.card img {
  border-radius: 4px;
  margin-bottom: 10px;
}

.price {
  color: #b8860b;
  font-weight: bold;
}

/* ---- Tables (availability) ---- */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
}

table th, table td {
  border: 1px solid #d6c6a8;
  padding: 10px;
  text-align: left;
}

table th {
  background-color: #6b4226;
  color: #f4ecd8;
}

.full {
  color: red;
}

.open {
  color: green;
}

/* ---- Forms ---- */
form {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #d6c6a8;
  border-radius: 6px;
  max-width: 600px;
}

form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #c0a98a;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

form textarea {
  height: 80px;
  resize: vertical;
}

/* ---- Search bar ---- */
.search-box {
  margin-bottom: 20px;
}

.search-box input {
  padding: 8px;
  width: 250px;
  border: 1px solid #c0a98a;
  border-radius: 4px;
}

/* ---- Footer ---- */
footer {
  background-color: #3b2a1a;
  color: #f4ecd8;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

footer a {
  color: #b8860b;
}

/* ---- Utility ---- */
.bold {
  font-weight: bold;
}

.video-wrap {
  max-width: 640px;
  margin: 20px 0;
}

.video-wrap video,
.video-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 6px;
}

/* ---- Responsive: Tablet ---- */
@media (max-width: 992px) {
  main {
    padding: 20px;
  }
  .card {
    width: calc(50% - 20px);
  }
  nav ul li {
    margin-right: 12px;
  }
  .video-wrap video,
  .video-wrap iframe {
    height: 300px;
  }
}

/* ---- Responsive: Phone ---- */
@media (max-width: 600px) {
  nav ul li {
    display: block;
    margin: 8px 0;
  }
  .card {
    width: 100%;
  }
  .search-box input {
    width: 100%;
  }
  .hero h2 {
    font-size: 26px;
  }
  .video-wrap video,
  .video-wrap iframe {
    height: 220px;
  }
}

