* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Lora', sans-serif;
}

body {
    text-align: justify;
    line-height: 1.6;
    background-color: #fde9e9;
    /* background: #fff0e5; */
    color: #4b2e2e;
    font-size: clamp(16px, 2vw, 20px);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 20px 0;
}

#intro {
    margin-left: 250px;
    margin-top: -250px;
    text-align: left;
}

/* Right side: circular image */
.header-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: 35px;
}

/* Mobile-friendly */
@media (max-width: 768px) {
    #intro {
        margin-left: 0;
        margin-top: 0;
        padding: 20px;
      }

    .header-photo {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 15px;
    }
    
    .header-photo img {
        margin: 0; /* reset any left margin */
    }
    
    .header-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
      }
    
    nav {
        text-align: center;
        margin-top: 10px;
    }

    .header-photo {
        margin-top: 15px;
    }

    .boxes-container {
        flex-direction: column;
    }

    .box {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
   
    .atendimento-flex {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }
    
    .atendimento-list {
        width: 100%;
        text-align: left;
    }
    
    .btn.consulta {
        width: auto;            /* only as wide as the content */
        max-width: 100%;        /* prevent overflow */
        display: block;
        margin: 20px auto 0;    /* center the button */
        text-align: center;
    }
    
    /* Optional override for buttons inside boxes */
    .box .btn {
        max-width: 90%;
    }

    .watermark-background img {
        max-width: 200px;
        opacity: 0.1;
    }
    
    .watermark-background {
        left: 50%;
    }

}


/* Header */
#intro h1 {
    font-size: 40px;
}
header {
    background-color: #fccbcb;
    /* background: #ecafaf; */
    color: white;
    padding: 20px 0;
}

header h1 {
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* Hero */
#hero {
    background-image: url(images/background_img.png);
    /* background: #fde2d6; */
    text-align: center;
    padding: 80px 20px;
}

#hero h2 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #fff0e5;
}

#hero p {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff0e5;
}


.text-board {
    background-color: rgba(0, 0, 0, 0.6); /* black with 60% opacity */
    padding: 15px 0;
    border-radius: 10px;
    text-align: center;
    margin: 5px auto;
}

.btn {
    background: #fccbcb;
    color: #4b2e2e;
    padding: 10px 20px;
    text-decoration: none;
    border: 2px solid #ecafaf;
    border-radius: 5px;
}

.btn:hover {
    background: #ecafaf;
}

/* Sobre */
  #sobre h2 {
    font-size: 40px;
    margin-bottom: 15px;
  }

  #sobre h3 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 25px;
  }

  /* Abordagem */
  #abordagem h2 {
    font-size: 40px;
    margin-bottom: 15px;
  }

  #abordagem h3 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 25px;
  }

  .abordagem-list {
    list-style: none;
    padding-left: 0;
  }

  .abordagem-list li {
    margin-bottom: 10px;
    line-height: 1.5;
  }

  .boxes-container {
    display: flex;
    gap: 20px; /* space between the boxes */
    flex-wrap: wrap; /* makes them wrap on small screens */
    text-align: center;
    margin-top: 30px;
}

.box {
    flex: 1 1 45%; /* grow/shrink with a base width of ~45% */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fcd9d9;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}


/* Portifolio */

  #portifolio h2 {
    font-size: 40px;
    margin-bottom: 15px;
  }
  
  #portifolio h3 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 25px;
  }
  
  .portifolio-list {
    list-style: none;
    padding-left: 0;
  }
  
  .portifolio-list li {
    margin-bottom: 10px;
    line-height: 1.5;
  }

  /* Atendimento */
  #atendimento h2 {
    font-size: 40px;
    margin-bottom: 15px;
  }

  #atendimento h3 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 25px;
  }

  .atendimento-list {
    list-style: none;
    padding-left: 0;
  }

  .atendimento-list li {
    margin-bottom: 10px;
    line-height: 1.5;
  }

  .atendimento-flex {
    display: flex;
    align-items: center; /* vertical alignment */
    gap: 120px;
    flex-wrap: wrap; /* wrap on smaller screens */
}

.atendimento-flex a.btn.consulta {
    white-space: nowrap;
}

/* Watermark */
#watermark {
  position: relative;
  overflow: hidden;
}

.watermark-background {
  position: absolute;
  top: 50%;
  left: 85%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.watermark-background img {
  max-width: 400px;
  height: auto;
}

.watermark-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Contato */
  #contato h2 {
    font-size: 40px;
    margin-bottom: 15px;
  }

/* Footer */
footer {
    background: #fccbcb;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #ffe5d9;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
