html {
  font-size: 110%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background-color: #eaf5eb;
  color: #005c1f;
  font-size: 0.97rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #005c1f;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 0;
}

h1,
h2,
h3 {
  text-transform: none;
  letter-spacing: 1px;
  line-height: 1.3;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  font-weight: 400;
}

header {
  padding: 2rem 1rem 1rem 1rem;
  text-align: center;
  position: relative;
  background-color: #d5ebd7;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.logo-svg {
  max-width: 600px;
  width: 100%;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.logo-container:hover .logo-svg {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
}

.slogan {
  font-size: 1.1rem;
  font-weight: bold;
}

.lang-switch {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.lang-switch select {
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

main {
  padding: 1rem;
  max-width: 1400px;
  margin: auto;
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #2e7d32;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #1b5e20;
}

.service-section {
  margin-top: 3rem;
  text-align: center;
}

.service-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.icon {
  margin-bottom: 1rem;
}

.icon svg {
  transition: transform 0.3s ease, fill 0.3s ease;
}

.service:hover .icon svg {
  transform: scale(1.1);
  fill: #1b5e20;
  stroke: #1b5e20;
}

.contact-form {
  margin-top: 3rem;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form button {
  width: fit-content;
  padding: 0.75rem 1.5rem;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #1b5e20;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background-color: #d5ebd7;
}

/* --- Modal Styling --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.modal h3 {
  margin-top: 0;
}

.modal.error h3 {
  color: #d32f2f;
}

.modal button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal button:hover {
  background-color: #1b5e20;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

button.loading {
  position: relative;
  color: transparent !important;
}

button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  margin-left: -9px;
  border: 3px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* === RESPONSIVE SERVICE GRID (final version) === */

.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1300px;
  /* gives breathing space on large screens */
  padding: 0 1rem;
}

.service-intro {
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* Base card width — 3 per row on desktops */
.service {
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, background-color 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, margin 0.4s ease, height 0.4s ease;
  overflow: hidden;
  border: 2px solid transparent;
  width: calc(28% - 1rem);
  /* slightly wider than before */
  position: relative;
  cursor: pointer;
  flex: 0 1 auto;
  background-color: #d5ebd7;
}

/* Expanded state (hover or active) */
.service:hover,
.service.active {
  background-color: #d9f2de;
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.25);
  border-color: rgba(76, 175, 80, 0.5);
  z-index: 2;
}

/* --- Responsive breakpoints --- */

/* Tablets: 2 cards per row */
@media (max-width: 1024px) {
  .service {
    width: calc(45% - 1rem);
  }
}

/* Phones: 1 card per row */
@media (max-width: 800px) {
  .service {
    width: 100%;
    padding: 0.1rem;
  }
}

/* Header area inside each service */
.service-content h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1.1rem;
}

.service-content p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Project text */
.project h4 {
  margin: 0.3rem 0;
  font-size: 1rem;
}

.project p {
  font-size: 0.9rem;
}

/* Expand arrow icon */
.expand-icon {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  transition: transform 0.3s ease;
  vertical-align: middle;
  stroke: #2e4739;
}

.service.hovered .expand-icon,
.service.active .expand-icon {
  transform: rotate(180deg);
}

/* Responsive behavior for smaller screens */
@media (max-width: 600px) {
  .service {
    width: 100%;
  }

  .service-content h3 {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {

  body,
  p,
  li,
  span {
    font-weight: 500;
    /* visually matches desktop appearance */
  }
}

/* === Extended Project Showcase === */

.project {
  position: relative;
  cursor: pointer;
}

/* When expanded */
.project.expanded .project-details {
  opacity: 1;
  max-height: 800px;
  margin-top: 0.75rem;
}

.project.expanded {
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Subtle hover feedback */
.project:hover {
  background-color: #f3fbf5;
}

.material-symbols-outlined {
  font-size: 40px;
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 48;
}

/* === PROJECT MODAL === */

.project-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  padding: 1rem;
}

.modal-content {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 1300px;
  width: 95%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
}

.project-modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Stack image + text on mobile */
@media (max-width: 700px) {
  .modal-content {
    grid-template-columns: 1fr;
  }
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 800px;
  border-radius: 8px;
  object-fit: cover;
}

.modal-content h3 {
  font-family: "Montserrat", sans-serif;
  margin-bottom: 0.5rem;
  color: #1f3529;
}

.modal-content p,
.modal-content ul {
  font-family: "Lato", sans-serif;
  color: #2e4739;
  line-height: 1.6;
}

.modal-content ul {
  text-align: left;
  padding-left: 1.2rem;
  margin-top: 0.75rem;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 1.8rem;
  color: #2e4739;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #4caf50;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.contact-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* centers horizontally in parent (optional) */
  gap: 0.4rem;
  font-size: 1rem;
  margin: 0;
  margin-bottom: 1rem;
}

.contact-line .material-symbols-outlined {
  font-size: 1.2rem;
  vertical-align: middle;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.contact-line a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-line a:hover {
  color: #2e7d32;
}

/* Swiper container and slides */
.swiper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem 1rem;
  box-sizing: border-box;
  overflow: hidden;
  /* prevent misalignment on mobile */
}

.swiper-wrapper {
  box-sizing: border-box;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  height: auto;
  box-sizing: border-box;
}

.swiper-slide.project {
  background-color: #d5ebd7;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: left;
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.swiper-slide.project img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.swiper-slide.project:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.swiper-slide.project h4 {
  margin-bottom: 0.3rem;
}

.swiper-slide.project p {
  font-size: 0.95rem;
}

/* Highlight when a category is clicked */
.swiper-slide.highlight {
  background-color: #d9f2de;
  transform: scale(1.0);
  transition: all 0.4s ease;
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.25);
  border-color: rgba(76, 175, 80, 0.5);
}

/* Swiper navigation styling */
.swiper-button-prev,
.swiper-button-next {
  color: #2e7d32;
}

.swiper-pagination-bullet {
  background: #2e7d32;
}

/* Phones: 1 card per row */
@media (max-width: 800px) {
  .swiper-slide.project {
    padding: 0.5rem;
    text-align: justify;
  }

  main {
    padding: 0.5rem;
  }
}

.contact-form input,
.contact-form textarea,
.contact-form button,
.contact-form label {
  font-family: "Manrope", "Segoe UI", sans-serif !important;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6b8672;
  opacity: 1;
  /* ensures same color tone across browsers */
  font-family: inherit;
}

/* --- GDPR Cookie Banner Styling --- */
#glowCookies-banner {
  font-family: "Manrope", sans-serif;
  background: #d9f2de;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  padding: 1.2rem;
  font-size: 0.95rem;
  max-width: 400px;
}

#glowCookies-banner button {
  border-radius: 6px;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  font-family: inherit;
}

#glowCookies-banner a {
  color: #2e7d32;
  text-decoration: underline;
}

.map-section {
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.map-section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.map-section p {
  margin-bottom: 1.5rem;
  color: #4e6b5a;
}

.map-container {
  width: 100%;
  max-width: 800px;
  height: 400px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}