/********************************** GENERAL ***********************************/
body {
  font-family: 'Oswald', sans-serif;
  margin: 0;
  color: #86393F;
  background-image: url("../img/32.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: #351619;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  margin: 0.5em 0;
}
#wrapper {
  max-width: 940px;
  margin: 0 auto;
  padding: 120px 20px 0; /* space for fixed header */
}

/********************************** HEADER ***********************************/
header {
  background: #FFF;
  padding: 10px 20px;
  text-align: left; /* desktop left-aligned */
  position: fixed; /* keep header on top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* stay above other content */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* optional shadow */
}

#logo h1,
#logo h2 {
  font-family: 'Aladin', sans-serif;
  margin: 0;
  line-height: 1.2;
  color: #769781;
}

@media (max-width: 768px) {
  header {
    text-align: center; /* mobile centered */
    padding: 15px 0;
  }

  #logo h1 {
    font-size: 1.6rem;
  }

  #wrapper {
    padding-top: 140px; /* more space for taller mobile header */
  }
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: 800;
  padding: 5px 10px;
}

nav a.selected,
nav a:hover {
  color: #351619;
}

/* Responsive Header */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  #logo {
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}
#portfolio {
  scroll-margin-top: 100px;
}

#suppliers {
  scroll-margin-top: 100px;
}

#contact {
  scroll-margin-top: 100px;
}


/*Floating Call*/
.floating-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #769781;
  color: white;
  padding: 14px 20px;
  border-radius: 40px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 2000;
}

.floating-call:hover {
  background: #5f7c68;
}

/********************************** CONTENT BOX ***********************************/
.content-box {
  padding: 40px 20px; /* default for Portfolio */
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  border-radius: 6px;
}

/* Override top padding for Suppliers and Contact */
#suppliers,
#reviews,
#contact {
  padding-top: 20px;
}


/********************************** REVIEWS ***********************************/
#reviews .review-summary {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #351619;
}

#reviews blockquote {
  border-left: 4px solid #86393F;
  padding-left: 10px;
  margin: 10px 0;
  font-style: italic;
  color: #555;
}

#reviews blockquote em {
  display: block;
  font-size: 0.9em;
  margin-top: 4px;
  color: #86393F;
}


/********************************** PORTFOLIO GRID ***********************************/
/* Scrollable portfolio container */
#portfolio-container {
  height: 600px; /* fixed height for scrolling */
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  margin-top: 20px;
}

/* Grid inside scrollable container */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.portfolio-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.25s ease;
}

.portfolio-grid img:hover {
  transform: scale(1.05);
}

/* Optional custom scrollbar */
#portfolio-container::-webkit-scrollbar {
  width: 8px;
}

#portfolio-container::-webkit-scrollbar-thumb {
  background-color: rgba(136, 57, 63, 0.7);
  border-radius: 4px;
}

#portfolio-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
}


/********************************** LIGHTBOX ***********************************/
/* Lightbox Modal */
.lightbox {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #ccc;
}


/********************************** SUPPLIERS ***********************************/
.supplier-list li a {
  color: #351619; /* dark red/brown color matching theme */
  text-decoration: underline; /* underline to indicate link */
  font-weight: 600;
  transition: color 0.25s, transform 0.25s;
}

.supplier-list li a:hover {
  color: #86393F; /* slightly lighter red on hover */
  transform: scale(1.05); /* subtle zoom effect on hover */
}


/********************************** CONTACT ***********************************/
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 8px;
}

/* Map */
.map {
  position: relative;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
  margin-top: 20px;
}

.map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}


/********************************** FOOTER ***********************************/
footer {
  font-size: 0.75em;
  text-align: center;
  padding: 30px 0;
  color: #ccc;
}


/********************************** MEDIA QUERIES ***********************************/
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  #portfolio-container {
    height: 400px;
  }
  #portfolio {
  scroll-margin-top: 300px;
}

#suppliers {
  scroll-margin-top: 600px;
}

#contact {
  scroll-margin-top: 300px;
}
  @media (max-width: 768px) {
  #wrapper {
    padding-top: 160px; /* slightly larger header on mobile */
  }
  #portfolio {
  scroll-margin-top: 150px;
}

#suppliers {
  scroll-margin-top: 190px;
}

#contact {
  scroll-margin-top: 190px;
}

}
}