/* Reset some default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #012418;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
    flex: 1
}
footer {
  margin-top: auto;
}

h1, h2, h3, h4 {
  font-weight: 400; 
}

p, span, a {
  font-weight: 300; 
  text-decoration: none;
  color: inherit;
}

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #012418;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
}

/* Logo */
nav .logo img {
  width: 80px;
  height: auto;
  max-width: 100%;
  transition: width 0.3s ease;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-links a {
  color: #fff;
  font-weight: 300;
}

.nav-links a:hover {
  color: #ECB54F;
}

.nav-links a.current {
  color: #ECB54F;  
}

.nav-links a.current:hover {
  color: #ECB54F;  
}

/* Language Switcher */
#lang-switcher {
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

#lang-switcher a {
  color: #fff;
  margin: 0 0.2rem;
  transition: color 0.3s;
}

#lang-switcher a.active,
#lang-switcher a:hover {
  color: #ECB54F;
}

#lang-switcher .lang-separator {
  color: #fff;
  margin: 0 0.2rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

.hamburger:hover span {
  background: #ECB54F;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
#hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero.jpg') no-repeat center center/cover;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

#hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 700px;
}

/* Buttons */
.cta-btn {
  padding: 0.8rem 2rem;
  background-color: #ECB54F;  
  color: #fff;
  font-weight: 400;
  border: 2px solid #ECB54F;
  border-radius: 0; 
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background-color: transparent; 
  color: #ECB54F; 
}

/* ===== SECTIONS ===== */
section {
  padding: 4rem 2rem;
  text-align: center;
}

/* About Snippet */
#about-snippet {
  background-color: #f8f8f8;
  padding: 5rem 2rem;
}

#about-snippet h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#about-snippet p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* Services Preview */
.services-teaser {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Individual Card */
.service-item {
  background-color: #fff;
  border-radius: 10px;
  width: 300px;
  height: 200px; 
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.6s ease, flex 0.6s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  flex: 0 0 auto;
  position: relative; 
}

.service-item h4 {
  color: #012418;
  margin: 0;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.service-item p {
  font-size: 1rem;
  color: #555;
  margin-top: 1rem;
  opacity: 0;              
  transition: opacity 0.1s ease;
  position: absolute;      
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
  z-index: 1;
}

/* Hover effect */
.services-teaser:hover .service-item {
  transform: scale(0.85); 
}

.services-teaser:hover .service-item:hover {
  transform: scale(1.2); 
  justify-content: flex-start; 
  padding-top: 1.5rem;
}

.services-teaser:hover .service-item:hover h4 {
    font-size: 1rem;
}

.services-teaser:hover .service-item:hover p {
  opacity: 1; 
  position: static;      
  transform: none;
  margin-top: 1rem;
}

/*----- About Us Section */
/* FAQ accordion styles */
#faq {
    max-width: 800px;
    margin: 4rem auto;
    text-align: left;
}
.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
    cursor: pointer;
}
.faq-item h3 {
    color: #ECB54F;
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    margin: 0.5rem 0 0;
}
.faq-item.active p {
    max-height: 200px; 
    opacity: 1;
}

#about-us h1,
#faq h2 {
    color: #ECB54F;
    font-weight: 500; 
    font-size: 2rem; 
    text-align: center;
}

#about-us {
  padding-bottom: 1rem;
}

#faq {
  margin: 1rem auto;
}


/* Contact CTA */
#contact-cta {
  background-color: #012418;
  color: #fff;
  padding: 5rem 2rem;
}

#contact-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#contact-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}


/*----- Services page -----*/
.service-description {
  margin-top: 1.5rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.description h2 {
  font-size: 1.8rem;
  color: #ECB54F;
  margin-bottom: 0.5rem;
}

.description p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.5;
}

.services-carousel {
  text-align: center;
  padding: 2rem 1rem;
}

.services-carousel h1 {
  color: #ECB54F;
  margin-bottom: 1.5rem;
}

/* Carousel container */
.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
  padding: 4rem 0;
}

/* Track (flex row) */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 50px;
}

/* Each item */
.carousel-item {
    min-width: calc(100% / 3);
    transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
    transform-origin: center center;
    opacity: 0.6;
}

.carousel-item.active {
  transform: scale(1.1) translateY(50px); 
  opacity: 1;
  z-index: 10;
} 
.carousel-item img {
  width: 100%;
  border-radius: 0px;
  display: block;
}
.carousel-item:nth-child(n+0) {
  opacity: 0.6;
}

.carousel-item.active {
  transform: translateY(60px) scale(1.05); /* move whole card down slightly */
  filter: blur(0);
  opacity: 1;
  z-index: 10;
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 2rem;
  border-radius: 50%;
  z-index: 20; /* ensures it’s above the track */
}

/* Positioning */
.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Service description */
.service-description {
  margin-top: 2rem;
}

.description {
  display: none;
}

.description.active {
  display: block;
}

.description h2 {
  color: #ECB54F;
  margin-bottom: 0.5rem;
}
.carousel-item.prev,
.carousel-item.next {
  transform: translateY(0) scale(0.95);
  opacity: 0.7;
}
.carousel-item.active {
  transform: translateY(60px) scale(1.05);
}

.carousel-item img {
  width: 100%;
  height: 300px; 
  object-fit: cover; 
  border-radius: 8px;
}



/* ===== Appointment form  ===== */
.form-title {
  text-align: bottom center;   
  margin-bottom: 1rem;
}

.form-title h2 {
   font-size: 1.8rem;
  font-weight: 400; 
  color: #ECB54F;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0.5rem; 
}
#appointment-form {
  width: 90%;                  
  max-width: 600px;            
  margin: auto;    
  margin-bottom: 4rem ;      
  padding: 2rem;
  padding-top: 2rem;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

#appointment-form label {
  display: block;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #012418;
}

#appointment-form input[type="text"],
#appointment-form input[type="tel"],
#appointment-form textarea,
#appointment-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

#appointment-form input:focus,
#appointment-form textarea:focus,
#appointment-form select:focus {
  border-color: #ECB54F;
  outline: none;
  box-shadow: 0 0 5px rgba(236, 181, 79, 0.5);
}

#appointment-form textarea {
  min-height: 100px;
  resize: vertical;
}

#appointment-form button.cta-btn {
  width: 100%;
  padding: 0.8rem;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  background-color: #ECB54F;
  color: #fff;
  border: 2px solid #ECB54F;
  cursor: pointer;
  transition: all 0.3s ease;
}

#appointment-form button.cta-btn:hover {
  background-color: transparent;
  color: #ECB54F;
}

#appointment-form fieldset {
  border: none;
  padding: 0; 
  margin-bottom: 1em; 
}


#appointment-form fieldset legend {
  display: block;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #012418;
}

/* Responsive Google Form embed */
.form-embed {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 3rem;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
}
.form-embed iframe {
  display: block;
  width: 100%;
  height: 90vh; /* use viewport height for responsiveness */
  min-height: 800px; /* ensure enough room on small screens */
  border: 0;
}



/* ===== FOOTER ===== */
footer {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
    background-color: #012418;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 0;
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #fff;
}
#footer-contact a {
  color: #fff;
  text-decoration: none;
}

#footer-contact a:hover {
  color: #ECB54F;
}


#footer-social {
  margin-top: 10px;
}

#footer-social a {
  margin-right: 15px;
  color: #ffffff; 
  text-decoration: none;
}

#footer-social a:hover {
  color: #ECB54F;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-teaser {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  #hero h1 { font-size: 2rem; }
  #hero p { font-size: 1.2rem; }

  /* Mobile navbar */
  nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }


  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;           
    background-color: #012418;
    gap: 1.5rem;
    padding: 1rem 0;
    position: absolute;
    top: 100%;             
    left: 0;
    z-index: 1050;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  nav .logo img {
    width: 80px;
  }
}

@media (max-width: 480px) {
  nav .logo img {
    width: 80px;
  }
}

@media (max-width: 768px) {
  #appointment-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  #appointment-form {
    width: 70%;
    padding: 2rem;
  }
}
