/* Reset defaults */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: #f4f7f4;
  color: #2d4739;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #81bb8e;
  padding: 0.5rem 1.5rem;
  position: relative;
  z-index: 10;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  user-select: none;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  color: white;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: white;
  font-weight: 600;
  padding: 0.5rem 0;
  display: block;
  text-decoration: none;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: #95d5b2;
}

.nav-links .bttn {
  padding: 10px 20px;
  background-color: #74c69d;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.nav-links .bttn:hover,
.nav-links .bttn:focus {
  transform: scale(1.05);
  background-color: #52b788;
  outline: none;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  color: white;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

/* Header & Hero */
header {
  margin: 0;
  padding: 0;
  background: none;
}

.hero {
  padding: 4rem 1rem 6rem;
  text-align: center;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url('curte03.jpg') center/cover no-repeat;
  color: #d8f3dc;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: #95d5b2;
  color: #1b4332;
  padding: 0.75rem 1.75rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
  display: inline-block;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #74c69d;
  outline: none;
}

/* Main Content */
main {
  max-width: 900px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.section {
  margin-bottom: 3.5rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2d6a4f;
  border-bottom: 3px solid #95d5b2;
  padding-bottom: 0.25rem;
  max-width: fit-content;
}

/* Services List */
.services-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  font-size: 1.1rem;
  color: #444;
}

.services-list li {
  background-color: #e9f5ec;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Carousel */
.carousel-container {
  max-width: 100vw;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  padding-bottom: 0.5rem;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  animation: scroll 20s linear infinite;
}

.carousel-track a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  width: 180px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.15);
  transition: transform 0.3s ease;
}

.carousel-track a:hover,
.carousel-track a:focus-within {
  transform: scale(1.05);
  outline: none;
}

.carousel-track img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}


/* Footer */
.site-footer {
  background-color: #95d5b2;
  color: #1b4332;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-logo img {
  width: 150px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.footer-social a {
  margin: 0 0.5rem;
  display: inline-block;
  width: 30px;
  height: 30px;
}

.footer-social img {
  width: 100%;
  height: 100%;
  filter: invert(20%) sepia(70%) saturate(500%) hue-rotate(90deg) brightness(90%) contrast(90%);
  transition: filter 0.3s ease;
}

.footer-social a:hover img,
.footer-social a:focus img {
  filter: invert(50%) sepia(100%) saturate(2000%) hue-rotate(90deg) brightness(130%) contrast(120%);
  outline: none;
}

/* Responsive */

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    background-color: #81bb8e;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.15);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    padding: 1rem 1.5rem;
  }

  .hamburger {
    display: block;
  }

  .nav-brand {
    margin-left: 0;
  }

  .carousel-track a {
    width: 140px;
  }
}

.carousel-container {
  overflow: hidden;
  width: 100vw;
  max-width: 900px;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  background-color: #f4f7f4;
}

.carousel-track {
  display: flex;
  width: calc(16 * 300px); /* 16 images * width */
  animation: scroll-left 40s linear infinite;
}

.carousel-track a {
  flex: 0 0 300px;
  margin-right: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.15);
  cursor: pointer;
}

.carousel-track img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.carousel-track img:hover,
.carousel-track img:focus {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88;
  outline: none;
}

/* Animation: move left continuously */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50%));
  }
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-track {
    width: calc(16 * 90vw);
  }
  .carousel-track a {
    flex: 0 0 90vw;
    margin-right: 0.5rem;
  }
  .carousel-track img {
    height: auto;
  }
}

.footer-logo img {
  border-radius: 25px !important;
}
