/* ------------------------------General styles------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  background-color: #fefffb;
  line-height: 1.5;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 
    "header"
    "main"
    "footer";
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/*------------------------------ Header with Flexbox ------------------------------*/
.header {
  background-color: #000;
  padding: 15px 30px;
  grid-area: header;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #d1b777;
}

.nav .nav-list {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 4px;
}

.nav-link:hover {
  color: #d1b777;
  background-color: rgba(209, 183, 119, 0.1);
  transform: translateY(-2px);
}

.nav-link.active {
  color: #d1b777;
  background-color: rgba(209, 183, 119, 0.2);
}

/* ------------------------------Main content with Grid Layout------------------------------*/
.main {
  grid-area: main;
  overflow: hidden;
}

/* Grid Layout for pages with sidebar */
.grid-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-areas: 
    "sidebar content";
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.sidebar {
  grid-area: sidebar;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
}

.content-area {
  grid-area: content;
}

/* ------------------------------Hero section ------------------------------*/
.hero {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.title {
  font-family: 'Montserrat', sans-serif;
  font-size: 80px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  z-index: 1; 
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/*------------------------------ Flexbox Cards (Promo grid) ------------------------------*/
.promo-grid {
  display: flex;
  gap: 0;
  height: 400px;
}

.promo-item {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.promo-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.promo-item:hover {
  transform: scale(1.05);
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.promo-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
  z-index: 0;
}

.promo-item:hover::before {
  background-color: rgba(0, 0, 0, 0.2);
}

.promo-link {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 20px;
}

.promo-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
  text-transform: uppercase;
  position: relative; 
  z-index: 3;
}

.promo-text {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  position: relative;
  z-index: 3;
}

/*------------------------------ Card Components with Flexbox ------------------------------*/
.card-container {
  display: flex;
  gap: 20px;
  padding: 40px 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c1a18;
  margin-bottom: 10px;
}

.card-text {
  font-size: 14px;
  color: #666;
  flex: 1;
  margin-bottom: 15px;
}

.card-button {
  background-color: #b76e79;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.card-button:hover {
  background-color: #8d525a;
}

/* ------------------------------------Gallery with Grid------------------------------- */
.gallery {
  padding: 40px 20px;
  text-align: center;
  background-color: #fefffb;
}

.gallery .title2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #4a2c2a; 
}

.img-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.imag-bord {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.imag-bord img {
  width: 100%;
  height: 250px;
  object-fit: cover; 
  display: block;
}

.imag-bord p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 15px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.imag-bord:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.imag-bord:hover p {
  transform: translateY(0);
}

/* -----------------------------Menu with Flexbox Cards------------------------ */
.men-main {
  background-color: #f8f9fa;
}

.sec-menu {
  padding: 40px 20px;
  background-color: #fff;
}

.sec-menu .title2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #4a2c2a;
}

.menu-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 800px;
  margin: 0 auto;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.menu-item:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.menu-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.menu-text {
  flex: 1;
}

.menu-text h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #2c1a18;
}

.menu-text p {
  font-size: 16px;
  color: #666;
}

/* ------------Contact Form with Flexbox--------------- */
.con-main {
  background-color: #fefffb;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.contact-section {
  max-width: 600px;
  width: 100%;
  margin: 50px 20px;
  padding: 40px;
  text-align: center;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-section .title3 {
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 600;
  color: #2c1a18;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  font-size: 1rem;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  outline: none;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #b76e79;
  box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.1);
}

.btn {
  background-color: #b76e79;
  color: #fff;
  font-weight: 600;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn:hover {
  background-color: #8d525a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
}

/*------------------------------ Footer ------------------------------*/
.footer {
  background-color: #000;
  padding: 40px 30px;
  border-top: 1px solid #333;
  grid-area: footer;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.contacts {
  display: flex;
  flex-direction: column;
}

.contacts-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.contact-name {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 5px;
}

.phone {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.phone:hover {
  color: #d1b777;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: #333;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #d1b777;
  transform: translateY(-3px);
}

.copyright {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 12px;
  color: #ccc;
}

/* ------------------------------Responsive Design------------------------------ */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav .nav-list {
    gap: 15px;
  }
  
  .promo-grid {
    flex-direction: column;
    height: auto;
  }
  
  .promo-item {
    height: 200px;
  }
  
  .card-container {
    flex-direction: column;
    align-items: center;
  }
  
  .img-box {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }
  
  .menu-item {
    flex-direction: column;
    text-align: center;
  }
  
  .menu-img {
    width: 200px;
    height: 150px;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .copyright {
    align-items: center;
  }
  
  .title {
    font-size: 48px;
  }
  
  .grid-layout {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "content";
  }
  
  .sidebar {
    display: none;
  }
}