/* -----------------------------------------
   GLOBAL STYLES
----------------------------------------- */
body {
  background: linear-gradient(to bottom right, #cfaa57, #ffe1ac, #9e7302);
  width: 100%;
  margin: 0;
}

.animate-left {
  transform: translateX(-50px);
  opacity: 0;
  transition: all 0.8s ease; /* Duration & easing for animation */
}
.animate-right {
  transform: translateX(50px);
  opacity: 0;
  transition: all 0.8s ease;
}
.animate-top {
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.8s ease;
}

/* Final state: back to normal transform, full opacity */
.animate-left.in-view,
.animate-right.in-view,
.animate-top.in-view {
  transform: translateX(0) translateY(0);
  opacity: 1;
}
/* -----------------------------------------
   HERO SECTION
----------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
}

.mid {
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.mid h1 {
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  color: #164e50;
  text-align: right;
  margin-bottom: 0px;
  margin-right: 10px;
  font-size: clamp(1rem, 0.5758rem + 1.9394vw, 2rem);
}

.mid p {
  font-family: "Forum", serif;
  font-weight: 400;
  font-style: normal;
  text-align: right;
  color: #164e50;
  font-size: clamp(1rem, 0.5758rem + 1.9394vw, 2rem);
  margin: 0;
  margin-right: 10px;
}

.mid a {
  font-family: "Forum", serif;
  font-weight: 400;
  font-style: normal;
  text-align: right;
  color: #164e50;
  font-size: clamp(1rem, 0.5758rem + 1.9394vw, 2rem);
  margin: 0;
  width: 100%;
  text-decoration: none;
}

#kfundal {
  position: absolute;
  left: 3%;
  top: 0;
  height: 110vh;
}

.card {
  width: 50vw;
  height: 50vh;
  background: linear-gradient(to right, #164e50, #3cb3bb);
  border-radius: 2rem;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 25px;
}

#kcard {
  height: 90%;
  flex: 45%;
  width: 50%;
}

.card-content {
  flex: 55%;
  display: flex;
  flex-direction: column;
  gap: 2vw;
}

.card .card-content p {
  font-family: "Forum", serif;
  font-weight: 100;
  font-style: normal;
  text-align: left;
  color: #ffeecf;
  font-size: clamp(1rem, 0.5758rem + 1.9394vw, 1.8rem);
}

.under-card {
  display: flex;
  justify-content: space-between;
}

.social {
  margin-left: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.social img {
  width: 40px;
}

/* -------------- MEDIA QUERIES: Hero ------------- */
@media (max-width: 1500px) {
  .card {
    width: 60vw;
  }
}

@media (max-width: 1440px) {
  .card {
    width: 700px;
    height: 400px;
  }
  #kfundal {
    left: 0;
  }
  .card .card-content p {
    font-size: clamp(1rem, 0.5758rem + 1.9394vw, 1.5rem);
  }
}

@media (max-width: 768px) {
  .card {
    width: 85vw;
    height: fit-content;
  }
  .social img {
    width: 35px;
  }
}

@media (max-width: 1508px) {
  #kfundal {
    max-width: 100%;
  }
}

@media (max-width: 450px) {
  .card-content {
    gap: 1vw;
  }
  .social img {
    width: 25px;
  }
  .hero {
    width: 100%;
    height: 80vh;
  }
  #kfundal {
    left: 0;
    top: 10vh;
    width: 100%;
    height: 70vh;
  }
  .card {
    width: 85vw;
    height: fit-content;
  }
  .card .card-content p {
    font-size: 0.9rem;
  }
}

/* -----------------------------------------
   SERVICII SECTION
----------------------------------------- */
.servicii {
    position: relative;
  margin: 100px 0;
  z-index: 100;
}

.servicii h2 {
  text-align: center;
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-size: 2.5rem;
  color: #164e50;
  margin-bottom: 50px;
}

.service-cards {
  margin: 2rem auto;
  width: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4vw;
}

.service-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: max(40%, 350px);
  height: 265px;
  color: #ffeecf;
  background: linear-gradient(to right, #164e50, #3cb3bb);
  border-radius: 2rem;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
  text-align: center;
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.service-card ul {
  padding: 0 50px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  flex: 1;
  list-style-type: disc;
}

.service-card ul li {
  font-family: "Forum", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.3rem;
}

.service-card ul li::marker {
  font-size: 0.5em;
}

/* -------------- MEDIA QUERIES: Servicii ------------- */
@media (max-width: 1508px) {
  .service-card {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .service-cards {
    width: 90vw;
  }
  .service-card {
    height: 285px;
  }
  .service-card h3 {
    margin-bottom: 0;
  }
  .contact-container{
    width: 90vw!important;
  }
  .contact-form-card{
    width: 100%;

  }

}

@media (max-width: 450px) {
  .service-card {
    min-width: 300px;
  }
  .service-card ul {
    padding: 0 30px;
  }
  .service-card h3 {
    font-size: 1.2rem;
  }
  .service-card ul li {
    font-size: 1.15rem;
  }
  .servicii{
      overflow-x: hidden;
  }
}

/* -----------------------------------------
   CONTACT SECTION
----------------------------------------- */
.contact {
  margin: 200px 0;
  position: relative;
  z-index: 100;
}

.contact h2 {
  text-align: center;
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-size: 2.5rem;
  color: #164e50;
  margin-bottom: 50px;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 70%;
  margin: 0 auto;
}

/* LEFT SIDE: CONTACT INFO BOXES */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 150px; /* just to keep some space on smaller screens */
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: 10px;
  background: linear-gradient(to right, #164e50, #3cb3bb);
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
}

.contact-icon img {
  width: 40px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  color: #164e50;
}

.contact-title {
  font-family: "Forum", serif;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 300;
}

.contact-detail {
  margin: 0;
  font-family: "Forum", serif;
  font-size: 1.1rem;
}

.contact-box a {
  text-decoration: none;
  color: #164e50;
}

/* RIGHT SIDE: BIG GRADIENT CARD */
.contact-form-card {
  box-sizing: border-box;
  flex: 1;
  background: linear-gradient(to right, #164e50, #3cb3bb);
  border-radius: 2rem;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: #ffeecf;
}

.contact-form-card .form-intro {
  margin: 0 0 20px 0;
  font-family: "Forum", serif;
  font-size: 1rem;
}

.form-fields {
  display: flex;
  gap: 3vw;
  flex-wrap: wrap;
}

.left-fields,
.right-field {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-width: 150px;
}

.left-fields label,
.right-field label {
  font-family: "Forum", serif;
  font-size: 1rem;
}

.right-field label {
  text-align: right;
  margin-right: 10px;
}

.left-fields input,
.right-field textarea {
  font-family: "Forum", serif;
  font-size: 1rem;
  padding: 0.5rem;
  border: none;
  border-radius: 0.3rem;
  background-color: rgb(218, 218, 218);
}

.right-field .mesaj-label {
  margin-bottom: 0.3rem;
  font-size: 1rem;
  text-align: left;
}

.right-field textarea {
  height: 100%;
  resize: vertical;
  min-height: 150px;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.field-row label {
  min-width: 50px;
}

.field-row input {
  width: 100%;
}

.form-submit {
  display: flex;
  justify-content: flex-end; 
}

.btn-trimite {
  font-family: "Forum", serif;
  font-size: 1.1rem;
  font-weight: 500;
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #164e50;
  color: #ffeecf;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 30px;
}

.btn-trimite:hover {
  background-color: #112d2e; 
}

/* -------- MEDIA QUERIES: Contact Section -------- */
@media (max-width: 900px) {
  .form-submit {
    justify-content: center;
  }
  .form-fields {
    gap: 40px;
  }
}

@media (min-width: 890px) {
  .right-field .mesaj-label {
    text-align: right;
  }
}

@media (max-width: 1439px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
  .contact-info {
    width: 100%;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
  }
  .contact-form-card {
    width: 100%;
  }
  .contact-box {
    flex: 1;
  }
}

@media (max-width: 4510px) {
    .contact-info{
        flex-direction: column;
    }
    
}

@media (max-width: 900px) {
  .form-fields {
    flex-direction: column;
  }
}

@media (max-width: 450px) {
  .contact-box {
    padding: 0;
    gap: 0.5rem;
  }
  .contact-icon {
    font-size: 1.3rem;
  }
  .contact-title {
    font-size: 0.95rem;
  }
  .contact-detail {
    font-size: 1rem;
  }
  .contact-form-card {
    padding: 2rem;
  }
  .left-fields input,
  .right-field textarea {
    font-size: 0.9rem;
    padding: 0.4rem;
  }
  .contact-form-card .form-intro {
    font-size: 1rem;
  }
}

/****************************
  SIMPLE STACKED FOOTER
****************************/

.footer {
  background-color: #164e50;   /* Dark teal background */
  color: #ffeecf;             /* Light text color */
  font-family: "Forum", serif;
  text-align: center;         /* Center all text & items */
  position: relative;
  z-index: 100;
}

/* Container that stacks everything in a column */
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* center horizontally */
  gap: 1.5rem;         /* space between footer elements */
  padding: 2rem 1rem;
}

/* Logo at the top */
.footer-logo {
  width: 150px;
  /* adjust as needed (e.g., 120px, etc.) */
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 1rem; 
  justify-content: center;
}

.footer-social img {
  width: 30px;
  transition: transform 0.2s;
}

.contact-wrapper{
    overflow: hidden!important;
}

.services-wrapper,
.contact-wrapper {
  position: relative; /* So the shape can be absolutely positioned inside */
  overflow: visible;  /* Ensure the shape isn't clipped by the wrapper */
  z-index: 1;         /* Keep shapes behind other site content if needed */
  
  /* Give each wrapper enough height so the entire shape is visible.
     Adjust this to match your shape's actual height once scaled to
     full screen width. For a purely fluid design, see note below. */
  min-height: 900px; 
  /* or a fixed height: height: 900px; 
     or even a dynamic approach (see "Fluid Height" note) */
}

/* Place the shape behind the content, spanning full width */
.shape-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  
  /* If you want the image’s full height visible,
     let it auto-scale width to 100%. The container
     must be tall enough so it's never clipped. */
  height: auto;
  
  /* Place it behind the text */
  z-index: -1; 
}


/* Footer Links (Termeni, Politica) */
.footer-links {
    width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;      /* side by side for the links */
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links li{
    display: flex;
    justify-content: center;
    align-items: center;
}

.term{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}


.footer-links li a {
  color: #ffeecf;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-links li a img{
    height: 40px;
        
}

.footer-links li a:hover {
  color: #ffffff;
}

/* ANPC links */
.anpc-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.anpc-links img {
  height: 40px;           /* adjust if needed */
  border-radius: 0.25rem;
  transition: transform 0.3s;
}


/* Bottom bar */
.footer-bottom {
  background-color: #112d2e; 
  padding: 1rem 0;
}

.footer-bottom a{
  font-size: 0.9rem;
  color: #ffeecf;
  text-decoration: none;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: #ffeecf;
}
@media (min-width: 1024px) {
    .footer-links {
          justify-content: space-between;

        
    }
    
}
@media (max-width: 1440px) {
    .shape-full {
        display: none;
        
    }
    
}
@media (min-width: 786px) {
    .form-intro{
        text-wrap: nowrap;
    }
}
/* Responsive tweaks if needed */
@media (max-width: 786px) {
    #pp{
        order: 3;
    }   
    .footer-links li{
        min-width: 30vw;
    }
}
@media (max-width: 450px) {
    .term{
    
        flex-direction: column;
    }
  .footer-links {
    flex-direction: column; /* stack links on very narrow screens */
    gap: 1rem;
  }
  .anpc-links{
    flex-direction: column;
  }
  
}


