:root{
    --color-primary:    #1C2B2B;
    --color-secondary:  #2E6B6B;
    --color-accent:     #4A9E9E;
    --color-light:      #D4DFE0;
    --color-muted:      #8A9B9C;

    --color-bg:         var(--color-primary);
    --color-text:       var(--color-light);
    --color-text-muted: var(--color-muted);
    --color-btn:        var(--color-accent);
    --color-btn-hover:  var(--color-secondary);
}


h1 { font-size: 2rem;}
h2 { font-size: 1.8rem;}
h3 { font-size: 1.4rem;}
h4 { font-size: 1.1rem;}
p  { font-size: 1rem;}
a  { font-size: 1rem;}



*{
    margin: 0;
    overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
#topbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-bg);
}
#nav-image{
    display: flex;
    margin: 0 0 0 1vh;
    gap:4vw;
    height: 9vw;
    width: auto;
}
#nav-image img{
    height: 100%;
    width: auto;
}
.menu{
    position: absolute;
    display:none;
    flex-direction: column;
    padding-left: 3vh;
    padding-right: 3vh;
    height: 60vw;
    top: 7vh;
    right: 0;
    background-color: var(--color-bg);
}
.menu li a{
    text-decoration: none;
    color: var(--color-text);
}
.menu-toggle{
    max-width: 10vw;
    width: 100%;
    margin: 2vh;

}
.menu-toggle img{
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;

}
.menu.active{
    max-height: 20vh;
    display: flex;
    flex-direction: column;
    margin-left: 1vh;
    justify-content: space-around;
    list-style: none;
}

#hero{
    background-image:linear-gradient(to right, var(--color-light) 80%, var(--color-secondary) 20%);
    padding-top: 4vh;
}
#hero-content h1{
    max-width: 70vw;
    margin-left: 2vh;
    color: var(--color-bg);
}
#hero-content h4{
    max-width: 70vw;
    margin: 2vh 0 0 2vh;
    color: var(--color-text-muted);
}
#hero-content button{
    margin-top: 5vh;
    margin-left: 5vh;
    background-color: var(--color-btn);
    border-color: var(--color-btn-hover);
    border-radius: 3vh;
    height: 7vh
}
#hero-content button a{
    color: var(--color-text);
    text-decoration: none;
}
#hero-image{
    height: 100vw;
    margin-left: 20vw;
    width: auto;
    background-position: top center;
}
#hero-image img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#areas{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8vh;
    background-color: var(--color-primary);
    padding-bottom: 6vh;
}
#areas h2{
    margin-top: 10vh;
    color: var(--color-text);
}
#areas-btn{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:5vh
}
.area-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vh;
    width: 90%;
    border: solid 0.5vh;
    border-radius: 4vw;
    padding: 4vh 0 4vh 0;
    background-color: var(--color-btn);
}
.area-card img{
    height: 10vh;
    width: auto;
}
.area-card h3{
    color: var(--color-bg);
}
.area-card p{
    width: 80%;
    color: var(--color-text);
}
#team-juridico{
    background-color: var(--color-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8vh;
    padding: 6vh 0 4vh 0;
}
#team-juridico h2{
        color: var(--color-bg);
}
.advogado{
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 4vh 0 0 0;
    gap:2rem;
    background-color: var(--color-secondary);
}
.apresentacao{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.apresentacao h3{
    margin-bottom: 1rem;
    color: var(--color-bg);
}
.apresentacao p{
    color: var(--color-text);
    max-width: 80%;
}
.photo-adv{
    height: 130vw;
    width: 100%;
}
.photo-adv img{
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top center;
}
#forms {
  background-color: var(--color-primary);
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

#forms h2 {
  color: var(--color-light);
  text-align: center;
  font-size: 1.8rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
}
form input,
form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid var(--color-muted);
  border-radius: 8px;
  background-color: transparent;
  color: var(--color-light);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

form input::placeholder,
form textarea::placeholder {
  color: var(--color-muted);
}

form input:focus,
form textarea:focus {
  border-color: var(--color-accent);
}

form textarea {
  height: 140px;
  resize: vertical;
}

form button {
  padding: 0.9rem;
  background-color: var(--color-btn);
  color: var(--color-light);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

form button:hover {
  background-color: var(--color-btn-hover);
  transform: translateY(-2px);
}

form button:active {
  transform: translateY(0);
}

#CTA{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5vh;
    background-color: var(--color-light);
    padding: 6vh 0;
}
#CTA h2{
    color: var(--color-secondary);
}
.cta-img{
    height: 10rem;
    width: auto;
}
.cta-img img{
    height: 100%;
    width: auto;
    display: block;
    object-fit: cover;
}
footer{
    width: 100%;
    height: 6vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
}
footer p{
    color: var(--color-text);
}
@media (min-width:500px){
.advogado{
    flex-direction: row;
    padding: 0;
    height: 60vh;

}   
.apresentacao h3{
    margin-top: 10vh;
    margin-bottom: 4vh;
}
.photo-adv{
    height: auto;
}
#nav-image{
    height: 6vw;
}
#hero-image{
    height: 60vw;
    padding-left: 30vw;    
}
#hero{
    width: 100%;
}
#hero-content button{
    height: 9vh;
    width: 30vh;
}
#hero-content button a{
    font-size: larger;
} 
}
@media (min-width:750px){
.menu{
    top: 12vh;
    height: 70vw;
    width:20vw;
    align-items: center;
}
}
@media (min-width:1100px){
header {
  padding-top: 10vh;
}
#nav-image{
    height: 3vw;
}    
.menu-toggle{
    display: none;
}
.menu{
    display: flex;
    flex-direction: row;
    position: relative;
    height: auto;
    top: 0;
    width: 50%;
    justify-content: space-between;
}
#topbar{
    justify-content: space-around;
    height: 10vh;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}
#hero{
    display: flex;
    justify-content: space-between;
    padding:0;
}
#hero-content {
    height: 100%;
    padding: 15vh 0vh 0 15vh;
    width: 40%;
}
#hero-image{
    margin:0;
    padding: 20vh 0 0 0;
    height: 30vw;
}

#areas{
    padding-bottom: 15vh;
}
.area-card{
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25),
              0 1px 4px rgba(0, 0, 0, 0.15);
    }
#areas-btn{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin: 0 auto;
    width: 90%;
    max-width: 1100px;
}
.advogado{
    width: 80%;
    height: 50vh;
    border-radius: 3vh;
    border: solid 1px var(--color-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.20),
              0 2px 8px rgba(0, 0, 0, 0.12);
}
.photo-adv{
    width: 55%;
}
@media (min-width:1100px) and (pointer: fine){
#hero-content button {
    box-shadow: 0 4px 16px rgba(74, 158, 158, 0.35),
                0 1px 4px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#hero-content button:hover {
    box-shadow: 0 8px 24px rgba(74, 158, 158, 0.45),
                0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    cursor: pointer;
}

#hero-content button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 158, 158, 0.30);
}

.area-card{
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.area-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30),
                0 2px 8px rgba(0, 0, 0, 0.18);
    transform: translateY(-6px);
    background-color: var(--color-btn-hover);
}
.menu li:hover{
    background-color: var(--color-btn-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30),

}
}
}
