/* =============== Base ================== */
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  color: #222;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.visually-hidden { position: absolute; left: -9999px; }

/* =============== Header / Nav =============== */
.header {
  background: #f9f9f9;
  text-align: center;
  padding: 2rem 1rem;
}
.header.small { padding: 1rem 1rem; }
.site-logo { max-width: 330px; }
.tagline { font-size: 1.1rem; margin: 0.5rem 0 1.5rem; }

.nav { background: #000; }
.nav .container { display: flex; justify-content: center; }
.nav-link {
  color: #fff;
  padding: 1rem;
  transition: background .2s ease;
}
.nav-link:hover,
.nav-link.active { background: #333; }

/* =============== Hero Carousel =============== */
.hero-carousel {
  position: relative;
  overflow: hidden;
  height: 80vh;
  height: 65vh;
  min-height: 450px;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); /* fallback if overlay PNG missing */
  pointer-events: none;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 1rem;
}
.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-content p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* =============== Buttons =============== */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.button-primary { background: #c6d23b; color: #000; }
.button-primary:hover {
  background: #b0c024;
  box-shadow: 0 4px 10px rgba(198,210,59,0.3);
  transform: translateY(-1px);
}
.button-outline { border: 2px solid #fff; color: #fff; }
.button-outline:hover { background: #fff; color: #000; }

/* =============== Services =============== */
.services { background: #fafafa; padding: 3rem 1rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.service-card h3 { margin-top: 0; }
.price { font-weight: bold; color: #444; }

/* =============== Lists & Key Points =============== */
.key-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto;
  text-align: left;
  max-width: 600px;
  line-height: 1.6;
  font-weight: 600;
  font-size: 1.2rem;
}
.key-points li { margin-bottom: 0.6rem; }

.container ul {
  list-style: disc;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  line-height: 1.6;
  columns: 2;
  column-gap: 2rem;
}
@media(max-width:700px){ .container ul { columns:1; } }



.services-list {
  list-style: disc;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  line-height: 1.6;
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 700px) {
  .services-list { columns: 1; }
}

/* =============== Gallery =============== */
.gallery { padding: 3rem 1rem; text-align: center; }
.gallery h2 { margin-bottom: .5rem; }
.gallery-masonry {
  column-count: 3;
  column-gap: 0;
}
.gallery-masonry img {
  width: 100%;
  display: block;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-masonry img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
@media(max-width:900px){ .gallery-masonry{ column-count:2; } }
@media(max-width:600px){ .gallery-masonry{ column-count:1; } }

/* =============== Contact Card / Form =============== */
.contact-card {
  max-width: 900px;
  margin: 4rem auto;
  padding: 3rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.contact-card h2 {
  font-size: 28px;
  margin-bottom: 0.5rem;
  text-align: center;
}
.contact-card p {
  color: #555;
  text-align: center;
  margin-bottom: 2rem;
}
.contact-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  text-align: center;
  font-size: 1rem;
}
.contact-links li { margin-bottom: 0.4rem; }
.contact-links a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.contact-links a:hover { border-color: #c6d23b; }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}
.contact-form .full { grid-column: span 2; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f3f4f6;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  margin-bottom: 0.4rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: #c6d23b;
}
.contact-form button {
  grid-column: span 2;
  justify-self: center;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  background: #c6d23b;
  color: #000;
  transition: all 0.25s ease;
}
.contact-form button:hover {
  background: #b5c634;
  box-shadow: 0 4px 10px rgba(198,210,59,0.3);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .full,
  .contact-form button { grid-column: span 1; }
}

/* =============== Footer =============== */
.footer {
  background: #efefef;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #444;
}

/* =============== Typography =============== */
h2 { letter-spacing: -0.5px; line-height: 1.2; }
p { line-height: 1.6; }


.about-section.centered {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
}

.about-section.centered h2 {
  margin-bottom: 0.5rem;
}

.about-section.centered p {
  max-width: 750px;
  margin: 0 auto 1.5rem;
  color: #444;
  line-height: 1.6;
}

.about-section.centered .key-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-items: center;
  list-style: none;
  gap: 0.5rem 2rem;
  margin: 1.5rem auto;
  padding: 0;
  max-width: 700px;
  text-align: left;
}

.about-section.centered .ecs-logo {
  margin-top: 2rem;
  /* width: 10rem; */
}

.about-section.centered .ecs-logo img {
  max-width: 500px;
  opacity: 0.9;
}