/* Reset + Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* Hero Banner */
.hero {
  background-color: #C19A6B; 
  position: relative;
  display: flex;
  flex-direction: column; 
  padding: 0.5rem 1rem;
}

.hero-main-content {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 0.5rem;
  position: relative;
}

.overlay {
  padding: 1rem;
  color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
}

.company-name {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
}

.tagline {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}
.hero-logo {
  max-width: 180px;
  height: auto;
  margin-right: 1rem;
}

/* Header Navigation Styles */
.header-navigation {
  width: 100%;
  background-color: #e9e9e9;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center; 
  gap: 1.5rem;
}

.header-navigation a {
  color: #6b3e26;
  text-decoration: none;
  font-weight: 500;
  padding: 0.2rem 0.4rem;
  font-size: 1.25rem;
}

.header-navigation a:hover,
.header-navigation a:focus {
  text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3); 
}

/* Welcome Banner Section */
.welcome-banner {
  color: #fff; 
  text-align: center; 
  padding: 12rem 2rem; 
  position: relative;
  width: 100%;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4); 
  z-index: 2; 
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation-name: individualSlideFade;
  animation-duration: 15s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; } 
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes individualSlideFade {
  0%    { opacity: 0; } 
  6.67% { opacity: 1; }
  33.33% { opacity: 1; }
  40%   { opacity: 0; }
  100%  { opacity: 0; }
}

.welcome-banner-text {
  position: relative;
  z-index: 3;
}

.welcome-banner h2 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.welcome-banner p {
  font-size: 1.5rem;
  font-weight: 300; 
}

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
  border-radius: 8px;
}

main > .section:nth-child(even) { /*grey evey other section*/
  background-color: #e9e9e9; 
}

.section h2 {
  color: #6b3e26;
  margin-bottom: 1rem;
  font-size: 2rem;
  border-bottom: 2px solid #6b3e26;
  display: inline-block;
}

.section p,
.section ul {
  font-size: 1.1rem;
  margin-top: 1rem;
}

.section ul {
  list-style: disc;
  padding-left: 1.5rem;
}

/* Styles for sections with images */
.section-with-image {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 2rem;
}

.section-image {
  flex-shrink: 0;
  width: 300px;
  max-width: 35%;
  height: auto;
  border-radius: 8px;
}

.section-text-content {
  flex-grow: 1;
}


/* Footer */
footer {
  background-color: #C19A6B;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* About Page Specifics */
.about-content h3 {
  font-size: 1.7rem;
  color: #6b3e26;
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
  clear: both;
}

.about-content > p:first-child + h3 {
  margin-top: 1.5rem;
}

.inline-showcase-image {
  float: right;
  max-width: 30%;
  height: auto;
  margin-top: 0.5rem;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Contact Page Specific Styles */
#contact-page .contact-content-wrapper {
  display: flex;
  flex-wrap: wrap; 
  gap: 2rem; 
  margin-top: 1.5rem; 
}

#contact-page .contact-details {
  flex: 1; 
  min-width: 280px; 
}

#contact-page .contact-map {
  flex: 1; 
  min-width: 280px;
}

#contact-page .contact-map iframe {
  width: 100%;
  height: 400px; 
  border-radius: 8px; 
}

/* Gallery Page Specific Styles */
#gallery-page .gallery-category {
  margin-bottom: 3rem;
}

#gallery-page .gallery-category h3 {
  font-size: 1.8rem;
  color: #6b3e26;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

#gallery-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

#gallery-page .gallery-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

#gallery-page .gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Why Choose Us Section */
#why-choose-us .reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

#why-choose-us .reason-item {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #eee;
}

#why-choose-us .reason-item h3 {
  font-size: 1.25rem;
  color: #C19A6B;
  margin-bottom: 0.75rem;
}

#why-choose-us .reason-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin-top: 0;
}

/* Reviews Section */
#testimonials .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

#testimonials .testimonial-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#testimonials .testimonial-card p {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
  font-size: 1rem;
  margin-top: 0;
}

#testimonials .testimonial-card h4 {
  font-size: 1rem;
  color: #C19A6B;
  text-align: right;
  font-weight: bold;
}

/* Home Page CTA Section */
#home-cta .cta-content { 
  text-align: center;
  max-width: 700px; 
  margin-left: auto;
  margin-right: auto;
}

#home-cta .cta-phone {
  margin-top: 1rem;
}

.cta-button {
  display: inline-block;
  background-color: #6b3e26;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #502d1b;
  color: #fff;
  text-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-logo {
    max-width: 150px;
  }
  .company-name {
    font-size: 2.5rem;
  }
  .tagline {
    font-size: 1.3rem;
  }

  .header-navigation ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .header-navigation a {
    font-size: 1.15rem;
  }

  .welcome-banner {
    padding: 8rem 1.5rem;
  }
  .welcome-banner h2 {
    font-size: 2.4rem;
  }
  .welcome-banner p {
    font-size: 1.3rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }
  .section-with-image {
    flex-direction: column-reverse;
    align-items: center;
  }
  .section-image {
    max-width: 60%;
    width: auto;
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
  }
  .section h2 {
    font-size: 1.8rem;
  }
  .section p,
  .section ul {
    font-size: 1.05rem;
  }

  .inline-showcase-image {
    float: none;
    display: block;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Contact Page Responsive */
  #contact-page .contact-content-wrapper {
    flex-direction: column;
  }

  #contact-page .contact-details,
  #contact-page .contact-map {
    flex-basis: 100%;
  }
  #contact-page .contact-map iframe {
    height: 300px;
  }

  /* Gallery Page Responsive */
  #gallery-page .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  #gallery-page .gallery-item img {
    height: 180px;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  .hero {
    padding: 1rem;
  }
  .hero-main-content {
    flex-direction: column;
    align-items: center;
  }
  .hero-logo {
    max-width: 120px;
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  .overlay {
    position: static;
    transform: none;
    padding: 0.5rem 0 0 0;
    width: 100%;
    text-align: center;
  }
  .company-name {
    font-size: 2rem;
  }
  .tagline {
    font-size: 1.1rem;
    margin-top: 0.25rem;
  }

  .header-navigation ul {
    gap: 0.5rem;
  }
  .header-navigation a {
    font-size: 1rem;
    padding: 0.2rem 0.3rem;
  }

  .welcome-banner {
    padding: 6rem 1rem;
  }
  .welcome-banner h2 {
    font-size: 2rem;
  }
  .welcome-banner p {
    font-size: 1.2rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }
  .section-image {
    max-width: 85%;
  }
  .section h2 {
    font-size: 1.7rem;
  }
  .section p,
  .section ul {
    font-size: 1rem;
  }

  .inline-showcase-image {
    max-width: 90%;
  }

  /* Gallery Page Responsive - Mobile */
  #gallery-page .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  #gallery-page .gallery-item img {
    height: 220px;
  }
}
